Adding sample code to query the aggregator.

  modified:   src/CMakeLists.txt
  new file:   src/query_aggregator.cpp