{
  "type": "project",
  "input": {
    "type": "graph",
    "input": {
      "type": "project",
      "input": {
        "type": "extend",
        "input": {
          "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": ""
              }
            }
          ]
        },
        "variable": {
          "termType": "Variable",
          "value": "g"
        },
        "expression": {
          "type": "expression",
          "subType": "term",
          "term": {
            "termType": "Variable",
            "value": "x"
          }
        }
      },
      "variables": [
        {
          "termType": "Variable",
          "value": "g"
        }
      ]
    },
    "name": {
      "termType": "Variable",
      "value": "g"
    }
  },
  "variables": [
    {
      "termType": "Variable",
      "value": "x"
    },
    {
      "termType": "Variable",
      "value": "p"
    }
  ]
}
