added query endpoints
added query endpoints
added get query endpoints
add get query pattern
Merge remote-tracking branch 'upstream/master'