Get StatisticsCollectionQuery working