Can provide a query to filter statistics