added more get functions in query parser
query reducer.

Merge branch 'master' of github.com:watermelon91/eecs584f14