{
  "db_name": "PostgreSQL",
  "query": "\n            SELECT model_id,\n                   COALESCE(SUM(reserved_requests), 0)::BIGINT AS reserved\n            FROM batch_capacity_reservations\n            WHERE model_id = ANY($1)\n              AND completion_window = $2\n              AND released_at IS NULL\n              AND expires_at > now()\n            GROUP BY model_id\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "model_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "reserved",
        "type_info": "Int8"
      }
    ],
    "parameters": {
      "Left": [
        "UuidArray",
        "Text"
      ]
    },
    "nullable": [
      false,
      null
    ]
  },
  "hash": "dcbed58e22f1e336f145c8789b4c9ab2c526f2175de41a0fce47601d1517ee08"
}
