move query up