added query endpoints
added query endpoints
added get query endpoints
add get query pattern