| {
  "r_query_time_in_progress_ms": 2779423,
  "query_optimization": {
    "r_total_time_ms": 0.612215445
  },
  "query_block": {
    "select_id": 1,
    "cost": 264.3341946,
    "r_loops": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "OUTR2",
          "access_type": "index",
          "possible_keys": ["PRIMARY"],
          "key": "k_int",
          "key_length": "5",
          "used_key_parts": ["col_int_key"],
          "loops": 1,
          "r_loops": 1,
          "rows": 100,
          "r_rows": 69,
          "cost": 0.02131442,
          "filtered": 100,
          "r_total_filtered": 100,
          "r_filtered": 100,
          "using_index": true
        }
      },
      {
        "range-checked-for-each-record": {
          "keys": ["k_int"],
          "r_keys": {
            "full_scan": 0,
            "index_merge": 0,
            "range": {
              "k_int": 69
            }
          },
          "table": {
            "table_name": "OUTR3",
            "access_type": "ALL",
            "possible_keys": ["k_int"],
            "loops": 100,
            "r_loops": 69,
            "rows": 100,
            "r_rows": 75.98550725,
            "cost": 0.95606102,
            "filtered": 100,
            "r_total_filtered": 100,
            "r_filtered": 100
          }
        }
      },
      {
        "table": {
          "table_name": "OUTR1",
          "access_type": "ALL",
          "loops": 10000,
          "r_loops": 5243,
          "rows": 100,
          "r_rows": 99.99771123,
          "cost": 263.3568192,
          "filtered": 100,
          "r_total_filtered": 1.324081421,
          "attached_condition": "trigcond(<in_optimizer>(OUTR1.col_int_key,<exists>(subquery#2))) and trigcond(OUTR1.col_int_nokey = OUTR2.col_int_key)",
          "r_filtered": 1.324081421
        }
      }
    ],
    "subqueries": [
      {
        "query_block": {
          "union_result": {
            "table_name": "<union2,3>",
            "access_type": "ALL",
            "r_loops": 316231,
            "r_rows": 0.294639046,
            "query_specifications": [
              {
                "query_block": {
                  "select_id": 2,
                  "cost": 0.00171364,
                  "r_loops": 316232,
                  "nested_loop": [
                    {
                      "table": {
                        "table_name": "INNR1",
                        "access_type": "eq_ref",
                        "possible_keys": ["PRIMARY"],
                        "key": "PRIMARY",
                        "key_length": "4",
                        "used_key_parts": ["pk"],
                        "ref": ["func"],
                        "loops": 1,
                        "r_loops": 316232,
                        "r_table_loops": 0,
                        "rows": 1,
                        "r_rows": 1,
                        "cost": 0.00171364,
                        "filtered": 100,
                        "r_total_filtered": 14.42580131,
                        "attached_condition": "INNR1.col_int_nokey <= 1 or INNR1.pk <= 4",
                        "r_filtered": 14.42580131
                      }
                    }
                  ]
                }
              },
              {
                "query_block": {
                  "select_id": 3,
                  "operation": "UNION",
                  "cost": 0.02131442,
                  "r_loops": 316232,
                  "having_condition": "count(0) >= 2 and 8 = <ref_null_helper>(INNR1.pk)",
                  "nested_loop": [
                    {
                      "table": {
                        "table_name": "INNR1",
                        "access_type": "index",
                        "key": "u_int",
                        "key_length": "5",
                        "used_key_parts": ["col_int_uniq"],
                        "loops": 1,
                        "r_loops": 316232,
                        "rows": 100,
                        "r_rows": 99.99991146,
                        "cost": 0.02131442,
                        "filtered": 100,
                        "r_total_filtered": 100,
                        "r_filtered": 100,
                        "using_index": true
                      }
                    }
                  ]
                }
              }
            ]
          }
        }
      }
    ]
  }
}
