{
  "type": "project",
  "input": {
    "type": "filter",
    "input": {
      "type": "bgp",
      "patterns": [
        {
          "type": "pattern",
          "termType": "Quad",
          "subject": {
            "termType": "Variable",
            "value": "s"
          },
          "predicate": {
            "termType": "Variable",
            "value": "p"
          },
          "object": {
            "termType": "NamedNode",
            "value": "http://www.example.org/o"
          },
          "graph": {
            "termType": "DefaultGraph",
            "value": ""
          }
        }
      ]
    },
    "expression": {
      "type": "expression",
      "subType": "existence",
      "not": false,
      "input": {
        "type": "filter",
        "input": {
          "type": "bgp",
          "patterns": [
            {
              "type": "pattern",
              "termType": "Quad",
              "subject": {
                "termType": "Variable",
                "value": "s"
              },
              "predicate": {
                "termType": "Variable",
                "value": "p"
              },
              "object": {
                "termType": "NamedNode",
                "value": "http://www.example.org/o1"
              },
              "graph": {
                "termType": "DefaultGraph",
                "value": ""
              }
            }
          ]
        },
        "expression": {
          "type": "expression",
          "subType": "existence",
          "not": false,
          "input": {
            "type": "bgp",
            "patterns": [
              {
                "type": "pattern",
                "termType": "Quad",
                "subject": {
                  "termType": "Variable",
                  "value": "s"
                },
                "predicate": {
                  "termType": "Variable",
                  "value": "p"
                },
                "object": {
                  "termType": "NamedNode",
                  "value": "http://www.example.org/o2"
                },
                "graph": {
                  "termType": "DefaultGraph",
                  "value": ""
                }
              }
            ]
          }
        }
      }
    }
  },
  "variables": [
    {
      "termType": "Variable",
      "value": "p"
    },
    {
      "termType": "Variable",
      "value": "s"
    }
  ]
}
