{
  "type": "project",
  "input": {
    "type": "extend",
    "input": {
      "type": "join",
      "input": [
        {
          "type": "group",
          "input": {
            "type": "bgp",
            "patterns": [
              {
                "type": "pattern",
                "termType": "Quad",
                "subject": {
                  "termType": "Variable",
                  "value": "s"
                },
                "predicate": {
                  "termType": "Variable",
                  "value": "p"
                },
                "object": {
                  "termType": "Variable",
                  "value": "o"
                },
                "graph": {
                  "termType": "DefaultGraph",
                  "value": ""
                }
              }
            ]
          },
          "variables": [
            {
              "termType": "Variable",
              "value": "s"
            }
          ],
          "aggregates": []
        },
        {
          "type": "values",
          "variables": [
            {
              "termType": "Variable",
              "value": "v"
            }
          ],
          "bindings": [
            {
              "v": {
                "termType": "Literal",
                "value": "1",
                "datatype": {
                  "termType": "NamedNode",
                  "value": "http://www.w3.org/2001/XMLSchema#integer"
                }
              }
            }
          ]
        }
      ]
    },
    "variable": {
      "termType": "Variable",
      "value": "w"
    },
    "expression": {
      "type": "expression",
      "subType": "operator",
      "operator": "str",
      "args": [
        {
          "type": "expression",
          "subType": "term",
          "term": {
            "termType": "Variable",
            "value": "v"
          }
        }
      ]
    }
  },
  "variables": [
    {
      "termType": "Variable",
      "value": "s"
    },
    {
      "termType": "Variable",
      "value": "w"
    }
  ]
}
