evaluate query string