{
  "db_name": "PostgreSQL",
  "query": "WITH entities AS (SELECT name, id FROM cala_accounts WHERE (COALESCE((name, id) > ($3, $2), $2 IS NULL)) ORDER BY name ASC, id ASC LIMIT $1) SELECT i.id AS \"entity_id: AccountId\", e.sequence, e.event, e.recorded_at FROM entities i JOIN cala_account_events e ON i.id = e.id ORDER BY i.name asc, i.id asc, i.id, e.sequence",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "entity_id: AccountId",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "sequence",
        "type_info": "Int4"
      },
      {
        "ordinal": 2,
        "name": "event",
        "type_info": "Jsonb"
      },
      {
        "ordinal": 3,
        "name": "recorded_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Int8",
        "Uuid",
        "Text"
      ]
    },
    "nullable": [
      false,
      false,
      false,
      false
    ]
  },
  "hash": "fa3e89e009e7df93f198f41736ca0cd645e51b04720d1a01a85a778a544b368f"
}
