Different sql queries count indicator on the main page [closed]

Probably some code on your site caches the result of an expensive operation. When the page is cached by W3TC, if on the very same page generation, cache was being regenerated, you will see the actual queries that operation requires. After that, queries are like the usual page load ones.

Don’t worry about it until you see it too often.