Abstracted querying and creating query objects behind an interface