{
  "db_name": "PostgreSQL",
  "query": "SELECT model as model_name, COUNT(*) as model_count, COALESCE(AVG(duration_ms), 0)::float8 as model_avg_latency_ms FROM http_analytics WHERE timestamp >= $1 AND timestamp <= $2 AND model IS NOT NULL GROUP BY model ORDER BY model_count DESC",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "model_name",
        "type_info": "Text"
      },
      {
        "ordinal": 1,
        "name": "model_count",
        "type_info": "Int8"
      },
      {
        "ordinal": 2,
        "name": "model_avg_latency_ms",
        "type_info": "Float8"
      }
    ],
    "parameters": {
      "Left": [
        "Timestamptz",
        "Timestamptz"
      ]
    },
    "nullable": [
      true,
      null,
      null
    ]
  },
  "hash": "709ca052466573591d796fa0497d53d9a4adc2f2c85ba4904d5adca6bb528529"
}
