{
  "type": "project",
  "input": {
    "type": "join",
    "input": [
      {
        "type": "bgp",
        "patterns": [
          {
            "type": "pattern",
            "termType": "Quad",
            "subject": {
              "termType": "Variable",
              "value": "b2"
            },
            "predicate": {
              "termType": "NamedNode",
              "value": "http://example.org/hero"
            },
            "object": {
              "termType": "Variable",
              "value": "hero"
            },
            "graph": {
              "termType": "DefaultGraph",
              "value": ""
            }
          }
        ]
      },
      {
        "type": "graph",
        "input": {
          "type": "bgp",
          "patterns": [
            {
              "type": "pattern",
              "termType": "Quad",
              "subject": {
                "termType": "Variable",
                "value": "hero"
              },
              "predicate": {
                "termType": "NamedNode",
                "value": "http://example.org/name"
              },
              "object": {
                "termType": "Variable",
                "value": "hero_name"
              },
              "graph": {
                "termType": "DefaultGraph",
                "value": ""
              }
            }
          ]
        },
        "name": {
          "termType": "Variable",
          "value": "hero_graph"
        }
      }
    ]
  },
  "variables": [
    {
      "termType": "Variable",
      "value": "hero_graph"
    },
    {
      "termType": "Variable",
      "value": "hero_name"
    }
  ]
}
