Difference in Query.statement and the real query