carry query around separately