queries ter