Custom stats queries for advanced graphing