{
  "context": [],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "a",
              "loc": {
                "sourceLocationType": "source",
                "start": 19,
                "end": 21
              }
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "b",
              "loc": {
                "sourceLocationType": "source",
                "start": 22,
                "end": 24
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "c",
              "loc": {
                "sourceLocationType": "source",
                "start": 25,
                "end": 27
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 19,
              "end": 27
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 19,
          "end": 28
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "||",
          "args": [
            {
              "type": "expression",
              "subType": "operation",
              "operator": "||",
              "args": [
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "||",
                  "args": [
                    {
                      "type": "expression",
                      "subType": "operation",
                      "operator": "=",
                      "args": [
                        {
                          "type": "term",
                          "subType": "variable",
                          "value": "a",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 39,
                            "end": 41
                          }
                        },
                        {
                          "type": "term",
                          "subType": "literal",
                          "value": "1",
                          "langOrIri": {
                            "type": "term",
                            "subType": "namedNode",
                            "value": "http://www.w3.org/2001/XMLSchema#integer",
                            "loc": {
                              "sourceLocationType": "noMaterialize"
                            }
                          },
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 44,
                            "end": 45
                          }
                        }
                      ],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 39,
                        "end": 45
                      }
                    },
                    {
                      "type": "expression",
                      "subType": "operation",
                      "operator": "=",
                      "args": [
                        {
                          "type": "term",
                          "subType": "variable",
                          "value": "a",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 49,
                            "end": 51
                          }
                        },
                        {
                          "type": "term",
                          "subType": "literal",
                          "value": "2",
                          "langOrIri": {
                            "type": "term",
                            "subType": "namedNode",
                            "value": "http://www.w3.org/2001/XMLSchema#integer",
                            "loc": {
                              "sourceLocationType": "noMaterialize"
                            }
                          },
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 54,
                            "end": 55
                          }
                        }
                      ],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 49,
                        "end": 55
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 39,
                    "end": 55
                  }
                },
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "=",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "a",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 59,
                        "end": 61
                      }
                    },
                    {
                      "type": "term",
                      "subType": "literal",
                      "value": "3",
                      "langOrIri": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "http://www.w3.org/2001/XMLSchema#integer",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        }
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 64,
                        "end": 65
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 59,
                    "end": 65
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 39,
                "end": 65
              }
            },
            {
              "type": "expression",
              "subType": "operation",
              "operator": "=",
              "args": [
                {
                  "type": "term",
                  "subType": "variable",
                  "value": "a",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 69,
                    "end": 71
                  }
                },
                {
                  "type": "term",
                  "subType": "literal",
                  "value": "4",
                  "langOrIri": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "http://www.w3.org/2001/XMLSchema#integer",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    }
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 74,
                    "end": 75
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 69,
                "end": 75
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 38,
            "end": 76
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 31,
          "end": 76
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "&&",
          "args": [
            {
              "type": "expression",
              "subType": "operation",
              "operator": "&&",
              "args": [
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "&&",
                  "args": [
                    {
                      "type": "expression",
                      "subType": "operation",
                      "operator": "=",
                      "args": [
                        {
                          "type": "term",
                          "subType": "variable",
                          "value": "a",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 87,
                            "end": 89
                          }
                        },
                        {
                          "type": "term",
                          "subType": "literal",
                          "value": "1",
                          "langOrIri": {
                            "type": "term",
                            "subType": "namedNode",
                            "value": "http://www.w3.org/2001/XMLSchema#integer",
                            "loc": {
                              "sourceLocationType": "noMaterialize"
                            }
                          },
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 92,
                            "end": 93
                          }
                        }
                      ],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 87,
                        "end": 93
                      }
                    },
                    {
                      "type": "expression",
                      "subType": "operation",
                      "operator": "=",
                      "args": [
                        {
                          "type": "term",
                          "subType": "variable",
                          "value": "a",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 97,
                            "end": 99
                          }
                        },
                        {
                          "type": "term",
                          "subType": "literal",
                          "value": "2",
                          "langOrIri": {
                            "type": "term",
                            "subType": "namedNode",
                            "value": "http://www.w3.org/2001/XMLSchema#integer",
                            "loc": {
                              "sourceLocationType": "noMaterialize"
                            }
                          },
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 102,
                            "end": 103
                          }
                        }
                      ],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 97,
                        "end": 103
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 87,
                    "end": 103
                  }
                },
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "=",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "a",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 107,
                        "end": 109
                      }
                    },
                    {
                      "type": "term",
                      "subType": "literal",
                      "value": "3",
                      "langOrIri": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "http://www.w3.org/2001/XMLSchema#integer",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        }
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 112,
                        "end": 113
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 107,
                    "end": 113
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 87,
                "end": 113
              }
            },
            {
              "type": "expression",
              "subType": "operation",
              "operator": "=",
              "args": [
                {
                  "type": "term",
                  "subType": "variable",
                  "value": "a",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 117,
                    "end": 119
                  }
                },
                {
                  "type": "term",
                  "subType": "literal",
                  "value": "4",
                  "langOrIri": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "http://www.w3.org/2001/XMLSchema#integer",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    }
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 122,
                    "end": 123
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 117,
                "end": 123
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 86,
            "end": 124
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 79,
          "end": 124
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "||",
          "args": [
            {
              "type": "expression",
              "subType": "operation",
              "operator": "&&",
              "args": [
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "=",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "a",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 135,
                        "end": 137
                      }
                    },
                    {
                      "type": "term",
                      "subType": "literal",
                      "value": "1",
                      "langOrIri": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "http://www.w3.org/2001/XMLSchema#integer",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        }
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 140,
                        "end": 141
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 135,
                    "end": 141
                  }
                },
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "=",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "a",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 145,
                        "end": 147
                      }
                    },
                    {
                      "type": "term",
                      "subType": "literal",
                      "value": "2",
                      "langOrIri": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "http://www.w3.org/2001/XMLSchema#integer",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        }
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 150,
                        "end": 151
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 145,
                    "end": 151
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 135,
                "end": 151
              }
            },
            {
              "type": "expression",
              "subType": "operation",
              "operator": "&&",
              "args": [
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "=",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "a",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 155,
                        "end": 157
                      }
                    },
                    {
                      "type": "term",
                      "subType": "literal",
                      "value": "3",
                      "langOrIri": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "http://www.w3.org/2001/XMLSchema#integer",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        }
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 160,
                        "end": 161
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 155,
                    "end": 161
                  }
                },
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "=",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "a",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 165,
                        "end": 167
                      }
                    },
                    {
                      "type": "term",
                      "subType": "literal",
                      "value": "4",
                      "langOrIri": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "http://www.w3.org/2001/XMLSchema#integer",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        }
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 170,
                        "end": 171
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 165,
                    "end": 171
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 155,
                "end": 171
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 134,
            "end": 172
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 127,
          "end": 172
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 15,
      "end": 174
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "wildcard",
      "loc": {
        "sourceLocationType": "source",
        "start": 7,
        "end": 8
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "SELECT * WHERE {\n  ?a ?b ?c.\n  FILTER (?a = 1 || ?a = 2 || ?a = 3 || ?a = 4)\n  FILTER (?a = 1 && ?a = 2 && ?a = 3 && ?a = 4)\n  FILTER (?a = 1 && ?a = 2 || ?a = 3 && ?a = 4)\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 174
    },
    "startOnNew": 0,
    "endOnNew": 174
  },
  "type": "query"
}
