{
  "type": "project",
  "input": {
    "type": "extend",
    "input": {
      "type": "extend",
      "input": {
        "type": "group",
        "input": {
          "type": "values",
          "variables": [
            {
              "termType": "Variable",
              "value": "v"
            }
          ],
          "bindings": [
            {
              "v": {
                "termType": "Literal",
                "value": "0",
                "datatype": {
                  "termType": "NamedNode",
                  "value": "http://www.w3.org/2001/XMLSchema#integer"
                }
              }
            },
            {
              "v": {
                "termType": "Literal",
                "value": "1",
                "datatype": {
                  "termType": "NamedNode",
                  "value": "http://www.w3.org/2001/XMLSchema#integer"
                }
              }
            },
            {
              "v": {
                "termType": "Literal",
                "value": "2",
                "datatype": {
                  "termType": "NamedNode",
                  "value": "http://www.w3.org/2001/XMLSchema#integer"
                }
              }
            },
            {
              "v": {
                "termType": "Literal",
                "value": "3",
                "datatype": {
                  "termType": "NamedNode",
                  "value": "http://www.w3.org/2001/XMLSchema#integer"
                }
              }
            }
          ]
        },
        "variables": [],
        "aggregates": [
          {
            "type": "expression",
            "subType": "aggregate",
            "aggregator": "count",
            "expression": {
              "type": "expression",
              "subType": "term",
              "term": {
                "termType": "Variable",
                "value": "v"
              }
            },
            "distinct": false,
            "variable": {
              "termType": "Variable",
              "value": "var0"
            }
          }
        ]
      },
      "variable": {
        "termType": "Variable",
        "value": "count"
      },
      "expression": {
        "type": "expression",
        "subType": "term",
        "term": {
          "termType": "Variable",
          "value": "var0"
        }
      }
    },
    "variable": {
      "termType": "Variable",
      "value": "countPlusOne"
    },
    "expression": {
      "type": "expression",
      "subType": "operator",
      "operator": "+",
      "args": [
        {
          "type": "expression",
          "subType": "term",
          "term": {
            "termType": "Variable",
            "value": "count"
          }
        },
        {
          "type": "expression",
          "subType": "term",
          "term": {
            "termType": "Literal",
            "value": "1",
            "datatype": {
              "termType": "NamedNode",
              "value": "http://www.w3.org/2001/XMLSchema#integer"
            }
          }
        }
      ]
    }
  },
  "variables": [
    {
      "termType": "Variable",
      "value": "count"
    },
    {
      "termType": "Variable",
      "value": "countPlusOne"
    }
  ]
}
