query implementation
Merge branch 'master' of https://github.com/asgpng/COS-iw