so, how to I access .query method from within?