{
  "type": "project",
  "input": {
    "type": "graph",
    "input": {
      "type": "project",
      "input": {
        "type": "join",
        "input": [
          {
            "type": "values",
            "variables": [
              {
                "termType": "Variable",
                "value": "g"
              },
              {
                "termType": "Variable",
                "value": "y"
              }
            ],
            "bindings": [
              {
                "g": {
                  "termType": "NamedNode",
                  "value": "http://example.org/o1"
                },
                "y": {
                  "termType": "NamedNode",
                  "value": "http://example.org/y1"
                }
              }
            ]
          },
          {
            "type": "bgp",
            "patterns": [
              {
                "type": "pattern",
                "termType": "Quad",
                "subject": {
                  "termType": "Variable",
                  "value": "x"
                },
                "predicate": {
                  "termType": "Variable",
                  "value": "p"
                },
                "object": {
                  "termType": "Variable",
                  "value": "g"
                },
                "graph": {
                  "termType": "DefaultGraph",
                  "value": ""
                }
              },
              {
                "type": "pattern",
                "termType": "Quad",
                "subject": {
                  "termType": "Variable",
                  "value": "x"
                },
                "predicate": {
                  "termType": "Variable",
                  "value": "q"
                },
                "object": {
                  "termType": "Variable",
                  "value": "y"
                },
                "graph": {
                  "termType": "DefaultGraph",
                  "value": ""
                }
              }
            ]
          }
        ]
      },
      "variables": [
        {
          "termType": "Variable",
          "value": "x"
        }
      ]
    },
    "name": {
      "termType": "Variable",
      "value": "g"
    }
  },
  "variables": [
    {
      "termType": "Variable",
      "value": "g"
    },
    {
      "termType": "Variable",
      "value": "x"
    }
  ]
}
