{
  "query_block": {
    "select_id": 1,
    "cost": 235179.5959,
    "nested_loop": [
      {
        "table": {
          "table_name": "t1",
          "access_type": "ALL",
          "loops": 1,
          "rows": 5,
          "cost": 0.0116698,
          "filtered": 100,
          "attached_condition": "t1.a is not null"
        }
      },
      {
        "table": {
          "table_name": "<derived2>",
          "access_type": "ref",
          "possible_keys": ["key0"],
          "key": "key0",
          "key_length": "5",
          "used_key_parts": ["grp_id"],
          "ref": ["j2.t1.a"],
          "loops": 5,
          "rows": 1,
          "cost": 235179.5843,
          "filtered": 100,
          "materialized": {
            "lateral": 1,
            "query_block": {
              "select_id": 2,
              "cost": 20.99251572,
              "outer_ref_condition": "t1.a is not null",
              "nested_loop": [
                {
                  "table": {
                    "table_name": "t2",
                    "access_type": "ref",
                    "possible_keys": ["grp_id"],
                    "key": "grp_id",
                    "key_length": "5",
                    "used_key_parts": ["grp_id"],
                    "ref": ["j2.t1.a"],
                    "loops": 1,
                    "rows": 9924,
                    "cost": 14.40902768,
                    "filtered": 100
                  }
                }
              ]
            }
          }
        }
      }
    ]
  }
}
