{
  "type": "project",
  "input": {
    "type": "graph",
    "input": {
      "type": "join",
      "input": [
        {
          "type": "bgp",
          "patterns": [
            {
              "type": "pattern",
              "termType": "Quad",
              "subject": {
                "termType": "NamedNode",
                "value": "http://example/a"
              },
              "predicate": {
                "termType": "NamedNode",
                "value": "http://example/b"
              },
              "object": {
                "termType": "Variable",
                "value": "x"
              },
              "graph": {
                "termType": "DefaultGraph",
                "value": ""
              }
            }
          ]
        },
        {
          "type": "path",
          "subject": {
            "termType": "NamedNode",
            "value": "http://example/a"
          },
          "predicate": {
            "type": "ZeroOrOnePath",
            "path": {
              "type": "seq",
              "input": [
                {
                  "type": "link",
                  "iri": {
                    "termType": "NamedNode",
                    "value": "http://example/p"
                  }
                },
                {
                  "type": "link",
                  "iri": {
                    "termType": "NamedNode",
                    "value": "http://example/p"
                  }
                }
              ]
            }
          },
          "object": {
            "termType": "Variable",
            "value": "t"
          },
          "graph": {
            "termType": "DefaultGraph",
            "value": ""
          }
        },
        {
          "type": "bgp",
          "patterns": [
            {
              "type": "pattern",
              "termType": "Quad",
              "subject": {
                "termType": "Variable",
                "value": "x"
              },
              "predicate": {
                "termType": "NamedNode",
                "value": "http://example/c"
              },
              "object": {
                "termType": "Variable",
                "value": "t"
              },
              "graph": {
                "termType": "DefaultGraph",
                "value": ""
              }
            }
          ]
        }
      ]
    },
    "name": {
      "termType": "Variable",
      "value": "g"
    }
  },
  "variables": [
    {
      "termType": "Variable",
      "value": "g"
    },
    {
      "termType": "Variable",
      "value": "t"
    },
    {
      "termType": "Variable",
      "value": "x"
    }
  ]
}
