testing query order