{
  "type": "project",
  "input": {
    "type": "extend",
    "input": {
      "type": "group",
      "input": {
        "type": "extend",
        "input": {
          "type": "extend",
          "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": ""
                }
              }
            ]
          },
          "variable": {
            "termType": "Variable",
            "value": "x"
          },
          "expression": {
            "type": "expression",
            "subType": "operator",
            "operator": "str",
            "args": [
              {
                "type": "expression",
                "subType": "term",
                "term": {
                  "termType": "Variable",
                  "value": "o"
                }
              }
            ]
          }
        },
        "variable": {
          "termType": "Variable",
          "value": "y"
        },
        "expression": {
          "type": "expression",
          "subType": "operator",
          "operator": "concat",
          "args": [
            {
              "type": "expression",
              "subType": "term",
              "term": {
                "termType": "Variable",
                "value": "x"
              }
            },
            {
              "type": "expression",
              "subType": "term",
              "term": {
                "termType": "Literal",
                "value": "a",
                "datatype": {
                  "termType": "NamedNode",
                  "value": "http://www.w3.org/2001/XMLSchema#string"
                }
              }
            }
          ]
        }
      },
      "variables": [
        {
          "termType": "Variable",
          "value": "y"
        },
        {
          "termType": "Variable",
          "value": "x"
        }
      ],
      "aggregates": [
        {
          "type": "expression",
          "subType": "aggregate",
          "aggregator": "count",
          "expression": {
            "type": "expression",
            "subType": "wildcard",
            "wildcard": {
              "type": "wildcard"
            }
          },
          "distinct": false,
          "variable": {
            "termType": "Variable",
            "value": "var0"
          }
        }
      ]
    },
    "variable": {
      "termType": "Variable",
      "value": "c"
    },
    "expression": {
      "type": "expression",
      "subType": "term",
      "term": {
        "termType": "Variable",
        "value": "var0"
      }
    }
  },
  "variables": [
    {
      "termType": "Variable",
      "value": "x"
    },
    {
      "termType": "Variable",
      "value": "y"
    },
    {
      "termType": "Variable",
      "value": "c"
    }
  ]
}
