add toQuery method to all operations