<p>Hi there, do the both phrases and sentences mean the same?<br/><br/></p><ol><li>John wanted to know if <b>there were any students</b> present in the market.</li><li>John wanted to know if <b>any students were</b> present in the market.</li></ol>