{
  "type": "project",
  "input": {
    "type": "join",
    "input": [
      {
        "type": "leftjoin",
        "input": [
          {
            "type": "bgp",
            "patterns": [
              {
                "type": "pattern",
                "termType": "Quad",
                "subject": {
                  "termType": "Variable",
                  "value": "s"
                },
                "predicate": {
                  "termType": "Variable",
                  "value": "p1"
                },
                "object": {
                  "termType": "Variable",
                  "value": "o1"
                },
                "graph": {
                  "termType": "DefaultGraph",
                  "value": ""
                }
              }
            ]
          },
          {
            "type": "service",
            "input": {
              "type": "bgp",
              "patterns": [
                {
                  "type": "pattern",
                  "termType": "Quad",
                  "subject": {
                    "termType": "Variable",
                    "value": "s"
                  },
                  "predicate": {
                    "termType": "NamedNode",
                    "value": "http://xmlns.com/foaf/0.1/knows"
                  },
                  "object": {
                    "termType": "Variable",
                    "value": "o2"
                  },
                  "graph": {
                    "termType": "DefaultGraph",
                    "value": ""
                  }
                }
              ]
            },
            "name": {
              "termType": "NamedNode",
              "value": "http://example.org/sparql"
            },
            "silent": false
          }
        ]
      },
      {
        "type": "values",
        "variables": [
          {
            "termType": "Variable",
            "value": "o2"
          }
        ],
        "bindings": [
          {
            "o2": {
              "termType": "NamedNode",
              "value": "http://example.org/b"
            }
          }
        ]
      }
    ]
  },
  "variables": [
    {
      "termType": "Variable",
      "value": "s"
    },
    {
      "termType": "Variable",
      "value": "o1"
    },
    {
      "termType": "Variable",
      "value": "o2"
    }
  ]
}
