Implemented query strategy