added query to operations