Also test if query is nontrivial