Return and work with the active query.