Implemented foundation of geographic statistics querying