{
  "query_block": {
    "select_id": 1,
    "cost": 3602.902525,
    "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": 3602.890855,
          "filtered": 100,
          "materialized": {
            "query_block": {
              "select_id": 2,
              "cost": 20.99251572,
              "filesort": {
                "sort_key": "t2.grp_id",
                "temporary_table": {
                  "nested_loop": [
                    {
                      "table": {
                        "table_name": "t2",
                        "access_type": "ALL",
                        "possible_keys": ["grp_id"],
                        "loops": 1,
                        "rows": 1994924,
                        "cost": 329.9216232,
                        "filtered": 100
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    ]
  }
} 
