added query with tests