{
  "db_name": "PostgreSQL",
  "query": "\n            WITH member_accounts AS (\n              SELECT\n                member_account_id AS member_id,\n                member_account_id,\n                NULL::uuid AS member_account_set_id,\n                created_at\n              FROM cala_account_set_member_accounts\n              WHERE\n                transitive IS FALSE\n                AND account_set_id = $4\n                AND (COALESCE((created_at, member_account_id) < ($3, $2), $2 IS NULL))\n              ORDER BY created_at DESC, member_account_id DESC\n              LIMIT $1\n            ), member_sets AS (\n              SELECT\n                member_account_set_id AS member_id,\n                NULL::uuid AS member_account_id,\n                member_account_set_id,\n                created_at\n              FROM cala_account_set_member_account_sets\n              WHERE\n                account_set_id = $4\n                AND (COALESCE((created_at, member_account_set_id) < ($3, $2), $2 IS NULL))\n              ORDER BY created_at DESC, member_account_set_id DESC\n              LIMIT $1\n            ), all_members AS (\n              SELECT * FROM member_accounts\n              UNION ALL\n              SELECT * FROM member_sets\n            )\n            SELECT * FROM all_members\n            ORDER BY created_at DESC, member_id DESC\n            LIMIT $1\n          ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "member_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 1,
        "name": "member_account_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 2,
        "name": "member_account_set_id",
        "type_info": "Uuid"
      },
      {
        "ordinal": 3,
        "name": "created_at",
        "type_info": "Timestamptz"
      }
    ],
    "parameters": {
      "Left": [
        "Int8",
        "Uuid",
        "Timestamptz",
        "Uuid"
      ]
    },
    "nullable": [
      null,
      null,
      null,
      null
    ]
  },
  "hash": "171da8b1fdbdd206764313718ba795927e3c4fba9b58767d23789c8b0b9dc1e1"
}
