Implemented predefined queries