Get results displayed in gauge

the query assembling part is WIP.

Change-Id: Ia90ffcc6377d760251aa7c921d94f7bc5ca29612