add method to eval a query string