expose .query() as a public function