Correct query format