
module MenhirBasics = struct
  
  exception Error
  
  let _eRR =
    fun _s ->
      raise Error
  
  type token = 
    | YEAR
    | WITH
    | WHERE
    | Var2 of (
# 68 "lib/sparql_parser.mly"
       (string)
# 18 "lib/sparql_parser.ml"
  )
    | Var1 of (
# 67 "lib/sparql_parser.mly"
       (string)
# 23 "lib/sparql_parser.ml"
  )
    | VALUES
    | UUID
    | USING
    | URI
    | UNION
    | UNDEF
    | UCASE
    | TZ
    | TIMEZONE
    | String_literal of (
# 120 "lib/sparql_parser.mly"
       (string)
# 37 "lib/sparql_parser.ml"
  )
    | SUM
    | SUBSTR
    | STRUUID
    | STRSTARTS
    | STRLEN
    | STRLANG
    | STRENDS
    | STRDT
    | STRBEFORE
    | STRAFTER
    | STR
    | STAR
    | SLASH
    | SILENT
    | SHA512
    | SHA384
    | SHA256
    | SHA1
    | SERVICE
    | SEPARATOR
    | SEMICOLON
    | SELECT
    | SECONDS
    | SAMPLE
    | SAMETERM
    | RPAR
    | ROUND
    | REPLACE
    | REGEX
    | REDUCED
    | RBRACKET
    | RBRACE
    | RAND
    | QM
    | Pname_ns of (
# 70 "lib/sparql_parser.mly"
       (Sparql_types.pname_ns)
# 76 "lib/sparql_parser.ml"
  )
    | Pname_ln of (
# 69 "lib/sparql_parser.mly"
       (Sparql_types.prefixed_name)
# 81 "lib/sparql_parser.ml"
  )
    | PREFIX
    | PLUS
    | PIPEPIPE
    | PIPE
    | ORDER
    | OPTIONAL
    | OFFSET
    | NOW
    | NOTEQUAL
    | NOT
    | NIL
    | NAMED
    | MOVE
    | MONTH
    | MINUTES
    | MINUS
    | MIN
    | MD5
    | MAX
    | Langtag of (
# 121 "lib/sparql_parser.mly"
       (string)
# 105 "lib/sparql_parser.ml"
  )
    | LTE
    | LT
    | LPAR
    | LOAD
    | LIMIT
    | LCASE
    | LBRACKET
    | LBRACE
    | LANGMATCHES
    | LANG
    | Iriref_ of (
# 66 "lib/sparql_parser.mly"
       (Sparql_types.iriref)
# 120 "lib/sparql_parser.ml"
  )
    | Integer_positive of (
# 113 "lib/sparql_parser.mly"
       (string)
# 125 "lib/sparql_parser.ml"
  )
    | Integer_negative of (
# 116 "lib/sparql_parser.mly"
       (string)
# 130 "lib/sparql_parser.ml"
  )
    | Integer of (
# 110 "lib/sparql_parser.mly"
       (string)
# 135 "lib/sparql_parser.ml"
  )
    | ISURI
    | ISNUMERIC
    | ISLITERAL
    | ISIRI
    | ISBLANK
    | IRI
    | INSERT
    | IN
    | IF
    | HOURS
    | HAVING
    | HATHAT
    | HAT
    | GTE
    | GT
    | GROUP_CONCAT
    | GROUP
    | GRAPH
    | FROM
    | FLOOR
    | FILTER
    | EXISTS
    | EQUAL
    | EOF
    | ENCODE_FOR_URI
    | Double_positive of (
# 115 "lib/sparql_parser.mly"
       (string)
# 165 "lib/sparql_parser.ml"
  )
    | Double_negative of (
# 118 "lib/sparql_parser.mly"
       (string)
# 170 "lib/sparql_parser.ml"
  )
    | Double of (
# 112 "lib/sparql_parser.mly"
       (string)
# 175 "lib/sparql_parser.ml"
  )
    | Decimal_positive of (
# 114 "lib/sparql_parser.mly"
       (string)
# 180 "lib/sparql_parser.ml"
  )
    | Decimal_negative of (
# 117 "lib/sparql_parser.mly"
       (string)
# 185 "lib/sparql_parser.ml"
  )
    | Decimal of (
# 111 "lib/sparql_parser.mly"
       (string)
# 190 "lib/sparql_parser.ml"
  )
    | DROP
    | DOT
    | DISTINCT
    | DESCRIBE
    | DESC
    | DELETE
    | DAY
    | DATATYPE
    | DATA
    | CREATE
    | COUNT
    | COPY
    | CONTAINS
    | CONSTRUCT
    | CONCAT
    | COMMA
    | COALESCE
    | CLEAR
    | CEIL
    | Boolean of (
# 119 "lib/sparql_parser.mly"
       (string)
# 214 "lib/sparql_parser.ml"
  )
    | Blank_node_label of (
# 71 "lib/sparql_parser.mly"
       (string)
# 219 "lib/sparql_parser.ml"
  )
    | BY
    | BOUND
    | BNODE
    | BIND
    | BASE
    | BANG
    | AVG
    | ASK
    | ASC
    | AS
    | ANON
    | AMPAMP
    | ADD
    | ABS
    | A
  
end

include MenhirBasics

# 27 "lib/sparql_parser.mly"
  
open Sparql_types;;

let mk_loc start stop =
  { loc_start = start ;
    loc_end = stop ;
  }
;;

let mk_lit = Term.mk_literal ;;
let xsd_integer = Rdf_.xsd_integer;;
let xsd_double = Rdf_.xsd_double;;
let xsd_decimal = Rdf_.xsd_decimal;;
let xsd_boolean = Rdf_.xsd_boolean;;
let xsd_hexBinary = Rdf_.xsd_hexBinary;;

let mk_integer = mk_lit ~typ: xsd_integer;;
let mk_decimal = mk_lit ~typ: xsd_decimal;;
let mk_double = mk_lit ~typ: xsd_double;;
let mk_boolean = mk_lit ~typ: xsd_boolean;;
let mk_hexBinary = mk_lit ~typ: xsd_hexBinary;;

let check_var_uniqueness = function
  | SelectAll -> ()
  | SelectVars vars ->
    let module S = Sparql_types.SSet in
    let f acc v =
      let name = v.sel_var.var_name in
      if S.mem name acc then
        let msg = Printf.sprintf
          "Duplicate variable in result projection: %s" name
        in
        raise (Sedlex.Parse_error (Failure msg, v.sel_var.var_loc.loc_start))
      else
        S.add name acc
    in
    ignore(List.fold_left f S.empty vars)

# 280 "lib/sparql_parser.ml"

type ('s, 'r) _menhir_state = 
  | MenhirState000 : ('s, _menhir_box_query) _menhir_state
    (** State 000.
        Stack shape : .
        Start symbol: query. *)

  | MenhirState009 : (('s, _menhir_box_query) _menhir_cell1_prologue_item, _menhir_box_query) _menhir_state
    (** State 009.
        Stack shape : prologue_item.
        Start symbol: query. *)

  | MenhirState011 : (('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_state
    (** State 011.
        Stack shape : prologue.
        Start symbol: query. *)

  | MenhirState012 : (('s, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_state
    (** State 012.
        Stack shape : WITH.
        Start symbol: query. *)

  | MenhirState017 : ((('s, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_state
    (** State 017.
        Stack shape : WITH iri.
        Start symbol: query. *)

  | MenhirState018 : (('s, _menhir_box_query) _menhir_cell1_INSERT, _menhir_box_query) _menhir_state
    (** State 018.
        Stack shape : INSERT.
        Start symbol: query. *)

  | MenhirState019 : (('s, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_state
    (** State 019.
        Stack shape : LBRACE.
        Start symbol: query. *)

  | MenhirState024 : (('s, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_state
    (** State 024.
        Stack shape : LPAR.
        Start symbol: query. *)

  | MenhirState025 : (('s, _menhir_box_query) _menhir_cell1_LBRACKET, _menhir_box_query) _menhir_state
    (** State 025.
        Stack shape : LBRACKET.
        Start symbol: query. *)

  | MenhirState027 : (('s, _menhir_box_query) _menhir_cell1_verb_object_list, _menhir_box_query) _menhir_state
    (** State 027.
        Stack shape : verb_object_list.
        Start symbol: query. *)

  | MenhirState028 : (('s, _menhir_box_query) _menhir_cell1_SEMICOLON, _menhir_box_query) _menhir_state
    (** State 028.
        Stack shape : SEMICOLON.
        Start symbol: query. *)

  | MenhirState030 : (('s, _menhir_box_query) _menhir_cell1_verb, _menhir_box_query) _menhir_state
    (** State 030.
        Stack shape : verb.
        Start symbol: query. *)

  | MenhirState048 : (('s, _menhir_box_query) _menhir_cell1_string, _menhir_box_query) _menhir_state
    (** State 048.
        Stack shape : string.
        Start symbol: query. *)

  | MenhirState055 : (('s, _menhir_box_query) _menhir_cell1_object_, _menhir_box_query) _menhir_state
    (** State 055.
        Stack shape : object_.
        Start symbol: query. *)

  | MenhirState073 : (('s, _menhir_box_query) _menhir_cell1_verb_object_list_l, _menhir_box_query) _menhir_state
    (** State 073.
        Stack shape : verb_object_list_l.
        Start symbol: query. *)

  | MenhirState080 : (('s, _menhir_box_query) _menhir_cell1_graph_node, _menhir_box_query) _menhir_state
    (** State 080.
        Stack shape : graph_node.
        Start symbol: query. *)

  | MenhirState082 : (('s, _menhir_box_query) _menhir_cell1_var_or_term, _menhir_box_query) _menhir_state
    (** State 082.
        Stack shape : var_or_term.
        Start symbol: query. *)

  | MenhirState086 : (('s, _menhir_box_query) _menhir_cell1_triples_same_subject, _menhir_box_query) _menhir_state
    (** State 086.
        Stack shape : triples_same_subject.
        Start symbol: query. *)

  | MenhirState087 : (('s, _menhir_box_query) _menhir_cell1_triples_node, _menhir_box_query) _menhir_state
    (** State 087.
        Stack shape : triples_node.
        Start symbol: query. *)

  | MenhirState094 : ((('s, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_cell1_option_triples_template_, _menhir_box_query) _menhir_state
    (** State 094.
        Stack shape : LBRACE option(triples_template).
        Start symbol: query. *)

  | MenhirState095 : (('s, _menhir_box_query) _menhir_cell1_GRAPH, _menhir_box_query) _menhir_state
    (** State 095.
        Stack shape : GRAPH.
        Start symbol: query. *)

  | MenhirState097 : ((('s, _menhir_box_query) _menhir_cell1_GRAPH, _menhir_box_query) _menhir_cell1_var_or_iri, _menhir_box_query) _menhir_state
    (** State 097.
        Stack shape : GRAPH var_or_iri.
        Start symbol: query. *)

  | MenhirState101 : (('s, _menhir_box_query) _menhir_cell1_quads_not_triples, _menhir_box_query) _menhir_state
    (** State 101.
        Stack shape : quads_not_triples.
        Start symbol: query. *)

  | MenhirState103 : ((('s, _menhir_box_query) _menhir_cell1_quads_not_triples, _menhir_box_query) _menhir_cell1_option_DOT_, _menhir_box_query) _menhir_state
    (** State 103.
        Stack shape : quads_not_triples option(DOT).
        Start symbol: query. *)

  | MenhirState105 : (('s, _menhir_box_query) _menhir_cell1_quads1, _menhir_box_query) _menhir_state
    (** State 105.
        Stack shape : quads1.
        Start symbol: query. *)

  | MenhirState109 : (((('s, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_DELETE, _menhir_box_query) _menhir_state
    (** State 109.
        Stack shape : WITH iri DELETE.
        Start symbol: query. *)

  | MenhirState111 : (((('s, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_insert_clause, _menhir_box_query) _menhir_state
    (** State 111.
        Stack shape : WITH iri insert_clause.
        Start symbol: query. *)

  | MenhirState112 : (('s, _menhir_box_query) _menhir_cell1_USING, _menhir_box_query) _menhir_state
    (** State 112.
        Stack shape : USING.
        Start symbol: query. *)

  | MenhirState113 : ((('s, _menhir_box_query) _menhir_cell1_USING, _menhir_box_query) _menhir_cell1_NAMED, _menhir_box_query) _menhir_state
    (** State 113.
        Stack shape : USING NAMED.
        Start symbol: query. *)

  | MenhirState116 : (('s, _menhir_box_query) _menhir_cell1_using_clause, _menhir_box_query) _menhir_state
    (** State 116.
        Stack shape : using_clause.
        Start symbol: query. *)

  | MenhirState119 : ((((('s, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_insert_clause, _menhir_box_query) _menhir_cell1_list_using_clause_, _menhir_box_query) _menhir_state
    (** State 119.
        Stack shape : WITH iri insert_clause list(using_clause).
        Start symbol: query. *)

  | MenhirState120 : (('s, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_state
    (** State 120.
        Stack shape : LBRACE.
        Start symbol: query. *)

  | MenhirState125 : (('s, _menhir_box_query) _menhir_cell1_SELECT _menhir_cell0_option_select_flag_, _menhir_box_query) _menhir_state
    (** State 125.
        Stack shape : SELECT option(select_flag).
        Start symbol: query. *)

  | MenhirState127 : (('s, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_state
    (** State 127.
        Stack shape : LPAR.
        Start symbol: query. *)

  | MenhirState129 : (('s, _menhir_box_query) _menhir_cell1_YEAR _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 129.
        Stack shape : YEAR LPAR.
        Start symbol: query. *)

  | MenhirState133 : (('s, _menhir_box_query) _menhir_cell1_URI _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 133.
        Stack shape : URI LPAR.
        Start symbol: query. *)

  | MenhirState135 : (('s, _menhir_box_query) _menhir_cell1_UCASE _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 135.
        Stack shape : UCASE LPAR.
        Start symbol: query. *)

  | MenhirState137 : (('s, _menhir_box_query) _menhir_cell1_TZ _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 137.
        Stack shape : TZ LPAR.
        Start symbol: query. *)

  | MenhirState139 : (('s, _menhir_box_query) _menhir_cell1_TIMEZONE _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 139.
        Stack shape : TIMEZONE LPAR.
        Start symbol: query. *)

  | MenhirState141 : (('s, _menhir_box_query) _menhir_cell1_SUM _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 141.
        Stack shape : SUM LPAR.
        Start symbol: query. *)

  | MenhirState143 : ((('s, _menhir_box_query) _menhir_cell1_SUM _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_state
    (** State 143.
        Stack shape : SUM LPAR option(DISTINCT).
        Start symbol: query. *)

  | MenhirState145 : (('s, _menhir_box_query) _menhir_cell1_SUBSTR _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 145.
        Stack shape : SUBSTR LPAR.
        Start symbol: query. *)

  | MenhirState149 : (('s, _menhir_box_query) _menhir_cell1_STRSTARTS _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 149.
        Stack shape : STRSTARTS LPAR.
        Start symbol: query. *)

  | MenhirState151 : (('s, _menhir_box_query) _menhir_cell1_STRLEN _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 151.
        Stack shape : STRLEN LPAR.
        Start symbol: query. *)

  | MenhirState153 : (('s, _menhir_box_query) _menhir_cell1_STRLANG _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 153.
        Stack shape : STRLANG LPAR.
        Start symbol: query. *)

  | MenhirState155 : (('s, _menhir_box_query) _menhir_cell1_STRENDS _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 155.
        Stack shape : STRENDS LPAR.
        Start symbol: query. *)

  | MenhirState157 : (('s, _menhir_box_query) _menhir_cell1_STRDT _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 157.
        Stack shape : STRDT LPAR.
        Start symbol: query. *)

  | MenhirState159 : (('s, _menhir_box_query) _menhir_cell1_STRBEFORE _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 159.
        Stack shape : STRBEFORE LPAR.
        Start symbol: query. *)

  | MenhirState161 : (('s, _menhir_box_query) _menhir_cell1_STRAFTER _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 161.
        Stack shape : STRAFTER LPAR.
        Start symbol: query. *)

  | MenhirState163 : (('s, _menhir_box_query) _menhir_cell1_STR _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 163.
        Stack shape : STR LPAR.
        Start symbol: query. *)

  | MenhirState165 : (('s, _menhir_box_query) _menhir_cell1_SHA512 _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 165.
        Stack shape : SHA512 LPAR.
        Start symbol: query. *)

  | MenhirState167 : (('s, _menhir_box_query) _menhir_cell1_SHA384 _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 167.
        Stack shape : SHA384 LPAR.
        Start symbol: query. *)

  | MenhirState169 : (('s, _menhir_box_query) _menhir_cell1_SHA256 _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 169.
        Stack shape : SHA256 LPAR.
        Start symbol: query. *)

  | MenhirState171 : (('s, _menhir_box_query) _menhir_cell1_SHA1 _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 171.
        Stack shape : SHA1 LPAR.
        Start symbol: query. *)

  | MenhirState173 : (('s, _menhir_box_query) _menhir_cell1_SECONDS _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 173.
        Stack shape : SECONDS LPAR.
        Start symbol: query. *)

  | MenhirState175 : (('s, _menhir_box_query) _menhir_cell1_SAMPLE _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 175.
        Stack shape : SAMPLE LPAR.
        Start symbol: query. *)

  | MenhirState176 : ((('s, _menhir_box_query) _menhir_cell1_SAMPLE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_state
    (** State 176.
        Stack shape : SAMPLE LPAR option(DISTINCT).
        Start symbol: query. *)

  | MenhirState178 : (('s, _menhir_box_query) _menhir_cell1_SAMETERM _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 178.
        Stack shape : SAMETERM LPAR.
        Start symbol: query. *)

  | MenhirState180 : (('s, _menhir_box_query) _menhir_cell1_ROUND _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 180.
        Stack shape : ROUND LPAR.
        Start symbol: query. *)

  | MenhirState182 : (('s, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 182.
        Stack shape : REPLACE LPAR.
        Start symbol: query. *)

  | MenhirState184 : (('s, _menhir_box_query) _menhir_cell1_REGEX _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 184.
        Stack shape : REGEX LPAR.
        Start symbol: query. *)

  | MenhirState187 : (('s, _menhir_box_query) _menhir_cell1_PLUS, _menhir_box_query) _menhir_state
    (** State 187.
        Stack shape : PLUS.
        Start symbol: query. *)

  | MenhirState191 : (('s, _menhir_box_query) _menhir_cell1_NOT _menhir_cell0_EXISTS, _menhir_box_query) _menhir_state
    (** State 191.
        Stack shape : NOT EXISTS.
        Start symbol: query. *)

  | MenhirState194 : (('s, _menhir_box_query) _menhir_cell1_MONTH _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 194.
        Stack shape : MONTH LPAR.
        Start symbol: query. *)

  | MenhirState196 : (('s, _menhir_box_query) _menhir_cell1_MINUTES _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 196.
        Stack shape : MINUTES LPAR.
        Start symbol: query. *)

  | MenhirState197 : (('s, _menhir_box_query) _menhir_cell1_MINUS, _menhir_box_query) _menhir_state
    (** State 197.
        Stack shape : MINUS.
        Start symbol: query. *)

  | MenhirState199 : (('s, _menhir_box_query) _menhir_cell1_MIN _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 199.
        Stack shape : MIN LPAR.
        Start symbol: query. *)

  | MenhirState200 : ((('s, _menhir_box_query) _menhir_cell1_MIN _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_state
    (** State 200.
        Stack shape : MIN LPAR option(DISTINCT).
        Start symbol: query. *)

  | MenhirState202 : (('s, _menhir_box_query) _menhir_cell1_MD5 _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 202.
        Stack shape : MD5 LPAR.
        Start symbol: query. *)

  | MenhirState204 : (('s, _menhir_box_query) _menhir_cell1_MAX _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 204.
        Stack shape : MAX LPAR.
        Start symbol: query. *)

  | MenhirState205 : ((('s, _menhir_box_query) _menhir_cell1_MAX _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_state
    (** State 205.
        Stack shape : MAX LPAR option(DISTINCT).
        Start symbol: query. *)

  | MenhirState206 : (('s, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_state
    (** State 206.
        Stack shape : LPAR.
        Start symbol: query. *)

  | MenhirState208 : (('s, _menhir_box_query) _menhir_cell1_LCASE _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 208.
        Stack shape : LCASE LPAR.
        Start symbol: query. *)

  | MenhirState210 : (('s, _menhir_box_query) _menhir_cell1_LANGMATCHES _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 210.
        Stack shape : LANGMATCHES LPAR.
        Start symbol: query. *)

  | MenhirState212 : (('s, _menhir_box_query) _menhir_cell1_LANG _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 212.
        Stack shape : LANG LPAR.
        Start symbol: query. *)

  | MenhirState214 : (('s, _menhir_box_query) _menhir_cell1_ISURI _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 214.
        Stack shape : ISURI LPAR.
        Start symbol: query. *)

  | MenhirState216 : (('s, _menhir_box_query) _menhir_cell1_ISNUMERIC _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 216.
        Stack shape : ISNUMERIC LPAR.
        Start symbol: query. *)

  | MenhirState218 : (('s, _menhir_box_query) _menhir_cell1_ISLITERAL _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 218.
        Stack shape : ISLITERAL LPAR.
        Start symbol: query. *)

  | MenhirState220 : (('s, _menhir_box_query) _menhir_cell1_ISIRI _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 220.
        Stack shape : ISIRI LPAR.
        Start symbol: query. *)

  | MenhirState222 : (('s, _menhir_box_query) _menhir_cell1_ISBLANK _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 222.
        Stack shape : ISBLANK LPAR.
        Start symbol: query. *)

  | MenhirState224 : (('s, _menhir_box_query) _menhir_cell1_IRI _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 224.
        Stack shape : IRI LPAR.
        Start symbol: query. *)

  | MenhirState226 : (('s, _menhir_box_query) _menhir_cell1_IF _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 226.
        Stack shape : IF LPAR.
        Start symbol: query. *)

  | MenhirState228 : (('s, _menhir_box_query) _menhir_cell1_HOURS _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 228.
        Stack shape : HOURS LPAR.
        Start symbol: query. *)

  | MenhirState230 : (('s, _menhir_box_query) _menhir_cell1_GROUP_CONCAT _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 230.
        Stack shape : GROUP_CONCAT LPAR.
        Start symbol: query. *)

  | MenhirState231 : ((('s, _menhir_box_query) _menhir_cell1_GROUP_CONCAT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_state
    (** State 231.
        Stack shape : GROUP_CONCAT LPAR option(DISTINCT).
        Start symbol: query. *)

  | MenhirState233 : (('s, _menhir_box_query) _menhir_cell1_FLOOR _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 233.
        Stack shape : FLOOR LPAR.
        Start symbol: query. *)

  | MenhirState234 : (('s, _menhir_box_query) _menhir_cell1_EXISTS, _menhir_box_query) _menhir_state
    (** State 234.
        Stack shape : EXISTS.
        Start symbol: query. *)

  | MenhirState237 : (('s, _menhir_box_query) _menhir_cell1_ENCODE_FOR_URI _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 237.
        Stack shape : ENCODE_FOR_URI LPAR.
        Start symbol: query. *)

  | MenhirState239 : (('s, _menhir_box_query) _menhir_cell1_DAY _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 239.
        Stack shape : DAY LPAR.
        Start symbol: query. *)

  | MenhirState241 : (('s, _menhir_box_query) _menhir_cell1_DATATYPE _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 241.
        Stack shape : DATATYPE LPAR.
        Start symbol: query. *)

  | MenhirState243 : (('s, _menhir_box_query) _menhir_cell1_COUNT _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 243.
        Stack shape : COUNT LPAR.
        Start symbol: query. *)

  | MenhirState244 : ((('s, _menhir_box_query) _menhir_cell1_COUNT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_state
    (** State 244.
        Stack shape : COUNT LPAR option(DISTINCT).
        Start symbol: query. *)

  | MenhirState248 : (('s, _menhir_box_query) _menhir_cell1_CONTAINS _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 248.
        Stack shape : CONTAINS LPAR.
        Start symbol: query. *)

  | MenhirState249 : (('s, _menhir_box_query) _menhir_cell1_CONCAT, _menhir_box_query) _menhir_state
    (** State 249.
        Stack shape : CONCAT.
        Start symbol: query. *)

  | MenhirState251 : (('s, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_state
    (** State 251.
        Stack shape : LPAR.
        Start symbol: query. *)

  | MenhirState252 : (('s, _menhir_box_query) _menhir_cell1_COALESCE, _menhir_box_query) _menhir_state
    (** State 252.
        Stack shape : COALESCE.
        Start symbol: query. *)

  | MenhirState255 : (('s, _menhir_box_query) _menhir_cell1_CEIL _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 255.
        Stack shape : CEIL LPAR.
        Start symbol: query. *)

  | MenhirState257 : (('s, _menhir_box_query) _menhir_cell1_BOUND _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 257.
        Stack shape : BOUND LPAR.
        Start symbol: query. *)

  | MenhirState262 : (('s, _menhir_box_query) _menhir_cell1_BNODE _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 262.
        Stack shape : BNODE LPAR.
        Start symbol: query. *)

  | MenhirState263 : (('s, _menhir_box_query) _menhir_cell1_BANG, _menhir_box_query) _menhir_state
    (** State 263.
        Stack shape : BANG.
        Start symbol: query. *)

  | MenhirState265 : (('s, _menhir_box_query) _menhir_cell1_AVG _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 265.
        Stack shape : AVG LPAR.
        Start symbol: query. *)

  | MenhirState266 : ((('s, _menhir_box_query) _menhir_cell1_AVG _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_state
    (** State 266.
        Stack shape : AVG LPAR option(DISTINCT).
        Start symbol: query. *)

  | MenhirState268 : (('s, _menhir_box_query) _menhir_cell1_ABS _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 268.
        Stack shape : ABS LPAR.
        Start symbol: query. *)

  | MenhirState271 : (('s, _menhir_box_query) _menhir_cell1_value_logical, _menhir_box_query) _menhir_state
    (** State 271.
        Stack shape : value_logical.
        Start symbol: query. *)

  | MenhirState280 : (('s, _menhir_box_query) _menhir_cell1_numexp, _menhir_box_query) _menhir_state
    (** State 280.
        Stack shape : numexp.
        Start symbol: query. *)

  | MenhirState286 : (('s, _menhir_box_query) _menhir_cell1_iri _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 286.
        Stack shape : iri LPAR.
        Start symbol: query. *)

  | MenhirState287 : ((('s, _menhir_box_query) _menhir_cell1_iri _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_state
    (** State 287.
        Stack shape : iri LPAR option(DISTINCT).
        Start symbol: query. *)

  | MenhirState291 : (('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 291.
        Stack shape : expression.
        Start symbol: query. *)

  | MenhirState292 : ((('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_STAR, _menhir_box_query) _menhir_state
    (** State 292.
        Stack shape : expression STAR.
        Start symbol: query. *)

  | MenhirState293 : (((('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_STAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 293.
        Stack shape : expression STAR expression.
        Start symbol: query. *)

  | MenhirState300 : ((('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_SLASH, _menhir_box_query) _menhir_state
    (** State 300.
        Stack shape : expression SLASH.
        Start symbol: query. *)

  | MenhirState301 : (((('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_SLASH, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 301.
        Stack shape : expression SLASH expression.
        Start symbol: query. *)

  | MenhirState302 : ((('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_PLUS, _menhir_box_query) _menhir_state
    (** State 302.
        Stack shape : expression PLUS.
        Start symbol: query. *)

  | MenhirState303 : (((('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_PLUS, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 303.
        Stack shape : expression PLUS expression.
        Start symbol: query. *)

  | MenhirState304 : ((('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_MINUS, _menhir_box_query) _menhir_state
    (** State 304.
        Stack shape : expression MINUS.
        Start symbol: query. *)

  | MenhirState305 : (((('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_MINUS, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 305.
        Stack shape : expression MINUS expression.
        Start symbol: query. *)

  | MenhirState306 : ((('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 306.
        Stack shape : expression COMMA.
        Start symbol: query. *)

  | MenhirState309 : (('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 309.
        Stack shape : expression.
        Start symbol: query. *)

  | MenhirState311 : (('s, _menhir_box_query) _menhir_cell1_numexp _menhir_cell0_NOT, _menhir_box_query) _menhir_state
    (** State 311.
        Stack shape : numexp NOT.
        Start symbol: query. *)

  | MenhirState313 : (('s, _menhir_box_query) _menhir_cell1_numexp, _menhir_box_query) _menhir_state
    (** State 313.
        Stack shape : numexp.
        Start symbol: query. *)

  | MenhirState315 : (('s, _menhir_box_query) _menhir_cell1_numexp, _menhir_box_query) _menhir_state
    (** State 315.
        Stack shape : numexp.
        Start symbol: query. *)

  | MenhirState317 : (('s, _menhir_box_query) _menhir_cell1_numexp, _menhir_box_query) _menhir_state
    (** State 317.
        Stack shape : numexp.
        Start symbol: query. *)

  | MenhirState319 : (('s, _menhir_box_query) _menhir_cell1_numexp, _menhir_box_query) _menhir_state
    (** State 319.
        Stack shape : numexp.
        Start symbol: query. *)

  | MenhirState321 : (('s, _menhir_box_query) _menhir_cell1_numexp, _menhir_box_query) _menhir_state
    (** State 321.
        Stack shape : numexp.
        Start symbol: query. *)

  | MenhirState323 : (('s, _menhir_box_query) _menhir_cell1_numexp, _menhir_box_query) _menhir_state
    (** State 323.
        Stack shape : numexp.
        Start symbol: query. *)

  | MenhirState325 : (('s, _menhir_box_query) _menhir_cell1_value_logical, _menhir_box_query) _menhir_state
    (** State 325.
        Stack shape : value_logical.
        Start symbol: query. *)

  | MenhirState327 : ((('s, _menhir_box_query) _menhir_cell1_ABS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 327.
        Stack shape : ABS LPAR expression.
        Start symbol: query. *)

  | MenhirState329 : (((('s, _menhir_box_query) _menhir_cell1_AVG _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 329.
        Stack shape : AVG LPAR option(DISTINCT) expression.
        Start symbol: query. *)

  | MenhirState331 : ((('s, _menhir_box_query) _menhir_cell1_BANG, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 331.
        Stack shape : BANG expression.
        Start symbol: query. *)

  | MenhirState332 : ((('s, _menhir_box_query) _menhir_cell1_BNODE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 332.
        Stack shape : BNODE LPAR expression.
        Start symbol: query. *)

  | MenhirState334 : ((('s, _menhir_box_query) _menhir_cell1_CEIL _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 334.
        Stack shape : CEIL LPAR expression.
        Start symbol: query. *)

  | MenhirState339 : ((('s, _menhir_box_query) _menhir_cell1_CONTAINS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 339.
        Stack shape : CONTAINS LPAR expression.
        Start symbol: query. *)

  | MenhirState340 : (((('s, _menhir_box_query) _menhir_cell1_CONTAINS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 340.
        Stack shape : CONTAINS LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState341 : ((((('s, _menhir_box_query) _menhir_cell1_CONTAINS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 341.
        Stack shape : CONTAINS LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState343 : (((('s, _menhir_box_query) _menhir_cell1_COUNT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 343.
        Stack shape : COUNT LPAR option(DISTINCT) expression.
        Start symbol: query. *)

  | MenhirState345 : ((('s, _menhir_box_query) _menhir_cell1_DATATYPE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 345.
        Stack shape : DATATYPE LPAR expression.
        Start symbol: query. *)

  | MenhirState347 : ((('s, _menhir_box_query) _menhir_cell1_DAY _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 347.
        Stack shape : DAY LPAR expression.
        Start symbol: query. *)

  | MenhirState349 : ((('s, _menhir_box_query) _menhir_cell1_ENCODE_FOR_URI _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 349.
        Stack shape : ENCODE_FOR_URI LPAR expression.
        Start symbol: query. *)

  | MenhirState351 : ((('s, _menhir_box_query) _menhir_cell1_FLOOR _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 351.
        Stack shape : FLOOR LPAR expression.
        Start symbol: query. *)

  | MenhirState353 : (((('s, _menhir_box_query) _menhir_cell1_GROUP_CONCAT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 353.
        Stack shape : GROUP_CONCAT LPAR option(DISTINCT) expression.
        Start symbol: query. *)

  | MenhirState356 : ((((('s, _menhir_box_query) _menhir_cell1_GROUP_CONCAT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_SEMICOLON, _menhir_box_query) _menhir_state
    (** State 356.
        Stack shape : GROUP_CONCAT LPAR option(DISTINCT) expression SEMICOLON.
        Start symbol: query. *)

  | MenhirState360 : ((('s, _menhir_box_query) _menhir_cell1_HOURS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 360.
        Stack shape : HOURS LPAR expression.
        Start symbol: query. *)

  | MenhirState362 : ((('s, _menhir_box_query) _menhir_cell1_IF _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 362.
        Stack shape : IF LPAR expression.
        Start symbol: query. *)

  | MenhirState363 : (((('s, _menhir_box_query) _menhir_cell1_IF _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 363.
        Stack shape : IF LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState364 : ((((('s, _menhir_box_query) _menhir_cell1_IF _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 364.
        Stack shape : IF LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState365 : (((((('s, _menhir_box_query) _menhir_cell1_IF _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 365.
        Stack shape : IF LPAR expression COMMA expression COMMA.
        Start symbol: query. *)

  | MenhirState366 : ((((((('s, _menhir_box_query) _menhir_cell1_IF _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 366.
        Stack shape : IF LPAR expression COMMA expression COMMA expression.
        Start symbol: query. *)

  | MenhirState368 : ((('s, _menhir_box_query) _menhir_cell1_IRI _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 368.
        Stack shape : IRI LPAR expression.
        Start symbol: query. *)

  | MenhirState370 : ((('s, _menhir_box_query) _menhir_cell1_ISBLANK _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 370.
        Stack shape : ISBLANK LPAR expression.
        Start symbol: query. *)

  | MenhirState372 : ((('s, _menhir_box_query) _menhir_cell1_ISIRI _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 372.
        Stack shape : ISIRI LPAR expression.
        Start symbol: query. *)

  | MenhirState374 : ((('s, _menhir_box_query) _menhir_cell1_ISLITERAL _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 374.
        Stack shape : ISLITERAL LPAR expression.
        Start symbol: query. *)

  | MenhirState376 : ((('s, _menhir_box_query) _menhir_cell1_ISNUMERIC _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 376.
        Stack shape : ISNUMERIC LPAR expression.
        Start symbol: query. *)

  | MenhirState378 : ((('s, _menhir_box_query) _menhir_cell1_ISURI _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 378.
        Stack shape : ISURI LPAR expression.
        Start symbol: query. *)

  | MenhirState380 : ((('s, _menhir_box_query) _menhir_cell1_LANG _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 380.
        Stack shape : LANG LPAR expression.
        Start symbol: query. *)

  | MenhirState382 : ((('s, _menhir_box_query) _menhir_cell1_LANGMATCHES _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 382.
        Stack shape : LANGMATCHES LPAR expression.
        Start symbol: query. *)

  | MenhirState383 : (((('s, _menhir_box_query) _menhir_cell1_LANGMATCHES _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 383.
        Stack shape : LANGMATCHES LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState384 : ((((('s, _menhir_box_query) _menhir_cell1_LANGMATCHES _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 384.
        Stack shape : LANGMATCHES LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState386 : ((('s, _menhir_box_query) _menhir_cell1_LCASE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 386.
        Stack shape : LCASE LPAR expression.
        Start symbol: query. *)

  | MenhirState388 : ((('s, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 388.
        Stack shape : LPAR expression.
        Start symbol: query. *)

  | MenhirState390 : (((('s, _menhir_box_query) _menhir_cell1_MAX _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 390.
        Stack shape : MAX LPAR option(DISTINCT) expression.
        Start symbol: query. *)

  | MenhirState392 : ((('s, _menhir_box_query) _menhir_cell1_MD5 _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 392.
        Stack shape : MD5 LPAR expression.
        Start symbol: query. *)

  | MenhirState394 : (((('s, _menhir_box_query) _menhir_cell1_MIN _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 394.
        Stack shape : MIN LPAR option(DISTINCT) expression.
        Start symbol: query. *)

  | MenhirState396 : ((('s, _menhir_box_query) _menhir_cell1_MINUS, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 396.
        Stack shape : MINUS expression.
        Start symbol: query. *)

  | MenhirState397 : ((('s, _menhir_box_query) _menhir_cell1_MINUTES _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 397.
        Stack shape : MINUTES LPAR expression.
        Start symbol: query. *)

  | MenhirState399 : ((('s, _menhir_box_query) _menhir_cell1_MONTH _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 399.
        Stack shape : MONTH LPAR expression.
        Start symbol: query. *)

  | MenhirState401 : ((('s, _menhir_box_query) _menhir_cell1_PLUS, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 401.
        Stack shape : PLUS expression.
        Start symbol: query. *)

  | MenhirState402 : ((('s, _menhir_box_query) _menhir_cell1_REGEX _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 402.
        Stack shape : REGEX LPAR expression.
        Start symbol: query. *)

  | MenhirState403 : (((('s, _menhir_box_query) _menhir_cell1_REGEX _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 403.
        Stack shape : REGEX LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState404 : ((((('s, _menhir_box_query) _menhir_cell1_REGEX _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 404.
        Stack shape : REGEX LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState406 : (((((('s, _menhir_box_query) _menhir_cell1_REGEX _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 406.
        Stack shape : REGEX LPAR expression COMMA expression COMMA.
        Start symbol: query. *)

  | MenhirState407 : ((((((('s, _menhir_box_query) _menhir_cell1_REGEX _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 407.
        Stack shape : REGEX LPAR expression COMMA expression COMMA expression.
        Start symbol: query. *)

  | MenhirState409 : ((('s, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 409.
        Stack shape : REPLACE LPAR expression.
        Start symbol: query. *)

  | MenhirState410 : (((('s, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 410.
        Stack shape : REPLACE LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState411 : ((((('s, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 411.
        Stack shape : REPLACE LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState412 : (((((('s, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 412.
        Stack shape : REPLACE LPAR expression COMMA expression COMMA.
        Start symbol: query. *)

  | MenhirState413 : ((((((('s, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 413.
        Stack shape : REPLACE LPAR expression COMMA expression COMMA expression.
        Start symbol: query. *)

  | MenhirState415 : (((((((('s, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 415.
        Stack shape : REPLACE LPAR expression COMMA expression COMMA expression COMMA.
        Start symbol: query. *)

  | MenhirState416 : ((((((((('s, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 416.
        Stack shape : REPLACE LPAR expression COMMA expression COMMA expression COMMA expression.
        Start symbol: query. *)

  | MenhirState418 : ((('s, _menhir_box_query) _menhir_cell1_ROUND _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 418.
        Stack shape : ROUND LPAR expression.
        Start symbol: query. *)

  | MenhirState420 : ((('s, _menhir_box_query) _menhir_cell1_SAMETERM _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 420.
        Stack shape : SAMETERM LPAR expression.
        Start symbol: query. *)

  | MenhirState421 : (((('s, _menhir_box_query) _menhir_cell1_SAMETERM _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 421.
        Stack shape : SAMETERM LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState422 : ((((('s, _menhir_box_query) _menhir_cell1_SAMETERM _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 422.
        Stack shape : SAMETERM LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState424 : (((('s, _menhir_box_query) _menhir_cell1_SAMPLE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 424.
        Stack shape : SAMPLE LPAR option(DISTINCT) expression.
        Start symbol: query. *)

  | MenhirState426 : ((('s, _menhir_box_query) _menhir_cell1_SECONDS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 426.
        Stack shape : SECONDS LPAR expression.
        Start symbol: query. *)

  | MenhirState428 : ((('s, _menhir_box_query) _menhir_cell1_SHA1 _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 428.
        Stack shape : SHA1 LPAR expression.
        Start symbol: query. *)

  | MenhirState430 : ((('s, _menhir_box_query) _menhir_cell1_SHA256 _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 430.
        Stack shape : SHA256 LPAR expression.
        Start symbol: query. *)

  | MenhirState432 : ((('s, _menhir_box_query) _menhir_cell1_SHA384 _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 432.
        Stack shape : SHA384 LPAR expression.
        Start symbol: query. *)

  | MenhirState434 : ((('s, _menhir_box_query) _menhir_cell1_SHA512 _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 434.
        Stack shape : SHA512 LPAR expression.
        Start symbol: query. *)

  | MenhirState436 : ((('s, _menhir_box_query) _menhir_cell1_STR _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 436.
        Stack shape : STR LPAR expression.
        Start symbol: query. *)

  | MenhirState438 : ((('s, _menhir_box_query) _menhir_cell1_STRAFTER _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 438.
        Stack shape : STRAFTER LPAR expression.
        Start symbol: query. *)

  | MenhirState439 : (((('s, _menhir_box_query) _menhir_cell1_STRAFTER _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 439.
        Stack shape : STRAFTER LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState440 : ((((('s, _menhir_box_query) _menhir_cell1_STRAFTER _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 440.
        Stack shape : STRAFTER LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState442 : ((('s, _menhir_box_query) _menhir_cell1_STRBEFORE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 442.
        Stack shape : STRBEFORE LPAR expression.
        Start symbol: query. *)

  | MenhirState443 : (((('s, _menhir_box_query) _menhir_cell1_STRBEFORE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 443.
        Stack shape : STRBEFORE LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState444 : ((((('s, _menhir_box_query) _menhir_cell1_STRBEFORE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 444.
        Stack shape : STRBEFORE LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState446 : ((('s, _menhir_box_query) _menhir_cell1_STRDT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 446.
        Stack shape : STRDT LPAR expression.
        Start symbol: query. *)

  | MenhirState447 : (((('s, _menhir_box_query) _menhir_cell1_STRDT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 447.
        Stack shape : STRDT LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState448 : ((((('s, _menhir_box_query) _menhir_cell1_STRDT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 448.
        Stack shape : STRDT LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState450 : ((('s, _menhir_box_query) _menhir_cell1_STRENDS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 450.
        Stack shape : STRENDS LPAR expression.
        Start symbol: query. *)

  | MenhirState451 : (((('s, _menhir_box_query) _menhir_cell1_STRENDS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 451.
        Stack shape : STRENDS LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState452 : ((((('s, _menhir_box_query) _menhir_cell1_STRENDS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 452.
        Stack shape : STRENDS LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState454 : ((('s, _menhir_box_query) _menhir_cell1_STRLANG _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 454.
        Stack shape : STRLANG LPAR expression.
        Start symbol: query. *)

  | MenhirState455 : (((('s, _menhir_box_query) _menhir_cell1_STRLANG _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 455.
        Stack shape : STRLANG LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState456 : ((((('s, _menhir_box_query) _menhir_cell1_STRLANG _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 456.
        Stack shape : STRLANG LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState458 : ((('s, _menhir_box_query) _menhir_cell1_STRLEN _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 458.
        Stack shape : STRLEN LPAR expression.
        Start symbol: query. *)

  | MenhirState460 : ((('s, _menhir_box_query) _menhir_cell1_STRSTARTS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 460.
        Stack shape : STRSTARTS LPAR expression.
        Start symbol: query. *)

  | MenhirState461 : (((('s, _menhir_box_query) _menhir_cell1_STRSTARTS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 461.
        Stack shape : STRSTARTS LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState462 : ((((('s, _menhir_box_query) _menhir_cell1_STRSTARTS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 462.
        Stack shape : STRSTARTS LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState464 : ((('s, _menhir_box_query) _menhir_cell1_SUBSTR _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 464.
        Stack shape : SUBSTR LPAR expression.
        Start symbol: query. *)

  | MenhirState465 : (((('s, _menhir_box_query) _menhir_cell1_SUBSTR _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 465.
        Stack shape : SUBSTR LPAR expression COMMA.
        Start symbol: query. *)

  | MenhirState466 : ((((('s, _menhir_box_query) _menhir_cell1_SUBSTR _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 466.
        Stack shape : SUBSTR LPAR expression COMMA expression.
        Start symbol: query. *)

  | MenhirState468 : (((((('s, _menhir_box_query) _menhir_cell1_SUBSTR _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_state
    (** State 468.
        Stack shape : SUBSTR LPAR expression COMMA expression COMMA.
        Start symbol: query. *)

  | MenhirState469 : ((((((('s, _menhir_box_query) _menhir_cell1_SUBSTR _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 469.
        Stack shape : SUBSTR LPAR expression COMMA expression COMMA expression.
        Start symbol: query. *)

  | MenhirState471 : (((('s, _menhir_box_query) _menhir_cell1_SUM _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 471.
        Stack shape : SUM LPAR option(DISTINCT) expression.
        Start symbol: query. *)

  | MenhirState473 : ((('s, _menhir_box_query) _menhir_cell1_TIMEZONE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 473.
        Stack shape : TIMEZONE LPAR expression.
        Start symbol: query. *)

  | MenhirState475 : ((('s, _menhir_box_query) _menhir_cell1_TZ _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 475.
        Stack shape : TZ LPAR expression.
        Start symbol: query. *)

  | MenhirState477 : ((('s, _menhir_box_query) _menhir_cell1_UCASE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 477.
        Stack shape : UCASE LPAR expression.
        Start symbol: query. *)

  | MenhirState479 : ((('s, _menhir_box_query) _menhir_cell1_URI _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 479.
        Stack shape : URI LPAR expression.
        Start symbol: query. *)

  | MenhirState481 : ((('s, _menhir_box_query) _menhir_cell1_YEAR _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 481.
        Stack shape : YEAR LPAR expression.
        Start symbol: query. *)

  | MenhirState483 : ((('s, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 483.
        Stack shape : LPAR expression.
        Start symbol: query. *)

  | MenhirState484 : (((('s, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_AS, _menhir_box_query) _menhir_state
    (** State 484.
        Stack shape : LPAR expression AS.
        Start symbol: query. *)

  | MenhirState489 : (('s, _menhir_box_query) _menhir_cell1_select_var, _menhir_box_query) _menhir_state
    (** State 489.
        Stack shape : select_var.
        Start symbol: query. *)

  | MenhirState492 : (('s, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_state
    (** State 492.
        Stack shape : LPAR.
        Start symbol: query. *)

  | MenhirState493 : (('s, _menhir_box_query) _menhir_cell1_LBRACKET, _menhir_box_query) _menhir_state
    (** State 493.
        Stack shape : LBRACKET.
        Start symbol: query. *)

  | MenhirState494 : (('s, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_state
    (** State 494.
        Stack shape : LPAR.
        Start symbol: query. *)

  | MenhirState495 : (('s, _menhir_box_query) _menhir_cell1_HAT, _menhir_box_query) _menhir_state
    (** State 495.
        Stack shape : HAT.
        Start symbol: query. *)

  | MenhirState496 : (('s, _menhir_box_query) _menhir_cell1_BANG, _menhir_box_query) _menhir_state
    (** State 496.
        Stack shape : BANG.
        Start symbol: query. *)

  | MenhirState497 : ((('s, _menhir_box_query) _menhir_cell1_BANG, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_state
    (** State 497.
        Stack shape : BANG LPAR.
        Start symbol: query. *)

  | MenhirState498 : (('s, _menhir_box_query) _menhir_cell1_HAT, _menhir_box_query) _menhir_state
    (** State 498.
        Stack shape : HAT.
        Start symbol: query. *)

  | MenhirState504 : (('s, _menhir_box_query) _menhir_cell1_path_one_in_property_set, _menhir_box_query) _menhir_state
    (** State 504.
        Stack shape : path_one_in_property_set.
        Start symbol: query. *)

  | MenhirState522 : (('s, _menhir_box_query) _menhir_cell1_path_sequence, _menhir_box_query) _menhir_state
    (** State 522.
        Stack shape : path_sequence.
        Start symbol: query. *)

  | MenhirState525 : (('s, _menhir_box_query) _menhir_cell1_path_elt_or_inverse, _menhir_box_query) _menhir_state
    (** State 525.
        Stack shape : path_elt_or_inverse.
        Start symbol: query. *)

  | MenhirState531 : (('s, _menhir_box_query) _menhir_cell1_verb_path_or_simple, _menhir_box_query) _menhir_state
    (** State 531.
        Stack shape : verb_path_or_simple.
        Start symbol: query. *)

  | MenhirState536 : (('s, _menhir_box_query) _menhir_cell1_object_path, _menhir_box_query) _menhir_state
    (** State 536.
        Stack shape : object_path.
        Start symbol: query. *)

  | MenhirState541 : ((('s, _menhir_box_query) _menhir_cell1_verb_path_or_simple, _menhir_box_query) _menhir_cell1_object_list_path, _menhir_box_query) _menhir_state
    (** State 541.
        Stack shape : verb_path_or_simple object_list_path.
        Start symbol: query. *)

  | MenhirState542 : (('s, _menhir_box_query) _menhir_cell1_SEMICOLON, _menhir_box_query) _menhir_state
    (** State 542.
        Stack shape : SEMICOLON.
        Start symbol: query. *)

  | MenhirState544 : ((('s, _menhir_box_query) _menhir_cell1_SEMICOLON, _menhir_box_query) _menhir_cell1_verb_path_or_simple, _menhir_box_query) _menhir_state
    (** State 544.
        Stack shape : SEMICOLON verb_path_or_simple.
        Start symbol: query. *)

  | MenhirState549 : (('s, _menhir_box_query) _menhir_cell1_verbp_object_list_l, _menhir_box_query) _menhir_state
    (** State 549.
        Stack shape : verbp_object_list_l.
        Start symbol: query. *)

  | MenhirState556 : (('s, _menhir_box_query) _menhir_cell1_graph_node_path, _menhir_box_query) _menhir_state
    (** State 556.
        Stack shape : graph_node_path.
        Start symbol: query. *)

  | MenhirState558 : (('s, _menhir_box_query) _menhir_cell1_var_or_term, _menhir_box_query) _menhir_state
    (** State 558.
        Stack shape : var_or_term.
        Start symbol: query. *)

  | MenhirState561 : (('s, _menhir_box_query) _menhir_cell1_triples_same_subject_path, _menhir_box_query) _menhir_state
    (** State 561.
        Stack shape : triples_same_subject_path.
        Start symbol: query. *)

  | MenhirState562 : (('s, _menhir_box_query) _menhir_cell1_triples_node_path, _menhir_box_query) _menhir_state
    (** State 562.
        Stack shape : triples_node_path.
        Start symbol: query. *)

  | MenhirState574 : ((('s, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_cell1_select_clause, _menhir_box_query) _menhir_state
    (** State 574.
        Stack shape : LBRACE select_clause.
        Start symbol: query. *)

  | MenhirState576 : (((('s, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_cell1_select_clause, _menhir_box_query) _menhir_cell1_where_clause, _menhir_box_query) _menhir_state
    (** State 576.
        Stack shape : LBRACE select_clause where_clause.
        Start symbol: query. *)

  | MenhirState578 : (('s, _menhir_box_query) _menhir_cell1_GROUP, _menhir_box_query) _menhir_state
    (** State 578.
        Stack shape : GROUP.
        Start symbol: query. *)

  | MenhirState582 : (('s, _menhir_box_query) _menhir_cell1_group_condition, _menhir_box_query) _menhir_state
    (** State 582.
        Stack shape : group_condition.
        Start symbol: query. *)

  | MenhirState585 : (('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 585.
        Stack shape : expression.
        Start symbol: query. *)

  | MenhirState586 : ((('s, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_AS, _menhir_box_query) _menhir_state
    (** State 586.
        Stack shape : expression AS.
        Start symbol: query. *)

  | MenhirState589 : ((((('s, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_cell1_select_clause, _menhir_box_query) _menhir_cell1_where_clause, _menhir_box_query) _menhir_cell1_solution_modifier, _menhir_box_query) _menhir_state
    (** State 589.
        Stack shape : LBRACE select_clause where_clause solution_modifier.
        Start symbol: query. *)

  | MenhirState590 : (('s, _menhir_box_query) _menhir_cell1_VALUES, _menhir_box_query) _menhir_state
    (** State 590.
        Stack shape : VALUES.
        Start symbol: query. *)

  | MenhirState592 : ((('s, _menhir_box_query) _menhir_cell1_VALUES, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_state
    (** State 592.
        Stack shape : VALUES LPAR.
        Start symbol: query. *)

  | MenhirState593 : (('s, _menhir_box_query) _menhir_cell1_var, _menhir_box_query) _menhir_state
    (** State 593.
        Stack shape : var.
        Start symbol: query. *)

  | MenhirState598 : ((('s, _menhir_box_query) _menhir_cell1_VALUES, _menhir_box_query) _menhir_cell1_var, _menhir_box_query) _menhir_state
    (** State 598.
        Stack shape : VALUES var.
        Start symbol: query. *)

  | MenhirState605 : (('s, _menhir_box_query) _menhir_cell1_data_block_value, _menhir_box_query) _menhir_state
    (** State 605.
        Stack shape : data_block_value.
        Start symbol: query. *)

  | MenhirState609 : ((('s, _menhir_box_query) _menhir_cell1_VALUES, _menhir_box_query) _menhir_cell1_nil_or_var_list, _menhir_box_query) _menhir_state
    (** State 609.
        Stack shape : VALUES nil_or_var_list.
        Start symbol: query. *)

  | MenhirState611 : (('s, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_state
    (** State 611.
        Stack shape : LPAR.
        Start symbol: query. *)

  | MenhirState616 : (('s, _menhir_box_query) _menhir_cell1_data_block_values_or_nil, _menhir_box_query) _menhir_state
    (** State 616.
        Stack shape : data_block_values_or_nil.
        Start symbol: query. *)

  | MenhirState625 : (('s, _menhir_box_query) _menhir_cell1_option_group_clause_, _menhir_box_query) _menhir_state
    (** State 625.
        Stack shape : option(group_clause).
        Start symbol: query. *)

  | MenhirState628 : (('s, _menhir_box_query) _menhir_cell1_having_condition, _menhir_box_query) _menhir_state
    (** State 628.
        Stack shape : having_condition.
        Start symbol: query. *)

  | MenhirState636 : (('s, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_, _menhir_box_query) _menhir_state
    (** State 636.
        Stack shape : option(group_clause) option(having_clause).
        Start symbol: query. *)

  | MenhirState637 : (('s, _menhir_box_query) _menhir_cell1_DESC, _menhir_box_query) _menhir_state
    (** State 637.
        Stack shape : DESC.
        Start symbol: query. *)

  | MenhirState639 : (('s, _menhir_box_query) _menhir_cell1_ASC, _menhir_box_query) _menhir_state
    (** State 639.
        Stack shape : ASC.
        Start symbol: query. *)

  | MenhirState642 : (('s, _menhir_box_query) _menhir_cell1_order_condition, _menhir_box_query) _menhir_state
    (** State 642.
        Stack shape : order_condition.
        Start symbol: query. *)

  | MenhirState647 : (('s, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_, _menhir_box_query) _menhir_state
    (** State 647.
        Stack shape : option(group_clause) option(having_clause) option(order_clause).
        Start symbol: query. *)

  | MenhirState653 : ((('s, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_, _menhir_box_query) _menhir_cell1_offset_clause, _menhir_box_query) _menhir_state
    (** State 653.
        Stack shape : option(group_clause) option(having_clause) option(order_clause) offset_clause.
        Start symbol: query. *)

  | MenhirState657 : ((('s, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_, _menhir_box_query) _menhir_cell1_limit_clause, _menhir_box_query) _menhir_state
    (** State 657.
        Stack shape : option(group_clause) option(having_clause) option(order_clause) limit_clause.
        Start symbol: query. *)

  | MenhirState662 : (('s, _menhir_box_query) _menhir_cell1_option_WHERE_, _menhir_box_query) _menhir_state
    (** State 662.
        Stack shape : option(WHERE).
        Start symbol: query. *)

  | MenhirState664 : ((('s, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_cell1_option_triples_block_, _menhir_box_query) _menhir_state
    (** State 664.
        Stack shape : LBRACE option(triples_block).
        Start symbol: query. *)

  | MenhirState665 : (('s, _menhir_box_query) _menhir_cell1_VALUES, _menhir_box_query) _menhir_state
    (** State 665.
        Stack shape : VALUES.
        Start symbol: query. *)

  | MenhirState669 : (('s, _menhir_box_query) _menhir_cell1_SERVICE _menhir_cell0_option_SILENT_, _menhir_box_query) _menhir_state
    (** State 669.
        Stack shape : SERVICE option(SILENT).
        Start symbol: query. *)

  | MenhirState670 : ((('s, _menhir_box_query) _menhir_cell1_SERVICE _menhir_cell0_option_SILENT_, _menhir_box_query) _menhir_cell1_var_or_iri, _menhir_box_query) _menhir_state
    (** State 670.
        Stack shape : SERVICE option(SILENT) var_or_iri.
        Start symbol: query. *)

  | MenhirState672 : (('s, _menhir_box_query) _menhir_cell1_OPTIONAL, _menhir_box_query) _menhir_state
    (** State 672.
        Stack shape : OPTIONAL.
        Start symbol: query. *)

  | MenhirState674 : (('s, _menhir_box_query) _menhir_cell1_MINUS, _menhir_box_query) _menhir_state
    (** State 674.
        Stack shape : MINUS.
        Start symbol: query. *)

  | MenhirState676 : (('s, _menhir_box_query) _menhir_cell1_GRAPH, _menhir_box_query) _menhir_state
    (** State 676.
        Stack shape : GRAPH.
        Start symbol: query. *)

  | MenhirState677 : ((('s, _menhir_box_query) _menhir_cell1_GRAPH, _menhir_box_query) _menhir_cell1_var_or_iri, _menhir_box_query) _menhir_state
    (** State 677.
        Stack shape : GRAPH var_or_iri.
        Start symbol: query. *)

  | MenhirState679 : (('s, _menhir_box_query) _menhir_cell1_FILTER, _menhir_box_query) _menhir_state
    (** State 679.
        Stack shape : FILTER.
        Start symbol: query. *)

  | MenhirState682 : (('s, _menhir_box_query) _menhir_cell1_BIND _menhir_cell0_LPAR, _menhir_box_query) _menhir_state
    (** State 682.
        Stack shape : BIND LPAR.
        Start symbol: query. *)

  | MenhirState683 : ((('s, _menhir_box_query) _menhir_cell1_BIND _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_state
    (** State 683.
        Stack shape : BIND LPAR expression.
        Start symbol: query. *)

  | MenhirState684 : (((('s, _menhir_box_query) _menhir_cell1_BIND _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_AS, _menhir_box_query) _menhir_state
    (** State 684.
        Stack shape : BIND LPAR expression AS.
        Start symbol: query. *)

  | MenhirState695 : (('s, _menhir_box_query) _menhir_cell1_group_graph_pattern, _menhir_box_query) _menhir_state
    (** State 695.
        Stack shape : group_graph_pattern.
        Start symbol: query. *)

  | MenhirState697 : (('s, _menhir_box_query) _menhir_cell1_graph_pattern_not_triples, _menhir_box_query) _menhir_state
    (** State 697.
        Stack shape : graph_pattern_not_triples.
        Start symbol: query. *)

  | MenhirState698 : ((('s, _menhir_box_query) _menhir_cell1_graph_pattern_not_triples, _menhir_box_query) _menhir_cell1_option_DOT_, _menhir_box_query) _menhir_state
    (** State 698.
        Stack shape : graph_pattern_not_triples option(DOT).
        Start symbol: query. *)

  | MenhirState701 : (('s, _menhir_box_query) _menhir_cell1_gp_triples, _menhir_box_query) _menhir_state
    (** State 701.
        Stack shape : gp_triples.
        Start symbol: query. *)

  | MenhirState708 : (((('s, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_delete_clause, _menhir_box_query) _menhir_state
    (** State 708.
        Stack shape : WITH iri delete_clause.
        Start symbol: query. *)

  | MenhirState709 : ((((('s, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_delete_clause, _menhir_box_query) _menhir_cell1_option_insert_clause_, _menhir_box_query) _menhir_state
    (** State 709.
        Stack shape : WITH iri delete_clause option(insert_clause).
        Start symbol: query. *)

  | MenhirState711 : (((((('s, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_delete_clause, _menhir_box_query) _menhir_cell1_option_insert_clause_, _menhir_box_query) _menhir_cell1_list_using_clause_, _menhir_box_query) _menhir_state
    (** State 711.
        Stack shape : WITH iri delete_clause option(insert_clause) list(using_clause).
        Start symbol: query. *)

  | MenhirState716 : (('s, _menhir_box_query) _menhir_cell1_INSERT, _menhir_box_query) _menhir_state
    (** State 716.
        Stack shape : INSERT.
        Start symbol: query. *)

  | MenhirState717 : ((('s, _menhir_box_query) _menhir_cell1_INSERT, _menhir_box_query) _menhir_cell1_DATA, _menhir_box_query) _menhir_state
    (** State 717.
        Stack shape : INSERT DATA.
        Start symbol: query. *)

  | MenhirState718 : ((('s, _menhir_box_query) _menhir_cell1_DATA, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_state
    (** State 718.
        Stack shape : DATA LBRACE.
        Start symbol: query. *)

  | MenhirState723 : ((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_state
    (** State 723.
        Stack shape : prologue DESCRIBE.
        Start symbol: query. *)

  | MenhirState724 : (((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_STAR, _menhir_box_query) _menhir_state
    (** State 724.
        Stack shape : prologue DESCRIBE STAR.
        Start symbol: query. *)

  | MenhirState725 : (('s, _menhir_box_query) _menhir_cell1_FROM, _menhir_box_query) _menhir_state
    (** State 725.
        Stack shape : FROM.
        Start symbol: query. *)

  | MenhirState726 : ((('s, _menhir_box_query) _menhir_cell1_FROM, _menhir_box_query) _menhir_cell1_NAMED, _menhir_box_query) _menhir_state
    (** State 726.
        Stack shape : FROM NAMED.
        Start symbol: query. *)

  | MenhirState730 : ((((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_STAR, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_state
    (** State 730.
        Stack shape : prologue DESCRIBE STAR list(dataset_clause).
        Start symbol: query. *)

  | MenhirState732 : (((((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_STAR, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_option_where_clause_, _menhir_box_query) _menhir_state
    (** State 732.
        Stack shape : prologue DESCRIBE STAR list(dataset_clause) option(where_clause).
        Start symbol: query. *)

  | MenhirState734 : (('s, _menhir_box_query) _menhir_cell1_dataset_clause, _menhir_box_query) _menhir_state
    (** State 734.
        Stack shape : dataset_clause.
        Start symbol: query. *)

  | MenhirState736 : (('s, _menhir_box_query) _menhir_cell1_var_or_iri, _menhir_box_query) _menhir_state
    (** State 736.
        Stack shape : var_or_iri.
        Start symbol: query. *)

  | MenhirState738 : (((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_nonempty_list_var_or_iri_, _menhir_box_query) _menhir_state
    (** State 738.
        Stack shape : prologue DESCRIBE nonempty_list(var_or_iri).
        Start symbol: query. *)

  | MenhirState739 : ((((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_nonempty_list_var_or_iri_, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_state
    (** State 739.
        Stack shape : prologue DESCRIBE nonempty_list(var_or_iri) list(dataset_clause).
        Start symbol: query. *)

  | MenhirState740 : (((((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_nonempty_list_var_or_iri_, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_option_where_clause_, _menhir_box_query) _menhir_state
    (** State 740.
        Stack shape : prologue DESCRIBE nonempty_list(var_or_iri) list(dataset_clause) option(where_clause).
        Start symbol: query. *)

  | MenhirState742 : (('s, _menhir_box_query) _menhir_cell1_DELETE, _menhir_box_query) _menhir_state
    (** State 742.
        Stack shape : DELETE.
        Start symbol: query. *)

  | MenhirState743 : ((('s, _menhir_box_query) _menhir_cell1_DELETE, _menhir_box_query) _menhir_cell1_WHERE, _menhir_box_query) _menhir_state
    (** State 743.
        Stack shape : DELETE WHERE.
        Start symbol: query. *)

  | MenhirState745 : ((('s, _menhir_box_query) _menhir_cell1_DELETE, _menhir_box_query) _menhir_cell1_DATA, _menhir_box_query) _menhir_state
    (** State 745.
        Stack shape : DELETE DATA.
        Start symbol: query. *)

  | MenhirState749 : ((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_state
    (** State 749.
        Stack shape : prologue CONSTRUCT.
        Start symbol: query. *)

  | MenhirState750 : (((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_state
    (** State 750.
        Stack shape : prologue CONSTRUCT LBRACE.
        Start symbol: query. *)

  | MenhirState756 : (((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_state
    (** State 756.
        Stack shape : prologue CONSTRUCT list(dataset_clause).
        Start symbol: query. *)

  | MenhirState758 : ((((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_triples_template _menhir_cell0_RBRACE, _menhir_box_query) _menhir_state
    (** State 758.
        Stack shape : prologue CONSTRUCT list(dataset_clause) triples_template RBRACE.
        Start symbol: query. *)

  | MenhirState760 : (((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_construct_template, _menhir_box_query) _menhir_state
    (** State 760.
        Stack shape : prologue CONSTRUCT construct_template.
        Start symbol: query. *)

  | MenhirState761 : ((((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_construct_template, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_state
    (** State 761.
        Stack shape : prologue CONSTRUCT construct_template list(dataset_clause).
        Start symbol: query. *)

  | MenhirState762 : (((((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_construct_template, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_where_clause, _menhir_box_query) _menhir_state
    (** State 762.
        Stack shape : prologue CONSTRUCT construct_template list(dataset_clause) where_clause.
        Start symbol: query. *)

  | MenhirState765 : ((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_ASK, _menhir_box_query) _menhir_state
    (** State 765.
        Stack shape : prologue ASK.
        Start symbol: query. *)

  | MenhirState766 : (((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_ASK, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_state
    (** State 766.
        Stack shape : prologue ASK list(dataset_clause).
        Start symbol: query. *)

  | MenhirState767 : ((((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_ASK, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_where_clause, _menhir_box_query) _menhir_state
    (** State 767.
        Stack shape : prologue ASK list(dataset_clause) where_clause.
        Start symbol: query. *)

  | MenhirState771 : (('s, _menhir_box_query) _menhir_cell1_update_action, _menhir_box_query) _menhir_state
    (** State 771.
        Stack shape : update_action.
        Start symbol: query. *)

  | MenhirState773 : (('s, _menhir_box_query) _menhir_cell1_insert_clause, _menhir_box_query) _menhir_state
    (** State 773.
        Stack shape : insert_clause.
        Start symbol: query. *)

  | MenhirState775 : ((('s, _menhir_box_query) _menhir_cell1_insert_clause, _menhir_box_query) _menhir_cell1_list_using_clause_, _menhir_box_query) _menhir_state
    (** State 775.
        Stack shape : insert_clause list(using_clause).
        Start symbol: query. *)

  | MenhirState777 : (('s, _menhir_box_query) _menhir_cell1_delete_clause, _menhir_box_query) _menhir_state
    (** State 777.
        Stack shape : delete_clause.
        Start symbol: query. *)

  | MenhirState778 : ((('s, _menhir_box_query) _menhir_cell1_delete_clause, _menhir_box_query) _menhir_cell1_option_insert_clause_, _menhir_box_query) _menhir_state
    (** State 778.
        Stack shape : delete_clause option(insert_clause).
        Start symbol: query. *)

  | MenhirState780 : (((('s, _menhir_box_query) _menhir_cell1_delete_clause, _menhir_box_query) _menhir_cell1_option_insert_clause_, _menhir_box_query) _menhir_cell1_list_using_clause_, _menhir_box_query) _menhir_state
    (** State 780.
        Stack shape : delete_clause option(insert_clause) list(using_clause).
        Start symbol: query. *)

  | MenhirState783 : ((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_select_clause, _menhir_box_query) _menhir_state
    (** State 783.
        Stack shape : prologue select_clause.
        Start symbol: query. *)

  | MenhirState784 : (((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_select_clause, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_state
    (** State 784.
        Stack shape : prologue select_clause list(dataset_clause).
        Start symbol: query. *)

  | MenhirState785 : ((((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_select_clause, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_where_clause, _menhir_box_query) _menhir_state
    (** State 785.
        Stack shape : prologue select_clause list(dataset_clause) where_clause.
        Start symbol: query. *)

  | MenhirState788 : ((('s, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_get_query_kind, _menhir_box_query) _menhir_state
    (** State 788.
        Stack shape : prologue get_query_kind.
        Start symbol: query. *)


and ('s, 'r) _menhir_cell1_construct_template = 
  | MenhirCell1_construct_template of 's * ('s, 'r) _menhir_state * (Sparql_types.triples_template)

and ('s, 'r) _menhir_cell1_data_block_value = 
  | MenhirCell1_data_block_value of 's * ('s, 'r) _menhir_state * (Sparql_types.data_block_value)

and ('s, 'r) _menhir_cell1_data_block_values_or_nil = 
  | MenhirCell1_data_block_values_or_nil of 's * ('s, 'r) _menhir_state * (Sparql_types.data_full_block_value)

and ('s, 'r) _menhir_cell1_dataset_clause = 
  | MenhirCell1_dataset_clause of 's * ('s, 'r) _menhir_state * (Sparql_types.dataset_clause)

and ('s, 'r) _menhir_cell1_delete_clause = 
  | MenhirCell1_delete_clause of 's * ('s, 'r) _menhir_state * (Sparql_types.quads) * Lexing.position

and ('s, 'r) _menhir_cell1_expression = 
  | MenhirCell1_expression of 's * ('s, 'r) _menhir_state * (Sparql_types.expression) * Lexing.position * Lexing.position

and ('s, 'r) _menhir_cell1_get_query_kind = 
  | MenhirCell1_get_query_kind of 's * ('s, 'r) _menhir_state * (Sparql_types.query_kind)

and ('s, 'r) _menhir_cell1_gp_triples = 
  | MenhirCell1_gp_triples of 's * ('s, 'r) _menhir_state * (Sparql_types.graph_pattern_elt * Sparql_types.graph_pattern_elt option)

and ('s, 'r) _menhir_cell1_graph_node = 
  | MenhirCell1_graph_node of 's * ('s, 'r) _menhir_state * (Sparql_types.object_) * Lexing.position

and ('s, 'r) _menhir_cell1_graph_node_path = 
  | MenhirCell1_graph_node_path of 's * ('s, 'r) _menhir_state * (Sparql_types.object_)

and ('s, 'r) _menhir_cell1_graph_pattern_not_triples = 
  | MenhirCell1_graph_pattern_not_triples of 's * ('s, 'r) _menhir_state * (Sparql_types.graph_pattern_elt)

and ('s, 'r) _menhir_cell1_group_condition = 
  | MenhirCell1_group_condition of 's * ('s, 'r) _menhir_state * (Sparql_types.group_condition)

and ('s, 'r) _menhir_cell1_group_graph_pattern = 
  | MenhirCell1_group_graph_pattern of 's * ('s, 'r) _menhir_state * (Sparql_types.group_graph_pattern) * Lexing.position

and ('s, 'r) _menhir_cell1_having_condition = 
  | MenhirCell1_having_condition of 's * ('s, 'r) _menhir_state * (Sparql_types.having_condition)

and ('s, 'r) _menhir_cell1_insert_clause = 
  | MenhirCell1_insert_clause of 's * ('s, 'r) _menhir_state * (Sparql_types.quads) * Lexing.position

and ('s, 'r) _menhir_cell1_iri = 
  | MenhirCell1_iri of 's * ('s, 'r) _menhir_state * (Sparql_types.source_selector) * Lexing.position * Lexing.position

and ('s, 'r) _menhir_cell1_limit_clause = 
  | MenhirCell1_limit_clause of 's * ('s, 'r) _menhir_state * (int) * Lexing.position * Lexing.position

and ('s, 'r) _menhir_cell1_list_dataset_clause_ = 
  | MenhirCell1_list_dataset_clause_ of 's * ('s, 'r) _menhir_state * (Sparql_types.dataset_clause list)

and ('s, 'r) _menhir_cell1_list_using_clause_ = 
  | MenhirCell1_list_using_clause_ of 's * ('s, 'r) _menhir_state * ((bool * Sparql_types.source_selector * Sparql_types.loc) list)

and ('s, 'r) _menhir_cell1_nil_or_var_list = 
  | MenhirCell1_nil_or_var_list of 's * ('s, 'r) _menhir_state * (Sparql_types.var list) * Lexing.position

and ('s, 'r) _menhir_cell1_nonempty_list_var_or_iri_ = 
  | MenhirCell1_nonempty_list_var_or_iri_ of 's * ('s, 'r) _menhir_state * (Sparql_types.var_or_iri list)

and ('s, 'r) _menhir_cell1_numexp = 
  | MenhirCell1_numexp of 's * ('s, 'r) _menhir_state * (Sparql_types.expression) * Lexing.position * Lexing.position

and ('s, 'r) _menhir_cell1_object_ = 
  | MenhirCell1_object_ of 's * ('s, 'r) _menhir_state * (Sparql_types.object_) * Lexing.position

and ('s, 'r) _menhir_cell1_object_list_path = 
  | MenhirCell1_object_list_path of 's * ('s, 'r) _menhir_state * (Sparql_types.object_ list)

and ('s, 'r) _menhir_cell1_object_path = 
  | MenhirCell1_object_path of 's * ('s, 'r) _menhir_state * (Sparql_types.object_)

and ('s, 'r) _menhir_cell1_offset_clause = 
  | MenhirCell1_offset_clause of 's * ('s, 'r) _menhir_state * (int) * Lexing.position * Lexing.position

and ('s, 'r) _menhir_cell1_option_DISTINCT_ = 
  | MenhirCell1_option_DISTINCT_ of 's * ('s, 'r) _menhir_state * (unit option)

and ('s, 'r) _menhir_cell1_option_DOT_ = 
  | MenhirCell1_option_DOT_ of 's * ('s, 'r) _menhir_state * (unit option)

and 's _menhir_cell0_option_SILENT_ = 
  | MenhirCell0_option_SILENT_ of 's * (unit option)

and ('s, 'r) _menhir_cell1_option_WHERE_ = 
  | MenhirCell1_option_WHERE_ of 's * ('s, 'r) _menhir_state * (unit option)

and ('s, 'r) _menhir_cell1_option_group_clause_ = 
  | MenhirCell1_option_group_clause_ of 's * ('s, 'r) _menhir_state * (Sparql_types.group_condition list option) * Lexing.position

and 's _menhir_cell0_option_having_clause_ = 
  | MenhirCell0_option_having_clause_ of 's * (Sparql_types.having_condition list option)

and ('s, 'r) _menhir_cell1_option_insert_clause_ = 
  | MenhirCell1_option_insert_clause_ of 's * ('s, 'r) _menhir_state * (Sparql_types.quads option)

and 's _menhir_cell0_option_order_clause_ = 
  | MenhirCell0_option_order_clause_ of 's * (Sparql_types.order_condition list option)

and 's _menhir_cell0_option_select_flag_ = 
  | MenhirCell0_option_select_flag_ of 's * (Sparql_types.select_clause_flag option)

and ('s, 'r) _menhir_cell1_option_triples_block_ = 
  | MenhirCell1_option_triples_block_ of 's * ('s, 'r) _menhir_state * (Sparql_types.graph_pattern_elt option) * Lexing.position

and ('s, 'r) _menhir_cell1_option_triples_template_ = 
  | MenhirCell1_option_triples_template_ of 's * ('s, 'r) _menhir_state * (Sparql_types.triples_template option) * Lexing.position

and ('s, 'r) _menhir_cell1_option_where_clause_ = 
  | MenhirCell1_option_where_clause_ of 's * ('s, 'r) _menhir_state * (Sparql_types.group_graph_pattern option)

and ('s, 'r) _menhir_cell1_order_condition = 
  | MenhirCell1_order_condition of 's * ('s, 'r) _menhir_state * (Sparql_types.order_condition)

and ('s, 'r) _menhir_cell1_path_elt_or_inverse = 
  | MenhirCell1_path_elt_or_inverse of 's * ('s, 'r) _menhir_state * (Sparql_types.path_elt_or_inverse) * Lexing.position

and ('s, 'r) _menhir_cell1_path_one_in_property_set = 
  | MenhirCell1_path_one_in_property_set of 's * ('s, 'r) _menhir_state * (Sparql_types.path_one_in_prop_set)

and ('s, 'r) _menhir_cell1_path_primary = 
  | MenhirCell1_path_primary of 's * ('s, 'r) _menhir_state * (Sparql_types.path_primary) * Lexing.position

and ('s, 'r) _menhir_cell1_path_sequence = 
  | MenhirCell1_path_sequence of 's * ('s, 'r) _menhir_state * (Sparql_types.path_sequence) * Lexing.position

and ('s, 'r) _menhir_cell1_prologue = 
  | MenhirCell1_prologue of 's * ('s, 'r) _menhir_state * (Sparql_types.query_prolog)

and ('s, 'r) _menhir_cell1_prologue_item = 
  | MenhirCell1_prologue_item of 's * ('s, 'r) _menhir_state * (Sparql_types.query_prolog_decl)

and ('s, 'r) _menhir_cell1_quads1 = 
  | MenhirCell1_quads1 of 's * ('s, 'r) _menhir_state * (Sparql_types.quads_not_triples * Sparql_types.triples_template option)

and ('s, 'r) _menhir_cell1_quads_not_triples = 
  | MenhirCell1_quads_not_triples of 's * ('s, 'r) _menhir_state * (Sparql_types.quads_not_triples)

and ('s, 'r) _menhir_cell1_select_clause = 
  | MenhirCell1_select_clause of 's * ('s, 'r) _menhir_state * (Sparql_types.select_clause) * Lexing.position

and ('s, 'r) _menhir_cell1_select_var = 
  | MenhirCell1_select_var of 's * ('s, 'r) _menhir_state * (Sparql_types.select_var)

and ('s, 'r) _menhir_cell1_solution_modifier = 
  | MenhirCell1_solution_modifier of 's * ('s, 'r) _menhir_state * (Sparql_types.solution_modifier)

and ('s, 'r) _menhir_cell1_string = 
  | MenhirCell1_string of 's * ('s, 'r) _menhir_state * (string) * Lexing.position * Lexing.position

and ('s, 'r) _menhir_cell1_triples_node = 
  | MenhirCell1_triples_node of 's * ('s, 'r) _menhir_state * (Sparql_types.triples_node) * Lexing.position * Lexing.position

and ('s, 'r) _menhir_cell1_triples_node_path = 
  | MenhirCell1_triples_node_path of 's * ('s, 'r) _menhir_state * (Sparql_types.triples_node) * Lexing.position

and ('s, 'r) _menhir_cell1_triples_same_subject = 
  | MenhirCell1_triples_same_subject of 's * ('s, 'r) _menhir_state * (Sparql_types.triples_same_subject) * Lexing.position

and ('s, 'r) _menhir_cell1_triples_same_subject_path = 
  | MenhirCell1_triples_same_subject_path of 's * ('s, 'r) _menhir_state * (Sparql_types.triples_same_subject) * Lexing.position

and ('s, 'r) _menhir_cell1_triples_template = 
  | MenhirCell1_triples_template of 's * ('s, 'r) _menhir_state * (Sparql_types.triples_template) * Lexing.position

and ('s, 'r) _menhir_cell1_update_action = 
  | MenhirCell1_update_action of 's * ('s, 'r) _menhir_state * (Sparql_types.update_action)

and ('s, 'r) _menhir_cell1_using_clause = 
  | MenhirCell1_using_clause of 's * ('s, 'r) _menhir_state * (bool * Sparql_types.source_selector * Sparql_types.loc)

and ('s, 'r) _menhir_cell1_value_logical = 
  | MenhirCell1_value_logical of 's * ('s, 'r) _menhir_state * (Sparql_types.expression) * Lexing.position * Lexing.position

and ('s, 'r) _menhir_cell1_var = 
  | MenhirCell1_var of 's * ('s, 'r) _menhir_state * (Sparql_types.var) * Lexing.position * Lexing.position

and ('s, 'r) _menhir_cell1_var_or_iri = 
  | MenhirCell1_var_or_iri of 's * ('s, 'r) _menhir_state * (Sparql_types.var_or_iri) * Lexing.position

and ('s, 'r) _menhir_cell1_var_or_term = 
  | MenhirCell1_var_or_term of 's * ('s, 'r) _menhir_state * (Sparql_types.var_or_term) * Lexing.position * Lexing.position

and ('s, 'r) _menhir_cell1_verb = 
  | MenhirCell1_verb of 's * ('s, 'r) _menhir_state * (Sparql_types.verb) * Lexing.position

and ('s, 'r) _menhir_cell1_verb_object_list = 
  | MenhirCell1_verb_object_list of 's * ('s, 'r) _menhir_state * (Sparql_types.prop_object_list)

and ('s, 'r) _menhir_cell1_verb_object_list_l = 
  | MenhirCell1_verb_object_list_l of 's * ('s, 'r) _menhir_state * (Sparql_types.prop_object_list option)

and ('s, 'r) _menhir_cell1_verb_path_or_simple = 
  | MenhirCell1_verb_path_or_simple of 's * ('s, 'r) _menhir_state * (Sparql_types.verb) * Lexing.position

and ('s, 'r) _menhir_cell1_verbp_object_list_l = 
  | MenhirCell1_verbp_object_list_l of 's * ('s, 'r) _menhir_state * (Sparql_types.prop_object_list option)

and ('s, 'r) _menhir_cell1_where_clause = 
  | MenhirCell1_where_clause of 's * ('s, 'r) _menhir_state * (Sparql_types.group_graph_pattern)

and ('s, 'r) _menhir_cell1_ABS = 
  | MenhirCell1_ABS of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_AS = 
  | MenhirCell1_AS of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_ASC = 
  | MenhirCell1_ASC of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_ASK = 
  | MenhirCell1_ASK of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_AVG = 
  | MenhirCell1_AVG of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_BANG = 
  | MenhirCell1_BANG of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_BIND = 
  | MenhirCell1_BIND of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_BNODE = 
  | MenhirCell1_BNODE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_BOUND = 
  | MenhirCell1_BOUND of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_CEIL = 
  | MenhirCell1_CEIL of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_COALESCE = 
  | MenhirCell1_COALESCE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_COMMA = 
  | MenhirCell1_COMMA of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_CONCAT = 
  | MenhirCell1_CONCAT of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_CONSTRUCT = 
  | MenhirCell1_CONSTRUCT of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_CONTAINS = 
  | MenhirCell1_CONTAINS of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_COUNT = 
  | MenhirCell1_COUNT of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_DATA = 
  | MenhirCell1_DATA of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_DATATYPE = 
  | MenhirCell1_DATATYPE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_DAY = 
  | MenhirCell1_DAY of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_DELETE = 
  | MenhirCell1_DELETE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_DESC = 
  | MenhirCell1_DESC of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_DESCRIBE = 
  | MenhirCell1_DESCRIBE of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_ENCODE_FOR_URI = 
  | MenhirCell1_ENCODE_FOR_URI of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_EXISTS = 
  | MenhirCell1_EXISTS of 's * ('s, 'r) _menhir_state * Lexing.position

and 's _menhir_cell0_EXISTS = 
  | MenhirCell0_EXISTS of 's * Lexing.position

and ('s, 'r) _menhir_cell1_FILTER = 
  | MenhirCell1_FILTER of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_FLOOR = 
  | MenhirCell1_FLOOR of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_FROM = 
  | MenhirCell1_FROM of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_GRAPH = 
  | MenhirCell1_GRAPH of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_GROUP = 
  | MenhirCell1_GROUP of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_GROUP_CONCAT = 
  | MenhirCell1_GROUP_CONCAT of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_HAT = 
  | MenhirCell1_HAT of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_HOURS = 
  | MenhirCell1_HOURS of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_IF = 
  | MenhirCell1_IF of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_INSERT = 
  | MenhirCell1_INSERT of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_IRI = 
  | MenhirCell1_IRI of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_ISBLANK = 
  | MenhirCell1_ISBLANK of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_ISIRI = 
  | MenhirCell1_ISIRI of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_ISLITERAL = 
  | MenhirCell1_ISLITERAL of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_ISNUMERIC = 
  | MenhirCell1_ISNUMERIC of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_ISURI = 
  | MenhirCell1_ISURI of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_LANG = 
  | MenhirCell1_LANG of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_LANGMATCHES = 
  | MenhirCell1_LANGMATCHES of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_LBRACE = 
  | MenhirCell1_LBRACE of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_LBRACKET = 
  | MenhirCell1_LBRACKET of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_LCASE = 
  | MenhirCell1_LCASE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_LPAR = 
  | MenhirCell1_LPAR of 's * ('s, 'r) _menhir_state * Lexing.position

and 's _menhir_cell0_LPAR = 
  | MenhirCell0_LPAR of 's * Lexing.position

and ('s, 'r) _menhir_cell1_MAX = 
  | MenhirCell1_MAX of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_MD5 = 
  | MenhirCell1_MD5 of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_MIN = 
  | MenhirCell1_MIN of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_MINUS = 
  | MenhirCell1_MINUS of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_MINUTES = 
  | MenhirCell1_MINUTES of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_MONTH = 
  | MenhirCell1_MONTH of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_NAMED = 
  | MenhirCell1_NAMED of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_NOT = 
  | MenhirCell1_NOT of 's * ('s, 'r) _menhir_state * Lexing.position

and 's _menhir_cell0_NOT = 
  | MenhirCell0_NOT of 's * Lexing.position

and ('s, 'r) _menhir_cell1_OPTIONAL = 
  | MenhirCell1_OPTIONAL of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_PLUS = 
  | MenhirCell1_PLUS of 's * ('s, 'r) _menhir_state * Lexing.position * Lexing.position

and 's _menhir_cell0_RBRACE = 
  | MenhirCell0_RBRACE of 's * Lexing.position

and ('s, 'r) _menhir_cell1_REGEX = 
  | MenhirCell1_REGEX of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_REPLACE = 
  | MenhirCell1_REPLACE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_ROUND = 
  | MenhirCell1_ROUND of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SAMETERM = 
  | MenhirCell1_SAMETERM of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SAMPLE = 
  | MenhirCell1_SAMPLE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SECONDS = 
  | MenhirCell1_SECONDS of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SELECT = 
  | MenhirCell1_SELECT of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SEMICOLON = 
  | MenhirCell1_SEMICOLON of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_SERVICE = 
  | MenhirCell1_SERVICE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SHA1 = 
  | MenhirCell1_SHA1 of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SHA256 = 
  | MenhirCell1_SHA256 of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SHA384 = 
  | MenhirCell1_SHA384 of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SHA512 = 
  | MenhirCell1_SHA512 of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SLASH = 
  | MenhirCell1_SLASH of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_STAR = 
  | MenhirCell1_STAR of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_STR = 
  | MenhirCell1_STR of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_STRAFTER = 
  | MenhirCell1_STRAFTER of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_STRBEFORE = 
  | MenhirCell1_STRBEFORE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_STRDT = 
  | MenhirCell1_STRDT of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_STRENDS = 
  | MenhirCell1_STRENDS of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_STRLANG = 
  | MenhirCell1_STRLANG of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_STRLEN = 
  | MenhirCell1_STRLEN of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_STRSTARTS = 
  | MenhirCell1_STRSTARTS of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SUBSTR = 
  | MenhirCell1_SUBSTR of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_SUM = 
  | MenhirCell1_SUM of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_TIMEZONE = 
  | MenhirCell1_TIMEZONE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_TZ = 
  | MenhirCell1_TZ of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_UCASE = 
  | MenhirCell1_UCASE of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_URI = 
  | MenhirCell1_URI of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_USING = 
  | MenhirCell1_USING of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_VALUES = 
  | MenhirCell1_VALUES of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_WHERE = 
  | MenhirCell1_WHERE of 's * ('s, 'r) _menhir_state

and ('s, 'r) _menhir_cell1_WITH = 
  | MenhirCell1_WITH of 's * ('s, 'r) _menhir_state * Lexing.position

and ('s, 'r) _menhir_cell1_YEAR = 
  | MenhirCell1_YEAR of 's * ('s, 'r) _menhir_state * Lexing.position

and _menhir_box_query = 
  | MenhirBox_query of (Sparql_types.query) [@@unboxed]

let _menhir_action_001 =
  fun d ->
    (
# 1206 "lib/sparql_parser.mly"
                                          ( Bic_COUNT (d<>None, None) )
# 2393 "lib/sparql_parser.ml"
     : (Sparql_types.aggregate))

let _menhir_action_002 =
  fun d e ->
    (
# 1207 "lib/sparql_parser.mly"
                                                  ( Bic_COUNT (d<>None, Some e) )
# 2401 "lib/sparql_parser.ml"
     : (Sparql_types.aggregate))

let _menhir_action_003 =
  fun d e ->
    (
# 1208 "lib/sparql_parser.mly"
                                                ( Bic_SUM (d<>None, e) )
# 2409 "lib/sparql_parser.ml"
     : (Sparql_types.aggregate))

let _menhir_action_004 =
  fun d e ->
    (
# 1209 "lib/sparql_parser.mly"
                                                ( Bic_MIN (d<>None, e) )
# 2417 "lib/sparql_parser.ml"
     : (Sparql_types.aggregate))

let _menhir_action_005 =
  fun d e ->
    (
# 1210 "lib/sparql_parser.mly"
                                                ( Bic_MAX (d<>None, e) )
# 2425 "lib/sparql_parser.ml"
     : (Sparql_types.aggregate))

let _menhir_action_006 =
  fun d e ->
    (
# 1211 "lib/sparql_parser.mly"
                                                ( Bic_AVG (d<>None, e) )
# 2433 "lib/sparql_parser.ml"
     : (Sparql_types.aggregate))

let _menhir_action_007 =
  fun d e ->
    (
# 1212 "lib/sparql_parser.mly"
                                                   ( Bic_SAMPLE (d<>None, e) )
# 2441 "lib/sparql_parser.ml"
     : (Sparql_types.aggregate))

let _menhir_action_008 =
  fun d e ->
    (
# 1213 "lib/sparql_parser.mly"
                                                         ( Bic_GROUP_CONCAT (d<>None, e, None) )
# 2449 "lib/sparql_parser.ml"
     : (Sparql_types.aggregate))

let _menhir_action_009 =
  fun d e sep ->
    (
# 1215 "lib/sparql_parser.mly"
  ( Bic_GROUP_CONCAT (d<>None, e, Some sep) )
# 2457 "lib/sparql_parser.ml"
     : (Sparql_types.aggregate))

let _menhir_action_010 =
  fun _endpos__1_ _startpos__1_ ->
    (
# 832 "lib/sparql_parser.mly"
      (
    let loc = mk_loc _startpos__1_ _endpos__1_ in
    { argl_loc = loc ; argl_distinct = false ; argl = [] }
  )
# 2468 "lib/sparql_parser.ml"
     : (Sparql_types.arg_list))

let _menhir_action_011 =
  fun _endpos__4_ _startpos__1_ l o ->
    (
# 837 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos__1_ _endpos__4_ in
    { argl_loc = loc ; argl_distinct = o <> None ; argl = l }
  )
# 2479 "lib/sparql_parser.ml"
     : (Sparql_types.arg_list))

let _menhir_action_012 =
  fun _endpos__6_ _startpos__1_ e v ->
    (
# 722 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos__1_ _endpos__6_ in
    let t =
      { bind_loc = loc ;
        bind_expr = e ;
        bind_var = v ;
      }
    in
    Bind t
  )
# 2496 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_013 =
  fun _endpos_s_ _startpos_s_ s ->
    (
# 815 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_s_ _endpos_s_ in
    { bnode_loc = loc ;
      bnode_label = Some s ;
    }
  )
# 2509 "lib/sparql_parser.ml"
     : (Sparql_types.blank_node))

let _menhir_action_014 =
  fun _endpos__1_ _startpos__1_ ->
    (
# 822 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos__1_ _endpos__1_ in
    { bnode_loc = loc ;
      bnode_label = None ;
    }
  )
# 2522 "lib/sparql_parser.ml"
     : (Sparql_types.blank_node))

let _menhir_action_015 =
  fun _2 ->
    (
# 583 "lib/sparql_parser.mly"
                                          ( _2 )
# 2530 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list list))

let _menhir_action_016 =
  fun _2 ->
    (
# 759 "lib/sparql_parser.mly"
                                               ( _2 )
# 2538 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list list))

let _menhir_action_017 =
  fun _1 _endpos__1_ _startpos__1_ ->
    (
# 1095 "lib/sparql_parser.mly"
          (
    let loc = mk_loc _startpos__1_ _endpos__1_ in
    { rdf_lit_loc = loc ;
      rdf_lit = mk_boolean _1 ;
      rdf_lit_type = None ;
    }
  )
# 2552 "lib/sparql_parser.ml"
     : (Sparql_types.rdf_literal))

let _menhir_action_018 =
  fun _2 ->
    (
# 425 "lib/sparql_parser.mly"
                                            ( _2 )
# 2560 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_019 =
  fun _1 ->
    (
# 1126 "lib/sparql_parser.mly"
            ( Bic_agg _1 )
# 2568 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_020 =
  fun _1 ->
    (
# 1127 "lib/sparql_parser.mly"
                    ( _1 )
# 2576 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_021 =
  fun e ->
    (
# 1128 "lib/sparql_parser.mly"
                             ( Bic_fun ("STR", [e]) )
# 2584 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_022 =
  fun e ->
    (
# 1129 "lib/sparql_parser.mly"
                              ( Bic_fun ("LANG", [e]) )
# 2592 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_023 =
  fun e1 e2 ->
    (
# 1130 "lib/sparql_parser.mly"
                                                          ( Bic_fun ("LANGMATCHES", [e1; e2]) )
# 2600 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_024 =
  fun e ->
    (
# 1131 "lib/sparql_parser.mly"
                                  ( Bic_fun ("DATATYPE", [e]))
# 2608 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_025 =
  fun v ->
    (
# 1132 "lib/sparql_parser.mly"
                        ( Bic_BOUND v )
# 2616 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_026 =
  fun e ->
    (
# 1133 "lib/sparql_parser.mly"
                             ( Bic_fun ("IRI", [e]))
# 2624 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_027 =
  fun e ->
    (
# 1134 "lib/sparql_parser.mly"
                             ( Bic_fun ("URI", [e]))
# 2632 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_028 =
  fun e ->
    (
# 1135 "lib/sparql_parser.mly"
                               ( Bic_fun ("BNODE", [e]) )
# 2640 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_029 =
  fun () ->
    (
# 1136 "lib/sparql_parser.mly"
            ( Bic_fun ("BNODE", []) )
# 2648 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_030 =
  fun () ->
    (
# 1137 "lib/sparql_parser.mly"
           ( Bic_fun ("RAND", []) )
# 2656 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_031 =
  fun e ->
    (
# 1138 "lib/sparql_parser.mly"
                             ( Bic_fun ("ABS", [e]))
# 2664 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_032 =
  fun e ->
    (
# 1139 "lib/sparql_parser.mly"
                              ( Bic_fun ("CEIL", [e]))
# 2672 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_033 =
  fun e ->
    (
# 1140 "lib/sparql_parser.mly"
                               ( Bic_fun ("FLOOR", [e]))
# 2680 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_034 =
  fun e ->
    (
# 1141 "lib/sparql_parser.mly"
                               ( Bic_fun ("ROUND", [e]))
# 2688 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_035 =
  fun e ->
    (
# 1142 "lib/sparql_parser.mly"
                           ( Bic_fun ("CONCAT", e))
# 2696 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_036 =
  fun _1 ->
    (
# 1143 "lib/sparql_parser.mly"
                       ( _1 )
# 2704 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_037 =
  fun e ->
    (
# 1144 "lib/sparql_parser.mly"
                                ( Bic_fun ("STRLEN", [e]))
# 2712 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_038 =
  fun _1 ->
    (
# 1145 "lib/sparql_parser.mly"
                         ( _1 )
# 2720 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_039 =
  fun e ->
    (
# 1146 "lib/sparql_parser.mly"
                               ( Bic_fun ("UCASE", [e]))
# 2728 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_040 =
  fun e ->
    (
# 1147 "lib/sparql_parser.mly"
                               ( Bic_fun ("LCASE", [e]))
# 2736 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_041 =
  fun e ->
    (
# 1148 "lib/sparql_parser.mly"
                                        ( Bic_fun ("ENCODE_FOR_URI", [e]))
# 2744 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_042 =
  fun e1 e2 ->
    (
# 1149 "lib/sparql_parser.mly"
                                                       ( Bic_fun ("CONTAINS", [e1 ; e2]) )
# 2752 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_043 =
  fun e1 e2 ->
    (
# 1150 "lib/sparql_parser.mly"
                                                        ( Bic_fun ("STRSTARTS", [e1 ; e2]) )
# 2760 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_044 =
  fun e1 e2 ->
    (
# 1151 "lib/sparql_parser.mly"
                                                      ( Bic_fun ("STRENDS", [e1 ; e2]) )
# 2768 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_045 =
  fun e1 e2 ->
    (
# 1152 "lib/sparql_parser.mly"
                                                        ( Bic_fun ("STRBEFORE", [e1 ; e2]) )
# 2776 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_046 =
  fun e1 e2 ->
    (
# 1153 "lib/sparql_parser.mly"
                                                       ( Bic_fun ("STRAFTER", [e1 ; e2]) )
# 2784 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_047 =
  fun e ->
    (
# 1154 "lib/sparql_parser.mly"
                              ( Bic_fun ("YEAR", [e]))
# 2792 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_048 =
  fun e ->
    (
# 1155 "lib/sparql_parser.mly"
                               ( Bic_fun ("MONTH", [e]))
# 2800 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_049 =
  fun e ->
    (
# 1156 "lib/sparql_parser.mly"
                             ( Bic_fun ("DAY", [e]))
# 2808 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_050 =
  fun e ->
    (
# 1157 "lib/sparql_parser.mly"
                               ( Bic_fun ("HOURS", [e]))
# 2816 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_051 =
  fun e ->
    (
# 1158 "lib/sparql_parser.mly"
                                 ( Bic_fun ("MINUTES", [e]))
# 2824 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_052 =
  fun e ->
    (
# 1159 "lib/sparql_parser.mly"
                                 ( Bic_fun ("SECONDS", [e]))
# 2832 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_053 =
  fun e ->
    (
# 1160 "lib/sparql_parser.mly"
                                  ( Bic_fun ("TIMEZONE", [e]))
# 2840 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_054 =
  fun e ->
    (
# 1161 "lib/sparql_parser.mly"
                            ( Bic_fun ("TZ", [e]))
# 2848 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_055 =
  fun () ->
    (
# 1162 "lib/sparql_parser.mly"
          ( Bic_fun ("NOW", []) )
# 2856 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_056 =
  fun () ->
    (
# 1163 "lib/sparql_parser.mly"
           ( Bic_fun ("UUID", []) )
# 2864 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_057 =
  fun () ->
    (
# 1164 "lib/sparql_parser.mly"
              ( Bic_fun ("STRUUID", []) )
# 2872 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_058 =
  fun e ->
    (
# 1165 "lib/sparql_parser.mly"
                             ( Bic_fun ("MD5", [e]))
# 2880 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_059 =
  fun e ->
    (
# 1166 "lib/sparql_parser.mly"
                              ( Bic_fun ("SHA1", [e]))
# 2888 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_060 =
  fun e ->
    (
# 1167 "lib/sparql_parser.mly"
                                ( Bic_fun ("SHA256", [e]))
# 2896 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_061 =
  fun e ->
    (
# 1168 "lib/sparql_parser.mly"
                                ( Bic_fun ("SHA384", [e]))
# 2904 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_062 =
  fun e ->
    (
# 1169 "lib/sparql_parser.mly"
                                ( Bic_fun ("SHA512", [e]))
# 2912 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_063 =
  fun l ->
    (
# 1170 "lib/sparql_parser.mly"
                             ( Bic_fun("COALESCE", l) )
# 2920 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_064 =
  fun e1 e2 e3 ->
    (
# 1171 "lib/sparql_parser.mly"
                                                                     ( Bic_fun("IF", [e1; e2; e3]) )
# 2928 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_065 =
  fun e1 e2 ->
    (
# 1172 "lib/sparql_parser.mly"
                                                      ( Bic_fun ("STRLANG", [e1 ; e2]) )
# 2936 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_066 =
  fun e1 e2 ->
    (
# 1173 "lib/sparql_parser.mly"
                                                    ( Bic_fun ("STRDT", [e1 ; e2]) )
# 2944 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_067 =
  fun e1 e2 ->
    (
# 1174 "lib/sparql_parser.mly"
                                                       ( Bic_fun ("SAMETERM", [e1 ; e2]) )
# 2952 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_068 =
  fun e ->
    (
# 1175 "lib/sparql_parser.mly"
                               ( Bic_fun ("ISIRI", [e]))
# 2960 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_069 =
  fun e ->
    (
# 1176 "lib/sparql_parser.mly"
                               ( Bic_fun ("ISURI", [e]))
# 2968 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_070 =
  fun e ->
    (
# 1177 "lib/sparql_parser.mly"
                                 ( Bic_fun ("ISBLANK", [e]))
# 2976 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_071 =
  fun e ->
    (
# 1178 "lib/sparql_parser.mly"
                                   ( Bic_fun ("ISLITERAL", [e]))
# 2984 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_072 =
  fun e ->
    (
# 1179 "lib/sparql_parser.mly"
                                   ( Bic_fun ("ISNUMERIC", [e]))
# 2992 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_073 =
  fun g ->
    (
# 1180 "lib/sparql_parser.mly"
                               ( Bic_EXISTS g )
# 3000 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_074 =
  fun g ->
    (
# 1181 "lib/sparql_parser.mly"
                                   ( Bic_NOTEXISTS g )
# 3008 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_075 =
  fun _2 ->
    (
# 579 "lib/sparql_parser.mly"
                                    ( _2 )
# 3016 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_076 =
  fun _2 ->
    (
# 755 "lib/sparql_parser.mly"
                                         ( _2 )
# 3024 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_077 =
  fun _1 ->
    (
# 428 "lib/sparql_parser.mly"
                        ( ConstrExpr _1 )
# 3032 "lib/sparql_parser.ml"
     : (Sparql_types.having_condition))

let _menhir_action_078 =
  fun _1 ->
    (
# 429 "lib/sparql_parser.mly"
                ( ConstrBuiltInCall _1 )
# 3040 "lib/sparql_parser.ml"
     : (Sparql_types.having_condition))

let _menhir_action_079 =
  fun _1 ->
    (
# 430 "lib/sparql_parser.mly"
                ( ConstrFunctionCall _1 )
# 3048 "lib/sparql_parser.ml"
     : (Sparql_types.having_condition))

let _menhir_action_080 =
  fun _2 ->
    (
# 249 "lib/sparql_parser.mly"
                                         (
   match _2 with None -> [] | Some l -> l
  )
# 3058 "lib/sparql_parser.ml"
     : (Sparql_types.triples_template))

let _menhir_action_081 =
  fun _1 ->
    (
# 255 "lib/sparql_parser.mly"
                       ( [ _1 ] )
# 3066 "lib/sparql_parser.ml"
     : (Sparql_types.triples_template))

let _menhir_action_082 =
  fun _1 ->
    (
# 256 "lib/sparql_parser.mly"
                           ( [ _1 ] )
# 3074 "lib/sparql_parser.ml"
     : (Sparql_types.triples_template))

let _menhir_action_083 =
  fun _1 _3 ->
    (
# 257 "lib/sparql_parser.mly"
                                             ( _1 :: _3 )
# 3082 "lib/sparql_parser.ml"
     : (Sparql_types.triples_template))

let _menhir_action_084 =
  fun _1 ->
    (
# 345 "lib/sparql_parser.mly"
      ( DataBlockValueIri _1 )
# 3090 "lib/sparql_parser.ml"
     : (Sparql_types.data_block_value))

let _menhir_action_085 =
  fun _1 ->
    (
# 346 "lib/sparql_parser.mly"
              ( DataBlockValueRdf _1 )
# 3098 "lib/sparql_parser.ml"
     : (Sparql_types.data_block_value))

let _menhir_action_086 =
  fun _1 ->
    (
# 347 "lib/sparql_parser.mly"
                  ( DataBlockValueNumeric _1 )
# 3106 "lib/sparql_parser.ml"
     : (Sparql_types.data_block_value))

let _menhir_action_087 =
  fun _1 ->
    (
# 348 "lib/sparql_parser.mly"
                  ( DataBlockValueBoolean _1 )
# 3114 "lib/sparql_parser.ml"
     : (Sparql_types.data_block_value))

let _menhir_action_088 =
  fun () ->
    (
# 349 "lib/sparql_parser.mly"
        ( DataBlockValueUndef )
# 3122 "lib/sparql_parser.ml"
     : (Sparql_types.data_block_value))

let _menhir_action_089 =
  fun () ->
    (
# 340 "lib/sparql_parser.mly"
      ( Nil )
# 3130 "lib/sparql_parser.ml"
     : (Sparql_types.data_full_block_value))

let _menhir_action_090 =
  fun l ->
    (
# 341 "lib/sparql_parser.mly"
                                     ( Value l )
# 3138 "lib/sparql_parser.ml"
     : (Sparql_types.data_full_block_value))

let _menhir_action_091 =
  fun _1 ->
    (
# 307 "lib/sparql_parser.mly"
                      ( InLineDataOneVar _1 )
# 3146 "lib/sparql_parser.ml"
     : (Sparql_types.datablock))

let _menhir_action_092 =
  fun _1 ->
    (
# 308 "lib/sparql_parser.mly"
                   ( InLineDataFull _1 )
# 3154 "lib/sparql_parser.ml"
     : (Sparql_types.datablock))

let _menhir_action_093 =
  fun _2 ->
    (
# 275 "lib/sparql_parser.mly"
                       ( DefaultGraphClause _2 )
# 3162 "lib/sparql_parser.ml"
     : (Sparql_types.dataset_clause))

let _menhir_action_094 =
  fun _3 ->
    (
# 276 "lib/sparql_parser.mly"
                             ( NamedGraphClause _3 )
# 3170 "lib/sparql_parser.ml"
     : (Sparql_types.dataset_clause))

let _menhir_action_095 =
  fun q ->
    (
# 1282 "lib/sparql_parser.mly"
                        ( q )
# 3178 "lib/sparql_parser.ml"
     : (Sparql_types.quads))

let _menhir_action_096 =
  fun e ->
    (
# 878 "lib/sparql_parser.mly"
                            ( e )
# 3186 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_097 =
  fun () ->
    (
# 1021 "lib/sparql_parser.mly"
      ( [] )
# 3194 "lib/sparql_parser.ml"
     : (Sparql_types.expression list))

let _menhir_action_098 =
  fun l ->
    (
# 1022 "lib/sparql_parser.mly"
                                                         ( l )
# 3202 "lib/sparql_parser.ml"
     : (Sparql_types.expression list))

let _menhir_action_099 =
  fun _2 ->
    (
# 717 "lib/sparql_parser.mly"
                           ( Filter _2 )
# 3210 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_100 =
  fun _endpos_a_ _startpos_i_ a i ->
    (
# 853 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_i_ _endpos_a_ in
    { func_loc = loc ; func_iri = i ; func_args = a }
  )
# 3221 "lib/sparql_parser.ml"
     : (Sparql_types.function_call))

let _menhir_action_101 =
  fun k p v ->
    (
# 133 "lib/sparql_parser.mly"
  (
    { q_prolog = p ;
      q_kind = k ;
      q_values = v ;
    }
  )
# 3234 "lib/sparql_parser.ml"
     : (Sparql_types.query))

let _menhir_action_102 =
  fun ds m s w ->
    (
# 160 "lib/sparql_parser.mly"
  (
    Select {
      select_select = s ; select_dataset = ds ;
      select_where = w ; select_modifier = m ;
    }
  )
# 3247 "lib/sparql_parser.ml"
     : (Sparql_types.query_kind))

let _menhir_action_103 =
  fun ds m t w ->
    (
# 167 "lib/sparql_parser.mly"
  (
    Construct
      { constr_template = Some t ;
        constr_dataset = ds ;
        constr_where = Constr_ggp w ;
        constr_modifier = m ;
      }
  )
# 3262 "lib/sparql_parser.ml"
     : (Sparql_types.query_kind))

let _menhir_action_104 =
  fun ds l m ->
    (
# 176 "lib/sparql_parser.mly"
  (
    Construct
      { constr_template = None ;
        constr_dataset = ds ;
        constr_where = Constr_template l ;
        constr_modifier = m ;
      }
  )
# 3277 "lib/sparql_parser.ml"
     : (Sparql_types.query_kind))

let _menhir_action_105 =
  fun ds l m w ->
    (
# 185 "lib/sparql_parser.mly"
  (
    Describe {
      desc_sel = l;
      desc_dataset = ds ;
      desc_where = w ;
      desc_modifier = m ;
    }
  )
# 3292 "lib/sparql_parser.ml"
     : (Sparql_types.query_kind))

let _menhir_action_106 =
  fun ds m w ->
    (
# 194 "lib/sparql_parser.mly"
  (
    Describe {
      desc_sel = [] ;
      desc_dataset = ds ;
      desc_where = w ;
      desc_modifier = m ;
    }
  )
# 3307 "lib/sparql_parser.ml"
     : (Sparql_types.query_kind))

let _menhir_action_107 =
  fun ds m w ->
    (
# 204 "lib/sparql_parser.mly"
  (
    Ask {
      ask_dataset = ds ;
      ask_where = w ;
      ask_modifier = m ;
    }
  )
# 3321 "lib/sparql_parser.ml"
     : (Sparql_types.query_kind))

let _menhir_action_108 =
  fun gp t ->
    (
# 479 "lib/sparql_parser.mly"
  ( (gp, t) )
# 3329 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt * Sparql_types.graph_pattern_elt option))

let _menhir_action_109 =
  fun _endpos_g_ _startpos__1_ g vi ->
    (
# 690 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos__1_ _endpos_g_ in
    let t =
      { graphgp_loc = loc ;
        graphgp_name = vi ;
        graphgp_pat = g ;
      }
    in
    GGP t
  )
# 3346 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_110 =
  fun _1 ->
    (
# 569 "lib/sparql_parser.mly"
              ( GraphNodeVT _1 )
# 3354 "lib/sparql_parser.ml"
     : (Sparql_types.object_))

let _menhir_action_111 =
  fun _1 ->
    (
# 570 "lib/sparql_parser.mly"
               ( GraphNodeTriples _1 )
# 3362 "lib/sparql_parser.ml"
     : (Sparql_types.object_))

let _menhir_action_112 =
  fun _1 ->
    (
# 745 "lib/sparql_parser.mly"
              ( GraphNodeVT _1 )
# 3370 "lib/sparql_parser.ml"
     : (Sparql_types.object_))

let _menhir_action_113 =
  fun _1 ->
    (
# 746 "lib/sparql_parser.mly"
                    ( GraphNodeTriples _1 )
# 3378 "lib/sparql_parser.ml"
     : (Sparql_types.object_))

let _menhir_action_114 =
  fun _1 ->
    (
# 666 "lib/sparql_parser.mly"
                               ( _1 )
# 3386 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_115 =
  fun _1 ->
    (
# 667 "lib/sparql_parser.mly"
                         ( _1 )
# 3394 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_116 =
  fun _1 ->
    (
# 668 "lib/sparql_parser.mly"
                      ( _1 )
# 3402 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_117 =
  fun _1 ->
    (
# 669 "lib/sparql_parser.mly"
                      ( _1 )
# 3410 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_118 =
  fun _1 ->
    (
# 670 "lib/sparql_parser.mly"
                        ( _1 )
# 3418 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_119 =
  fun _1 ->
    (
# 671 "lib/sparql_parser.mly"
         ( _1 )
# 3426 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_120 =
  fun _1 ->
    (
# 672 "lib/sparql_parser.mly"
       ( _1 )
# 3434 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_121 =
  fun _1 ->
    (
# 673 "lib/sparql_parser.mly"
              ( _1 )
# 3442 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_122 =
  fun _1 ->
    (
# 657 "lib/sparql_parser.mly"
      ( GraphTermIri _1 )
# 3450 "lib/sparql_parser.ml"
     : (Sparql_types.graph_term))

let _menhir_action_123 =
  fun _1 ->
    (
# 658 "lib/sparql_parser.mly"
              ( GraphTermLit _1 )
# 3458 "lib/sparql_parser.ml"
     : (Sparql_types.graph_term))

let _menhir_action_124 =
  fun _1 ->
    (
# 659 "lib/sparql_parser.mly"
                  ( GraphTermNumeric _1 )
# 3466 "lib/sparql_parser.ml"
     : (Sparql_types.graph_term))

let _menhir_action_125 =
  fun _1 ->
    (
# 660 "lib/sparql_parser.mly"
                  ( GraphTermBoolean _1 )
# 3474 "lib/sparql_parser.ml"
     : (Sparql_types.graph_term))

let _menhir_action_126 =
  fun _1 ->
    (
# 661 "lib/sparql_parser.mly"
             ( GraphTermBlank _1 )
# 3482 "lib/sparql_parser.ml"
     : (Sparql_types.graph_term))

let _menhir_action_127 =
  fun () ->
    (
# 662 "lib/sparql_parser.mly"
      ( GraphTermNil )
# 3490 "lib/sparql_parser.ml"
     : (Sparql_types.graph_term))

let _menhir_action_128 =
  fun l ->
    (
# 367 "lib/sparql_parser.mly"
  ( l )
# 3498 "lib/sparql_parser.ml"
     : (Sparql_types.group_condition list))

let _menhir_action_129 =
  fun _1 ->
    (
# 371 "lib/sparql_parser.mly"
                ( GroupBuiltInCall _1 )
# 3506 "lib/sparql_parser.ml"
     : (Sparql_types.group_condition))

let _menhir_action_130 =
  fun _1 ->
    (
# 372 "lib/sparql_parser.mly"
                ( GroupFunctionCall _1 )
# 3514 "lib/sparql_parser.ml"
     : (Sparql_types.group_condition))

let _menhir_action_131 =
  fun _1 ->
    (
# 373 "lib/sparql_parser.mly"
            ( GroupVar _1 )
# 3522 "lib/sparql_parser.ml"
     : (Sparql_types.group_condition))

let _menhir_action_132 =
  fun _2 ->
    (
# 438 "lib/sparql_parser.mly"
                          ( SubSelect _2 )
# 3530 "lib/sparql_parser.ml"
     : (Sparql_types.group_graph_pattern))

let _menhir_action_133 =
  fun _2 ->
    (
# 439 "lib/sparql_parser.mly"
                                        ( GGPSub _2 )
# 3538 "lib/sparql_parser.ml"
     : (Sparql_types.group_graph_pattern))

let _menhir_action_134 =
  fun _endpos_l_ _startpos_t_ l t ->
    (
# 458 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_t_ _endpos_l_ in
    let l =
      List.fold_left
        (fun acc (g, t) ->
          match t with
            None -> g :: acc
          | Some t -> t :: g :: acc)
        []
        l
    in
    let l = List.rev l in
    let elts = match t with None -> l | Some t -> t :: l in
    { ggp_sub_loc = loc ;
      ggp_sub_elts = elts ;
    }
  )
# 3562 "lib/sparql_parser.ml"
     : (Sparql_types.ggp_sub))

let _menhir_action_135 =
  fun l ->
    (
# 677 "lib/sparql_parser.mly"
                                                        ( Union l )
# 3570 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_136 =
  fun _endpos_v_ _startpos_v_ v ->
    (
# 377 "lib/sparql_parser.mly"
        (
    let loc = mk_loc _startpos_v_ _endpos_v_ in
    { grpvar_loc = loc ; grpvar_expr = None ; grpvar = Some v }
  )
# 3581 "lib/sparql_parser.ml"
     : (Sparql_types.group_var))

let _menhir_action_137 =
  fun _endpos_v_ _startpos_e_ e v ->
    (
# 381 "lib/sparql_parser.mly"
                        (
    let loc = mk_loc _startpos_e_ _endpos_v_ in
    { grpvar_loc = loc ; grpvar_expr = Some e ; grpvar = Some v }
  )
# 3592 "lib/sparql_parser.ml"
     : (Sparql_types.group_var))

let _menhir_action_138 =
  fun _endpos_e_ _startpos_e_ e ->
    (
# 385 "lib/sparql_parser.mly"
               (
    let loc = mk_loc _startpos_e_ _endpos_e_ in
    { grpvar_loc = loc ; grpvar_expr = Some e ; grpvar = None }
  )
# 3603 "lib/sparql_parser.ml"
     : (Sparql_types.group_var))

let _menhir_action_139 =
  fun l ->
    (
# 419 "lib/sparql_parser.mly"
                                           ( l )
# 3611 "lib/sparql_parser.ml"
     : (Sparql_types.having_condition list))

let _menhir_action_140 =
  fun _1 ->
    (
# 422 "lib/sparql_parser.mly"
                              ( _1 )
# 3619 "lib/sparql_parser.ml"
     : (Sparql_types.having_condition))

let _menhir_action_141 =
  fun _2 ->
    (
# 735 "lib/sparql_parser.mly"
                   ( InlineData _2 )
# 3627 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_142 =
  fun _endpos__4_ _startpos_vars_ l vars ->
    (
# 324 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_vars_ _endpos__4_ in
    {
      idf_loc = loc ;
      idf_vars = vars ;
      idf_values = l ;
    }
  )
# 3642 "lib/sparql_parser.ml"
     : (Sparql_types.inline_data_full))

let _menhir_action_143 =
  fun _endpos__4_ _startpos_v_ l v ->
    (
# 313 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_v_ _endpos__4_ in
    { idov_loc = loc ;
      idov_var = v ;
      idov_data = l ;
    }
  )
# 3656 "lib/sparql_parser.ml"
     : (Sparql_types.inline_data_one_var))

let _menhir_action_144 =
  fun q ->
    (
# 1286 "lib/sparql_parser.mly"
                        ( q )
# 3664 "lib/sparql_parser.ml"
     : (Sparql_types.quads))

let _menhir_action_145 =
  fun _1 ->
    (
# 283 "lib/sparql_parser.mly"
          ( Sparql_types.Iriref _1 )
# 3672 "lib/sparql_parser.ml"
     : (Sparql_types.source_selector))

let _menhir_action_146 =
  fun _1 ->
    (
# 284 "lib/sparql_parser.mly"
                ( Sparql_types.PrefixedName _1 )
# 3680 "lib/sparql_parser.ml"
     : (Sparql_types.source_selector))

let _menhir_action_147 =
  fun iri ->
    (
# 845 "lib/sparql_parser.mly"
  (
    EIri iri
  )
# 3690 "lib/sparql_parser.ml"
     : (Sparql_types.expr))

let _menhir_action_148 =
  fun _1 ->
    (
# 848 "lib/sparql_parser.mly"
                ( EFuncall _1 )
# 3698 "lib/sparql_parser.ml"
     : (Sparql_types.expr))

let _menhir_action_149 =
  fun _2 ->
    (
# 404 "lib/sparql_parser.mly"
                            ( int_of_string _2 )
# 3706 "lib/sparql_parser.ml"
     : (int))

let _menhir_action_150 =
  fun _endpos_o_ _startpos_l_ l o ->
    (
# 393 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_l_ _endpos_o_ in
    { limoff_loc = loc ; limoff_limit = Some l ; limoff_offset = o }
  )
# 3717 "lib/sparql_parser.ml"
     : (Sparql_types.limit_offset_clause))

let _menhir_action_151 =
  fun _endpos_l_ _startpos_o_ l o ->
    (
# 398 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_o_ _endpos_l_ in
    { limoff_loc = loc ; limoff_limit = l ; limoff_offset = Some o }
  )
# 3728 "lib/sparql_parser.ml"
     : (Sparql_types.limit_offset_clause))

let _menhir_action_152 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 3736 "lib/sparql_parser.ml"
     : (Sparql_types.data_block_value list))

let _menhir_action_153 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 3744 "lib/sparql_parser.ml"
     : (Sparql_types.data_block_value list))

let _menhir_action_154 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 3752 "lib/sparql_parser.ml"
     : (Sparql_types.data_full_block_value list))

let _menhir_action_155 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 3760 "lib/sparql_parser.ml"
     : (Sparql_types.data_full_block_value list))

let _menhir_action_156 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 3768 "lib/sparql_parser.ml"
     : (Sparql_types.dataset_clause list))

let _menhir_action_157 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 3776 "lib/sparql_parser.ml"
     : (Sparql_types.dataset_clause list))

let _menhir_action_158 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 3784 "lib/sparql_parser.ml"
     : ((Sparql_types.graph_pattern_elt * Sparql_types.graph_pattern_elt option)
  list))

let _menhir_action_159 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 3793 "lib/sparql_parser.ml"
     : ((Sparql_types.graph_pattern_elt * Sparql_types.graph_pattern_elt option)
  list))

let _menhir_action_160 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 3802 "lib/sparql_parser.ml"
     : (Sparql_types.query_prolog))

let _menhir_action_161 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 3810 "lib/sparql_parser.ml"
     : (Sparql_types.query_prolog))

let _menhir_action_162 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 3818 "lib/sparql_parser.ml"
     : ((Sparql_types.quads_not_triples * Sparql_types.triples_template option)
  list))

let _menhir_action_163 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 3827 "lib/sparql_parser.ml"
     : ((Sparql_types.quads_not_triples * Sparql_types.triples_template option)
  list))

let _menhir_action_164 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 3836 "lib/sparql_parser.ml"
     : ((bool * Sparql_types.source_selector * Sparql_types.loc) list))

let _menhir_action_165 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 3844 "lib/sparql_parser.ml"
     : ((bool * Sparql_types.source_selector * Sparql_types.loc) list))

let _menhir_action_166 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 3852 "lib/sparql_parser.ml"
     : (Sparql_types.var list))

let _menhir_action_167 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 3860 "lib/sparql_parser.ml"
     : (Sparql_types.var list))

let _menhir_action_168 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 3868 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list option list))

let _menhir_action_169 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 3876 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list option list))

let _menhir_action_170 =
  fun () ->
    (
# 216 "<standard.mly>"
    ( [] )
# 3884 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list option list))

let _menhir_action_171 =
  fun x xs ->
    (
# 219 "<standard.mly>"
    ( x :: xs )
# 3892 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list option list))

let _menhir_action_172 =
  fun () ->
    (
# 145 "<standard.mly>"
    ( [] )
# 3900 "lib/sparql_parser.ml"
     : (Sparql_types.path_one_in_prop_set list))

let _menhir_action_173 =
  fun x ->
    (
# 148 "<standard.mly>"
    ( x )
# 3908 "lib/sparql_parser.ml"
     : (Sparql_types.path_one_in_prop_set list))

let _menhir_action_174 =
  fun () ->
    (
# 145 "<standard.mly>"
    ( [] )
# 3916 "lib/sparql_parser.ml"
     : (Sparql_types.update_action list))

let _menhir_action_175 =
  fun x ->
    (
# 148 "<standard.mly>"
    ( x )
# 3924 "lib/sparql_parser.ml"
     : (Sparql_types.update_action list))

let _menhir_action_176 =
  fun g ->
    (
# 685 "lib/sparql_parser.mly"
                              ( Minus g )
# 3932 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_177 =
  fun () ->
    (
# 335 "lib/sparql_parser.mly"
      ( [] )
# 3940 "lib/sparql_parser.ml"
     : (Sparql_types.var list))

let _menhir_action_178 =
  fun l ->
    (
# 336 "lib/sparql_parser.mly"
                        ( l )
# 3948 "lib/sparql_parser.ml"
     : (Sparql_types.var list))

let _menhir_action_179 =
  fun x ->
    (
# 228 "<standard.mly>"
    ( [ x ] )
# 3956 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_180 =
  fun x xs ->
    (
# 231 "<standard.mly>"
    ( x :: xs )
# 3964 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_181 =
  fun x ->
    (
# 228 "<standard.mly>"
    ( [ x ] )
# 3972 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_182 =
  fun x xs ->
    (
# 231 "<standard.mly>"
    ( x :: xs )
# 3980 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_183 =
  fun x ->
    (
# 228 "<standard.mly>"
    ( [ x ] )
# 3988 "lib/sparql_parser.ml"
     : (Sparql_types.group_condition list))

let _menhir_action_184 =
  fun x xs ->
    (
# 231 "<standard.mly>"
    ( x :: xs )
# 3996 "lib/sparql_parser.ml"
     : (Sparql_types.group_condition list))

let _menhir_action_185 =
  fun x ->
    (
# 228 "<standard.mly>"
    ( [ x ] )
# 4004 "lib/sparql_parser.ml"
     : (Sparql_types.having_condition list))

let _menhir_action_186 =
  fun x xs ->
    (
# 231 "<standard.mly>"
    ( x :: xs )
# 4012 "lib/sparql_parser.ml"
     : (Sparql_types.having_condition list))

let _menhir_action_187 =
  fun x ->
    (
# 228 "<standard.mly>"
    ( [ x ] )
# 4020 "lib/sparql_parser.ml"
     : (Sparql_types.order_condition list))

let _menhir_action_188 =
  fun x xs ->
    (
# 231 "<standard.mly>"
    ( x :: xs )
# 4028 "lib/sparql_parser.ml"
     : (Sparql_types.order_condition list))

let _menhir_action_189 =
  fun x ->
    (
# 228 "<standard.mly>"
    ( [ x ] )
# 4036 "lib/sparql_parser.ml"
     : (Sparql_types.select_var list))

let _menhir_action_190 =
  fun x xs ->
    (
# 231 "<standard.mly>"
    ( x :: xs )
# 4044 "lib/sparql_parser.ml"
     : (Sparql_types.select_var list))

let _menhir_action_191 =
  fun x ->
    (
# 228 "<standard.mly>"
    ( [ x ] )
# 4052 "lib/sparql_parser.ml"
     : (Sparql_types.var_or_iri list))

let _menhir_action_192 =
  fun x xs ->
    (
# 231 "<standard.mly>"
    ( x :: xs )
# 4060 "lib/sparql_parser.ml"
     : (Sparql_types.var_or_iri list))

let _menhir_action_193 =
  fun _1 _endpos__1_ _startpos__1_ ->
    (
# 1061 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos__1_ _endpos__1_ in
    { rdf_lit_loc = loc ;
      rdf_lit = _1 ;
      rdf_lit_type = None ;
    }
  )
# 4074 "lib/sparql_parser.ml"
     : (Sparql_types.rdf_literal))

let _menhir_action_194 =
  fun _1 ->
    (
# 1071 "lib/sparql_parser.mly"
                           ( _1 )
# 4082 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_195 =
  fun _1 ->
    (
# 1072 "lib/sparql_parser.mly"
                           ( _1 )
# 4090 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_196 =
  fun _1 ->
    (
# 1073 "lib/sparql_parser.mly"
                           ( _1 )
# 4098 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_197 =
  fun _1 ->
    (
# 1089 "lib/sparql_parser.mly"
                   ( mk_integer _1 )
# 4106 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_198 =
  fun _1 ->
    (
# 1090 "lib/sparql_parser.mly"
                   ( mk_decimal _1 )
# 4114 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_199 =
  fun _1 ->
    (
# 1091 "lib/sparql_parser.mly"
                  ( mk_double _1 )
# 4122 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_200 =
  fun _1 ->
    (
# 1083 "lib/sparql_parser.mly"
                   ( mk_integer _1 )
# 4130 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_201 =
  fun _1 ->
    (
# 1084 "lib/sparql_parser.mly"
                   ( mk_decimal _1 )
# 4138 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_202 =
  fun _1 ->
    (
# 1085 "lib/sparql_parser.mly"
                  ( mk_double _1 )
# 4146 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_203 =
  fun _1 ->
    (
# 1077 "lib/sparql_parser.mly"
          ( mk_integer _1 )
# 4154 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_204 =
  fun _1 ->
    (
# 1078 "lib/sparql_parser.mly"
          ( mk_decimal _1 )
# 4162 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_205 =
  fun _1 ->
    (
# 1079 "lib/sparql_parser.mly"
         ( mk_double _1 )
# 4170 "lib/sparql_parser.ml"
     : (Term.literal))

let _menhir_action_206 =
  fun e ->
    (
# 944 "lib/sparql_parser.mly"
                       ( e )
# 4178 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_207 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 945 "lib/sparql_parser.mly"
                                   (
    let loc = mk_loc _startpos_e1_ _endpos_e2_ in
    { expr_loc = loc ;
      expr = EBin (e1, EMult, e2) ;
    }
  )
# 4191 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_208 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 951 "lib/sparql_parser.mly"
                                    (
    let loc = mk_loc _startpos_e1_ _endpos_e2_ in
    { expr_loc = loc ;
      expr = EBin (e1, EDiv, e2) ;
    }
  )
# 4204 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_209 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 957 "lib/sparql_parser.mly"
                                   (
    let loc = mk_loc _startpos_e1_ _endpos_e2_ in
    { expr_loc = loc ;
      expr = EBin (e1, EPlus, e2) ;
    }
  )
# 4217 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_210 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 963 "lib/sparql_parser.mly"
                                    (
    let loc = mk_loc _startpos_e1_ _endpos_e2_ in
    { expr_loc = loc ;
      expr = EBin (e1, EMinus, e2) ;
    }
  )
# 4230 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_211 =
  fun _endpos_lit_ _startpos_e1_ _startpos_lit_ e1 lit ->
    (
# 969 "lib/sparql_parser.mly"
                                             (
    let loc = mk_loc _startpos_e1_ _endpos_lit_ in
    let lit2 =
      let s = lit.Term.lit_value in
      let len = String.length s in
      (* remove starting '+' *)
      { lit with Term.lit_value = String.sub s 1 (len - 1) }
    in
    let e2 =
      let loc = mk_loc _startpos_lit_ _endpos_lit_ in
      let lit2 = { rdf_lit_loc = loc ; rdf_lit = lit2 ; rdf_lit_type = None } in
      { expr_loc = loc ;
        expr = ENumeric lit2 ;
      }
    in
    { expr_loc = loc ;
      expr = EBin (e1, EPlus, e2) ;
    }
  )
# 4256 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_212 =
  fun _endpos_lit_ _startpos_e1_ _startpos_lit_ e1 lit ->
    (
# 988 "lib/sparql_parser.mly"
                                             (
    let loc = mk_loc _startpos_e1_ _endpos_lit_ in
    let lit2 =
      let s = lit.Term.lit_value in
      let len = String.length s in
      (* remove starting '-' *)
      { lit with Term.lit_value = String.sub s 1 (len - 1) }
    in
    let e2 =
      let loc = mk_loc _startpos_lit_ _endpos_lit_ in
      let lit2 = { rdf_lit_loc = loc ; rdf_lit = lit2 ; rdf_lit_type = None } in
      { expr_loc = loc ;
        expr = ENumeric lit2 ;
      }
    in
    { expr_loc = loc ;
      expr = EBin (e1, EMinus, e2) ;
    }
  )
# 4282 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_213 =
  fun _endpos_e_ _startpos__1_ e ->
    (
# 1007 "lib/sparql_parser.mly"
                    (
    { expr_loc = mk_loc _startpos__1_ _endpos_e_ ;
      expr = ENot e ;
    }
  )
# 4294 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_214 =
  fun e ->
    (
# 1012 "lib/sparql_parser.mly"
                    ( e )
# 4302 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_215 =
  fun _endpos_e_ _startpos__1_ e ->
    (
# 1013 "lib/sparql_parser.mly"
                                (
    { expr_loc = mk_loc _startpos__1_ _endpos_e_ ;
      expr = EUMinus e ;
    }
  )
# 4314 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_216 =
  fun _1 ->
    (
# 560 "lib/sparql_parser.mly"
                    ( _1 )
# 4322 "lib/sparql_parser.ml"
     : (Sparql_types.object_))

let _menhir_action_217 =
  fun _1 ->
    (
# 557 "lib/sparql_parser.mly"
                                                     ( _1 )
# 4330 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_218 =
  fun _1 ->
    (
# 738 "lib/sparql_parser.mly"
                                                              ( _1 )
# 4338 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_219 =
  fun _1 ->
    (
# 741 "lib/sparql_parser.mly"
                             ( _1 )
# 4346 "lib/sparql_parser.ml"
     : (Sparql_types.object_))

let _menhir_action_220 =
  fun _2 ->
    (
# 405 "lib/sparql_parser.mly"
                              ( int_of_string _2 )
# 4354 "lib/sparql_parser.ml"
     : (int))

let _menhir_action_221 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4362 "lib/sparql_parser.ml"
     : (unit option))

let _menhir_action_222 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4370 "lib/sparql_parser.ml"
     : (unit option))

let _menhir_action_223 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4378 "lib/sparql_parser.ml"
     : (unit option))

let _menhir_action_224 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4386 "lib/sparql_parser.ml"
     : (unit option))

let _menhir_action_225 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4394 "lib/sparql_parser.ml"
     : (unit option))

let _menhir_action_226 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4402 "lib/sparql_parser.ml"
     : (unit option))

let _menhir_action_227 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4410 "lib/sparql_parser.ml"
     : (unit option))

let _menhir_action_228 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4418 "lib/sparql_parser.ml"
     : (unit option))

let _menhir_action_229 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4426 "lib/sparql_parser.ml"
     : (Sparql_types.triples_template option))

let _menhir_action_230 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4434 "lib/sparql_parser.ml"
     : (Sparql_types.triples_template option))

let _menhir_action_231 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4442 "lib/sparql_parser.ml"
     : (Sparql_types.group_condition list option))

let _menhir_action_232 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4450 "lib/sparql_parser.ml"
     : (Sparql_types.group_condition list option))

let _menhir_action_233 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4458 "lib/sparql_parser.ml"
     : (Sparql_types.having_condition list option))

let _menhir_action_234 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4466 "lib/sparql_parser.ml"
     : (Sparql_types.having_condition list option))

let _menhir_action_235 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4474 "lib/sparql_parser.ml"
     : (Sparql_types.quads option))

let _menhir_action_236 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4482 "lib/sparql_parser.ml"
     : (Sparql_types.quads option))

let _menhir_action_237 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4490 "lib/sparql_parser.ml"
     : (int option))

let _menhir_action_238 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4498 "lib/sparql_parser.ml"
     : (int option))

let _menhir_action_239 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4506 "lib/sparql_parser.ml"
     : (Sparql_types.limit_offset_clause option))

let _menhir_action_240 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4514 "lib/sparql_parser.ml"
     : (Sparql_types.limit_offset_clause option))

let _menhir_action_241 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4522 "lib/sparql_parser.ml"
     : (int option))

let _menhir_action_242 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4530 "lib/sparql_parser.ml"
     : (int option))

let _menhir_action_243 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4538 "lib/sparql_parser.ml"
     : (Sparql_types.order_condition list option))

let _menhir_action_244 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4546 "lib/sparql_parser.ml"
     : (Sparql_types.order_condition list option))

let _menhir_action_245 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4554 "lib/sparql_parser.ml"
     : (Sparql_types.path_mod option))

let _menhir_action_246 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4562 "lib/sparql_parser.ml"
     : (Sparql_types.path_mod option))

let _menhir_action_247 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4570 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list list option))

let _menhir_action_248 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4578 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list list option))

let _menhir_action_249 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4586 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list list option))

let _menhir_action_250 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4594 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list list option))

let _menhir_action_251 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4602 "lib/sparql_parser.ml"
     : (Sparql_types.select_clause_flag option))

let _menhir_action_252 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4610 "lib/sparql_parser.ml"
     : (Sparql_types.select_clause_flag option))

let _menhir_action_253 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4618 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt option))

let _menhir_action_254 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4626 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt option))

let _menhir_action_255 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4634 "lib/sparql_parser.ml"
     : (Sparql_types.triples_same_subject list option))

let _menhir_action_256 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4642 "lib/sparql_parser.ml"
     : (Sparql_types.triples_same_subject list option))

let _menhir_action_257 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4650 "lib/sparql_parser.ml"
     : (Sparql_types.triples_same_subject list option))

let _menhir_action_258 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4658 "lib/sparql_parser.ml"
     : (Sparql_types.triples_same_subject list option))

let _menhir_action_259 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4666 "lib/sparql_parser.ml"
     : (Sparql_types.triples_template option))

let _menhir_action_260 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4674 "lib/sparql_parser.ml"
     : (Sparql_types.triples_template option))

let _menhir_action_261 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4682 "lib/sparql_parser.ml"
     : (Sparql_types.values_clause))

let _menhir_action_262 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4690 "lib/sparql_parser.ml"
     : (Sparql_types.values_clause))

let _menhir_action_263 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4698 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list option))

let _menhir_action_264 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4706 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list option))

let _menhir_action_265 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4714 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list option))

let _menhir_action_266 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4722 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list option))

let _menhir_action_267 =
  fun () ->
    (
# 111 "<standard.mly>"
    ( None )
# 4730 "lib/sparql_parser.ml"
     : (Sparql_types.group_graph_pattern option))

let _menhir_action_268 =
  fun x ->
    (
# 114 "<standard.mly>"
    ( Some x )
# 4738 "lib/sparql_parser.ml"
     : (Sparql_types.group_graph_pattern option))

let _menhir_action_269 =
  fun g ->
    (
# 681 "lib/sparql_parser.mly"
                                 ( Optional g )
# 4746 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_270 =
  fun l ->
    (
# 408 "lib/sparql_parser.mly"
                                            ( l )
# 4754 "lib/sparql_parser.ml"
     : (Sparql_types.order_condition list))

let _menhir_action_271 =
  fun _2 ->
    (
# 412 "lib/sparql_parser.mly"
                            ( OrderAsc _2 )
# 4762 "lib/sparql_parser.ml"
     : (Sparql_types.order_condition))

let _menhir_action_272 =
  fun _2 ->
    (
# 413 "lib/sparql_parser.mly"
                             ( OrderDesc _2 )
# 4770 "lib/sparql_parser.ml"
     : (Sparql_types.order_condition))

let _menhir_action_273 =
  fun _1 ->
    (
# 414 "lib/sparql_parser.mly"
              ( OrderConstr _1 )
# 4778 "lib/sparql_parser.ml"
     : (Sparql_types.order_condition))

let _menhir_action_274 =
  fun _1 ->
    (
# 415 "lib/sparql_parser.mly"
      ( OrderVar _1 )
# 4786 "lib/sparql_parser.ml"
     : (Sparql_types.order_condition))

let _menhir_action_275 =
  fun _1 ->
    (
# 762 "lib/sparql_parser.mly"
                       ( _1 )
# 4794 "lib/sparql_parser.ml"
     : (Sparql_types.path))

let _menhir_action_276 =
  fun _1 ->
    (
# 765 "lib/sparql_parser.mly"
  ( _1 )
# 4802 "lib/sparql_parser.ml"
     : (Sparql_types.path))

let _menhir_action_277 =
  fun _endpos_m_ _startpos_p_ m p ->
    (
# 779 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_p_ _endpos_m_ in
    { pelt_loc = loc ;
      pelt_primary = p ;
      pelt_mod = m ;
    }
  )
# 4816 "lib/sparql_parser.ml"
     : (Sparql_types.path_elt))

let _menhir_action_278 =
  fun _1 ->
    (
# 773 "lib/sparql_parser.mly"
           ( Elt _1 )
# 4824 "lib/sparql_parser.ml"
     : (Sparql_types.path_elt_or_inverse))

let _menhir_action_279 =
  fun _2 ->
    (
# 774 "lib/sparql_parser.mly"
               ( Inv _2 )
# 4832 "lib/sparql_parser.ml"
     : (Sparql_types.path_elt_or_inverse))

let _menhir_action_280 =
  fun () ->
    (
# 808 "lib/sparql_parser.mly"
     ( ModOptional )
# 4840 "lib/sparql_parser.ml"
     : (Sparql_types.path_mod))

let _menhir_action_281 =
  fun () ->
    (
# 809 "lib/sparql_parser.mly"
       ( ModList )
# 4848 "lib/sparql_parser.ml"
     : (Sparql_types.path_mod))

let _menhir_action_282 =
  fun () ->
    (
# 810 "lib/sparql_parser.mly"
       ( ModOneOrMore )
# 4856 "lib/sparql_parser.ml"
     : (Sparql_types.path_mod))

let _menhir_action_283 =
  fun _1 ->
    (
# 796 "lib/sparql_parser.mly"
                           ( [ _1 ] )
# 4864 "lib/sparql_parser.ml"
     : (Sparql_types.path_one_in_prop_set list))

let _menhir_action_284 =
  fun xs ->
    let l = 
# 241 "<standard.mly>"
    ( xs )
# 4872 "lib/sparql_parser.ml"
     in
    (
# 797 "lib/sparql_parser.mly"
                                                        ( l )
# 4877 "lib/sparql_parser.ml"
     : (Sparql_types.path_one_in_prop_set list))

let _menhir_action_285 =
  fun _1 ->
    (
# 801 "lib/sparql_parser.mly"
      ( PathOneInIri _1 )
# 4885 "lib/sparql_parser.ml"
     : (Sparql_types.path_one_in_prop_set))

let _menhir_action_286 =
  fun () ->
    (
# 802 "lib/sparql_parser.mly"
    ( PathOneInA )
# 4893 "lib/sparql_parser.ml"
     : (Sparql_types.path_one_in_prop_set))

let _menhir_action_287 =
  fun _2 ->
    (
# 803 "lib/sparql_parser.mly"
          ( PathOneInNotIri _2 )
# 4901 "lib/sparql_parser.ml"
     : (Sparql_types.path_one_in_prop_set))

let _menhir_action_288 =
  fun () ->
    (
# 804 "lib/sparql_parser.mly"
        ( PathOneInNotA )
# 4909 "lib/sparql_parser.ml"
     : (Sparql_types.path_one_in_prop_set))

let _menhir_action_289 =
  fun _1 ->
    (
# 789 "lib/sparql_parser.mly"
      ( PathIri _1 )
# 4917 "lib/sparql_parser.ml"
     : (Sparql_types.path_primary))

let _menhir_action_290 =
  fun () ->
    (
# 790 "lib/sparql_parser.mly"
    ( PathA )
# 4925 "lib/sparql_parser.ml"
     : (Sparql_types.path_primary))

let _menhir_action_291 =
  fun _2 ->
    (
# 791 "lib/sparql_parser.mly"
                                  ( PathNegPropSet _2 )
# 4933 "lib/sparql_parser.ml"
     : (Sparql_types.path_primary))

let _menhir_action_292 =
  fun _2 ->
    (
# 792 "lib/sparql_parser.mly"
                 ( Path _2 )
# 4941 "lib/sparql_parser.ml"
     : (Sparql_types.path_primary))

let _menhir_action_293 =
  fun _1 ->
    (
# 769 "lib/sparql_parser.mly"
  ( _1 )
# 4949 "lib/sparql_parser.ml"
     : (Sparql_types.path_sequence))

let _menhir_action_294 =
  fun _1 _endpos__1_ _startpos__1_ ->
    (
# 288 "lib/sparql_parser.mly"
           (
    { pname_loc = mk_loc _startpos__1_ _endpos__1_ ;
      pname_ns = _1 ;
      pname_local = None ;
    }
  )
# 4962 "lib/sparql_parser.ml"
     : (Sparql_types.prefixed_name))

let _menhir_action_295 =
  fun _1 ->
    (
# 294 "lib/sparql_parser.mly"
           (
    _1
  )
# 4972 "lib/sparql_parser.ml"
     : (Sparql_types.prefixed_name))

let _menhir_action_296 =
  fun _1 ->
    (
# 1026 "lib/sparql_parser.mly"
                        ( _1 )
# 4980 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_297 =
  fun _endpos_bic_ _startpos_bic_ bic ->
    (
# 1027 "lib/sparql_parser.mly"
                    (
    { expr_loc = mk_loc _startpos_bic_ _endpos_bic_ ;
      expr = EBic bic ;
    }
  )
# 4992 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_298 =
  fun _endpos_lit_ _startpos_lit_ lit ->
    (
# 1032 "lib/sparql_parser.mly"
                  (
    { expr_loc = mk_loc _startpos_lit_ _endpos_lit_ ;
      expr = ELit lit ;
    }
  )
# 5004 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_299 =
  fun _endpos_lit_ _startpos_lit_ lit ->
    (
# 1037 "lib/sparql_parser.mly"
                      (
  { expr_loc = mk_loc _startpos_lit_ _endpos_lit_ ;
      expr = ENumeric lit ;
    }
  )
# 5016 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_300 =
  fun _endpos_lit_ _startpos_lit_ lit ->
    (
# 1042 "lib/sparql_parser.mly"
                      (
    { expr_loc = mk_loc _startpos_lit_ _endpos_lit_ ;
      expr = EBoolean lit ;
    }
  )
# 5028 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_301 =
  fun _endpos_v_ _startpos_v_ v ->
    (
# 1047 "lib/sparql_parser.mly"
        (
    { expr_loc = mk_loc _startpos_v_ _endpos_v_ ;
      expr = EVar v ;
    }
  )
# 5040 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_302 =
  fun _endpos_x_ _startpos_x_ x ->
    (
# 1052 "lib/sparql_parser.mly"
                    (
    { expr_loc = mk_loc _startpos_x_ _endpos_x_ ;
      expr = x ;
    }
  )
# 5052 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_303 =
  fun _1 ->
    (
# 151 "lib/sparql_parser.mly"
                              ( _1 )
# 5060 "lib/sparql_parser.ml"
     : (Sparql_types.query_prolog))

let _menhir_action_304 =
  fun _2 ->
    (
# 154 "lib/sparql_parser.mly"
               ( BaseDecl _2 )
# 5068 "lib/sparql_parser.ml"
     : (Sparql_types.query_prolog_decl))

let _menhir_action_305 =
  fun ir name ->
    (
# 155 "lib/sparql_parser.mly"
                                  ( PrefixDecl (name, ir) )
# 5076 "lib/sparql_parser.ml"
     : (Sparql_types.query_prolog_decl))

let _menhir_action_306 =
  fun l ->
    (
# 587 "lib/sparql_parser.mly"
                                    (
    match l with None -> [] | Some l -> l
  )
# 5086 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list list))

let _menhir_action_307 =
  fun l v ->
    (
# 594 "lib/sparql_parser.mly"
  (
    let l = List.fold_left
      (fun acc -> function
        | None -> acc
        | Some x -> x :: acc
       )
       []
       l
     in
     let l = List.rev l in
     v :: l
  )
# 5105 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list list))

let _menhir_action_308 =
  fun l ->
    (
# 518 "lib/sparql_parser.mly"
  ( match l with None -> [] | Some l -> l )
# 5113 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list list))

let _menhir_action_309 =
  fun _endpos_more_ _startpos_v_ more olp v ->
    (
# 523 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_v_ _endpos_more_ in
    let more = List.fold_left
      (fun acc -> function
         | None -> acc
         | Some x -> x :: acc
      )
      []
      more
    in
    {
      propol_loc = loc ;
      propol_verb = v ;
      propol_objects = olp ;
    } :: (List.rev more)
  )
# 5136 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list list))

let _menhir_action_310 =
  fun _2 ->
    (
# 1295 "lib/sparql_parser.mly"
                               ( _2 )
# 5144 "lib/sparql_parser.ml"
     : (Sparql_types.quads))

let _menhir_action_311 =
  fun _2 ->
    (
# 1294 "lib/sparql_parser.mly"
                                  ( _2 )
# 5152 "lib/sparql_parser.ml"
     : (Sparql_types.quads))

let _menhir_action_312 =
  fun _endpos_l_ _startpos_t_ l t ->
    (
# 1299 "lib/sparql_parser.mly"
  (
   { quads_loc = mk_loc _startpos_t_ _endpos_l_ ;
     quads_triples = t ;
     quads_list = l ;
   }
 )
# 5165 "lib/sparql_parser.ml"
     : (Sparql_types.quads))

let _menhir_action_313 =
  fun q t ->
    (
# 1309 "lib/sparql_parser.mly"
  ( q, t )
# 5173 "lib/sparql_parser.ml"
     : (Sparql_types.quads_not_triples * Sparql_types.triples_template option))

let _menhir_action_314 =
  fun _endpos__5_ _startpos__1_ t v ->
    (
# 1314 "lib/sparql_parser.mly"
  (
    { quadsnt_loc = mk_loc _startpos__1_ _endpos__5_;
      quadsnt_graph = v ;
      quadsnt_triples = t ;
    }
  )
# 5186 "lib/sparql_parser.ml"
     : (Sparql_types.quads_not_triples))

let _menhir_action_315 =
  fun q ->
    (
# 128 "lib/sparql_parser.mly"
                  ( q )
# 5194 "lib/sparql_parser.ml"
     : (Sparql_types.query))

let _menhir_action_316 =
  fun q ->
    (
# 129 "lib/sparql_parser.mly"
                     ( q )
# 5202 "lib/sparql_parser.ml"
     : (Sparql_types.query))

let _menhir_action_317 =
  fun _endpos_r_ _startpos_r_ r ->
    (
# 1109 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_r_ _endpos_r_ in
    let (s, lang, typ) = r in
    { rdf_lit_loc = loc ;
      rdf_lit = mk_lit ?lang s ;
      rdf_lit_type = typ ;
    }
  )
# 5217 "lib/sparql_parser.ml"
     : (Sparql_types.rdf_literal))

let _menhir_action_318 =
  fun s ->
    (
# 1120 "lib/sparql_parser.mly"
           ( (s, None, None) )
# 5225 "lib/sparql_parser.ml"
     : (string * string option * Sparql_types.source_selector option))

let _menhir_action_319 =
  fun iri s ->
    (
# 1121 "lib/sparql_parser.mly"
                          ( (s, None, Some iri) )
# 5233 "lib/sparql_parser.ml"
     : (string * string option * Sparql_types.source_selector option))

let _menhir_action_320 =
  fun s t ->
    (
# 1122 "lib/sparql_parser.mly"
                     ( (s, Some t, None) )
# 5241 "lib/sparql_parser.ml"
     : (string * string option * Sparql_types.source_selector option))

let _menhir_action_321 =
  fun e1 e2 ->
    (
# 1186 "lib/sparql_parser.mly"
  ( Bic_fun("REGEX", [e1 ; e2]) )
# 5249 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_322 =
  fun e1 e2 e3 ->
    (
# 1188 "lib/sparql_parser.mly"
  ( Bic_fun ("REGEX", [e1 ; e2 ; e3]) )
# 5257 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_323 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 899 "lib/sparql_parser.mly"
                            (
    { expr_loc = mk_loc _startpos_e1_ _endpos_e2_ ;
      expr = EBin (e1, EEqual, e2) ;
    }
  )
# 5269 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_324 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 904 "lib/sparql_parser.mly"
                               (
    { expr_loc = mk_loc _startpos_e1_ _endpos_e2_ ;
      expr = EBin (e1, ENotEqual, e2) ;
    }
  )
# 5281 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_325 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 909 "lib/sparql_parser.mly"
                         (
    { expr_loc = mk_loc _startpos_e1_ _endpos_e2_ ;
      expr = EBin (e1, ELt, e2) ;
    }
  )
# 5293 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_326 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 914 "lib/sparql_parser.mly"
                         (
    { expr_loc = mk_loc _startpos_e1_ _endpos_e2_ ;
      expr = EBin (e1, EGt, e2) ;
    }
  )
# 5305 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_327 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 919 "lib/sparql_parser.mly"
                          (
    { expr_loc = mk_loc _startpos_e1_ _endpos_e2_ ;
      expr = EBin (e1, ELte, e2) ;
    }
  )
# 5317 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_328 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 924 "lib/sparql_parser.mly"
                          (
    { expr_loc = mk_loc _startpos_e1_ _endpos_e2_ ;
      expr = EBin (e1, EGte, e2) ;
    }
  )
# 5329 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_329 =
  fun _endpos_l_ _startpos_e_ e l ->
    (
# 929 "lib/sparql_parser.mly"
                                (
    { expr_loc = mk_loc _startpos_e_ _endpos_l_ ;
      expr = EIn (e, l) ;
    }
  )
# 5341 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_330 =
  fun _endpos_l_ _startpos_e_ e l ->
    (
# 934 "lib/sparql_parser.mly"
                                    (
    { expr_loc = mk_loc _startpos_e_ _endpos_l_ ;
      expr = ENotIn (e, l) ;
    }
  )
# 5353 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_331 =
  fun _1 ->
    (
# 939 "lib/sparql_parser.mly"
         ( _1 )
# 5361 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_332 =
  fun f v ->
    (
# 215 "lib/sparql_parser.mly"
   (
    check_var_uniqueness v ;
    { sel_flag = f ;
      sel_vars = v ;
    }
  )
# 5374 "lib/sparql_parser.ml"
     : (Sparql_types.select_clause))

let _menhir_action_333 =
  fun () ->
    (
# 224 "lib/sparql_parser.mly"
           ( Distinct )
# 5382 "lib/sparql_parser.ml"
     : (Sparql_types.select_clause_flag))

let _menhir_action_334 =
  fun () ->
    (
# 225 "lib/sparql_parser.mly"
          ( Reduced )
# 5390 "lib/sparql_parser.ml"
     : (Sparql_types.select_clause_flag))

let _menhir_action_335 =
  fun _1 _endpos__1_ _startpos__1_ ->
    (
# 234 "lib/sparql_parser.mly"
      (
    { sel_var_loc = mk_loc _startpos__1_ _endpos__1_ ;
      sel_var_expr = None ;
      sel_var = _1 ;
    }
  )
# 5403 "lib/sparql_parser.ml"
     : (Sparql_types.select_var))

let _menhir_action_336 =
  fun _endpos_v_ _startpos_e_ e v ->
    (
# 240 "lib/sparql_parser.mly"
                                  (
    { sel_var_loc = mk_loc _startpos_e_ _endpos_v_ ;
      sel_var_expr = Some e ;
      sel_var = v ;
    }
  )
# 5416 "lib/sparql_parser.ml"
     : (Sparql_types.select_var))

let _menhir_action_337 =
  fun () ->
    (
# 229 "lib/sparql_parser.mly"
       ( SelectAll )
# 5424 "lib/sparql_parser.ml"
     : (Sparql_types.select_vars))

let _menhir_action_338 =
  fun _1 ->
    (
# 230 "lib/sparql_parser.mly"
                            ( SelectVars _1 )
# 5432 "lib/sparql_parser.ml"
     : (Sparql_types.select_vars))

let _menhir_action_339 =
  fun x ->
    (
# 250 "<standard.mly>"
    ( [ x ] )
# 5440 "lib/sparql_parser.ml"
     : (Sparql_types.expression list))

let _menhir_action_340 =
  fun x xs ->
    (
# 253 "<standard.mly>"
    ( x :: xs )
# 5448 "lib/sparql_parser.ml"
     : (Sparql_types.expression list))

let _menhir_action_341 =
  fun x ->
    (
# 250 "<standard.mly>"
    ( [ x ] )
# 5456 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_342 =
  fun x xs ->
    (
# 253 "<standard.mly>"
    ( x :: xs )
# 5464 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_343 =
  fun x ->
    (
# 250 "<standard.mly>"
    ( [ x ] )
# 5472 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_344 =
  fun x xs ->
    (
# 253 "<standard.mly>"
    ( x :: xs )
# 5480 "lib/sparql_parser.ml"
     : (Sparql_types.object_ list))

let _menhir_action_345 =
  fun x ->
    (
# 250 "<standard.mly>"
    ( [ x ] )
# 5488 "lib/sparql_parser.ml"
     : (Sparql_types.path_one_in_prop_set list))

let _menhir_action_346 =
  fun x xs ->
    (
# 253 "<standard.mly>"
    ( x :: xs )
# 5496 "lib/sparql_parser.ml"
     : (Sparql_types.path_one_in_prop_set list))

let _menhir_action_347 =
  fun x ->
    (
# 250 "<standard.mly>"
    ( [ x ] )
# 5504 "lib/sparql_parser.ml"
     : (Sparql_types.path))

let _menhir_action_348 =
  fun x xs ->
    (
# 253 "<standard.mly>"
    ( x :: xs )
# 5512 "lib/sparql_parser.ml"
     : (Sparql_types.path))

let _menhir_action_349 =
  fun x ->
    (
# 250 "<standard.mly>"
    ( [ x ] )
# 5520 "lib/sparql_parser.ml"
     : (Sparql_types.update_action list))

let _menhir_action_350 =
  fun x xs ->
    (
# 253 "<standard.mly>"
    ( x :: xs )
# 5528 "lib/sparql_parser.ml"
     : (Sparql_types.update_action list))

let _menhir_action_351 =
  fun x ->
    (
# 250 "<standard.mly>"
    ( [ x ] )
# 5536 "lib/sparql_parser.ml"
     : (Sparql_types.path_sequence))

let _menhir_action_352 =
  fun x xs ->
    (
# 253 "<standard.mly>"
    ( x :: xs )
# 5544 "lib/sparql_parser.ml"
     : (Sparql_types.path_sequence))

let _menhir_action_353 =
  fun x ->
    (
# 250 "<standard.mly>"
    ( [ x ] )
# 5552 "lib/sparql_parser.ml"
     : (Sparql_types.group_graph_pattern list))

let _menhir_action_354 =
  fun x xs ->
    (
# 253 "<standard.mly>"
    ( x :: xs )
# 5560 "lib/sparql_parser.ml"
     : (Sparql_types.group_graph_pattern list))

let _menhir_action_355 =
  fun _endpos_g_ _startpos__1_ g silent vi ->
    (
# 704 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos__1_ _endpos_g_ in
    let t =
      { servgp_loc = loc ;
        servgp_silent = silent <> None ;
        servgp_name = vi ;
        servgp_pat = g ;
      }
    in
    Service t
  )
# 5578 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_356 =
  fun _endpos_lo_ _startpos_g_ g h lo o ->
    (
# 354 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_g_ _endpos_lo_ in
    { solmod_loc = loc ;
      solmod_group = (match g with None -> [] | Some l -> l) ;
      solmod_having = (match h with None -> [] | Some l -> l) ;
      solmod_order = o ;
      solmod_limoff = lo ;
    }
  )
# 5594 "lib/sparql_parser.ml"
     : (Sparql_types.solution_modifier))

let _menhir_action_357 =
  fun _1 ->
    (
# 279 "lib/sparql_parser.mly"
                     ( _1 )
# 5602 "lib/sparql_parser.ml"
     : (Sparql_types.source_selector))

let _menhir_action_358 =
  fun e1 e2 e3 ->
    (
# 1200 "lib/sparql_parser.mly"
  ( Bic_fun("REPLACE", [e1 ; e2 ; e3]) )
# 5610 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_359 =
  fun e1 e2 e3 e4 ->
    (
# 1202 "lib/sparql_parser.mly"
  ( Bic_fun ("REPLACE", [e1 ;e2 ; e3 ; e4]) )
# 5618 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_360 =
  fun _1 ->
    (
# 1104 "lib/sparql_parser.mly"
                       ( _1 )
# 5626 "lib/sparql_parser.ml"
     : (string))

let _menhir_action_361 =
  fun _endpos_v_ _startpos_sel_ sel sol v w ->
    (
# 444 "lib/sparql_parser.mly"
  (
   let loc = mk_loc _startpos_sel_ _endpos_v_ in
   {
    subsel_loc = loc ;
    subsel_select = sel ;
    subsel_where = w ;
    subsel_modifier = sol ;
    subsel_values = v ;
   }
  )
# 5643 "lib/sparql_parser.ml"
     : (Sparql_types.sub_select))

let _menhir_action_362 =
  fun e1 e2 ->
    (
# 1193 "lib/sparql_parser.mly"
  ( Bic_fun("SUBSTR", [e1 ; e2]) )
# 5651 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_363 =
  fun e1 e2 e3 ->
    (
# 1195 "lib/sparql_parser.mly"
  ( Bic_fun ("SUBSTR", [e1 ; e2 ; e3]) )
# 5659 "lib/sparql_parser.ml"
     : (Sparql_types.built_in_call))

let _menhir_action_364 =
  fun _endpos_l_ _startpos_l_ l ->
    (
# 484 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_l_ _endpos_l_ in
    Triples
      { triples_loc = loc ;
        triples = l ;
      }
  )
# 5673 "lib/sparql_parser.ml"
     : (Sparql_types.graph_pattern_elt))

let _menhir_action_365 =
  fun rest s ->
    (
# 494 "lib/sparql_parser.mly"
  (
    match rest with
      None -> [s]
    | Some l -> s :: l
  )
# 5685 "lib/sparql_parser.ml"
     : (Sparql_types.triples_same_subject list))

let _menhir_action_366 =
  fun t ->
    (
# 503 "lib/sparql_parser.mly"
  ( match t with None -> [] | Some l -> l )
# 5693 "lib/sparql_parser.ml"
     : (Sparql_types.triples_same_subject list))

let _menhir_action_367 =
  fun _1 ->
    (
# 574 "lib/sparql_parser.mly"
             ( TNodeCollection _1 )
# 5701 "lib/sparql_parser.ml"
     : (Sparql_types.triples_node))

let _menhir_action_368 =
  fun _1 ->
    (
# 575 "lib/sparql_parser.mly"
                           ( TNodeBlank _1 )
# 5709 "lib/sparql_parser.ml"
     : (Sparql_types.triples_node))

let _menhir_action_369 =
  fun _1 ->
    (
# 750 "lib/sparql_parser.mly"
                  ( TNodeCollection _1 )
# 5717 "lib/sparql_parser.ml"
     : (Sparql_types.triples_node))

let _menhir_action_370 =
  fun _1 ->
    (
# 751 "lib/sparql_parser.mly"
                                ( TNodeBlank _1 )
# 5725 "lib/sparql_parser.ml"
     : (Sparql_types.triples_node))

let _menhir_action_371 =
  fun l v ->
    (
# 265 "lib/sparql_parser.mly"
  (
    TriplesVar (v, l)
  )
# 5735 "lib/sparql_parser.ml"
     : (Sparql_types.triples_same_subject))

let _menhir_action_372 =
  fun l t ->
    (
# 269 "lib/sparql_parser.mly"
  (
    TriplesNode (t, l)
  )
# 5745 "lib/sparql_parser.ml"
     : (Sparql_types.triples_same_subject))

let _menhir_action_373 =
  fun p v ->
    (
# 508 "lib/sparql_parser.mly"
  (
    TriplesVar (v, p)
  )
# 5755 "lib/sparql_parser.ml"
     : (Sparql_types.triples_same_subject))

let _menhir_action_374 =
  fun p t ->
    (
# 512 "lib/sparql_parser.mly"
  (
    TriplesNode (t, p)
  )
# 5765 "lib/sparql_parser.ml"
     : (Sparql_types.triples_same_subject))

let _menhir_action_375 =
  fun _1 ->
    (
# 260 "lib/sparql_parser.mly"
                                    ( _1 )
# 5773 "lib/sparql_parser.ml"
     : (Sparql_types.triples_template))

let _menhir_action_376 =
  fun q ->
    (
# 1219 "lib/sparql_parser.mly"
                          ( Update_insert_data q )
# 5781 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_377 =
  fun q ->
    (
# 1220 "lib/sparql_parser.mly"
                          ( Update_delete_data q )
# 5789 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_378 =
  fun q ->
    (
# 1221 "lib/sparql_parser.mly"
                              ( Update_delete_where q )
# 5797 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_379 =
  fun _endpos_ggp_ _startpos__1_ d ggp i ins using ->
    (
# 1224 "lib/sparql_parser.mly"
   (
     let u = {
      umod_loc = mk_loc _startpos__1_ _endpos_ggp_ ;
      umod_iri = Some i ;
      umod_delete = Some d ; umod_insert = ins ;
      umod_using = using ;
      umod_where = ggp ;
     }
     in
     Update_modify u
   )
# 5815 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_380 =
  fun _endpos_ggp_ _startpos__1_ ggp i ins using ->
    (
# 1237 "lib/sparql_parser.mly"
   (
     let u = {
      umod_loc = mk_loc _startpos__1_ _endpos_ggp_ ;
      umod_iri = Some i ;
      umod_delete = None ; umod_insert = Some ins ;
      umod_using = using ;
      umod_where = ggp ;
     }
     in
     Update_modify u
   )
# 5833 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_381 =
  fun _endpos_ggp_ _startpos_d_ d ggp ins using ->
    (
# 1250 "lib/sparql_parser.mly"
   (
     let u = {
      umod_loc = mk_loc _startpos_d_ _endpos_ggp_ ;
      umod_iri = None ;
      umod_delete = Some d ; umod_insert = ins ;
      umod_using = using ;
      umod_where = ggp ;
     }
     in
     Update_modify u
   )
# 5851 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_382 =
  fun _endpos_ggp_ _startpos_ins_ ggp ins using ->
    (
# 1263 "lib/sparql_parser.mly"
   (
     let u = {
      umod_loc = mk_loc _startpos_ins_ _endpos_ggp_ ;
      umod_iri = None ;
      umod_delete = None ; umod_insert = Some ins ;
      umod_using = using ;
      umod_where = ggp ;
     }
     in
     Update_modify u
   )
# 5869 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_383 =
  fun _startpos__1_ ->
    (
# 1275 "lib/sparql_parser.mly"
                                                   (
  let e = Failure "Update action not implemented yet" in
  raise (Sedlex.Parse_error (e, _startpos__1_))
  )
# 5880 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_384 =
  fun _startpos__1_ ->
    (
# 1275 "lib/sparql_parser.mly"
                                                   (
  let e = Failure "Update action not implemented yet" in
  raise (Sedlex.Parse_error (e, _startpos__1_))
  )
# 5891 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_385 =
  fun _startpos__1_ ->
    (
# 1275 "lib/sparql_parser.mly"
                                                   (
  let e = Failure "Update action not implemented yet" in
  raise (Sedlex.Parse_error (e, _startpos__1_))
  )
# 5902 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_386 =
  fun _startpos__1_ ->
    (
# 1275 "lib/sparql_parser.mly"
                                                   (
  let e = Failure "Update action not implemented yet" in
  raise (Sedlex.Parse_error (e, _startpos__1_))
  )
# 5913 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_387 =
  fun _startpos__1_ ->
    (
# 1275 "lib/sparql_parser.mly"
                                                   (
  let e = Failure "Update action not implemented yet" in
  raise (Sedlex.Parse_error (e, _startpos__1_))
  )
# 5924 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_388 =
  fun _startpos__1_ ->
    (
# 1275 "lib/sparql_parser.mly"
                                                   (
  let e = Failure "Update action not implemented yet" in
  raise (Sedlex.Parse_error (e, _startpos__1_))
  )
# 5935 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_389 =
  fun _startpos__1_ ->
    (
# 1275 "lib/sparql_parser.mly"
                                                   (
  let e = Failure "Update action not implemented yet" in
  raise (Sedlex.Parse_error (e, _startpos__1_))
  )
# 5946 "lib/sparql_parser.ml"
     : (Sparql_types.update_action))

let _menhir_action_390 =
  fun p xs ->
    let k = 
# 241 "<standard.mly>"
    ( xs )
# 5954 "lib/sparql_parser.ml"
     in
    (
# 143 "lib/sparql_parser.mly"
  (
    { q_prolog = p ;
      q_kind = Update k ;
      q_values = None
    }
  )
# 5964 "lib/sparql_parser.ml"
     : (Sparql_types.query))

let _menhir_action_391 =
  fun _endpos_i_ _startpos__1_ i ->
    (
# 1290 "lib/sparql_parser.mly"
              ( (false, i, mk_loc _startpos__1_ _endpos_i_) )
# 5972 "lib/sparql_parser.ml"
     : (bool * Sparql_types.source_selector * Sparql_types.loc))

let _menhir_action_392 =
  fun _endpos_i_ _startpos__1_ i ->
    (
# 1291 "lib/sparql_parser.mly"
                    ( (true, i, mk_loc _startpos__1_ _endpos_i_) )
# 5980 "lib/sparql_parser.ml"
     : (bool * Sparql_types.source_selector * Sparql_types.loc))

let _menhir_action_393 =
  fun e ->
    (
# 882 "lib/sparql_parser.mly"
                            ( e )
# 5988 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_394 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 885 "lib/sparql_parser.mly"
  (
    { expr_loc = mk_loc _startpos_e1_ _endpos_e2_ ;
      expr = EBin (e1, EAnd, e2) ;
    }
  )
# 6000 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_395 =
  fun _endpos_e2_ _startpos_e1_ e1 e2 ->
    (
# 890 "lib/sparql_parser.mly"
                                             (
    let loc = mk_loc _startpos_e1_ _endpos_e2_ in
    { expr_loc = loc ; expr = EBin (e1, EOr, e2) }
  )
# 6011 "lib/sparql_parser.ml"
     : (Sparql_types.expression))

let _menhir_action_396 =
  fun _1 ->
    (
# 299 "lib/sparql_parser.mly"
                                      ( _1 )
# 6019 "lib/sparql_parser.ml"
     : (Sparql_types.values_clause))

let _menhir_action_397 =
  fun d ->
    (
# 303 "lib/sparql_parser.mly"
                     ( d )
# 6027 "lib/sparql_parser.ml"
     : (Sparql_types.datablock))

let _menhir_action_398 =
  fun _endpos_s_ _startpos_s_ s ->
    (
# 645 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_s_ _endpos_s_ in
    { var_loc = loc ; var_name = s }
  )
# 6038 "lib/sparql_parser.ml"
     : (Sparql_types.var))

let _menhir_action_399 =
  fun _endpos_s_ _startpos_s_ s ->
    (
# 650 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_s_ _endpos_s_ in
    { var_loc = loc ; var_name = s }
  )
# 6049 "lib/sparql_parser.ml"
     : (Sparql_types.var))

let _menhir_action_400 =
  fun _1 ->
    (
# 634 "lib/sparql_parser.mly"
      ( VIVar _1 )
# 6057 "lib/sparql_parser.ml"
     : (Sparql_types.var_or_iri))

let _menhir_action_401 =
  fun _1 ->
    (
# 635 "lib/sparql_parser.mly"
      ( VIIri _1 )
# 6065 "lib/sparql_parser.ml"
     : (Sparql_types.var_or_iri))

let _menhir_action_402 =
  fun _1 ->
    (
# 639 "lib/sparql_parser.mly"
      ( Var _1 )
# 6073 "lib/sparql_parser.ml"
     : (Sparql_types.var_or_term))

let _menhir_action_403 =
  fun _1 ->
    (
# 640 "lib/sparql_parser.mly"
             ( GraphTerm _1 )
# 6081 "lib/sparql_parser.ml"
     : (Sparql_types.var_or_term))

let _menhir_action_404 =
  fun _1 ->
    (
# 625 "lib/sparql_parser.mly"
             (
  match _1 with
    VIVar v -> VerbVar v
  | VIIri iri -> VerbIri iri
  )
# 6093 "lib/sparql_parser.ml"
     : (Sparql_types.verb))

let _menhir_action_405 =
  fun () ->
    (
# 630 "lib/sparql_parser.mly"
    ( VerbA )
# 6101 "lib/sparql_parser.ml"
     : (Sparql_types.verb))

let _menhir_action_406 =
  fun _endpos_l_ _startpos_v_ l v ->
    (
# 615 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_v_ _endpos_l_ in
    { propol_loc = loc ;
      propol_verb = v ;
      propol_objects = l
    }
  )
# 6115 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list))

let _menhir_action_407 =
  fun _2 ->
    (
# 610 "lib/sparql_parser.mly"
  ( _2 )
# 6123 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list option))

let _menhir_action_408 =
  fun _1 ->
    (
# 564 "lib/sparql_parser.mly"
       ( VerbPath _1 )
# 6131 "lib/sparql_parser.ml"
     : (Sparql_types.verb))

let _menhir_action_409 =
  fun _1 ->
    (
# 565 "lib/sparql_parser.mly"
      ( VerbVar _1 )
# 6139 "lib/sparql_parser.ml"
     : (Sparql_types.verb))

let _menhir_action_410 =
  fun _endpos_l_ _startpos_v_ l v ->
    (
# 548 "lib/sparql_parser.mly"
  (
    let loc = mk_loc _startpos_v_ _endpos_l_ in
    { propol_loc = loc ;
      propol_verb = v ;
      propol_objects = l
    }
  )
# 6153 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list))

let _menhir_action_411 =
  fun _2 ->
    (
# 543 "lib/sparql_parser.mly"
  ( _2 )
# 6161 "lib/sparql_parser.ml"
     : (Sparql_types.prop_object_list option))

let _menhir_action_412 =
  fun _2 ->
    (
# 434 "lib/sparql_parser.mly"
                                    ( _2 )
# 6169 "lib/sparql_parser.ml"
     : (Sparql_types.group_graph_pattern))

let _menhir_print_token : token -> string =
  fun _tok ->
    match _tok with
    | A ->
        "A"
    | ABS ->
        "ABS"
    | ADD ->
        "ADD"
    | AMPAMP ->
        "AMPAMP"
    | ANON ->
        "ANON"
    | AS ->
        "AS"
    | ASC ->
        "ASC"
    | ASK ->
        "ASK"
    | AVG ->
        "AVG"
    | BANG ->
        "BANG"
    | BASE ->
        "BASE"
    | BIND ->
        "BIND"
    | BNODE ->
        "BNODE"
    | BOUND ->
        "BOUND"
    | BY ->
        "BY"
    | Blank_node_label _ ->
        "Blank_node_label"
    | Boolean _ ->
        "Boolean"
    | CEIL ->
        "CEIL"
    | CLEAR ->
        "CLEAR"
    | COALESCE ->
        "COALESCE"
    | COMMA ->
        "COMMA"
    | CONCAT ->
        "CONCAT"
    | CONSTRUCT ->
        "CONSTRUCT"
    | CONTAINS ->
        "CONTAINS"
    | COPY ->
        "COPY"
    | COUNT ->
        "COUNT"
    | CREATE ->
        "CREATE"
    | DATA ->
        "DATA"
    | DATATYPE ->
        "DATATYPE"
    | DAY ->
        "DAY"
    | DELETE ->
        "DELETE"
    | DESC ->
        "DESC"
    | DESCRIBE ->
        "DESCRIBE"
    | DISTINCT ->
        "DISTINCT"
    | DOT ->
        "DOT"
    | DROP ->
        "DROP"
    | Decimal _ ->
        "Decimal"
    | Decimal_negative _ ->
        "Decimal_negative"
    | Decimal_positive _ ->
        "Decimal_positive"
    | Double _ ->
        "Double"
    | Double_negative _ ->
        "Double_negative"
    | Double_positive _ ->
        "Double_positive"
    | ENCODE_FOR_URI ->
        "ENCODE_FOR_URI"
    | EOF ->
        "EOF"
    | EQUAL ->
        "EQUAL"
    | EXISTS ->
        "EXISTS"
    | FILTER ->
        "FILTER"
    | FLOOR ->
        "FLOOR"
    | FROM ->
        "FROM"
    | GRAPH ->
        "GRAPH"
    | GROUP ->
        "GROUP"
    | GROUP_CONCAT ->
        "GROUP_CONCAT"
    | GT ->
        "GT"
    | GTE ->
        "GTE"
    | HAT ->
        "HAT"
    | HATHAT ->
        "HATHAT"
    | HAVING ->
        "HAVING"
    | HOURS ->
        "HOURS"
    | IF ->
        "IF"
    | IN ->
        "IN"
    | INSERT ->
        "INSERT"
    | IRI ->
        "IRI"
    | ISBLANK ->
        "ISBLANK"
    | ISIRI ->
        "ISIRI"
    | ISLITERAL ->
        "ISLITERAL"
    | ISNUMERIC ->
        "ISNUMERIC"
    | ISURI ->
        "ISURI"
    | Integer _ ->
        "Integer"
    | Integer_negative _ ->
        "Integer_negative"
    | Integer_positive _ ->
        "Integer_positive"
    | Iriref_ _ ->
        "Iriref_"
    | LANG ->
        "LANG"
    | LANGMATCHES ->
        "LANGMATCHES"
    | LBRACE ->
        "LBRACE"
    | LBRACKET ->
        "LBRACKET"
    | LCASE ->
        "LCASE"
    | LIMIT ->
        "LIMIT"
    | LOAD ->
        "LOAD"
    | LPAR ->
        "LPAR"
    | LT ->
        "LT"
    | LTE ->
        "LTE"
    | Langtag _ ->
        "Langtag"
    | MAX ->
        "MAX"
    | MD5 ->
        "MD5"
    | MIN ->
        "MIN"
    | MINUS ->
        "MINUS"
    | MINUTES ->
        "MINUTES"
    | MONTH ->
        "MONTH"
    | MOVE ->
        "MOVE"
    | NAMED ->
        "NAMED"
    | NIL ->
        "NIL"
    | NOT ->
        "NOT"
    | NOTEQUAL ->
        "NOTEQUAL"
    | NOW ->
        "NOW"
    | OFFSET ->
        "OFFSET"
    | OPTIONAL ->
        "OPTIONAL"
    | ORDER ->
        "ORDER"
    | PIPE ->
        "PIPE"
    | PIPEPIPE ->
        "PIPEPIPE"
    | PLUS ->
        "PLUS"
    | PREFIX ->
        "PREFIX"
    | Pname_ln _ ->
        "Pname_ln"
    | Pname_ns _ ->
        "Pname_ns"
    | QM ->
        "QM"
    | RAND ->
        "RAND"
    | RBRACE ->
        "RBRACE"
    | RBRACKET ->
        "RBRACKET"
    | REDUCED ->
        "REDUCED"
    | REGEX ->
        "REGEX"
    | REPLACE ->
        "REPLACE"
    | ROUND ->
        "ROUND"
    | RPAR ->
        "RPAR"
    | SAMETERM ->
        "SAMETERM"
    | SAMPLE ->
        "SAMPLE"
    | SECONDS ->
        "SECONDS"
    | SELECT ->
        "SELECT"
    | SEMICOLON ->
        "SEMICOLON"
    | SEPARATOR ->
        "SEPARATOR"
    | SERVICE ->
        "SERVICE"
    | SHA1 ->
        "SHA1"
    | SHA256 ->
        "SHA256"
    | SHA384 ->
        "SHA384"
    | SHA512 ->
        "SHA512"
    | SILENT ->
        "SILENT"
    | SLASH ->
        "SLASH"
    | STAR ->
        "STAR"
    | STR ->
        "STR"
    | STRAFTER ->
        "STRAFTER"
    | STRBEFORE ->
        "STRBEFORE"
    | STRDT ->
        "STRDT"
    | STRENDS ->
        "STRENDS"
    | STRLANG ->
        "STRLANG"
    | STRLEN ->
        "STRLEN"
    | STRSTARTS ->
        "STRSTARTS"
    | STRUUID ->
        "STRUUID"
    | SUBSTR ->
        "SUBSTR"
    | SUM ->
        "SUM"
    | String_literal _ ->
        "String_literal"
    | TIMEZONE ->
        "TIMEZONE"
    | TZ ->
        "TZ"
    | UCASE ->
        "UCASE"
    | UNDEF ->
        "UNDEF"
    | UNION ->
        "UNION"
    | URI ->
        "URI"
    | USING ->
        "USING"
    | UUID ->
        "UUID"
    | VALUES ->
        "VALUES"
    | Var1 _ ->
        "Var1"
    | Var2 _ ->
        "Var2"
    | WHERE ->
        "WHERE"
    | WITH ->
        "WITH"
    | YEAR ->
        "YEAR"

let _menhir_fail : unit -> 'a =
  fun () ->
    Printf.eprintf "Internal failure -- please contact the parser generator's developers.\n%!";
    assert false

include struct
  
  [@@@ocaml.warning "-4-37"]
  
  let _menhir_goto_query : type  ttv_stack. ttv_stack -> _ -> _menhir_box_query =
    fun _menhir_stack _v ->
      MenhirBox_query _v
  
  let _menhir_run_789 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_get_query_kind -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _v _tok ->
      let MenhirCell1_get_query_kind (_menhir_stack, _, k) = _menhir_stack in
      let MenhirCell1_prologue (_menhir_stack, _, p) = _menhir_stack in
      let v = _v in
      let _v = _menhir_action_101 k p v in
      match (_tok : MenhirBasics.token) with
      | EOF ->
          let q = _v in
          let _v = _menhir_action_315 q in
          _menhir_goto_query _menhir_stack _v
      | _ ->
          _eRR ()
  
  let _menhir_goto_loption_separated_nonempty_list_SEMICOLON_update_action__ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_prologue -> _ -> _menhir_box_query =
    fun _menhir_stack _v ->
      let MenhirCell1_prologue (_menhir_stack, _, p) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_390 p xs in
      let q = _v in
      let _v = _menhir_action_316 q in
      _menhir_goto_query _menhir_stack _v
  
  let _menhir_run_782 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_prologue -> _ -> _menhir_box_query =
    fun _menhir_stack _v ->
      let x = _v in
      let _v = _menhir_action_175 x in
      _menhir_goto_loption_separated_nonempty_list_SEMICOLON_update_action__ _menhir_stack _v
  
  let rec _menhir_goto_separated_nonempty_list_SEMICOLON_update_action_ : type  ttv_stack. ttv_stack -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _v _menhir_s ->
      match _menhir_s with
      | MenhirState011 ->
          _menhir_run_782 _menhir_stack _v
      | MenhirState771 ->
          _menhir_run_772 _menhir_stack _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_772 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_update_action -> _ -> _menhir_box_query =
    fun _menhir_stack _v ->
      let MenhirCell1_update_action (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_350 x xs in
      _menhir_goto_separated_nonempty_list_SEMICOLON_update_action_ _menhir_stack _v _menhir_s
  
  let rec _menhir_run_012 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_WITH (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState012 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_013 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_294 _1 _endpos__1_ _startpos__1_ in
      _menhir_goto_prefixed_name _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_prefixed_name : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_146 _1 in
      _menhir_goto_iri _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_iri : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState725 ->
          _menhir_run_728 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState726 ->
          _menhir_run_728 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState679 ->
          _menhir_run_627 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState636 ->
          _menhir_run_627 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState642 ->
          _menhir_run_627 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState628 ->
          _menhir_run_627 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState625 ->
          _menhir_run_627 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState611 ->
          _menhir_run_604 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState605 ->
          _menhir_run_604 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState598 ->
          _menhir_run_604 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState562 ->
          _menhir_run_518 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState558 ->
          _menhir_run_518 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState493 ->
          _menhir_run_518 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState542 ->
          _menhir_run_518 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState494 ->
          _menhir_run_518 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState522 ->
          _menhir_run_518 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState525 ->
          _menhir_run_518 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState495 ->
          _menhir_run_518 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState496 ->
          _menhir_run_506 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState497 ->
          _menhir_run_506 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState504 ->
          _menhir_run_506 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState498 ->
          _menhir_run_500 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState682 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_284 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState112 ->
          _menhir_run_115 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState113 ->
          _menhir_run_114 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState723 ->
          _menhir_run_072 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState736 ->
          _menhir_run_072 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState676 ->
          _menhir_run_072 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState669 ->
          _menhir_run_072 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState095 ->
          _menhir_run_072 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState087 ->
          _menhir_run_072 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState082 ->
          _menhir_run_072 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState025 ->
          _menhir_run_072 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState028 ->
          _menhir_run_072 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState756 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState750 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState698 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState556 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState080 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_062 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState048 ->
          _menhir_run_049 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState012 ->
          _menhir_run_017 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_728 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_357 _1 in
      _menhir_goto_source_selector _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_source_selector : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState725 ->
          _menhir_run_729 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState726 ->
          _menhir_run_727 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_729 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_FROM -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_FROM (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_093 _2 in
      _menhir_goto_dataset_clause _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_dataset_clause : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_dataset_clause (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | FROM ->
          _menhir_run_725 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState734
      | EOF | GROUP | HAVING | LBRACE | LIMIT | OFFSET | ORDER | VALUES | WHERE ->
          let _v_0 = _menhir_action_156 () in
          _menhir_run_735 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_725 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_FROM (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState725 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | NAMED ->
          let _menhir_stack = MenhirCell1_NAMED (_menhir_stack, _menhir_s) in
          let _menhir_s = MenhirState726 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | _ ->
              _eRR ())
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_014 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_295 _1 in
      _menhir_goto_prefixed_name _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_015 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_145 _1 in
      _menhir_goto_iri _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_735 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_dataset_clause -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_dataset_clause (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_157 x xs in
      _menhir_goto_list_dataset_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_list_dataset_clause_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState783 ->
          _menhir_run_784 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState765 ->
          _menhir_run_766 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState760 ->
          _menhir_run_761 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState749 ->
          _menhir_run_754 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState738 ->
          _menhir_run_739 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState734 ->
          _menhir_run_735 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState724 ->
          _menhir_run_730 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_784 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_select_clause as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_list_dataset_clause_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | WHERE ->
          _menhir_run_575 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState784
      | LBRACE ->
          let _menhir_s = MenhirState784 in
          let _v = _menhir_action_227 () in
          _menhir_goto_option_WHERE_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_575 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let x = () in
      let _v = _menhir_action_228 x in
      _menhir_goto_option_WHERE_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_option_WHERE_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_WHERE_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState662
      | _ ->
          _eRR ()
  
  and _menhir_run_120 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _menhir_stack = MenhirCell1_LBRACE (_menhir_stack, _menhir_s) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | SELECT ->
          _menhir_run_121 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState120
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | NIL ->
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState120
      | LPAR ->
          _menhir_run_492 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState120
      | LBRACKET ->
          _menhir_run_493 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState120
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | Blank_node_label _v ->
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState120
      | ANON ->
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState120
      | BIND | FILTER | GRAPH | LBRACE | MINUS | OPTIONAL | RBRACE | SERVICE | VALUES ->
          let _v = _menhir_action_253 () in
          _menhir_run_664 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _endpos _v MenhirState120 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_020 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos_s_, _startpos_s_, s) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_399 _endpos_s_ _startpos_s_ s in
      _menhir_goto_var _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_s_ _startpos_s_ _v _menhir_s _tok
  
  and _menhir_goto_var : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState684 ->
          _menhir_run_685 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState642 ->
          _menhir_run_641 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState636 ->
          _menhir_run_641 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState665 ->
          _menhir_run_597 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState590 ->
          _menhir_run_597 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState593 ->
          _menhir_run_593 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState592 ->
          _menhir_run_593 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState586 ->
          _menhir_run_587 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState582 ->
          _menhir_run_579 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_579 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState562 ->
          _menhir_run_546 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState558 ->
          _menhir_run_546 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState493 ->
          _menhir_run_546 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState542 ->
          _menhir_run_546 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState489 ->
          _menhir_run_487 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState125 ->
          _menhir_run_487 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState484 ->
          _menhir_run_485 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState682 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_269 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState257 ->
          _menhir_run_258 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState723 ->
          _menhir_run_070 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState736 ->
          _menhir_run_070 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState676 ->
          _menhir_run_070 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState669 ->
          _menhir_run_070 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState095 ->
          _menhir_run_070 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState087 ->
          _menhir_run_070 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState082 ->
          _menhir_run_070 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState025 ->
          _menhir_run_070 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState028 ->
          _menhir_run_070 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState756 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState750 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState698 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState556 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState080 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_044 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_685 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_BIND _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_AS -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_AS (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_BIND (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos, v, _endpos__6_) = (_endpos_0, _v, _endpos_0) in
          let _v = _menhir_action_012 _endpos__6_ _startpos__1_ e v in
          let _1 = _v in
          let _v = _menhir_action_120 _1 in
          _menhir_goto_graph_pattern_not_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_graph_pattern_not_triples : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_graph_pattern_not_triples (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | DOT ->
          _menhir_run_102 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState697
      | ANON | BIND | Blank_node_label _ | Boolean _ | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | FILTER | GRAPH | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LBRACE | LBRACKET | LPAR | MINUS | NIL | OPTIONAL | Pname_ln _ | Pname_ns _ | RBRACE | SERVICE | String_literal _ | VALUES | Var1 _ | Var2 _ ->
          let _v_0 = _menhir_action_223 () in
          _menhir_run_698 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0 MenhirState697 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_102 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let x = () in
      let _v = _menhir_action_224 x in
      _menhir_goto_option_DOT_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_option_DOT_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState697 ->
          _menhir_run_698 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState101 ->
          _menhir_run_103 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_698 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_graph_pattern_not_triples as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_DOT_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState698
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState698
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState698
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState698
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState698
      | NIL ->
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState698
      | LPAR ->
          _menhir_run_492 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState698
      | LBRACKET ->
          _menhir_run_493 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState698
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState698
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState698
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState698
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState698
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState698
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState698
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState698
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState698
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState698
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState698
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState698
      | Blank_node_label _v_16 ->
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v_16 MenhirState698
      | ANON ->
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState698
      | BIND | FILTER | GRAPH | LBRACE | MINUS | OPTIONAL | RBRACE | SERVICE | VALUES ->
          let _v_17 = _menhir_action_253 () in
          _menhir_run_699 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_17 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_021 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos_s_, _startpos_s_, s) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_398 _endpos_s_ _startpos_s_ s in
      _menhir_goto_var _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_s_ _startpos_s_ _v _menhir_s _tok
  
  and _menhir_run_022 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_360 _1 in
      _menhir_goto_string _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_string : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState356 ->
          _menhir_run_357 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState756 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState750 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState698 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState682 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState611 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState605 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState598 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState556 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState080 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_046 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_357 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_GROUP_CONCAT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_SEMICOLON -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_SEMICOLON (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e, _, _) = _menhir_stack in
          let MenhirCell1_option_DISTINCT_ (_menhir_stack, _, d) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_GROUP_CONCAT (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__9_, sep) = (_endpos_0, _v) in
          let _v = _menhir_action_009 d e sep in
          _menhir_goto_aggregate _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__9_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_aggregate : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_019 _1 in
      _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_built_in_call : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState679 ->
          _menhir_run_632 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState636 ->
          _menhir_run_632 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState642 ->
          _menhir_run_632 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState625 ->
          _menhir_run_632 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState628 ->
          _menhir_run_632 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_588 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_588 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState682 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_296 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_632 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_078 _1 in
      _menhir_goto_constraint_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_constraint_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState679 ->
          _menhir_run_680 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState636 ->
          _menhir_run_644 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState642 ->
          _menhir_run_644 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState625 ->
          _menhir_run_631 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState628 ->
          _menhir_run_631 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_680 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_FILTER -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_FILTER (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_099 _2 in
      let _1 = _v in
      let _v = _menhir_action_119 _1 in
      _menhir_goto_graph_pattern_not_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_644 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_273 _1 in
      _menhir_goto_order_condition _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_order_condition : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | Var2 _v_0 ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState642
      | Var1 _v_1 ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState642
      | UUID ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | URI ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | UCASE ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | TZ ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | TIMEZONE ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | SUM ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | SUBSTR ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | STRUUID ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | STRSTARTS ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | STRLEN ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | STRLANG ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | STRENDS ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | STRDT ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | STRBEFORE ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | STRAFTER ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | STR ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | SHA512 ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | SHA384 ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | SHA256 ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | SHA1 ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | SECONDS ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | SAMPLE ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | SAMETERM ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | ROUND ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | REPLACE ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | REGEX ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | RAND ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | Pname_ns _v_2 ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState642
      | Pname_ln _v_3 ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState642
      | NOW ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | NOT ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | MONTH ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | MINUTES ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | MIN ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | MD5 ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | MAX ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | LPAR ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | LCASE ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | LANGMATCHES ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | LANG ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | Iriref_ _v_4 ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState642
      | ISURI ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | ISNUMERIC ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | ISLITERAL ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | ISIRI ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | ISBLANK ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | IRI ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | IF ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | HOURS ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | GROUP_CONCAT ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | FLOOR ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | EXISTS ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | ENCODE_FOR_URI ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | DESC ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_637 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | DAY ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | DATATYPE ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | COUNT ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | CONTAINS ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | CONCAT ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | COALESCE ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | CEIL ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | BOUND ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | BNODE ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | AVG ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | ASC ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_639 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | ABS ->
          let _menhir_stack = MenhirCell1_order_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState642
      | EOF | LIMIT | OFFSET | RBRACE | VALUES ->
          let x = _v in
          let _v = _menhir_action_187 x in
          _menhir_goto_nonempty_list_order_condition_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_128 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_YEAR (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState129 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_130 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | NIL ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let (_endpos__2_, _startpos__1_) = (_endpos, _startpos) in
          let _v = _menhir_action_056 () in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__2_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_132 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_URI (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState133 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_134 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_UCASE (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState135 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_136 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_TZ (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState137 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_138 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_TIMEZONE (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState139 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_140 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SUM (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos_0 = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos_0) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | DISTINCT ->
              _menhir_run_142 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState141
          | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EXISTS | FLOOR | GROUP_CONCAT | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | PLUS | Pname_ln _ | Pname_ns _ | RAND | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | Var1 _ | Var2 _ | YEAR ->
              let _v = _menhir_action_221 () in
              _menhir_run_143 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState141 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_142 : type  ttv_stack. (ttv_stack _menhir_cell0_LPAR as 'stack) -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let x = () in
      let _v = _menhir_action_222 x in
      _menhir_goto_option_DISTINCT_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_option_DISTINCT_ : type  ttv_stack. (ttv_stack _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState286 ->
          _menhir_run_287 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState265 ->
          _menhir_run_266 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState243 ->
          _menhir_run_244 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState230 ->
          _menhir_run_231 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState204 ->
          _menhir_run_205 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState199 ->
          _menhir_run_200 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState175 ->
          _menhir_run_176 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState141 ->
          _menhir_run_143 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_287 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_iri _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState287
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState287
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState287
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState287
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState287
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState287
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState287
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState287
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState287
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState287
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState287
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState287
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState287
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState287
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState287
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState287
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState287
      | _ ->
          _eRR ()
  
  and _menhir_run_144 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SUBSTR (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState145 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_146 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | NIL ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let (_endpos__2_, _startpos__1_) = (_endpos, _startpos) in
          let _v = _menhir_action_057 () in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__2_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_148 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_STRSTARTS (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState149 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_150 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_STRLEN (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState151 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_152 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_STRLANG (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState153 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_154 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_STRENDS (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState155 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_156 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_STRDT (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState157 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_158 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_STRBEFORE (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState159 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_160 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_STRAFTER (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState161 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_162 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_STR (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState163 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_164 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SHA512 (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState165 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_166 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SHA384 (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState167 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_168 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SHA256 (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState169 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_170 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SHA1 (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState171 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_172 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SECONDS (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState173 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_174 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SAMPLE (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos_0 = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos_0) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | DISTINCT ->
              _menhir_run_142 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState175
          | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EXISTS | FLOOR | GROUP_CONCAT | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | PLUS | Pname_ln _ | Pname_ns _ | RAND | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | Var1 _ | Var2 _ | YEAR ->
              let _v = _menhir_action_221 () in
              _menhir_run_176 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState175 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_176 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SAMPLE _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState176
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState176
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState176
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState176
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState176
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState176
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState176
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState176
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState176
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState176
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState176
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState176
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState176
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState176
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState176
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState176
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState176
      | _ ->
          _eRR ()
  
  and _menhir_run_177 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SAMETERM (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState178 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_179 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_ROUND (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState180 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_181 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_REPLACE (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState182 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_183 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_REGEX (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState184 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_185 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | NIL ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let (_endpos__2_, _startpos__1_) = (_endpos, _startpos) in
          let _v = _menhir_action_030 () in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__2_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_187 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _menhir_stack = MenhirCell1_PLUS (_menhir_stack, _menhir_s, _startpos, _endpos) in
      let _menhir_s = MenhirState187 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_188 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | NIL ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let (_endpos__2_, _startpos__1_) = (_endpos, _startpos) in
          let _v = _menhir_action_055 () in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__2_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_190 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_NOT (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | EXISTS ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_EXISTS (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState191 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | LBRACE ->
              _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_193 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_MONTH (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState194 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_195 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_MINUTES (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState196 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_197 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_MINUS (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState197 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_198 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_MIN (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos_0 = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos_0) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | DISTINCT ->
              _menhir_run_142 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState199
          | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EXISTS | FLOOR | GROUP_CONCAT | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | PLUS | Pname_ln _ | Pname_ns _ | RAND | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | Var1 _ | Var2 _ | YEAR ->
              let _v = _menhir_action_221 () in
              _menhir_run_200 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState199 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_200 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_MIN _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState200
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState200
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState200
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState200
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState200
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState200
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState200
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState200
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState200
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState200
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState200
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState200
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState200
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState200
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState200
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState200
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState200
      | _ ->
          _eRR ()
  
  and _menhir_run_201 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_MD5 (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState202 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_203 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_MAX (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos_0 = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos_0) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | DISTINCT ->
              _menhir_run_142 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState204
          | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EXISTS | FLOOR | GROUP_CONCAT | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | PLUS | Pname_ln _ | Pname_ns _ | RAND | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | Var1 _ | Var2 _ | YEAR ->
              let _v = _menhir_action_221 () in
              _menhir_run_205 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState204 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_205 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_MAX _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState205
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState205
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState205
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState205
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState205
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState205
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState205
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState205
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState205
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState205
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState205
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState205
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState205
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState205
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState205
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState205
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState205
      | _ ->
          _eRR ()
  
  and _menhir_run_206 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState206 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_207 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LCASE (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState208 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_209 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LANGMATCHES (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState210 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_211 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LANG (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState212 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_031 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_200 _1 in
      _menhir_goto_numeric_literal_positive _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_numeric_literal_positive : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState683 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState585 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState483 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState481 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState479 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState477 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState475 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState473 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState471 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState464 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState466 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState469 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState460 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState462 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState458 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState454 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState456 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState450 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState452 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState446 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState448 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState442 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState444 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState438 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState440 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState436 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState434 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState432 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState430 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState428 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState426 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState424 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState420 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState422 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState418 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState409 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState411 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState413 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState416 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState402 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState404 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState407 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState401 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState399 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState397 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState396 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState394 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState392 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState390 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState388 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState386 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState382 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState384 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState380 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState378 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState376 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState374 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState372 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState370 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState368 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState362 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState364 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState366 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState360 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState353 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState351 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState349 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState347 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState345 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState343 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState339 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState341 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState334 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState332 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState331 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState329 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState327 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState309 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState291 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState305 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState303 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState301 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState293 ->
          _menhir_run_294 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState756 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState750 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState698 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState682 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState611 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState605 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState598 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState556 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState080 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_058 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_294 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_expression -> _ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok ->
      let MenhirCell1_expression (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
      let (_endpos_lit_, _startpos_lit_, lit) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_211 _endpos_lit_ _startpos_e1_ _startpos_lit_ e1 lit in
      _menhir_goto_numexp _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_lit_ _startpos_e1_ _v _menhir_s _tok
  
  and _menhir_goto_numexp : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState323 ->
          _menhir_run_324 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState321 ->
          _menhir_run_322 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState319 ->
          _menhir_run_320 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState315 ->
          _menhir_run_316 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState313 ->
          _menhir_run_314 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState280 ->
          _menhir_run_281 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState682 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_279 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_324 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_numexp -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      match (_tok : MenhirBasics.token) with
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_numexp (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_323 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_relational_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_relational_expression : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos_e_, _startpos_e_, e) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_393 e in
      _menhir_goto_value_logical _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e_ _startpos_e_ _v _menhir_s _tok
  
  and _menhir_goto_value_logical : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState325 ->
          _menhir_run_326 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_272 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState682 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_270 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_326 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_value_logical as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | PIPEPIPE ->
          let _menhir_stack = MenhirCell1_value_logical (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_271 _menhir_stack _menhir_lexbuf _menhir_lexer
      | Decimal_negative _ | Decimal_positive _ | Double_negative _ | Double_positive _ | Integer_negative _ | Integer_positive _ | MINUS | PLUS | SLASH | STAR ->
          let (_endpos_e_, _startpos_e_, e) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_096 e in
          _menhir_goto_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e_ _startpos_e_ _v _menhir_s _tok
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Double _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_value_logical (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_394 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_value_logical _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_271 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_value_logical -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer ->
      let _menhir_s = MenhirState271 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_032 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_197 _1 in
      _menhir_goto_numeric_literal_negative _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_numeric_literal_negative : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState683 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState585 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState483 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState481 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState479 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState477 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState475 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState473 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState471 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState464 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState466 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState469 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState460 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState462 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState458 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState454 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState456 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState450 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState452 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState446 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState448 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState442 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState444 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState438 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState440 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState436 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState434 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState432 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState430 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState428 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState426 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState424 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState420 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState422 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState418 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState409 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState411 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState413 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState416 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState402 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState404 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState407 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState401 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState399 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState397 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState396 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState394 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState392 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState390 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState388 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState386 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState382 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState384 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState380 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState378 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState376 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState374 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState372 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState370 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState368 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState362 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState364 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState366 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState360 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState353 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState351 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState349 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState347 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState345 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState343 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState339 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState341 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState334 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState332 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState331 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState329 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState327 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState309 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState291 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState305 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState303 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState301 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState293 ->
          _menhir_run_295 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok
      | MenhirState756 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState750 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState698 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState682 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState611 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState605 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState598 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState556 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState080 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_059 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_295 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_expression -> _ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _tok ->
      let MenhirCell1_expression (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
      let (_endpos_lit_, _startpos_lit_, lit) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_212 _endpos_lit_ _startpos_e1_ _startpos_lit_ e1 lit in
      _menhir_goto_numexp _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_lit_ _startpos_e1_ _v _menhir_s _tok
  
  and _menhir_run_059 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_196 _1 in
      _menhir_goto_numeric_literal_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_numeric_literal_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_193 _1 _endpos__1_ _startpos__1_ in
      _menhir_goto_numeric_literal _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_numeric_literal : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState611 ->
          _menhir_run_601 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState605 ->
          _menhir_run_601 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState598 ->
          _menhir_run_601 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState682 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_282 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState756 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState750 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState698 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState556 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState080 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_061 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_601 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_086 _1 in
      _menhir_goto_data_block_value _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_data_block_value : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_data_block_value (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | UNDEF ->
          _menhir_run_599 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState605
      | String_literal _v_0 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState605
      | Pname_ns _v_1 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState605
      | Pname_ln _v_2 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState605
      | Iriref_ _v_3 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState605
      | Integer_positive _v_4 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState605
      | Integer_negative _v_5 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState605
      | Integer _v_6 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState605
      | Double_positive _v_7 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState605
      | Double_negative _v_8 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState605
      | Double _v_9 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState605
      | Decimal_positive _v_10 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState605
      | Decimal_negative _v_11 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState605
      | Decimal _v_12 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState605
      | Boolean _v_13 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState605
      | RBRACE | RPAR ->
          let _v_14 = _menhir_action_152 () in
          _menhir_run_606 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_599 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _v = _menhir_action_088 () in
      _menhir_goto_data_block_value _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_033 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_203 _1 in
      _menhir_goto_numeric_literal_unsigned _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_numeric_literal_unsigned : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_194 _1 in
      _menhir_goto_numeric_literal_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_034 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_202 _1 in
      _menhir_goto_numeric_literal_positive _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_035 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_199 _1 in
      _menhir_goto_numeric_literal_negative _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_036 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_205 _1 in
      _menhir_goto_numeric_literal_unsigned _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_037 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_201 _1 in
      _menhir_goto_numeric_literal_positive _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_038 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_198 _1 in
      _menhir_goto_numeric_literal_negative _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_039 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_204 _1 in
      _menhir_goto_numeric_literal_unsigned _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_040 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_017 _1 _endpos__1_ _startpos__1_ in
      _menhir_goto_boolean_literal _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_boolean_literal : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState611 ->
          _menhir_run_607 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState598 ->
          _menhir_run_607 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState605 ->
          _menhir_run_607 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState682 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_298 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState756 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState750 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState698 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState556 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState080 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_066 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_607 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_087 _1 in
      _menhir_goto_data_block_value _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_298 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos_lit_, _startpos_lit_, lit) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_300 _endpos_lit_ _startpos_lit_ lit in
      _menhir_goto_primary_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_lit_ _startpos_lit_ _v _menhir_s _tok
  
  and _menhir_goto_primary_expression : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos_e_, _startpos_e_, e) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_206 e in
      _menhir_goto_numexp _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e_ _startpos_e_ _v _menhir_s _tok
  
  and _menhir_run_066 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_125 _1 in
      _menhir_goto_graph_term _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_graph_term : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_403 _1 in
      _menhir_goto_var_or_term _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_var_or_term : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState698 ->
          _menhir_run_558 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_558 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_558 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState556 ->
          _menhir_run_532 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_532 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_532 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_532 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState756 ->
          _menhir_run_082 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState750 ->
          _menhir_run_082 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_082 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_082 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_082 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_082 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_082 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_043 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState080 ->
          _menhir_run_043 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_043 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_043 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_043 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_558 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_var_or_term (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState558
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState558
      | Pname_ns _v_2 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState558
      | Pname_ln _v_3 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState558
      | LPAR ->
          _menhir_run_494 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState558
      | Iriref_ _v_4 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState558
      | HAT ->
          _menhir_run_495 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState558
      | BANG ->
          _menhir_run_496 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState558
      | A ->
          _menhir_run_510 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState558
      | _ ->
          _eRR ()
  
  and _menhir_run_494 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState494 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | LPAR ->
          _menhir_run_494 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | HAT ->
          _menhir_run_495 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_496 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | A ->
          _menhir_run_510 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_495 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_HAT (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState495 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | LPAR ->
          _menhir_run_494 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BANG ->
          _menhir_run_496 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | A ->
          _menhir_run_510 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_496 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_BANG (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState496 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _menhir_stack = MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos) in
          let _menhir_s = MenhirState497 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | HAT ->
              _menhir_run_498 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | A ->
              _menhir_run_501 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ANON | Blank_node_label _ | Boolean _ | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | Integer _ | Integer_negative _ | Integer_positive _ | LBRACKET | LPAR | NIL | PIPE | PLUS | QM | RPAR | SLASH | STAR | String_literal _ | Var1 _ | Var2 _ ->
              let _v = _menhir_action_172 () in
              _menhir_goto_loption_separated_nonempty_list_PIPE_path_one_in_property_set__ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
          | _ ->
              _eRR ())
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | HAT ->
          _menhir_run_498 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | A ->
          _menhir_run_501 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_498 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Pname_ns _v ->
          let _menhir_stack = MenhirCell1_HAT (_menhir_stack, _menhir_s, _startpos) in
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState498
      | Pname_ln _v ->
          let _menhir_stack = MenhirCell1_HAT (_menhir_stack, _menhir_s, _startpos) in
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState498
      | Iriref_ _v ->
          let _menhir_stack = MenhirCell1_HAT (_menhir_stack, _menhir_s, _startpos) in
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState498
      | A ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let _v = _menhir_action_288 () in
          _menhir_goto_path_one_in_property_set _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_path_one_in_property_set : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState496 ->
          _menhir_run_508 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState504 ->
          _menhir_run_503 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState497 ->
          _menhir_run_503 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_508 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_BANG -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let _1 = _v in
      let _v = _menhir_action_283 _1 in
      _menhir_goto_path_negated_property_list _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
  
  and _menhir_goto_path_negated_property_list : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_BANG -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_BANG (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_291 _2 in
      _menhir_goto_path_primary _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_path_primary : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_path_primary (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let _endpos__1_ = _endpos in
          let _v = _menhir_action_281 () in
          _menhir_goto_path_mod _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _tok
      | QM ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let _endpos__1_ = _endpos in
          let _v = _menhir_action_280 () in
          _menhir_goto_path_mod _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _tok
      | PLUS ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let _endpos__1_ = _endpos in
          let _v = _menhir_action_282 () in
          _menhir_goto_path_mod _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _tok
      | ANON | Blank_node_label _ | Boolean _ | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LBRACKET | LPAR | NIL | PIPE | Pname_ln _ | Pname_ns _ | RPAR | SLASH | String_literal _ | Var1 _ | Var2 _ ->
          let _v = _menhir_action_245 () in
          _menhir_goto_option_path_mod_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_path_mod : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_path_primary -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let (_endpos_x_, x) = (_endpos, _v) in
      let _v = _menhir_action_246 x in
      _menhir_goto_option_path_mod_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_x_ _v _tok
  
  and _menhir_goto_option_path_mod_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_path_primary -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_path_primary (_menhir_stack, _menhir_s, p, _startpos_p_) = _menhir_stack in
      let (_endpos_m_, m) = (_endpos, _v) in
      let _v = _menhir_action_277 _endpos_m_ _startpos_p_ m p in
      _menhir_goto_path_elt _menhir_stack _menhir_lexbuf _menhir_lexer _startpos_p_ _v _menhir_s _tok
  
  and _menhir_goto_path_elt : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState562 ->
          _menhir_run_527 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState558 ->
          _menhir_run_527 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState493 ->
          _menhir_run_527 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState542 ->
          _menhir_run_527 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState494 ->
          _menhir_run_527 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState522 ->
          _menhir_run_527 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState525 ->
          _menhir_run_527 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState495 ->
          _menhir_run_517 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_527 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_278 _1 in
      _menhir_goto_path_elt_or_inverse _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_path_elt_or_inverse : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | SLASH ->
          let _menhir_stack = MenhirCell1_path_elt_or_inverse (_menhir_stack, _menhir_s, _v, _startpos) in
          let _menhir_s = MenhirState525 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | LPAR ->
              _menhir_run_494 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | HAT ->
              _menhir_run_495 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_496 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | A ->
              _menhir_run_510 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | ANON | Blank_node_label _ | Boolean _ | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LBRACKET | LPAR | NIL | PIPE | Pname_ln _ | Pname_ns _ | RPAR | String_literal _ | Var1 _ | Var2 _ ->
          let (_startpos_x_, x) = (_startpos, _v) in
          let _v = _menhir_action_351 x in
          _menhir_goto_separated_nonempty_list_SLASH_path_elt_or_inverse_ _menhir_stack _menhir_lexbuf _menhir_lexer _startpos_x_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_510 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _startpos__1_ = _startpos in
      let _v = _menhir_action_290 () in
      _menhir_goto_path_primary _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_separated_nonempty_list_SLASH_path_elt_or_inverse_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState525 ->
          _menhir_run_526 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState562 ->
          _menhir_run_519 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState558 ->
          _menhir_run_519 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState493 ->
          _menhir_run_519 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState542 ->
          _menhir_run_519 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState522 ->
          _menhir_run_519 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState494 ->
          _menhir_run_519 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_526 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_path_elt_or_inverse -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_path_elt_or_inverse (_menhir_stack, _menhir_s, x, _startpos_x_) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_352 x xs in
      _menhir_goto_separated_nonempty_list_SLASH_path_elt_or_inverse_ _menhir_stack _menhir_lexbuf _menhir_lexer _startpos_x_ _v _menhir_s _tok
  
  and _menhir_run_519 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_293 _1 in
      let _startpos = _startpos__1_ in
      match (_tok : MenhirBasics.token) with
      | PIPE ->
          let _menhir_stack = MenhirCell1_path_sequence (_menhir_stack, _menhir_s, _v, _startpos) in
          let _menhir_s = MenhirState522 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | LPAR ->
              _menhir_run_494 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | HAT ->
              _menhir_run_495 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_496 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | A ->
              _menhir_run_510 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | ANON | Blank_node_label _ | Boolean _ | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LBRACKET | LPAR | NIL | Pname_ln _ | Pname_ns _ | RPAR | String_literal _ | Var1 _ | Var2 _ ->
          let (_startpos_x_, x) = (_startpos, _v) in
          let _v = _menhir_action_347 x in
          _menhir_goto_separated_nonempty_list_PIPE_path_sequence_ _menhir_stack _menhir_lexbuf _menhir_lexer _startpos_x_ _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_goto_separated_nonempty_list_PIPE_path_sequence_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState522 ->
          _menhir_run_523 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState562 ->
          _menhir_run_520 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState558 ->
          _menhir_run_520 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState493 ->
          _menhir_run_520 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState542 ->
          _menhir_run_520 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState494 ->
          _menhir_run_520 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_523 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_path_sequence -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_path_sequence (_menhir_stack, _menhir_s, x, _startpos_x_) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_348 x xs in
      _menhir_goto_separated_nonempty_list_PIPE_path_sequence_ _menhir_stack _menhir_lexbuf _menhir_lexer _startpos_x_ _v _menhir_s _tok
  
  and _menhir_run_520 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_276 _1 in
      let _startpos = _startpos__1_ in
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_275 _1 in
      _menhir_goto_path _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_path : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState562 ->
          _menhir_run_547 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState558 ->
          _menhir_run_547 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState493 ->
          _menhir_run_547 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState542 ->
          _menhir_run_547 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState494 ->
          _menhir_run_529 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_547 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_408 _1 in
      _menhir_goto_verb_path_or_simple _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_verb_path_or_simple : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState542 ->
          _menhir_run_544 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState562 ->
          _menhir_run_531 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState558 ->
          _menhir_run_531 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState493 ->
          _menhir_run_531 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_544 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SEMICOLON as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_verb_path_or_simple (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState544
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState544
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState544
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState544
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState544
      | NIL ->
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState544
      | LPAR ->
          _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState544
      | LBRACKET ->
          _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState544
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState544
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState544
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState544
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState544
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState544
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState544
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState544
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState544
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState544
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState544
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState544
      | Blank_node_label _v_16 ->
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v_16 MenhirState544
      | ANON ->
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState544
      | _ ->
          _eRR ()
  
  and _menhir_run_023 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_) = (_endpos, _startpos) in
      let _v = _menhir_action_127 () in
      _menhir_goto_graph_term _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_024 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState024 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | NIL ->
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LBRACKET ->
          _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Blank_node_label _v ->
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ANON ->
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_025 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LBRACKET (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState025 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | A ->
          _menhir_run_026 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_026 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _startpos__1_ = _startpos in
      let _v = _menhir_action_405 () in
      _menhir_goto_verb _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_verb : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_verb (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState030
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState030
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState030
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState030
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState030
      | NIL ->
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState030
      | LPAR ->
          _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState030
      | LBRACKET ->
          _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState030
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState030
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState030
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState030
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState030
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState030
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState030
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState030
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState030
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState030
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState030
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState030
      | Blank_node_label _v_16 ->
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v_16 MenhirState030
      | ANON ->
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState030
      | _ ->
          _eRR ()
  
  and _menhir_run_041 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos_s_, _startpos_s_, s) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_013 _endpos_s_ _startpos_s_ s in
      _menhir_goto_blank_node _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_s_ _startpos_s_ _v _menhir_s _tok
  
  and _menhir_goto_blank_node : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_126 _1 in
      _menhir_goto_graph_term _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_042 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_) = (_endpos, _startpos) in
      let _v = _menhir_action_014 _endpos__1_ _startpos__1_ in
      _menhir_goto_blank_node _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_531 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_verb_path_or_simple (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState531
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState531
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState531
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState531
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState531
      | NIL ->
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState531
      | LPAR ->
          _menhir_run_492 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState531
      | LBRACKET ->
          _menhir_run_493 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState531
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState531
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState531
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState531
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState531
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState531
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState531
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState531
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState531
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState531
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState531
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState531
      | Blank_node_label _v_16 ->
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v_16 MenhirState531
      | ANON ->
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState531
      | _ ->
          _eRR ()
  
  and _menhir_run_492 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState492 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | NIL ->
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_492 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LBRACKET ->
          _menhir_run_493 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Blank_node_label _v ->
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ANON ->
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_493 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LBRACKET (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState493 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | LPAR ->
          _menhir_run_494 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | HAT ->
          _menhir_run_495 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_496 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | A ->
          _menhir_run_510 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_529 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_LPAR -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RPAR ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let _2 = _v in
          let _v = _menhir_action_292 _2 in
          _menhir_goto_path_primary _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_517 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_HAT -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_HAT (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_279 _2 in
      _menhir_goto_path_elt_or_inverse _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_503 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | PIPE ->
          let _menhir_stack = MenhirCell1_path_one_in_property_set (_menhir_stack, _menhir_s, _v) in
          let _menhir_s = MenhirState504 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | HAT ->
              _menhir_run_498 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | A ->
              _menhir_run_501 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | ANON | Blank_node_label _ | Boolean _ | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LBRACKET | LPAR | NIL | PLUS | Pname_ln _ | Pname_ns _ | QM | RPAR | SLASH | STAR | String_literal _ | Var1 _ | Var2 _ ->
          let x = _v in
          let _v = _menhir_action_345 x in
          _menhir_goto_separated_nonempty_list_PIPE_path_one_in_property_set_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_501 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _v = _menhir_action_286 () in
      _menhir_goto_path_one_in_property_set _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_separated_nonempty_list_PIPE_path_one_in_property_set_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState504 ->
          _menhir_run_505 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState497 ->
          _menhir_run_502 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_505 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_path_one_in_property_set -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_path_one_in_property_set (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_346 x xs in
      _menhir_goto_separated_nonempty_list_PIPE_path_one_in_property_set_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_502 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_BANG, _menhir_box_query) _menhir_cell1_LPAR -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let x = _v in
      let _v = _menhir_action_173 x in
      _menhir_goto_loption_separated_nonempty_list_PIPE_path_one_in_property_set__ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
  
  and _menhir_goto_loption_separated_nonempty_list_PIPE_path_one_in_property_set__ : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_BANG, _menhir_box_query) _menhir_cell1_LPAR -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_LPAR (_menhir_stack, _, _) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_284 xs in
      _menhir_goto_path_negated_property_list _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
  
  and _menhir_run_532 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_112 _1 in
      _menhir_goto_graph_node_path _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_graph_node_path : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState556 ->
          _menhir_run_556 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_556 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_538 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_538 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_556 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState556
      | Var1 _v_1 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState556
      | String_literal _v_2 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState556
      | Pname_ns _v_3 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState556
      | Pname_ln _v_4 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState556
      | NIL ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState556
      | LPAR ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_492 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState556
      | LBRACKET ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_493 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState556
      | Iriref_ _v_5 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState556
      | Integer_positive _v_6 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState556
      | Integer_negative _v_7 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState556
      | Integer _v_8 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState556
      | Double_positive _v_9 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState556
      | Double_negative _v_10 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState556
      | Double _v_11 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState556
      | Decimal_positive _v_12 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState556
      | Decimal_negative _v_13 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState556
      | Decimal _v_14 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState556
      | Boolean _v_15 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState556
      | Blank_node_label _v_16 ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v_16 MenhirState556
      | ANON ->
          let _menhir_stack = MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, _v) in
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState556
      | RPAR ->
          let x = _v in
          let _v = _menhir_action_181 x in
          _menhir_goto_nonempty_list_graph_node_path_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_goto_nonempty_list_graph_node_path_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      match _menhir_s with
      | MenhirState556 ->
          _menhir_run_557 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | MenhirState492 ->
          _menhir_run_554 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_557 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_graph_node_path -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let MenhirCell1_graph_node_path (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_182 x xs in
      _menhir_goto_nonempty_list_graph_node_path_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
  
  and _menhir_run_554 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_LPAR -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_076 _2 in
      let _startpos = _startpos__1_ in
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_369 _1 in
      _menhir_goto_triples_node_path _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_triples_node_path : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState698 ->
          _menhir_run_562 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_562 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_562 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState556 ->
          _menhir_run_533 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_533 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_533 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_533 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_562 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_triples_node_path (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState562
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState562
      | Pname_ns _v_2 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState562
      | Pname_ln _v_3 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState562
      | LPAR ->
          _menhir_run_494 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState562
      | Iriref_ _v_4 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState562
      | HAT ->
          _menhir_run_495 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState562
      | BANG ->
          _menhir_run_496 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState562
      | A ->
          _menhir_run_510 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState562
      | BIND | DOT | FILTER | GRAPH | LBRACE | MINUS | OPTIONAL | RBRACE | SERVICE | VALUES ->
          let _v = _menhir_action_249 () in
          _menhir_goto_option_property_list_path_not_empty_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_option_property_list_path_not_empty_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_triples_node_path -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let l = _v in
      let _v = _menhir_action_308 l in
      let MenhirCell1_triples_node_path (_menhir_stack, _menhir_s, t, _startpos_t_) = _menhir_stack in
      let p = _v in
      let _v = _menhir_action_374 p t in
      _menhir_goto_triples_same_subject_path _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos_t_ _v _menhir_s _tok
  
  and _menhir_goto_triples_same_subject_path : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_triples_same_subject_path (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | DOT ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _menhir_s = MenhirState561 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | NIL ->
              _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_492 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LBRACKET ->
              _menhir_run_493 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Blank_node_label _v ->
              _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ANON ->
              _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BIND | FILTER | GRAPH | LBRACE | MINUS | OPTIONAL | RBRACE | SERVICE | VALUES ->
              let _v = _menhir_action_255 () in
              _menhir_goto_option_triples_block_details_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
          | _ ->
              _eRR ())
      | BIND | FILTER | GRAPH | LBRACE | MINUS | OPTIONAL | RBRACE | SERVICE | VALUES ->
          let _v = _menhir_action_257 () in
          _menhir_goto_option_triples_block_details2_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_option_triples_block_details_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_triples_same_subject_path -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let (_endpos_t_, t) = (_endpos, _v) in
      let _v = _menhir_action_366 t in
      let _endpos = _endpos_t_ in
      let (_endpos_x_, x) = (_endpos, _v) in
      let _v = _menhir_action_258 x in
      _menhir_goto_option_triples_block_details2_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_x_ _v _tok
  
  and _menhir_goto_option_triples_block_details2_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_triples_same_subject_path -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_triples_same_subject_path (_menhir_stack, _menhir_s, s, _startpos_s_) = _menhir_stack in
      let (_endpos_rest_, rest) = (_endpos, _v) in
      let _v = _menhir_action_365 rest s in
      _menhir_goto_triples_block_details _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_rest_ _startpos_s_ _v _menhir_s _tok
  
  and _menhir_goto_triples_block_details : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState698 ->
          _menhir_run_570 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_570 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_566 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_570 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos_l_, _startpos_l_, l) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_364 _endpos_l_ _startpos_l_ l in
      let _startpos = _startpos_l_ in
      let (_startpos_x_, x) = (_startpos, _v) in
      let _v = _menhir_action_254 x in
      _menhir_goto_option_triples_block_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos_x_ _v _menhir_s _tok
  
  and _menhir_goto_option_triples_block_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState698 ->
          _menhir_run_699 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState120 ->
          _menhir_run_664 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_699 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_graph_pattern_not_triples, _menhir_box_query) _menhir_cell1_option_DOT_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_option_DOT_ (_menhir_stack, _, _) = _menhir_stack in
      let MenhirCell1_graph_pattern_not_triples (_menhir_stack, _menhir_s, gp) = _menhir_stack in
      let t = _v in
      let _v = _menhir_action_108 gp t in
      let _menhir_stack = MenhirCell1_gp_triples (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | VALUES ->
          _menhir_run_665 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState701
      | SERVICE ->
          _menhir_run_667 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState701
      | OPTIONAL ->
          _menhir_run_672 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState701
      | MINUS ->
          _menhir_run_674 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState701
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState701
      | GRAPH ->
          _menhir_run_676 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState701
      | FILTER ->
          _menhir_run_679 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState701
      | BIND ->
          _menhir_run_681 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState701
      | RBRACE ->
          let _v_0 = _menhir_action_158 () in
          _menhir_run_702 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_665 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_VALUES (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState665 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | NIL ->
          _menhir_run_591 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_592 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_591 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_VALUES as 'stack) -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _startpos__1_ = _startpos in
      let _v = _menhir_action_177 () in
      _menhir_goto_nil_or_var_list _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_nil_or_var_list : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_VALUES as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_nil_or_var_list (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | NIL ->
              _menhir_run_610 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState609
          | LPAR ->
              _menhir_run_611 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState609
          | RBRACE ->
              let _v_0 = _menhir_action_154 () in
              _menhir_run_614 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_610 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _v = _menhir_action_089 () in
      _menhir_goto_data_block_values_or_nil _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_data_block_values_or_nil : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_data_block_values_or_nil (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | NIL ->
          _menhir_run_610 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState616
      | LPAR ->
          _menhir_run_611 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState616
      | RBRACE ->
          let _v_0 = _menhir_action_154 () in
          _menhir_run_617 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0
      | _ ->
          _eRR ()
  
  and _menhir_run_611 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | UNDEF ->
          _menhir_run_599 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState611
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState611
      | RPAR ->
          let _v = _menhir_action_152 () in
          _menhir_run_612 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_612 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_LPAR -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RPAR ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_LPAR (_menhir_stack, _menhir_s, _) = _menhir_stack in
          let l = _v in
          let _v = _menhir_action_090 l in
          _menhir_goto_data_block_values_or_nil _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_617 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_data_block_values_or_nil -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let MenhirCell1_data_block_values_or_nil (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_155 x xs in
      _menhir_goto_list_data_block_values_or_nil_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
  
  and _menhir_goto_list_data_block_values_or_nil_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      match _menhir_s with
      | MenhirState616 ->
          _menhir_run_617 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | MenhirState609 ->
          _menhir_run_614 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_614 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_VALUES, _menhir_box_query) _menhir_cell1_nil_or_var_list -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let MenhirCell1_nil_or_var_list (_menhir_stack, _menhir_s, vars, _startpos_vars_) = _menhir_stack in
      let (_endpos__4_, l) = (_endpos, _v) in
      let _v = _menhir_action_142 _endpos__4_ _startpos_vars_ l vars in
      let _endpos = _endpos__4_ in
      let (_endpos__1_, _1) = (_endpos, _v) in
      let _v = _menhir_action_092 _1 in
      _menhir_goto_datablock _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_datablock : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_VALUES as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState665 ->
          _menhir_run_666 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState590 ->
          _menhir_run_620 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_666 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_VALUES -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_VALUES (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_141 _2 in
      let _1 = _v in
      let _v = _menhir_action_121 _1 in
      _menhir_goto_graph_pattern_not_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_620 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_VALUES -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_VALUES (_menhir_stack, _menhir_s) = _menhir_stack in
      let (_endpos_d_, d) = (_endpos, _v) in
      let _v = _menhir_action_397 d in
      let _endpos = _endpos_d_ in
      let (_endpos_x_, x) = (_endpos, _v) in
      let _v = _menhir_action_262 x in
      _menhir_goto_option_values_clause__ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_x_ _v _menhir_s _tok
  
  and _menhir_goto_option_values_clause__ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let (_endpos__1_, _1) = (_endpos, _v) in
      let _v = _menhir_action_396 _1 in
      _menhir_goto_values_clause _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_values_clause : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState788 ->
          _menhir_run_789 _menhir_stack _v _tok
      | MenhirState589 ->
          _menhir_run_622 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_622 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_cell1_select_clause, _menhir_box_query) _menhir_cell1_where_clause, _menhir_box_query) _menhir_cell1_solution_modifier -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_solution_modifier (_menhir_stack, _, sol) = _menhir_stack in
      let MenhirCell1_where_clause (_menhir_stack, _, w) = _menhir_stack in
      let MenhirCell1_select_clause (_menhir_stack, _, sel, _startpos_sel_) = _menhir_stack in
      let (_endpos_v_, v) = (_endpos, _v) in
      let _v = _menhir_action_361 _endpos_v_ _startpos_sel_ sel sol v w in
      match (_tok : MenhirBasics.token) with
      | RBRACE ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_LBRACE (_menhir_stack, _menhir_s) = _menhir_stack in
          let (_2, _endpos__3_) = (_v, _endpos) in
          let _v = _menhir_action_132 _2 in
          _menhir_goto_group_graph_pattern _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__3_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_group_graph_pattern : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState780 ->
          _menhir_run_781 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState775 ->
          _menhir_run_776 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState711 ->
          _menhir_run_712 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState119 ->
          _menhir_run_707 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState701 ->
          _menhir_run_694 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState695 ->
          _menhir_run_694 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState664 ->
          _menhir_run_694 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState677 ->
          _menhir_run_678 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState674 ->
          _menhir_run_675 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState672 ->
          _menhir_run_673 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState670 ->
          _menhir_run_671 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState662 ->
          _menhir_run_663 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState234 ->
          _menhir_run_235 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState191 ->
          _menhir_run_192 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_781 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_delete_clause, _menhir_box_query) _menhir_cell1_option_insert_clause_, _menhir_box_query) _menhir_cell1_list_using_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_list_using_clause_ (_menhir_stack, _, using) = _menhir_stack in
      let MenhirCell1_option_insert_clause_ (_menhir_stack, _, ins) = _menhir_stack in
      let MenhirCell1_delete_clause (_menhir_stack, _menhir_s, d, _startpos_d_) = _menhir_stack in
      let (_endpos_ggp_, ggp) = (_endpos, _v) in
      let _v = _menhir_action_381 _endpos_ggp_ _startpos_d_ d ggp ins using in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_update_action : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | SEMICOLON ->
          let _menhir_stack = MenhirCell1_update_action (_menhir_stack, _menhir_s, _v) in
          let _menhir_s = MenhirState771 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | WITH ->
              _menhir_run_012 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MOVE ->
              _menhir_run_714 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LOAD ->
              _menhir_run_715 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | INSERT ->
              _menhir_run_716 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DROP ->
              _menhir_run_722 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DELETE ->
              _menhir_run_742 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CREATE ->
              _menhir_run_747 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COPY ->
              _menhir_run_748 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CLEAR ->
              _menhir_run_764 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ADD ->
              _menhir_run_769 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | EOF ->
          let x = _v in
          let _v = _menhir_action_349 x in
          _menhir_goto_separated_nonempty_list_SEMICOLON_update_action_ _menhir_stack _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_714 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _startpos__1_ = _startpos in
      let _v = _menhir_action_387 _startpos__1_ in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_715 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _startpos__1_ = _startpos in
      let _v = _menhir_action_383 _startpos__1_ in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_716 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_INSERT (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState716 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_019 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATA ->
          let _menhir_stack = MenhirCell1_DATA (_menhir_stack, _menhir_s) in
          let _menhir_s = MenhirState717 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | LBRACE ->
              _menhir_run_718 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_019 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _menhir_stack = MenhirCell1_LBRACE (_menhir_stack, _menhir_s) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | NIL ->
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState019
      | LPAR ->
          _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState019
      | LBRACKET ->
          _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState019
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | Blank_node_label _v ->
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState019
      | ANON ->
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState019
      | GRAPH | RBRACE ->
          let _v = _menhir_action_259 () in
          _menhir_run_094 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _endpos _v MenhirState019 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_094 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LBRACE as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_triples_template_ (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | GRAPH ->
          _menhir_run_095 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState094
      | RBRACE ->
          let _v_0 = _menhir_action_162 () in
          _menhir_run_107 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_095 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_GRAPH (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState095 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_107 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_cell1_option_triples_template_ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v ->
      let MenhirCell1_option_triples_template_ (_menhir_stack, _menhir_s, t, _startpos_t_) = _menhir_stack in
      let (_endpos_l_, l) = (_endpos, _v) in
      let _v = _menhir_action_312 _endpos_l_ _startpos_t_ l t in
      _menhir_goto_quads _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
  
  and _menhir_goto_quads : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LBRACE as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      match _menhir_s with
      | MenhirState718 ->
          _menhir_run_719 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | MenhirState019 ->
          _menhir_run_092 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_719 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_DATA, _menhir_box_query) _menhir_cell1_LBRACE -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let MenhirCell1_LBRACE (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_310 _2 in
      _menhir_goto_quad_data _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_quad_data : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_DATA as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState745 ->
          _menhir_run_746 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState717 ->
          _menhir_run_721 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_746 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_DELETE, _menhir_box_query) _menhir_cell1_DATA -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_DATA (_menhir_stack, _) = _menhir_stack in
      let MenhirCell1_DELETE (_menhir_stack, _menhir_s, _) = _menhir_stack in
      let q = _v in
      let _v = _menhir_action_377 q in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_721 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_INSERT, _menhir_box_query) _menhir_cell1_DATA -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_DATA (_menhir_stack, _) = _menhir_stack in
      let MenhirCell1_INSERT (_menhir_stack, _menhir_s, _) = _menhir_stack in
      let q = _v in
      let _v = _menhir_action_376 q in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_092 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_LBRACE -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let MenhirCell1_LBRACE (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_311 _2 in
      _menhir_goto_quad_pattern _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_quad_pattern : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState743 ->
          _menhir_run_744 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState742 ->
          _menhir_run_110 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState109 ->
          _menhir_run_110 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState716 ->
          _menhir_run_108 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState018 ->
          _menhir_run_108 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_744 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_DELETE, _menhir_box_query) _menhir_cell1_WHERE -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_WHERE (_menhir_stack, _) = _menhir_stack in
      let MenhirCell1_DELETE (_menhir_stack, _menhir_s, _) = _menhir_stack in
      let q = _v in
      let _v = _menhir_action_378 q in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_110 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_DELETE -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_DELETE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let q = _v in
      let _v = _menhir_action_095 q in
      _menhir_goto_delete_clause _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_delete_clause : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState011 ->
          _menhir_run_777 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState771 ->
          _menhir_run_777 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState017 ->
          _menhir_run_708 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_777 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_delete_clause (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | INSERT ->
          _menhir_run_018 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState777
      | USING | WHERE ->
          let _v_0 = _menhir_action_235 () in
          _menhir_run_778 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState777 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_018 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_INSERT (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState018 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_019 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_778 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_delete_clause as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_insert_clause_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | USING ->
          _menhir_run_112 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState778
      | WHERE ->
          let _v_0 = _menhir_action_164 () in
          _menhir_run_779 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState778
      | _ ->
          _eRR ()
  
  and _menhir_run_112 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_USING (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState112 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | NAMED ->
          let _menhir_stack = MenhirCell1_NAMED (_menhir_stack, _menhir_s) in
          let _menhir_s = MenhirState113 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | _ ->
              _eRR ())
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_779 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_delete_clause, _menhir_box_query) _menhir_cell1_option_insert_clause_ as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _menhir_stack = MenhirCell1_list_using_clause_ (_menhir_stack, _menhir_s, _v) in
      let _menhir_s = MenhirState780 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_708 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_delete_clause (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | INSERT ->
          _menhir_run_018 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState708
      | USING | WHERE ->
          let _v_0 = _menhir_action_235 () in
          _menhir_run_709 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState708 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_709 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_delete_clause as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_insert_clause_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | USING ->
          _menhir_run_112 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState709
      | WHERE ->
          let _v_0 = _menhir_action_164 () in
          _menhir_run_710 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState709
      | _ ->
          _eRR ()
  
  and _menhir_run_710 : type  ttv_stack. (((((ttv_stack, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_delete_clause, _menhir_box_query) _menhir_cell1_option_insert_clause_ as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _menhir_stack = MenhirCell1_list_using_clause_ (_menhir_stack, _menhir_s, _v) in
      let _menhir_s = MenhirState711 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_108 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_INSERT -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_INSERT (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let q = _v in
      let _v = _menhir_action_144 q in
      _menhir_goto_insert_clause _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_insert_clause : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState011 ->
          _menhir_run_773 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState771 ->
          _menhir_run_773 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState777 ->
          _menhir_run_713 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState708 ->
          _menhir_run_713 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState017 ->
          _menhir_run_111 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_773 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_insert_clause (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | USING ->
          _menhir_run_112 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState773
      | WHERE ->
          let _v_0 = _menhir_action_164 () in
          _menhir_run_774 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState773
      | _ ->
          _eRR ()
  
  and _menhir_run_774 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_insert_clause as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _menhir_stack = MenhirCell1_list_using_clause_ (_menhir_stack, _menhir_s, _v) in
      let _menhir_s = MenhirState775 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_713 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_delete_clause as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let x = _v in
      let _v = _menhir_action_236 x in
      _menhir_goto_option_insert_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_option_insert_clause_ : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_delete_clause as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState777 ->
          _menhir_run_778 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState708 ->
          _menhir_run_709 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_111 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_insert_clause (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | USING ->
          _menhir_run_112 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState111
      | WHERE ->
          let _v_0 = _menhir_action_164 () in
          _menhir_run_118 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState111
      | _ ->
          _eRR ()
  
  and _menhir_run_118 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_insert_clause as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      let _menhir_stack = MenhirCell1_list_using_clause_ (_menhir_stack, _menhir_s, _v) in
      let _menhir_s = MenhirState119 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_718 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_DATA as 'stack) -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _menhir_stack = MenhirCell1_LBRACE (_menhir_stack, _menhir_s) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | NIL ->
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState718
      | LPAR ->
          _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState718
      | LBRACKET ->
          _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState718
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | Blank_node_label _v ->
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState718
      | ANON ->
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState718
      | GRAPH | RBRACE ->
          let _v = _menhir_action_259 () in
          _menhir_run_094 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _endpos _v MenhirState718 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_722 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _startpos__1_ = _startpos in
      let _v = _menhir_action_385 _startpos__1_ in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_742 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_DELETE (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState742 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | WHERE ->
          let _menhir_stack = MenhirCell1_WHERE (_menhir_stack, _menhir_s) in
          let _menhir_s = MenhirState743 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | LBRACE ->
              _menhir_run_019 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | LBRACE ->
          _menhir_run_019 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATA ->
          let _menhir_stack = MenhirCell1_DATA (_menhir_stack, _menhir_s) in
          let _menhir_s = MenhirState745 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | LBRACE ->
              _menhir_run_718 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_747 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _startpos__1_ = _startpos in
      let _v = _menhir_action_389 _startpos__1_ in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_748 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _startpos__1_ = _startpos in
      let _v = _menhir_action_388 _startpos__1_ in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_764 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _startpos__1_ = _startpos in
      let _v = _menhir_action_384 _startpos__1_ in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_769 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _startpos__1_ = _startpos in
      let _v = _menhir_action_386 _startpos__1_ in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_776 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_insert_clause, _menhir_box_query) _menhir_cell1_list_using_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_list_using_clause_ (_menhir_stack, _, using) = _menhir_stack in
      let MenhirCell1_insert_clause (_menhir_stack, _menhir_s, ins, _startpos_ins_) = _menhir_stack in
      let (_endpos_ggp_, ggp) = (_endpos, _v) in
      let _v = _menhir_action_382 _endpos_ggp_ _startpos_ins_ ggp ins using in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_712 : type  ttv_stack. (((((ttv_stack, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_delete_clause, _menhir_box_query) _menhir_cell1_option_insert_clause_, _menhir_box_query) _menhir_cell1_list_using_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_list_using_clause_ (_menhir_stack, _, using) = _menhir_stack in
      let MenhirCell1_option_insert_clause_ (_menhir_stack, _, ins) = _menhir_stack in
      let MenhirCell1_delete_clause (_menhir_stack, _, d, _) = _menhir_stack in
      let MenhirCell1_iri (_menhir_stack, _, i, _, _) = _menhir_stack in
      let MenhirCell1_WITH (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_endpos_ggp_, ggp) = (_endpos, _v) in
      let _v = _menhir_action_379 _endpos_ggp_ _startpos__1_ d ggp i ins using in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_707 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_WITH, _menhir_box_query) _menhir_cell1_iri, _menhir_box_query) _menhir_cell1_insert_clause, _menhir_box_query) _menhir_cell1_list_using_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_list_using_clause_ (_menhir_stack, _, using) = _menhir_stack in
      let MenhirCell1_insert_clause (_menhir_stack, _, ins, _) = _menhir_stack in
      let MenhirCell1_iri (_menhir_stack, _, i, _, _) = _menhir_stack in
      let MenhirCell1_WITH (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_endpos_ggp_, ggp) = (_endpos, _v) in
      let _v = _menhir_action_380 _endpos_ggp_ _startpos__1_ ggp i ins using in
      _menhir_goto_update_action _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_694 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | UNION ->
          let _menhir_stack = MenhirCell1_group_graph_pattern (_menhir_stack, _menhir_s, _v, _endpos) in
          let _menhir_s = MenhirState695 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | LBRACE ->
              _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | ANON | BIND | Blank_node_label _ | Boolean _ | DOT | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | FILTER | GRAPH | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LBRACE | LBRACKET | LPAR | MINUS | NIL | OPTIONAL | Pname_ln _ | Pname_ns _ | RBRACE | SERVICE | String_literal _ | VALUES | Var1 _ | Var2 _ ->
          let x = _v in
          let _v = _menhir_action_353 x in
          _menhir_goto_separated_nonempty_list_UNION_group_graph_pattern_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_separated_nonempty_list_UNION_group_graph_pattern_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState695 ->
          _menhir_run_696 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState701 ->
          _menhir_run_688 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState664 ->
          _menhir_run_688 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_696 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_group_graph_pattern -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_group_graph_pattern (_menhir_stack, _menhir_s, x, _) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_354 x xs in
      _menhir_goto_separated_nonempty_list_UNION_group_graph_pattern_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_688 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let l = _v in
      let _v = _menhir_action_135 l in
      let _1 = _v in
      let _v = _menhir_action_114 _1 in
      _menhir_goto_graph_pattern_not_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_678 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_GRAPH, _menhir_box_query) _menhir_cell1_var_or_iri -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_var_or_iri (_menhir_stack, _, vi, _) = _menhir_stack in
      let MenhirCell1_GRAPH (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_endpos_g_, g) = (_endpos, _v) in
      let _v = _menhir_action_109 _endpos_g_ _startpos__1_ g vi in
      let _1 = _v in
      let _v = _menhir_action_117 _1 in
      _menhir_goto_graph_pattern_not_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_675 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_MINUS -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_MINUS (_menhir_stack, _menhir_s, _) = _menhir_stack in
      let g = _v in
      let _v = _menhir_action_176 g in
      let _1 = _v in
      let _v = _menhir_action_116 _1 in
      _menhir_goto_graph_pattern_not_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_673 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_OPTIONAL -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_OPTIONAL (_menhir_stack, _menhir_s) = _menhir_stack in
      let g = _v in
      let _v = _menhir_action_269 g in
      let _1 = _v in
      let _v = _menhir_action_115 _1 in
      _menhir_goto_graph_pattern_not_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_671 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SERVICE _menhir_cell0_option_SILENT_, _menhir_box_query) _menhir_cell1_var_or_iri -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_var_or_iri (_menhir_stack, _, vi, _) = _menhir_stack in
      let MenhirCell0_option_SILENT_ (_menhir_stack, silent) = _menhir_stack in
      let MenhirCell1_SERVICE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_endpos_g_, g) = (_endpos, _v) in
      let _v = _menhir_action_355 _endpos_g_ _startpos__1_ g silent vi in
      let _1 = _v in
      let _v = _menhir_action_118 _1 in
      _menhir_goto_graph_pattern_not_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_663 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_option_WHERE_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_option_WHERE_ (_menhir_stack, _menhir_s, _) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_412 _2 in
      _menhir_goto_where_clause _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_where_clause : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState784 ->
          _menhir_run_785 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState766 ->
          _menhir_run_767 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState761 ->
          _menhir_run_762 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState739 ->
          _menhir_run_731 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState730 ->
          _menhir_run_731 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState574 ->
          _menhir_run_576 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_785 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_select_clause, _menhir_box_query) _menhir_cell1_list_dataset_clause_ as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_where_clause (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | GROUP ->
          _menhir_run_577 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState785
      | EOF | HAVING | LIMIT | OFFSET | ORDER | VALUES ->
          let _menhir_s = MenhirState785 in
          let _v = _menhir_action_231 () in
          _menhir_goto_option_group_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_577 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_GROUP (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | BY ->
          let _menhir_s = MenhirState578 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_213 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_ISURI (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState214 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_215 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_ISNUMERIC (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState216 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_217 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_ISLITERAL (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState218 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_219 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_ISIRI (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState220 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_221 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_ISBLANK (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState222 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_223 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_IRI (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState224 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_225 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_IF (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState226 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_227 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_HOURS (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState228 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_229 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_GROUP_CONCAT (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos_0 = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos_0) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | DISTINCT ->
              _menhir_run_142 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState230
          | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EXISTS | FLOOR | GROUP_CONCAT | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | PLUS | Pname_ln _ | Pname_ns _ | RAND | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | Var1 _ | Var2 _ | YEAR ->
              let _v = _menhir_action_221 () in
              _menhir_run_231 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState230 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_231 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_GROUP_CONCAT _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState231
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState231
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState231
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState231
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState231
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState231
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState231
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState231
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState231
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState231
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState231
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState231
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState231
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState231
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState231
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState231
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState231
      | _ ->
          _eRR ()
  
  and _menhir_run_232 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_FLOOR (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState233 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_234 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_EXISTS (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState234 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_236 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_ENCODE_FOR_URI (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState237 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_238 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_DAY (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState239 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_240 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_DATATYPE (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState241 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_242 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_COUNT (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos_0 = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos_0) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | DISTINCT ->
              _menhir_run_142 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState243
          | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EXISTS | FLOOR | GROUP_CONCAT | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | PLUS | Pname_ln _ | Pname_ns _ | RAND | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | Var1 _ | Var2 _ | YEAR ->
              let _v = _menhir_action_221 () in
              _menhir_run_244 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState243 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_244 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_COUNT _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | Var2 _v_0 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState244
      | Var1 _v_1 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState244
      | UUID ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | URI ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | UCASE ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | TZ ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | TIMEZONE ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | String_literal _v_2 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState244
      | SUM ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | SUBSTR ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | STRUUID ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | STRSTARTS ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | STRLEN ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | STRLANG ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | STRENDS ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | STRDT ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | STRBEFORE ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | STRAFTER ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | STR ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | STAR ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | RPAR ->
              let _endpos_3 = _menhir_lexbuf.Lexing.lex_curr_p in
              let _tok = _menhir_lexer _menhir_lexbuf in
              let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
              let MenhirCell1_COUNT (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
              let (_endpos__5_, d) = (_endpos_3, _v) in
              let _v = _menhir_action_001 d in
              _menhir_goto_aggregate _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__5_ _startpos__1_ _v _menhir_s _tok
          | _ ->
              _eRR ())
      | SHA512 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | SHA384 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | SHA256 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | SHA1 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | SECONDS ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | SAMPLE ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | SAMETERM ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | ROUND ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | REPLACE ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | REGEX ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | RAND ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | Pname_ns _v_4 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState244
      | Pname_ln _v_5 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState244
      | PLUS ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | NOW ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | NOT ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | MONTH ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | MINUTES ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | MINUS ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | MIN ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | MD5 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | MAX ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | LPAR ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | LCASE ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | LANGMATCHES ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | LANG ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | Iriref_ _v_6 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState244
      | Integer_positive _v_7 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState244
      | Integer_negative _v_8 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState244
      | Integer _v_9 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState244
      | ISURI ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | ISNUMERIC ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | ISLITERAL ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | ISIRI ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | ISBLANK ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | IRI ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | IF ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | HOURS ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | GROUP_CONCAT ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | FLOOR ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | EXISTS ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | ENCODE_FOR_URI ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | Double_positive _v_10 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState244
      | Double_negative _v_11 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState244
      | Double _v_12 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState244
      | Decimal_positive _v_13 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState244
      | Decimal_negative _v_14 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState244
      | Decimal _v_15 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState244
      | DAY ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | DATATYPE ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | COUNT ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | CONTAINS ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | CONCAT ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | COALESCE ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | CEIL ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | Boolean _v_16 ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_16 MenhirState244
      | BOUND ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | BNODE ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | BANG ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | AVG ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | ABS ->
          let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState244
      | _ ->
          _eRR ()
  
  and _menhir_run_247 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_CONTAINS (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState248 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_249 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_CONCAT (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState249 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | NIL ->
          _menhir_run_250 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_251 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_250 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let _endpos__1_ = _endpos in
      let _v = _menhir_action_097 () in
      _menhir_goto_expression_list _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_expression_list : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState249 ->
          _menhir_run_338 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState317 ->
          _menhir_run_318 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState311 ->
          _menhir_run_312 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState252 ->
          _menhir_run_253 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_338 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_CONCAT -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_CONCAT (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_endpos_e_, e) = (_endpos, _v) in
      let _v = _menhir_action_035 e in
      _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_318 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_numexp -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_numexp (_menhir_stack, _menhir_s, e, _startpos_e_, _) = _menhir_stack in
      let (_endpos_l_, l) = (_endpos, _v) in
      let _v = _menhir_action_329 _endpos_l_ _startpos_e_ e l in
      _menhir_goto_relational_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_l_ _startpos_e_ _v _menhir_s _tok
  
  and _menhir_run_312 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_numexp _menhir_cell0_NOT -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell0_NOT (_menhir_stack, _) = _menhir_stack in
      let MenhirCell1_numexp (_menhir_stack, _menhir_s, e, _startpos_e_, _) = _menhir_stack in
      let (_endpos_l_, l) = (_endpos, _v) in
      let _v = _menhir_action_330 _endpos_l_ _startpos_e_ e l in
      _menhir_goto_relational_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_l_ _startpos_e_ _v _menhir_s _tok
  
  and _menhir_run_253 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_COALESCE -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_COALESCE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_endpos_l_, l) = (_endpos, _v) in
      let _v = _menhir_action_063 l in
      _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_l_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_251 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState251 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_252 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_COALESCE (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState252 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | NIL ->
          _menhir_run_250 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_251 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_254 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_CEIL (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState255 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_256 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_BOUND (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState257 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_260 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | NIL ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let (_endpos__2_, _startpos__1_) = (_endpos, _startpos) in
          let _v = _menhir_action_029 () in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__2_ _startpos__1_ _v _menhir_s _tok
      | LPAR ->
          let _menhir_stack = MenhirCell1_BNODE (_menhir_stack, _menhir_s, _startpos) in
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState262 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_263 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_BANG (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState263 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_264 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_AVG (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos_0 = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos_0) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | DISTINCT ->
              _menhir_run_142 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState265
          | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EXISTS | FLOOR | GROUP_CONCAT | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | PLUS | Pname_ln _ | Pname_ns _ | RAND | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | Var1 _ | Var2 _ | YEAR ->
              let _v = _menhir_action_221 () in
              _menhir_run_266 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState265 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_266 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_AVG _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState266
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState266
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState266
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState266
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState266
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState266
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState266
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState266
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState266
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState266
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState266
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState266
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState266
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState266
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState266
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState266
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState266
      | _ ->
          _eRR ()
  
  and _menhir_run_267 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_ABS (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState268 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_goto_option_group_clause_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_group_clause_ (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | HAVING ->
          let _menhir_s = MenhirState625 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | EOF | LIMIT | OFFSET | ORDER | RBRACE | VALUES ->
          let _v = _menhir_action_233 () in
          _menhir_goto_option_having_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_goto_option_having_clause_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let _menhir_stack = MenhirCell0_option_having_clause_ (_menhir_stack, _v) in
      match (_tok : MenhirBasics.token) with
      | ORDER ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | BY ->
              let _menhir_s = MenhirState636 in
              let _tok = _menhir_lexer _menhir_lexbuf in
              (match (_tok : MenhirBasics.token) with
              | YEAR ->
                  _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | Var2 _v ->
                  _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Var1 _v ->
                  _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | UUID ->
                  _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | URI ->
                  _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | UCASE ->
                  _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | TZ ->
                  _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | TIMEZONE ->
                  _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | SUM ->
                  _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | SUBSTR ->
                  _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | STRUUID ->
                  _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | STRSTARTS ->
                  _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | STRLEN ->
                  _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | STRLANG ->
                  _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | STRENDS ->
                  _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | STRDT ->
                  _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | STRBEFORE ->
                  _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | STRAFTER ->
                  _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | STR ->
                  _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | SHA512 ->
                  _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | SHA384 ->
                  _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | SHA256 ->
                  _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | SHA1 ->
                  _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | SECONDS ->
                  _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | SAMPLE ->
                  _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | SAMETERM ->
                  _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | ROUND ->
                  _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | REPLACE ->
                  _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | REGEX ->
                  _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | RAND ->
                  _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | Pname_ns _v ->
                  _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Pname_ln _v ->
                  _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | NOW ->
                  _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | NOT ->
                  _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | MONTH ->
                  _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | MINUTES ->
                  _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | MIN ->
                  _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | MD5 ->
                  _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | MAX ->
                  _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | LPAR ->
                  _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | LCASE ->
                  _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | LANGMATCHES ->
                  _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | LANG ->
                  _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | Iriref_ _v ->
                  _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | ISURI ->
                  _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | ISNUMERIC ->
                  _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | ISLITERAL ->
                  _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | ISIRI ->
                  _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | ISBLANK ->
                  _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | IRI ->
                  _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | IF ->
                  _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | HOURS ->
                  _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | GROUP_CONCAT ->
                  _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | FLOOR ->
                  _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | EXISTS ->
                  _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | ENCODE_FOR_URI ->
                  _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | DESC ->
                  _menhir_run_637 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | DAY ->
                  _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | DATATYPE ->
                  _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | COUNT ->
                  _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | CONTAINS ->
                  _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | CONCAT ->
                  _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | COALESCE ->
                  _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | CEIL ->
                  _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | BOUND ->
                  _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | BNODE ->
                  _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | AVG ->
                  _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | ASC ->
                  _menhir_run_639 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | ABS ->
                  _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | _ ->
                  _eRR ())
          | _ ->
              _eRR ())
      | EOF | LIMIT | OFFSET | RBRACE | VALUES ->
          let _v = _menhir_action_243 () in
          _menhir_goto_option_order_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_637 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_DESC (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState637 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_639 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_ASC (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState639 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_goto_option_order_clause_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let _menhir_stack = MenhirCell0_option_order_clause_ (_menhir_stack, _v) in
      match (_tok : MenhirBasics.token) with
      | OFFSET ->
          _menhir_run_648 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState647
      | LIMIT ->
          _menhir_run_650 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState647
      | EOF | RBRACE | VALUES ->
          let _v = _menhir_action_239 () in
          _menhir_goto_option_limit_offset_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_648 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Integer _v ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let (_endpos__2_, _2, _startpos__1_) = (_endpos, _v, _startpos) in
          let _v = _menhir_action_220 _2 in
          _menhir_goto_offset_clause _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__2_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_offset_clause : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState657 ->
          _menhir_run_659 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState647 ->
          _menhir_run_653 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_659 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_, _menhir_box_query) _menhir_cell1_limit_clause -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let (_endpos_x_, x) = (_endpos, _v) in
      let _v = _menhir_action_242 x in
      _menhir_goto_option_offset_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_x_ _v _tok
  
  and _menhir_goto_option_offset_clause_ : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_, _menhir_box_query) _menhir_cell1_limit_clause -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_limit_clause (_menhir_stack, _, l, _startpos_l_, _) = _menhir_stack in
      let (_endpos_o_, o) = (_endpos, _v) in
      let _v = _menhir_action_150 _endpos_o_ _startpos_l_ l o in
      _menhir_goto_limit_offset_clause _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_o_ _v _tok
  
  and _menhir_goto_limit_offset_clause : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let (_endpos_x_, x) = (_endpos, _v) in
      let _v = _menhir_action_240 x in
      _menhir_goto_option_limit_offset_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_x_ _v _tok
  
  and _menhir_goto_option_limit_offset_clause_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell0_option_order_clause_ (_menhir_stack, o) = _menhir_stack in
      let MenhirCell0_option_having_clause_ (_menhir_stack, h) = _menhir_stack in
      let MenhirCell1_option_group_clause_ (_menhir_stack, _menhir_s, g, _startpos_g_) = _menhir_stack in
      let (_endpos_lo_, lo) = (_endpos, _v) in
      let _v = _menhir_action_356 _endpos_lo_ _startpos_g_ g h lo o in
      _menhir_goto_solution_modifier _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_solution_modifier : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState785 ->
          _menhir_run_786 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState767 ->
          _menhir_run_768 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState762 ->
          _menhir_run_763 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState758 ->
          _menhir_run_759 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState740 ->
          _menhir_run_741 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState732 ->
          _menhir_run_733 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState576 ->
          _menhir_run_589 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_786 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_select_clause, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_where_clause -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_where_clause (_menhir_stack, _, w) = _menhir_stack in
      let MenhirCell1_list_dataset_clause_ (_menhir_stack, _, ds) = _menhir_stack in
      let MenhirCell1_select_clause (_menhir_stack, _menhir_s, s, _) = _menhir_stack in
      let m = _v in
      let _v = _menhir_action_102 ds m s w in
      _menhir_goto_get_query_kind _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_get_query_kind : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_prologue as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_get_query_kind (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | VALUES ->
          _menhir_run_590 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState788
      | EOF ->
          let _menhir_s = MenhirState788 in
          let _v = _menhir_action_261 () in
          _menhir_goto_option_values_clause__ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_590 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_VALUES (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState590 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | NIL ->
          _menhir_run_591 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_592 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_592 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_VALUES as 'stack) -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState592
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState592
      | RPAR ->
          let _v = _menhir_action_166 () in
          _menhir_run_595 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | _ ->
          _eRR ()
  
  and _menhir_run_595 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_VALUES, _menhir_box_query) _menhir_cell1_LPAR -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      let MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let l = _v in
      let _v = _menhir_action_178 l in
      _menhir_goto_nil_or_var_list _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_768 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_ASK, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_where_clause -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_where_clause (_menhir_stack, _, w) = _menhir_stack in
      let MenhirCell1_list_dataset_clause_ (_menhir_stack, _, ds) = _menhir_stack in
      let MenhirCell1_ASK (_menhir_stack, _menhir_s) = _menhir_stack in
      let m = _v in
      let _v = _menhir_action_107 ds m w in
      _menhir_goto_get_query_kind _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_763 : type  ttv_stack. (((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_construct_template, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_where_clause -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_where_clause (_menhir_stack, _, w) = _menhir_stack in
      let MenhirCell1_list_dataset_clause_ (_menhir_stack, _, ds) = _menhir_stack in
      let MenhirCell1_construct_template (_menhir_stack, _, t) = _menhir_stack in
      let MenhirCell1_CONSTRUCT (_menhir_stack, _menhir_s) = _menhir_stack in
      let m = _v in
      let _v = _menhir_action_103 ds m t w in
      _menhir_goto_get_query_kind _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_759 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_triples_template _menhir_cell0_RBRACE -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell0_RBRACE (_menhir_stack, _) = _menhir_stack in
      let MenhirCell1_triples_template (_menhir_stack, _, l, _) = _menhir_stack in
      let MenhirCell1_list_dataset_clause_ (_menhir_stack, _, ds) = _menhir_stack in
      let MenhirCell1_CONSTRUCT (_menhir_stack, _menhir_s) = _menhir_stack in
      let m = _v in
      let _v = _menhir_action_104 ds l m in
      _menhir_goto_get_query_kind _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_741 : type  ttv_stack. (((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_nonempty_list_var_or_iri_, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_option_where_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_option_where_clause_ (_menhir_stack, _, w) = _menhir_stack in
      let MenhirCell1_list_dataset_clause_ (_menhir_stack, _, ds) = _menhir_stack in
      let MenhirCell1_nonempty_list_var_or_iri_ (_menhir_stack, _, l) = _menhir_stack in
      let MenhirCell1_DESCRIBE (_menhir_stack, _menhir_s) = _menhir_stack in
      let m = _v in
      let _v = _menhir_action_105 ds l m w in
      _menhir_goto_get_query_kind _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_733 : type  ttv_stack. (((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_STAR, _menhir_box_query) _menhir_cell1_list_dataset_clause_, _menhir_box_query) _menhir_cell1_option_where_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_option_where_clause_ (_menhir_stack, _, w) = _menhir_stack in
      let MenhirCell1_list_dataset_clause_ (_menhir_stack, _, ds) = _menhir_stack in
      let MenhirCell1_STAR (_menhir_stack, _, _) = _menhir_stack in
      let MenhirCell1_DESCRIBE (_menhir_stack, _menhir_s) = _menhir_stack in
      let m = _v in
      let _v = _menhir_action_106 ds m w in
      _menhir_goto_get_query_kind _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_589 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_cell1_select_clause, _menhir_box_query) _menhir_cell1_where_clause as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_solution_modifier (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | VALUES ->
          _menhir_run_590 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState589
      | RBRACE ->
          let _menhir_s = MenhirState589 in
          let _v = _menhir_action_261 () in
          _menhir_goto_option_values_clause__ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_653 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_ as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_offset_clause (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | LIMIT ->
          _menhir_run_650 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState653
      | EOF | RBRACE | VALUES ->
          let _v = _menhir_action_237 () in
          _menhir_goto_option_limit_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_650 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Integer _v ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let (_endpos__2_, _2, _startpos__1_) = (_endpos, _v, _startpos) in
          let _v = _menhir_action_149 _2 in
          _menhir_goto_limit_clause _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__2_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_limit_clause : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState647 ->
          _menhir_run_657 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState653 ->
          _menhir_run_655 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_657 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_ as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_limit_clause (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | OFFSET ->
          _menhir_run_648 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState657
      | EOF | RBRACE | VALUES ->
          let _v = _menhir_action_241 () in
          _menhir_goto_option_offset_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_655 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_, _menhir_box_query) _menhir_cell1_offset_clause -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let (_endpos_x_, x) = (_endpos, _v) in
      let _v = _menhir_action_238 x in
      _menhir_goto_option_limit_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_x_ _v _tok
  
  and _menhir_goto_option_limit_clause_ : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ _menhir_cell0_option_order_clause_, _menhir_box_query) _menhir_cell1_offset_clause -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_offset_clause (_menhir_stack, _, o, _startpos_o_, _) = _menhir_stack in
      let (_endpos_l_, l) = (_endpos, _v) in
      let _v = _menhir_action_151 _endpos_l_ _startpos_o_ l o in
      _menhir_goto_limit_offset_clause _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_l_ _v _tok
  
  and _menhir_run_767 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_ASK, _menhir_box_query) _menhir_cell1_list_dataset_clause_ as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_where_clause (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | GROUP ->
          _menhir_run_577 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState767
      | EOF | HAVING | LIMIT | OFFSET | ORDER | VALUES ->
          let _menhir_s = MenhirState767 in
          let _v = _menhir_action_231 () in
          _menhir_goto_option_group_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_762 : type  ttv_stack. (((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_construct_template, _menhir_box_query) _menhir_cell1_list_dataset_clause_ as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_where_clause (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | GROUP ->
          _menhir_run_577 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState762
      | EOF | HAVING | LIMIT | OFFSET | ORDER | VALUES ->
          let _menhir_s = MenhirState762 in
          let _v = _menhir_action_231 () in
          _menhir_goto_option_group_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_731 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_list_dataset_clause_ as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let x = _v in
      let _v = _menhir_action_268 x in
      _menhir_goto_option_where_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_option_where_clause_ : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_list_dataset_clause_ as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState739 ->
          _menhir_run_740 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState730 ->
          _menhir_run_732 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_740 : type  ttv_stack. (((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_nonempty_list_var_or_iri_, _menhir_box_query) _menhir_cell1_list_dataset_clause_ as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_where_clause_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | GROUP ->
          _menhir_run_577 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState740
      | EOF | HAVING | LIMIT | OFFSET | ORDER | VALUES ->
          let _menhir_s = MenhirState740 in
          let _v = _menhir_action_231 () in
          _menhir_goto_option_group_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_732 : type  ttv_stack. (((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_STAR, _menhir_box_query) _menhir_cell1_list_dataset_clause_ as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_where_clause_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | GROUP ->
          _menhir_run_577 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState732
      | EOF | HAVING | LIMIT | OFFSET | ORDER | VALUES ->
          let _menhir_s = MenhirState732 in
          let _v = _menhir_action_231 () in
          _menhir_goto_option_group_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_576 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_cell1_select_clause as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_where_clause (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | GROUP ->
          _menhir_run_577 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState576
      | HAVING | LIMIT | OFFSET | ORDER | RBRACE | VALUES ->
          let _menhir_s = MenhirState576 in
          let _v = _menhir_action_231 () in
          _menhir_goto_option_group_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_235 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_EXISTS -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_EXISTS (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_endpos_g_, g) = (_endpos, _v) in
      let _v = _menhir_action_073 g in
      _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_g_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_192 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_NOT _menhir_cell0_EXISTS -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell0_EXISTS (_menhir_stack, _) = _menhir_stack in
      let MenhirCell1_NOT (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_endpos_g_, g) = (_endpos, _v) in
      let _v = _menhir_action_074 g in
      _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_g_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_667 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SERVICE (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | SILENT ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let x = () in
          let _v = _menhir_action_226 x in
          _menhir_goto_option_SILENT_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | Iriref_ _ | Pname_ln _ | Pname_ns _ | Var1 _ | Var2 _ ->
          let _v = _menhir_action_225 () in
          _menhir_goto_option_SILENT_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_option_SILENT_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_SERVICE -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let _menhir_stack = MenhirCell0_option_SILENT_ (_menhir_stack, _v) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState669
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState669
      | Pname_ns _v_2 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState669
      | Pname_ln _v_3 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState669
      | Iriref_ _v_4 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState669
      | _ ->
          _eRR ()
  
  and _menhir_run_672 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_OPTIONAL (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState672 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_674 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_MINUS (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState674 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_676 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_GRAPH (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState676 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_679 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_FILTER (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState679 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_681 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_BIND (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | LPAR ->
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
          let _menhir_s = MenhirState682 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_702 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_gp_triples -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v ->
      let MenhirCell1_gp_triples (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let (_endpos_xs_, xs) = (_endpos, _v) in
      let _v = _menhir_action_159 x xs in
      _menhir_goto_list_gp_triples_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_xs_ _v _menhir_s
  
  and _menhir_goto_list_gp_triples_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s ->
      match _menhir_s with
      | MenhirState701 ->
          _menhir_run_702 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v
      | MenhirState664 ->
          _menhir_run_691 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_691 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LBRACE, _menhir_box_query) _menhir_cell1_option_triples_block_ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v ->
      let MenhirCell1_option_triples_block_ (_menhir_stack, _, t, _startpos_t_) = _menhir_stack in
      let (_endpos_l_, l) = (_endpos, _v) in
      let _v = _menhir_action_134 _endpos_l_ _startpos_t_ l t in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let MenhirCell1_LBRACE (_menhir_stack, _menhir_s) = _menhir_stack in
      let (_2, _endpos__3_) = (_v, _endpos) in
      let _v = _menhir_action_133 _2 in
      _menhir_goto_group_graph_pattern _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__3_ _v _menhir_s _tok
  
  and _menhir_run_664 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LBRACE as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_triples_block_ (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | VALUES ->
          _menhir_run_665 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState664
      | SERVICE ->
          _menhir_run_667 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState664
      | OPTIONAL ->
          _menhir_run_672 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState664
      | MINUS ->
          _menhir_run_674 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState664
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState664
      | GRAPH ->
          _menhir_run_676 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState664
      | FILTER ->
          _menhir_run_679 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState664
      | BIND ->
          _menhir_run_681 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState664
      | RBRACE ->
          let _v_0 = _menhir_action_158 () in
          _menhir_run_691 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_566 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_triples_same_subject_path -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let (_endpos_x_, x) = (_endpos, _v) in
      let _v = _menhir_action_256 x in
      _menhir_goto_option_triples_block_details_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_x_ _v _tok
  
  and _menhir_run_533 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_113 _1 in
      _menhir_goto_graph_node_path _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_538 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_219 _1 in
      match (_tok : MenhirBasics.token) with
      | COMMA ->
          let _menhir_stack = MenhirCell1_object_path (_menhir_stack, _menhir_s, _v) in
          let _menhir_s = MenhirState536 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | NIL ->
              _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_492 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LBRACKET ->
              _menhir_run_493 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Blank_node_label _v ->
              _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ANON ->
              _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | BIND | DOT | FILTER | GRAPH | LBRACE | MINUS | OPTIONAL | RBRACE | RBRACKET | SEMICOLON | SERVICE | VALUES ->
          let x = _v in
          let _v = _menhir_action_343 x in
          _menhir_goto_separated_nonempty_list_COMMA_object_path_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_separated_nonempty_list_COMMA_object_path_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState536 ->
          _menhir_run_537 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState531 ->
          _menhir_run_534 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_537 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_object_path -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_object_path (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_344 x xs in
      _menhir_goto_separated_nonempty_list_COMMA_object_path_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_534 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_verb_path_or_simple as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_218 _1 in
      let _menhir_stack = MenhirCell1_object_list_path (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | SEMICOLON ->
          _menhir_run_542 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState541
      | BIND | DOT | FILTER | GRAPH | LBRACE | MINUS | OPTIONAL | RBRACE | RBRACKET | SERVICE | VALUES ->
          let _v_0 = _menhir_action_170 () in
          _menhir_run_551 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0 _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_542 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _menhir_stack = MenhirCell1_SEMICOLON (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState542 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | LPAR ->
          _menhir_run_494 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | HAT ->
          _menhir_run_495 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_496 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | A ->
          _menhir_run_510 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BIND | DOT | FILTER | GRAPH | LBRACE | MINUS | OPTIONAL | RBRACE | RBRACKET | SEMICOLON | SERVICE | VALUES ->
          let _v = _menhir_action_265 () in
          _menhir_goto_option_verbp_object_list_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_option_verbp_object_list_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_SEMICOLON -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_SEMICOLON (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_411 _2 in
      let _menhir_stack = MenhirCell1_verbp_object_list_l (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | SEMICOLON ->
          _menhir_run_542 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState549
      | BIND | DOT | FILTER | GRAPH | LBRACE | MINUS | OPTIONAL | RBRACE | RBRACKET | SERVICE | VALUES ->
          let _v_0 = _menhir_action_170 () in
          _menhir_run_550 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0 _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_550 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_verbp_object_list_l -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_verbp_object_list_l (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let (_endpos_xs_, xs) = (_endpos, _v) in
      let _v = _menhir_action_171 x xs in
      _menhir_goto_list_verbp_object_list_l_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_xs_ _v _menhir_s _tok
  
  and _menhir_goto_list_verbp_object_list_l_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState541 ->
          _menhir_run_551 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState549 ->
          _menhir_run_550 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_551 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_verb_path_or_simple, _menhir_box_query) _menhir_cell1_object_list_path -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_object_list_path (_menhir_stack, _, olp) = _menhir_stack in
      let MenhirCell1_verb_path_or_simple (_menhir_stack, _menhir_s, v, _startpos_v_) = _menhir_stack in
      let (_endpos_more_, more) = (_endpos, _v) in
      let _v = _menhir_action_309 _endpos_more_ _startpos_v_ more olp v in
      _menhir_goto_property_list_path_not_empty _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_property_list_path_not_empty : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState562 ->
          _menhir_run_563 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState558 ->
          _menhir_run_559 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState493 ->
          _menhir_run_552 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_563 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_triples_node_path -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let x = _v in
      let _v = _menhir_action_250 x in
      _menhir_goto_option_property_list_path_not_empty_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
  
  and _menhir_run_559 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_var_or_term -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_var_or_term (_menhir_stack, _menhir_s, v, _startpos_v_, _) = _menhir_stack in
      let p = _v in
      let _v = _menhir_action_373 p v in
      _menhir_goto_triples_same_subject_path _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos_v_ _v _menhir_s _tok
  
  and _menhir_run_552 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_LBRACKET -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RBRACKET ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_LBRACKET (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let _2 = _v in
          let _v = _menhir_action_016 _2 in
          let _startpos = _startpos__1_ in
          let (_startpos__1_, _1) = (_startpos, _v) in
          let _v = _menhir_action_370 _1 in
          _menhir_goto_triples_node_path _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_082 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_var_or_term (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState082
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState082
      | Pname_ns _v_2 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState082
      | Pname_ln _v_3 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState082
      | Iriref_ _v_4 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState082
      | A ->
          _menhir_run_026 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState082
      | _ ->
          _eRR ()
  
  and _menhir_run_043 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let (_endpos__1_, _1) = (_endpos, _v) in
      let _v = _menhir_action_110 _1 in
      _menhir_goto_graph_node _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_graph_node : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState080 ->
          _menhir_run_080 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_080 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_064 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_064 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_064 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_080 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState080
      | Var1 _v_1 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState080
      | String_literal _v_2 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState080
      | Pname_ns _v_3 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState080
      | Pname_ln _v_4 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState080
      | NIL ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState080
      | LPAR ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState080
      | LBRACKET ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState080
      | Iriref_ _v_5 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState080
      | Integer_positive _v_6 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState080
      | Integer_negative _v_7 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState080
      | Integer _v_8 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState080
      | Double_positive _v_9 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState080
      | Double_negative _v_10 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState080
      | Double _v_11 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState080
      | Decimal_positive _v_12 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState080
      | Decimal_negative _v_13 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState080
      | Decimal _v_14 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState080
      | Boolean _v_15 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState080
      | Blank_node_label _v_16 ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v_16 MenhirState080
      | ANON ->
          let _menhir_stack = MenhirCell1_graph_node (_menhir_stack, _menhir_s, _v, _endpos) in
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState080
      | RPAR ->
          let x = _v in
          let _v = _menhir_action_179 x in
          _menhir_goto_nonempty_list_graph_node_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_goto_nonempty_list_graph_node_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      match _menhir_s with
      | MenhirState080 ->
          _menhir_run_081 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | MenhirState024 ->
          _menhir_run_078 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_081 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_graph_node -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let MenhirCell1_graph_node (_menhir_stack, _menhir_s, x, _) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_180 x xs in
      _menhir_goto_nonempty_list_graph_node_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
  
  and _menhir_run_078 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_LPAR -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_2, _endpos__3_) = (_v, _endpos) in
      let _v = _menhir_action_075 _2 in
      let (_endpos, _startpos) = (_endpos__3_, _startpos__1_) in
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_367 _1 in
      _menhir_goto_triples_node _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_triples_node : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState756 ->
          _menhir_run_087 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState750 ->
          _menhir_run_087 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_087 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_087 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_087 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_087 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_087 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_045 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState080 ->
          _menhir_run_045 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_045 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_045 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_045 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_087 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_triples_node (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState087
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState087
      | Pname_ns _v_2 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState087
      | Pname_ln _v_3 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState087
      | Iriref_ _v_4 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState087
      | A ->
          _menhir_run_026 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState087
      | DOT | GRAPH | RBRACE ->
          let _v = _menhir_action_247 () in
          _menhir_goto_option_property_list_not_empty_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_option_property_list_not_empty_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_triples_node -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let l = _v in
      let _v = _menhir_action_306 l in
      let MenhirCell1_triples_node (_menhir_stack, _menhir_s, t, _startpos_t_, _) = _menhir_stack in
      let l = _v in
      let _v = _menhir_action_372 l t in
      _menhir_goto_triples_same_subject _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos_t_ _v _menhir_s _tok
  
  and _menhir_goto_triples_same_subject : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | DOT ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Var2 _v_0 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState086
          | Var1 _v_1 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState086
          | String_literal _v_2 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState086
          | Pname_ns _v_3 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState086
          | Pname_ln _v_4 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState086
          | NIL ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState086
          | LPAR ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState086
          | LBRACKET ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState086
          | Iriref_ _v_5 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState086
          | Integer_positive _v_6 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState086
          | Integer_negative _v_7 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState086
          | Integer _v_8 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState086
          | Double_positive _v_9 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState086
          | Double_negative _v_10 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState086
          | Double _v_11 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState086
          | Decimal_positive _v_12 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState086
          | Decimal_negative _v_13 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState086
          | Decimal _v_14 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState086
          | Boolean _v_15 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState086
          | Blank_node_label _v_16 ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v_16 MenhirState086
          | ANON ->
              let _menhir_stack = MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _v, _startpos) in
              _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState086
          | GRAPH | RBRACE ->
              let (_startpos__1_, _1) = (_startpos, _v) in
              let _v = _menhir_action_082 _1 in
              _menhir_goto_construct_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
          | _ ->
              _eRR ())
      | GRAPH | RBRACE ->
          let (_startpos__1_, _1) = (_startpos, _v) in
          let _v = _menhir_action_081 _1 in
          _menhir_goto_construct_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_construct_triples : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState750 ->
          _menhir_run_753 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState756 ->
          _menhir_run_100 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_100 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_100 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_100 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_100 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_091 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_753 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_LBRACE -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let x = _v in
      let _v = _menhir_action_230 x in
      _menhir_goto_option_construct_triples_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
  
  and _menhir_goto_option_construct_triples_ : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_LBRACE -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RBRACE ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_LBRACE (_menhir_stack, _menhir_s) = _menhir_stack in
          let _2 = _v in
          let _v = _menhir_action_080 _2 in
          let _menhir_stack = MenhirCell1_construct_template (_menhir_stack, _menhir_s, _v) in
          (match (_tok : MenhirBasics.token) with
          | FROM ->
              _menhir_run_725 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState760
          | LBRACE | WHERE ->
              let _v_0 = _menhir_action_156 () in
              _menhir_run_761 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState760 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_761 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_construct_template as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_list_dataset_clause_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | WHERE ->
          _menhir_run_575 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState761
      | LBRACE ->
          let _menhir_s = MenhirState761 in
          let _v = _menhir_action_227 () in
          _menhir_goto_option_WHERE_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_100 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_375 _1 in
      _menhir_goto_triples_template _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_triples_template : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState756 ->
          _menhir_run_757 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_084 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_084 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_084 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_084 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_757 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT, _menhir_box_query) _menhir_cell1_list_dataset_clause_ as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_triples_template (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | RBRACE ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _menhir_stack = MenhirCell0_RBRACE (_menhir_stack, _endpos) in
          let _menhir_s = MenhirState758 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | GROUP ->
              _menhir_run_577 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EOF | HAVING | LIMIT | OFFSET | ORDER | VALUES ->
              let _v = _menhir_action_231 () in
              _menhir_goto_option_group_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _endpos _v _menhir_s _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_084 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_startpos_x_, x) = (_startpos, _v) in
      let _v = _menhir_action_260 x in
      _menhir_goto_option_triples_template_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos_x_ _v _menhir_s _tok
  
  and _menhir_goto_option_triples_template_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState103 ->
          _menhir_run_104 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState097 ->
          _menhir_run_098 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState718 ->
          _menhir_run_094 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_094 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_104 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_quads_not_triples, _menhir_box_query) _menhir_cell1_option_DOT_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_option_DOT_ (_menhir_stack, _, _) = _menhir_stack in
      let MenhirCell1_quads_not_triples (_menhir_stack, _menhir_s, q) = _menhir_stack in
      let t = _v in
      let _v = _menhir_action_313 q t in
      let _menhir_stack = MenhirCell1_quads1 (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | GRAPH ->
          _menhir_run_095 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState105
      | RBRACE ->
          let _v_0 = _menhir_action_162 () in
          _menhir_run_106 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_106 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_quads1 -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v ->
      let MenhirCell1_quads1 (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let (_endpos_xs_, xs) = (_endpos, _v) in
      let _v = _menhir_action_163 x xs in
      _menhir_goto_list_quads1_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_xs_ _v _menhir_s
  
  and _menhir_goto_list_quads1_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s ->
      match _menhir_s with
      | MenhirState094 ->
          _menhir_run_107 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v
      | MenhirState105 ->
          _menhir_run_106 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_098 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_GRAPH, _menhir_box_query) _menhir_cell1_var_or_iri -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RBRACE ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_var_or_iri (_menhir_stack, _, v, _) = _menhir_stack in
          let MenhirCell1_GRAPH (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (t, _endpos__5_) = (_v, _endpos) in
          let _v = _menhir_action_314 _endpos__5_ _startpos__1_ t v in
          let _menhir_stack = MenhirCell1_quads_not_triples (_menhir_stack, _menhir_s, _v) in
          (match (_tok : MenhirBasics.token) with
          | DOT ->
              _menhir_run_102 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState101
          | ANON | Blank_node_label _ | Boolean _ | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | GRAPH | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LBRACKET | LPAR | NIL | Pname_ln _ | Pname_ns _ | RBRACE | String_literal _ | Var1 _ | Var2 _ ->
              let _v_0 = _menhir_action_223 () in
              _menhir_run_103 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0 MenhirState101 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_103 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_quads_not_triples as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_DOT_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState103
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState103
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState103
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState103
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState103
      | NIL ->
          _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState103
      | LPAR ->
          _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState103
      | LBRACKET ->
          _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState103
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState103
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState103
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState103
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState103
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState103
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState103
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState103
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState103
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState103
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState103
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState103
      | Blank_node_label _v_16 ->
          _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v_16 MenhirState103
      | ANON ->
          _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState103
      | GRAPH | RBRACE ->
          let _v_17 = _menhir_action_259 () in
          _menhir_run_104 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_17 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_091 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_triples_same_subject -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_triples_same_subject (_menhir_stack, _menhir_s, _1, _startpos__1_) = _menhir_stack in
      let _3 = _v in
      let _v = _menhir_action_083 _1 _3 in
      _menhir_goto_construct_triples _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_045 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let (_endpos__1_, _1) = (_endpos, _v) in
      let _v = _menhir_action_111 _1 in
      _menhir_goto_graph_node _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _menhir_s _tok
  
  and _menhir_run_064 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let (_endpos__1_, _1) = (_endpos, _v) in
      let _v = _menhir_action_216 _1 in
      let _endpos = _endpos__1_ in
      match (_tok : MenhirBasics.token) with
      | COMMA ->
          let _menhir_stack = MenhirCell1_object_ (_menhir_stack, _menhir_s, _v, _endpos) in
          let _menhir_s = MenhirState055 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | NIL ->
              _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LBRACKET ->
              _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Blank_node_label _v ->
              _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ANON ->
              _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | BIND | DOT | FILTER | GRAPH | LBRACE | MINUS | OPTIONAL | RBRACE | RBRACKET | SEMICOLON | SERVICE | VALUES ->
          let (_endpos_x_, x) = (_endpos, _v) in
          let _v = _menhir_action_341 x in
          _menhir_goto_separated_nonempty_list_COMMA_object__ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_x_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_separated_nonempty_list_COMMA_object__ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState055 ->
          _menhir_run_056 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState544 ->
          _menhir_run_050 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_050 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_056 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_object_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_object_ (_menhir_stack, _menhir_s, x, _) = _menhir_stack in
      let (_endpos_xs_, xs) = (_endpos, _v) in
      let _v = _menhir_action_342 x xs in
      _menhir_goto_separated_nonempty_list_COMMA_object__ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_xs_ _v _menhir_s _tok
  
  and _menhir_run_050 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let (_endpos__1_, _1) = (_endpos, _v) in
      let _v = _menhir_action_217 _1 in
      _menhir_goto_object_list _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_object_list : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState544 ->
          _menhir_run_545 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState030 ->
          _menhir_run_053 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_545 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SEMICOLON, _menhir_box_query) _menhir_cell1_verb_path_or_simple -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_verb_path_or_simple (_menhir_stack, _, v, _startpos_v_) = _menhir_stack in
      let (_endpos_l_, l) = (_endpos, _v) in
      let _v = _menhir_action_410 _endpos_l_ _startpos_v_ l v in
      let x = _v in
      let _v = _menhir_action_266 x in
      _menhir_goto_option_verbp_object_list_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
  
  and _menhir_run_053 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_verb -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_verb (_menhir_stack, _menhir_s, v, _startpos_v_) = _menhir_stack in
      let (_endpos_l_, l) = (_endpos, _v) in
      let _v = _menhir_action_406 _endpos_l_ _startpos_v_ l v in
      _menhir_goto_verb_object_list _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_verb_object_list : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState028 ->
          _menhir_run_029 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState087 ->
          _menhir_run_027 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState082 ->
          _menhir_run_027 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState025 ->
          _menhir_run_027 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_029 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_SEMICOLON -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let x = _v in
      let _v = _menhir_action_264 x in
      _menhir_goto_option_verb_object_list_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
  
  and _menhir_goto_option_verb_object_list_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_SEMICOLON -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_SEMICOLON (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_407 _2 in
      let _menhir_stack = MenhirCell1_verb_object_list_l (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | SEMICOLON ->
          _menhir_run_028 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState073
      | DOT | GRAPH | RBRACE | RBRACKET ->
          let _v_0 = _menhir_action_168 () in
          _menhir_run_074 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_028 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _menhir_stack = MenhirCell1_SEMICOLON (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState028 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | A ->
          _menhir_run_026 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DOT | GRAPH | RBRACE | RBRACKET | SEMICOLON ->
          let _v = _menhir_action_263 () in
          _menhir_goto_option_verb_object_list_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_074 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_verb_object_list_l -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_verb_object_list_l (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_169 x xs in
      _menhir_goto_list_verb_object_list_l_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_list_verb_object_list_l_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState027 ->
          _menhir_run_075 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState073 ->
          _menhir_run_074 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_075 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_verb_object_list -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_verb_object_list (_menhir_stack, _menhir_s, v) = _menhir_stack in
      let l = _v in
      let _v = _menhir_action_307 l v in
      _menhir_goto_property_list_not_empty _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_property_list_not_empty : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState087 ->
          _menhir_run_088 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState082 ->
          _menhir_run_083 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState025 ->
          _menhir_run_076 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_088 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_triples_node -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let x = _v in
      let _v = _menhir_action_248 x in
      _menhir_goto_option_property_list_not_empty_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
  
  and _menhir_run_083 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_var_or_term -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_var_or_term (_menhir_stack, _menhir_s, v, _startpos_v_, _) = _menhir_stack in
      let l = _v in
      let _v = _menhir_action_371 l v in
      _menhir_goto_triples_same_subject _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos_v_ _v _menhir_s _tok
  
  and _menhir_run_076 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_LBRACKET -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RBRACKET ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_LBRACKET (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_2, _endpos__3_) = (_v, _endpos) in
          let _v = _menhir_action_015 _2 in
          let (_endpos, _startpos) = (_endpos__3_, _startpos__1_) in
          let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_368 _1 in
          _menhir_goto_triples_node _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_027 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_verb_object_list (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | SEMICOLON ->
          _menhir_run_028 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState027
      | DOT | GRAPH | RBRACE | RBRACKET ->
          let _v_0 = _menhir_action_168 () in
          _menhir_run_075 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_606 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_data_block_value -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_data_block_value (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_153 x xs in
      _menhir_goto_list_data_block_value_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_list_data_block_value_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState611 ->
          _menhir_run_612 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState605 ->
          _menhir_run_606 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState598 ->
          _menhir_run_602 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_602 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_VALUES, _menhir_box_query) _menhir_cell1_var -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RBRACE ->
          let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_var (_menhir_stack, _menhir_s, v, _startpos_v_, _) = _menhir_stack in
          let (_endpos__4_, l) = (_endpos, _v) in
          let _v = _menhir_action_143 _endpos__4_ _startpos_v_ l v in
          let _endpos = _endpos__4_ in
          let (_endpos__1_, _1) = (_endpos, _v) in
          let _v = _menhir_action_091 _1 in
          _menhir_goto_datablock _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_282 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos_lit_, _startpos_lit_, lit) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_299 _endpos_lit_ _startpos_lit_ lit in
      _menhir_goto_primary_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_lit_ _startpos_lit_ _v _menhir_s _tok
  
  and _menhir_run_061 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_124 _1 in
      _menhir_goto_graph_term _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_expression : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState682 ->
          _menhir_run_683 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_585 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_585 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_483 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_481 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_479 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_477 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_475 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_473 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_471 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_469 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_466 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_464 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_462 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_460 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_458 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_456 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_454 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_452 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_450 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_448 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_446 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_444 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_442 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_440 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_438 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_436 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_434 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_432 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_430 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_428 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_426 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_424 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_422 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_420 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_418 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_416 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_413 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_411 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_409 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_407 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_404 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_402 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_401 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_399 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_397 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_396 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_394 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_392 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_390 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_388 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_386 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_384 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_382 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_380 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_378 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_376 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_374 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_372 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_370 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_368 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_366 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_364 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_362 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_360 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_353 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_351 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_349 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_347 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_345 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_343 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_341 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_339 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_334 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_332 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_331 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_329 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_327 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_309 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_309 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_309 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_309 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_309 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_309 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_309 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_309 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_305 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_303 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_301 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_293 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_291 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_291 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_291 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_683 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_BIND _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState683
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState683
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState683
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState683
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState683
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState683
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState683
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState683
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState683
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState683
      | AS ->
          let _menhir_stack = MenhirCell1_AS (_menhir_stack, MenhirState683) in
          let _menhir_s = MenhirState684 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_292 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_expression as 'stack) -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _menhir_stack = MenhirCell1_STAR (_menhir_stack, _menhir_s, _endpos) in
      let _menhir_s = MenhirState292 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_300 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_expression as 'stack) -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _menhir_stack = MenhirCell1_SLASH (_menhir_stack, _menhir_s) in
      let _menhir_s = MenhirState300 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_302 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_expression as 'stack) -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _menhir_stack = MenhirCell1_PLUS (_menhir_stack, _menhir_s, _startpos, _endpos) in
      let _menhir_s = MenhirState302 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_304 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_expression as 'stack) -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_MINUS (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState304 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_run_585 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState585
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState585
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState585
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState585
      | Integer_positive _v_0 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState585
      | Integer_negative _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState585
      | Double_positive _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState585
      | Double_negative _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState585
      | Decimal_positive _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState585
      | Decimal_negative _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState585
      | AS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_stack = MenhirCell1_AS (_menhir_stack, MenhirState585) in
          let _menhir_s = MenhirState586 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | _ ->
              _eRR ())
      | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Double _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUTES | MONTH | NOT | NOW | OFFSET | ORDER | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let (_endpos_e_, _startpos_e_, e) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_138 _endpos_e_ _startpos_e_ e in
          _menhir_goto_group_var _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_group_var : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_131 _1 in
      _menhir_goto_group_condition _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_goto_group_condition : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | Var2 _v_0 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState582
      | Var1 _v_1 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState582
      | UUID ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | URI ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | UCASE ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | TZ ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | TIMEZONE ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | String_literal _v_2 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState582
      | SUM ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | SUBSTR ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | STRUUID ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | STRSTARTS ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | STRLEN ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | STRLANG ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | STRENDS ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | STRDT ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | STRBEFORE ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | STRAFTER ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | STR ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | SHA512 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | SHA384 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | SHA256 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | SHA1 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | SECONDS ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | SAMPLE ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | SAMETERM ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | ROUND ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | REPLACE ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | REGEX ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | RAND ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | Pname_ns _v_3 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState582
      | Pname_ln _v_4 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState582
      | PLUS ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | NOW ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | NOT ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | MONTH ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | MINUTES ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | MINUS ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | MIN ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | MD5 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | MAX ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | LPAR ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | LCASE ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | LANGMATCHES ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | LANG ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | Iriref_ _v_5 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState582
      | Integer_positive _v_6 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState582
      | Integer_negative _v_7 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState582
      | Integer _v_8 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState582
      | ISURI ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | ISNUMERIC ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | ISLITERAL ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | ISIRI ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | ISBLANK ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | IRI ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | IF ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | HOURS ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | GROUP_CONCAT ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | FLOOR ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | EXISTS ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | ENCODE_FOR_URI ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | Double_positive _v_9 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState582
      | Double_negative _v_10 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState582
      | Double _v_11 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState582
      | Decimal_positive _v_12 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState582
      | Decimal_negative _v_13 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState582
      | Decimal _v_14 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState582
      | DAY ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | DATATYPE ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | COUNT ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | CONTAINS ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | CONCAT ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | COALESCE ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | CEIL ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | Boolean _v_15 ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState582
      | BOUND ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | BNODE ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | BANG ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | AVG ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | ABS ->
          let _menhir_stack = MenhirCell1_group_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState582
      | EOF | HAVING | LIMIT | OFFSET | ORDER | RBRACE | VALUES ->
          let x = _v in
          let _v = _menhir_action_183 x in
          _menhir_goto_nonempty_list_group_condition_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_nonempty_list_group_condition_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState582 ->
          _menhir_run_583 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState578 ->
          _menhir_run_580 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_583 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_group_condition -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_group_condition (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_184 x xs in
      _menhir_goto_nonempty_list_group_condition_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_580 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_GROUP -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_GROUP (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let l = _v in
      let _v = _menhir_action_128 l in
      let _startpos = _startpos__1_ in
      let (_startpos_x_, x) = (_startpos, _v) in
      let _v = _menhir_action_232 x in
      _menhir_goto_option_group_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos_x_ _v _menhir_s _tok
  
  and _menhir_run_483 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState483
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState483
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState483
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState483
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState483
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState483
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState483
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState483
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState483
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState483
      | AS ->
          let _menhir_stack = MenhirCell1_AS (_menhir_stack, MenhirState483) in
          let _menhir_s = MenhirState484 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_481 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_YEAR _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState481
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState481
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_YEAR (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_047 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState481
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState481
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState481
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState481
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState481
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState481
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState481
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState481
      | _ ->
          _eRR ()
  
  and _menhir_run_479 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_URI _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState479
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState479
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_URI (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_027 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState479
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState479
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState479
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState479
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState479
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState479
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState479
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState479
      | _ ->
          _eRR ()
  
  and _menhir_run_477 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_UCASE _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState477
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState477
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_UCASE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_039 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState477
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState477
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState477
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState477
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState477
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState477
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState477
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState477
      | _ ->
          _eRR ()
  
  and _menhir_run_475 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_TZ _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState475
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState475
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_TZ (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_054 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState475
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState475
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState475
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState475
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState475
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState475
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState475
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState475
      | _ ->
          _eRR ()
  
  and _menhir_run_473 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_TIMEZONE _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState473
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState473
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_TIMEZONE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_053 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState473
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState473
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState473
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState473
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState473
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState473
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState473
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState473
      | _ ->
          _eRR ()
  
  and _menhir_run_471 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_SUM _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_ as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState471
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState471
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_option_DISTINCT_ (_menhir_stack, _, d) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_SUM (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__5_) = (_v, _endpos_0) in
          let _v = _menhir_action_003 d e in
          _menhir_goto_aggregate _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__5_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState471
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState471
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState471
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState471
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState471
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState471
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState471
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState471
      | _ ->
          _eRR ()
  
  and _menhir_run_469 : type  ttv_stack. ((((((ttv_stack, _menhir_box_query) _menhir_cell1_SUBSTR _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState469
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState469
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e2, _, _) = _menhir_stack in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_SUBSTR (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__8_, e3) = (_endpos_0, _v) in
          let _v = _menhir_action_363 e1 e2 e3 in
          _menhir_goto_substring_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__8_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState469
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState469
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState469
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState469
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState469
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState469
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState469
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState469
      | _ ->
          _eRR ()
  
  and _menhir_goto_substring_expression : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_036 _1 in
      _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_466 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_SUBSTR _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState466
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState466
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_SUBSTR (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_362 e1 e2 in
          _menhir_goto_substring_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState466
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState466
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState466
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState466
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState466
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState466
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState466
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState466
      | COMMA ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState466) in
          let _menhir_s = MenhirState468 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_464 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SUBSTR _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState464
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState464
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState464
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState464
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState464
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState464
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState464
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState464
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState464
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState464
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState464) in
          let _menhir_s = MenhirState465 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_462 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_STRSTARTS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState462
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState462
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_STRSTARTS (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_043 e1 e2 in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState462
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState462
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState462
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState462
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState462
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState462
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState462
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState462
      | _ ->
          _eRR ()
  
  and _menhir_run_460 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_STRSTARTS _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState460
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState460
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState460
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState460
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState460
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState460
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState460
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState460
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState460
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState460
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState460) in
          let _menhir_s = MenhirState461 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_458 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_STRLEN _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState458
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState458
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_STRLEN (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_037 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState458
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState458
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState458
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState458
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState458
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState458
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState458
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState458
      | _ ->
          _eRR ()
  
  and _menhir_run_456 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_STRLANG _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState456
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState456
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_STRLANG (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_065 e1 e2 in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState456
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState456
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState456
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState456
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState456
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState456
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState456
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState456
      | _ ->
          _eRR ()
  
  and _menhir_run_454 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_STRLANG _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState454
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState454
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState454
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState454
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState454
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState454
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState454
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState454
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState454
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState454
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState454) in
          let _menhir_s = MenhirState455 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_452 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_STRENDS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState452
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState452
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_STRENDS (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_044 e1 e2 in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState452
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState452
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState452
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState452
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState452
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState452
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState452
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState452
      | _ ->
          _eRR ()
  
  and _menhir_run_450 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_STRENDS _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState450
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState450
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState450
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState450
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState450
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState450
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState450
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState450
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState450
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState450
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState450) in
          let _menhir_s = MenhirState451 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_448 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_STRDT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState448
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState448
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_STRDT (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_066 e1 e2 in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState448
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState448
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState448
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState448
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState448
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState448
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState448
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState448
      | _ ->
          _eRR ()
  
  and _menhir_run_446 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_STRDT _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState446
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState446
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState446
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState446
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState446
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState446
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState446
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState446
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState446
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState446
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState446) in
          let _menhir_s = MenhirState447 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_444 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_STRBEFORE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState444
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState444
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_STRBEFORE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_045 e1 e2 in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState444
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState444
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState444
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState444
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState444
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState444
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState444
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState444
      | _ ->
          _eRR ()
  
  and _menhir_run_442 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_STRBEFORE _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState442
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState442
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState442
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState442
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState442
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState442
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState442
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState442
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState442
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState442
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState442) in
          let _menhir_s = MenhirState443 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_440 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_STRAFTER _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState440
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState440
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_STRAFTER (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_046 e1 e2 in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState440
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState440
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState440
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState440
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState440
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState440
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState440
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState440
      | _ ->
          _eRR ()
  
  and _menhir_run_438 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_STRAFTER _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState438
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState438
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState438
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState438
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState438
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState438
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState438
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState438
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState438
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState438
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState438) in
          let _menhir_s = MenhirState439 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_436 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_STR _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState436
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState436
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_STR (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_021 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState436
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState436
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState436
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState436
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState436
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState436
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState436
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState436
      | _ ->
          _eRR ()
  
  and _menhir_run_434 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SHA512 _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState434
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState434
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_SHA512 (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_062 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState434
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState434
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState434
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState434
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState434
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState434
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState434
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState434
      | _ ->
          _eRR ()
  
  and _menhir_run_432 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SHA384 _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState432
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState432
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_SHA384 (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_061 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState432
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState432
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState432
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState432
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState432
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState432
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState432
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState432
      | _ ->
          _eRR ()
  
  and _menhir_run_430 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SHA256 _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState430
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState430
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_SHA256 (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_060 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState430
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState430
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState430
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState430
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState430
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState430
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState430
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState430
      | _ ->
          _eRR ()
  
  and _menhir_run_428 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SHA1 _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState428
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState428
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_SHA1 (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_059 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState428
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState428
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState428
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState428
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState428
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState428
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState428
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState428
      | _ ->
          _eRR ()
  
  and _menhir_run_426 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SECONDS _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState426
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState426
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_SECONDS (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_052 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState426
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState426
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState426
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState426
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState426
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState426
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState426
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState426
      | _ ->
          _eRR ()
  
  and _menhir_run_424 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_SAMPLE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_ as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState424
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState424
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_option_DISTINCT_ (_menhir_stack, _, d) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_SAMPLE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__5_) = (_v, _endpos_0) in
          let _v = _menhir_action_007 d e in
          _menhir_goto_aggregate _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__5_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState424
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState424
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState424
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState424
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState424
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState424
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState424
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState424
      | _ ->
          _eRR ()
  
  and _menhir_run_422 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_SAMETERM _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState422
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState422
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_SAMETERM (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_067 e1 e2 in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState422
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState422
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState422
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState422
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState422
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState422
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState422
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState422
      | _ ->
          _eRR ()
  
  and _menhir_run_420 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SAMETERM _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState420
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState420
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState420
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState420
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState420
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState420
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState420
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState420
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState420
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState420
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState420) in
          let _menhir_s = MenhirState421 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_418 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_ROUND _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState418
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState418
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_ROUND (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_034 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState418
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState418
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState418
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState418
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState418
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState418
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState418
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState418
      | _ ->
          _eRR ()
  
  and _menhir_run_416 : type  ttv_stack. ((((((((ttv_stack, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState416
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState416
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e3, _, _) = _menhir_stack in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e2, _, _) = _menhir_stack in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_REPLACE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__10_, e4) = (_endpos_0, _v) in
          let _v = _menhir_action_359 e1 e2 e3 e4 in
          _menhir_goto_str_replace_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__10_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState416
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState416
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState416
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState416
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState416
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState416
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState416
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState416
      | _ ->
          _eRR ()
  
  and _menhir_goto_str_replace_expression : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_038 _1 in
      _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_413 : type  ttv_stack. ((((((ttv_stack, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState413
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState413
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e2, _, _) = _menhir_stack in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_REPLACE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__8_, e3) = (_endpos_0, _v) in
          let _v = _menhir_action_358 e1 e2 e3 in
          _menhir_goto_str_replace_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__8_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState413
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState413
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState413
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState413
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState413
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState413
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState413
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState413
      | COMMA ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState413) in
          let _menhir_s = MenhirState415 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_411 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState411
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState411
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState411
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState411
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState411
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState411
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState411
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState411
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState411
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState411
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState411) in
          let _menhir_s = MenhirState412 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_409 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_REPLACE _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState409
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState409
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState409
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState409
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState409
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState409
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState409
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState409
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState409
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState409
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState409) in
          let _menhir_s = MenhirState410 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_407 : type  ttv_stack. ((((((ttv_stack, _menhir_box_query) _menhir_cell1_REGEX _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState407
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState407
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e2, _, _) = _menhir_stack in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_REGEX (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__8_, e3) = (_endpos_0, _v) in
          let _v = _menhir_action_322 e1 e2 e3 in
          _menhir_goto_regexp_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__8_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState407
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState407
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState407
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState407
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState407
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState407
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState407
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState407
      | _ ->
          _eRR ()
  
  and _menhir_goto_regexp_expression : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_020 _1 in
      _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_404 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_REGEX _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState404
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState404
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_REGEX (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_321 e1 e2 in
          _menhir_goto_regexp_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState404
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState404
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState404
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState404
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState404
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState404
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState404
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState404
      | COMMA ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState404) in
          let _menhir_s = MenhirState406 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_402 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_REGEX _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState402
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState402
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState402
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState402
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState402
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState402
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState402
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState402
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState402
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState402
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState402) in
          let _menhir_s = MenhirState403 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_401 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_PLUS as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState401
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState401
      | Integer_positive _v_0 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState401
      | Integer_negative _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState401
      | Double_positive _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState401
      | Double_negative _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState401
      | Decimal_positive _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState401
      | Decimal_negative _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState401
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Double _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_PLUS (_menhir_stack, _menhir_s, _startpos__1_, _) = _menhir_stack in
          let (_endpos_e_, e) = (_endpos, _v) in
          let _v = _menhir_action_214 e in
          _menhir_goto_numexp _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_399 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_MONTH _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState399
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState399
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_MONTH (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_048 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState399
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState399
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState399
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState399
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState399
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState399
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState399
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState399
      | _ ->
          _eRR ()
  
  and _menhir_run_397 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_MINUTES _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState397
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState397
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_MINUTES (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_051 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState397
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState397
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState397
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState397
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState397
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState397
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState397
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState397
      | _ ->
          _eRR ()
  
  and _menhir_run_396 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_MINUS as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | Integer_positive _v_0 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState396
      | Integer_negative _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState396
      | Double_positive _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState396
      | Double_negative _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState396
      | Decimal_positive _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState396
      | Decimal_negative _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState396
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Double _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_MINUS (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos_e_, e) = (_endpos, _v) in
          let _v = _menhir_action_215 _endpos_e_ _startpos__1_ e in
          _menhir_goto_numexp _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_394 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_MIN _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_ as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState394
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState394
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_option_DISTINCT_ (_menhir_stack, _, d) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_MIN (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__5_) = (_v, _endpos_0) in
          let _v = _menhir_action_004 d e in
          _menhir_goto_aggregate _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__5_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState394
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState394
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState394
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState394
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState394
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState394
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState394
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState394
      | _ ->
          _eRR ()
  
  and _menhir_run_392 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_MD5 _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState392
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState392
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_MD5 (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_058 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState392
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState392
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState392
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState392
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState392
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState392
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState392
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState392
      | _ ->
          _eRR ()
  
  and _menhir_run_390 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_MAX _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_ as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState390
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState390
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_option_DISTINCT_ (_menhir_stack, _, d) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_MAX (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__5_) = (_v, _endpos_0) in
          let _v = _menhir_action_005 d e in
          _menhir_goto_aggregate _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__5_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState390
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState390
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState390
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState390
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState390
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState390
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState390
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState390
      | _ ->
          _eRR ()
  
  and _menhir_run_388 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState388
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState388
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_2, _endpos__3_) = (_v, _endpos_0) in
          let _v = _menhir_action_018 _2 in
          _menhir_goto_bracketted_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__3_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState388
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState388
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState388
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState388
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState388
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState388
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState388
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState388
      | _ ->
          _eRR ()
  
  and _menhir_goto_bracketted_expression : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState639 ->
          _menhir_run_640 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState637 ->
          _menhir_run_638 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState679 ->
          _menhir_run_633 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState636 ->
          _menhir_run_633 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState642 ->
          _menhir_run_633 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState625 ->
          _menhir_run_633 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState628 ->
          _menhir_run_633 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState682 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_297 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_640 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_ASC -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_ASC (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_271 _2 in
      _menhir_goto_order_condition _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_638 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_DESC -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_DESC (_menhir_stack, _menhir_s) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_272 _2 in
      _menhir_goto_order_condition _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_633 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_077 _1 in
      _menhir_goto_constraint_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_297 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_296 _1 in
      _menhir_goto_primary_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_386 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LCASE _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState386
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState386
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_LCASE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_040 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState386
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState386
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState386
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState386
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState386
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState386
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState386
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState386
      | _ ->
          _eRR ()
  
  and _menhir_run_384 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_LANGMATCHES _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState384
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState384
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_LANGMATCHES (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_023 e1 e2 in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState384
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState384
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState384
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState384
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState384
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState384
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState384
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState384
      | _ ->
          _eRR ()
  
  and _menhir_run_382 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LANGMATCHES _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState382
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState382
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState382
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState382
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState382
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState382
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState382
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState382
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState382
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState382
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState382) in
          let _menhir_s = MenhirState383 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_380 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LANG _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState380
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState380
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_LANG (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_022 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState380
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState380
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState380
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState380
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState380
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState380
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState380
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState380
      | _ ->
          _eRR ()
  
  and _menhir_run_378 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_ISURI _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState378
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState378
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_ISURI (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_069 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState378
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState378
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState378
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState378
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState378
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState378
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState378
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState378
      | _ ->
          _eRR ()
  
  and _menhir_run_376 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_ISNUMERIC _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState376
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState376
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_ISNUMERIC (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_072 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState376
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState376
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState376
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState376
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState376
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState376
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState376
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState376
      | _ ->
          _eRR ()
  
  and _menhir_run_374 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_ISLITERAL _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState374
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState374
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_ISLITERAL (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_071 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState374
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState374
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState374
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState374
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState374
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState374
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState374
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState374
      | _ ->
          _eRR ()
  
  and _menhir_run_372 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_ISIRI _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState372
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState372
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_ISIRI (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_068 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState372
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState372
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState372
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState372
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState372
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState372
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState372
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState372
      | _ ->
          _eRR ()
  
  and _menhir_run_370 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_ISBLANK _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState370
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState370
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_ISBLANK (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_070 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState370
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState370
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState370
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState370
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState370
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState370
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState370
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState370
      | _ ->
          _eRR ()
  
  and _menhir_run_368 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_IRI _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState368
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState368
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_IRI (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_026 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState368
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState368
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState368
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState368
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState368
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState368
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState368
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState368
      | _ ->
          _eRR ()
  
  and _menhir_run_366 : type  ttv_stack. ((((((ttv_stack, _menhir_box_query) _menhir_cell1_IF _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState366
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState366
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e2, _, _) = _menhir_stack in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_IF (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__8_, e3) = (_endpos_0, _v) in
          let _v = _menhir_action_064 e1 e2 e3 in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__8_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState366
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState366
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState366
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState366
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState366
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState366
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState366
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState366
      | _ ->
          _eRR ()
  
  and _menhir_run_364 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_IF _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState364
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState364
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState364
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState364
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState364
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState364
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState364
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState364
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState364
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState364
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState364) in
          let _menhir_s = MenhirState365 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_362 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_IF _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState362
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState362
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState362
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState362
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState362
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState362
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState362
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState362
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState362
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState362
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState362) in
          let _menhir_s = MenhirState363 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_360 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_HOURS _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState360
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState360
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_HOURS (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_050 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState360
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState360
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState360
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState360
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState360
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState360
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState360
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState360
      | _ ->
          _eRR ()
  
  and _menhir_run_353 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_GROUP_CONCAT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_ as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState353
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState353
      | SEMICOLON ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_stack = MenhirCell1_SEMICOLON (_menhir_stack, MenhirState353) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | SEPARATOR ->
              let _tok = _menhir_lexer _menhir_lexbuf in
              (match (_tok : MenhirBasics.token) with
              | EQUAL ->
                  let _menhir_s = MenhirState356 in
                  let _tok = _menhir_lexer _menhir_lexbuf in
                  (match (_tok : MenhirBasics.token) with
                  | String_literal _v ->
                      _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
                  | _ ->
                      _eRR ())
              | _ ->
                  _eRR ())
          | _ ->
              _eRR ())
      | RPAR ->
          let _endpos_1 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_option_DISTINCT_ (_menhir_stack, _, d) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_GROUP_CONCAT (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__5_) = (_v, _endpos_1) in
          let _v = _menhir_action_008 d e in
          _menhir_goto_aggregate _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__5_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState353
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState353
      | Integer_positive _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState353
      | Integer_negative _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState353
      | Double_positive _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState353
      | Double_negative _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState353
      | Decimal_positive _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState353
      | Decimal_negative _v_7 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState353
      | _ ->
          _eRR ()
  
  and _menhir_run_351 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_FLOOR _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState351
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState351
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_FLOOR (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_033 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState351
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState351
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState351
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState351
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState351
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState351
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState351
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState351
      | _ ->
          _eRR ()
  
  and _menhir_run_349 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_ENCODE_FOR_URI _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState349
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState349
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_ENCODE_FOR_URI (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_041 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState349
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState349
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState349
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState349
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState349
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState349
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState349
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState349
      | _ ->
          _eRR ()
  
  and _menhir_run_347 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_DAY _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState347
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState347
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_DAY (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_049 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState347
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState347
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState347
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState347
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState347
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState347
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState347
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState347
      | _ ->
          _eRR ()
  
  and _menhir_run_345 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_DATATYPE _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState345
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState345
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_DATATYPE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_024 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState345
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState345
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState345
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState345
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState345
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState345
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState345
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState345
      | _ ->
          _eRR ()
  
  and _menhir_run_343 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_COUNT _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_ as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState343
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState343
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_option_DISTINCT_ (_menhir_stack, _, d) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_COUNT (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__5_) = (_v, _endpos_0) in
          let _v = _menhir_action_002 d e in
          _menhir_goto_aggregate _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__5_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState343
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState343
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState343
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState343
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState343
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState343
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState343
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState343
      | _ ->
          _eRR ()
  
  and _menhir_run_341 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_CONTAINS _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState341
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState341
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e1, _, _) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_CONTAINS (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos__6_, e2) = (_endpos_0, _v) in
          let _v = _menhir_action_042 e1 e2 in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__6_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState341
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState341
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState341
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState341
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState341
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState341
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState341
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState341
      | _ ->
          _eRR ()
  
  and _menhir_run_339 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_CONTAINS _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState339
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState339
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState339
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState339
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState339
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState339
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState339
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState339
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState339
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState339
      | COMMA ->
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState339) in
          let _menhir_s = MenhirState340 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_334 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_CEIL _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState334
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState334
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_CEIL (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_032 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState334
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState334
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState334
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState334
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState334
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState334
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState334
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState334
      | _ ->
          _eRR ()
  
  and _menhir_run_332 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_BNODE _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState332
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState332
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_BNODE (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_028 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState332
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState332
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState332
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState332
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState332
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState332
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState332
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState332
      | _ ->
          _eRR ()
  
  and _menhir_run_331 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_BANG as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | Integer_positive _v_0 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState331
      | Integer_negative _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState331
      | Double_positive _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState331
      | Double_negative _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState331
      | Decimal_positive _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState331
      | Decimal_negative _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState331
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Double _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_BANG (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (_endpos_e_, e) = (_endpos, _v) in
          let _v = _menhir_action_213 _endpos_e_ _startpos__1_ e in
          _menhir_goto_numexp _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_329 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_AVG _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_ as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState329
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState329
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_option_DISTINCT_ (_menhir_stack, _, d) = _menhir_stack in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_AVG (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__5_) = (_v, _endpos_0) in
          let _v = _menhir_action_006 d e in
          _menhir_goto_aggregate _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__5_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState329
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState329
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState329
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState329
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState329
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState329
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState329
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState329
      | _ ->
          _eRR ()
  
  and _menhir_run_327 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_ABS _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState327
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState327
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_ABS (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (e, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_031 e in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState327
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState327
      | Integer_positive _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState327
      | Integer_negative _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState327
      | Double_positive _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState327
      | Double_negative _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState327
      | Decimal_positive _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState327
      | Decimal_negative _v_6 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState327
      | _ ->
          _eRR ()
  
  and _menhir_run_309 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | STAR ->
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState309
      | SLASH ->
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState309
      | PLUS ->
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState309
      | MINUS ->
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState309
      | Integer_positive _v_0 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState309
      | Integer_negative _v_1 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState309
      | Double_positive _v_2 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState309
      | Double_negative _v_3 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState309
      | Decimal_positive _v_4 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState309
      | Decimal_negative _v_5 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState309
      | _ ->
          _eRR ()
  
  and _menhir_run_305 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_MINUS as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState305
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState305
      | Integer_positive _v_0 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState305
      | Integer_negative _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState305
      | Double_positive _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState305
      | Double_negative _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState305
      | Decimal_positive _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState305
      | Decimal_negative _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState305
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Double _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_MINUS (_menhir_stack, _, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_210 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_numexp _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_303 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_PLUS as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState303
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState303
      | Integer_positive _v_0 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState303
      | Integer_negative _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState303
      | Double_positive _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState303
      | Double_negative _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState303
      | Decimal_positive _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState303
      | Decimal_negative _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState303
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Double _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_PLUS (_menhir_stack, _, _, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_209 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_numexp _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_301 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_SLASH as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | Integer_positive _v_0 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState301
      | Integer_negative _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState301
      | Double_positive _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState301
      | Double_negative _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState301
      | Decimal_positive _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState301
      | Decimal_negative _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState301
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Double _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_SLASH (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_208 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_numexp _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_293 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_STAR as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | Integer_positive _v_0 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState293
      | Integer_negative _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState293
      | Double_positive _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState293
      | Double_negative _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState293
      | Decimal_positive _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState293
      | Decimal_negative _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState293
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Double _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_STAR (_menhir_stack, _, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_207 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_numexp _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_291 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | STAR ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_292 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState291
      | SLASH ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_300 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState291
      | PLUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_302 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState291
      | MINUS ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_304 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState291
      | Integer_positive _v_0 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState291
      | Integer_negative _v_1 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState291
      | Double_positive _v_2 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState291
      | Double_negative _v_3 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState291
      | Decimal_positive _v_4 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState291
      | Decimal_negative _v_5 ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState291
      | COMMA ->
          let _menhir_stack = MenhirCell1_expression (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_stack = MenhirCell1_COMMA (_menhir_stack, MenhirState291) in
          let _menhir_s = MenhirState306 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | RPAR ->
          let x = _v in
          let _v = _menhir_action_339 x in
          _menhir_goto_separated_nonempty_list_COMMA_expression_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_goto_separated_nonempty_list_COMMA_expression_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      match _menhir_s with
      | MenhirState251 ->
          _menhir_run_336 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | MenhirState306 ->
          _menhir_run_307 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | MenhirState287 ->
          _menhir_run_288 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_336 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_LPAR -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let MenhirCell1_LPAR (_menhir_stack, _menhir_s, _) = _menhir_stack in
      let (_endpos__3_, l) = (_endpos, _v) in
      let _v = _menhir_action_098 l in
      _menhir_goto_expression_list _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__3_ _v _menhir_s _tok
  
  and _menhir_run_307 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_COMMA -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let MenhirCell1_COMMA (_menhir_stack, _) = _menhir_stack in
      let MenhirCell1_expression (_menhir_stack, _menhir_s, x, _, _) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_340 x xs in
      _menhir_goto_separated_nonempty_list_COMMA_expression_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
  
  and _menhir_run_288 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_iri _menhir_cell0_LPAR, _menhir_box_query) _menhir_cell1_option_DISTINCT_ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let MenhirCell1_option_DISTINCT_ (_menhir_stack, _, o) = _menhir_stack in
      let MenhirCell0_LPAR (_menhir_stack, _startpos__1_) = _menhir_stack in
      let (_endpos__4_, l) = (_endpos, _v) in
      let _v = _menhir_action_011 _endpos__4_ _startpos__1_ l o in
      _menhir_goto_arg_list _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _v _tok
  
  and _menhir_goto_arg_list : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_iri -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_iri (_menhir_stack, _menhir_s, i, _startpos_i_, _) = _menhir_stack in
      let (_endpos_a_, a) = (_endpos, _v) in
      let _v = _menhir_action_100 _endpos_a_ _startpos_i_ a i in
      _menhir_goto_function_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_a_ _startpos_i_ _v _menhir_s _tok
  
  and _menhir_goto_function_call : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState679 ->
          _menhir_run_630 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState636 ->
          _menhir_run_630 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState642 ->
          _menhir_run_630 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState625 ->
          _menhir_run_630 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState628 ->
          _menhir_run_630 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_584 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_584 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState682 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_290 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_630 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_079 _1 in
      _menhir_goto_constraint_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_584 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | OFFSET | ORDER | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let _1 = _v in
          let _v = _menhir_action_130 _1 in
          _menhir_goto_group_condition _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | AMPAMP | AS | EQUAL | GT | GTE | IN | LT | LTE | NOTEQUAL | PIPEPIPE | SLASH | STAR ->
          let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_148 _1 in
          _menhir_goto_iri_or_function _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_iri_or_function : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos_x_, _startpos_x_, x) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_302 _endpos_x_ _startpos_x_ x in
      _menhir_goto_primary_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_x_ _startpos_x_ _v _menhir_s _tok
  
  and _menhir_run_290 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_148 _1 in
      _menhir_goto_iri_or_function _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_272 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_value_logical as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | Decimal_negative _ | Decimal_positive _ | Double_negative _ | Double_positive _ | Integer_negative _ | Integer_positive _ | MINUS | PLUS | SLASH | STAR ->
          let (_endpos_e_, _startpos_e_, e) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_096 e in
          _menhir_goto_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e_ _startpos_e_ _v _menhir_s _tok
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Double _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | PIPEPIPE | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_value_logical (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_395 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_value_logical _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_270 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | PIPEPIPE ->
          let _menhir_stack = MenhirCell1_value_logical (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_271 _menhir_stack _menhir_lexbuf _menhir_lexer
      | AMPAMP ->
          let _menhir_stack = MenhirCell1_value_logical (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_s = MenhirState325 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | ABS | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let (_endpos_e_, _startpos_e_, e) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_096 e in
          _menhir_goto_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e_ _startpos_e_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_322 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_numexp -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      match (_tok : MenhirBasics.token) with
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_numexp (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_326 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_relational_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_320 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_numexp -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      match (_tok : MenhirBasics.token) with
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_numexp (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_328 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_relational_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_316 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_numexp -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      match (_tok : MenhirBasics.token) with
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_numexp (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_325 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_relational_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_314 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_numexp -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      match (_tok : MenhirBasics.token) with
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_numexp (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_327 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_relational_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_281 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_numexp -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      match (_tok : MenhirBasics.token) with
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let MenhirCell1_numexp (_menhir_stack, _menhir_s, e1, _startpos_e1_, _) = _menhir_stack in
          let (_endpos_e2_, e2) = (_endpos, _v) in
          let _v = _menhir_action_324 _endpos_e2_ _startpos_e1_ e1 e2 in
          _menhir_goto_relational_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_e2_ _startpos_e1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_279 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | NOTEQUAL ->
          let _menhir_stack = MenhirCell1_numexp (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_s = MenhirState280 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | NOT ->
          let _menhir_stack = MenhirCell1_numexp (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell0_NOT (_menhir_stack, _startpos) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | IN ->
              let _menhir_s = MenhirState311 in
              let _tok = _menhir_lexer _menhir_lexbuf in
              (match (_tok : MenhirBasics.token) with
              | NIL ->
                  _menhir_run_250 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | LPAR ->
                  _menhir_run_251 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | _ ->
                  _eRR ())
          | _ ->
              _eRR ())
      | LTE ->
          let _menhir_stack = MenhirCell1_numexp (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_s = MenhirState313 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | LT ->
          let _menhir_stack = MenhirCell1_numexp (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_s = MenhirState315 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | IN ->
          let _menhir_stack = MenhirCell1_numexp (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_s = MenhirState317 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | NIL ->
              _menhir_run_250 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_251 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | GTE ->
          let _menhir_stack = MenhirCell1_numexp (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_s = MenhirState319 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | GT ->
          let _menhir_stack = MenhirCell1_numexp (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_s = MenhirState321 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | EQUAL ->
          let _menhir_stack = MenhirCell1_numexp (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_s = MenhirState323 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | YEAR ->
              _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Var2 _v ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Var1 _v ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | UUID ->
              _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | URI ->
              _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | UCASE ->
              _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TZ ->
              _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | TIMEZONE ->
              _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | String_literal _v ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | SUM ->
              _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SUBSTR ->
              _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRUUID ->
              _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRSTARTS ->
              _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLEN ->
              _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRLANG ->
              _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRENDS ->
              _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRDT ->
              _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRBEFORE ->
              _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STRAFTER ->
              _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | STR ->
              _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA512 ->
              _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA384 ->
              _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA256 ->
              _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SHA1 ->
              _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SECONDS ->
              _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMPLE ->
              _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | SAMETERM ->
              _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ROUND ->
              _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REPLACE ->
              _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | REGEX ->
              _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | RAND ->
              _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | PLUS ->
              _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOW ->
              _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | NOT ->
              _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MONTH ->
              _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUTES ->
              _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MINUS ->
              _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MIN ->
              _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MD5 ->
              _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | MAX ->
              _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LPAR ->
              _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LCASE ->
              _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANGMATCHES ->
              _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | LANG ->
              _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_positive _v ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer_negative _v ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Integer _v ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | ISURI ->
              _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISNUMERIC ->
              _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISLITERAL ->
              _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISIRI ->
              _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ISBLANK ->
              _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IRI ->
              _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | IF ->
              _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | HOURS ->
              _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | GROUP_CONCAT ->
              _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | FLOOR ->
              _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | EXISTS ->
              _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ENCODE_FOR_URI ->
              _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Double_positive _v ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double_negative _v ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Double _v ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_positive _v ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal_negative _v ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Decimal _v ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | DAY ->
              _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | DATATYPE ->
              _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COUNT ->
              _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONTAINS ->
              _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CONCAT ->
              _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | COALESCE ->
              _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | CEIL ->
              _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | Boolean _v ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | BOUND ->
              _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BNODE ->
              _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | BANG ->
              _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | AVG ->
              _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | ABS ->
              _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_331 _1 in
          _menhir_goto_relational_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_058 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_195 _1 in
      _menhir_goto_numeric_literal_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_143 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SUM _menhir_cell0_LPAR as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_option_DISTINCT_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState143
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState143
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | String_literal _v_2 ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState143
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | Pname_ns _v_3 ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState143
      | Pname_ln _v_4 ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState143
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | Iriref_ _v_5 ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState143
      | Integer_positive _v_6 ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState143
      | Integer_negative _v_7 ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState143
      | Integer _v_8 ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState143
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | Double_positive _v_9 ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState143
      | Double_negative _v_10 ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState143
      | Double _v_11 ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState143
      | Decimal_positive _v_12 ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState143
      | Decimal_negative _v_13 ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState143
      | Decimal _v_14 ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState143
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | Boolean _v_15 ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState143
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState143
      | _ ->
          _eRR ()
  
  and _menhir_goto_nonempty_list_order_condition_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState636 ->
          _menhir_run_645 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState642 ->
          _menhir_run_643 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_645 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ _menhir_cell0_option_having_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let l = _v in
      let _v = _menhir_action_270 l in
      let x = _v in
      let _v = _menhir_action_244 x in
      _menhir_goto_option_order_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
  
  and _menhir_run_643 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_order_condition -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_order_condition (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_188 x xs in
      _menhir_goto_nonempty_list_order_condition_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_631 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_140 _1 in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | UUID ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | URI ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | UCASE ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | TZ ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | TIMEZONE ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | SUM ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | SUBSTR ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | STRUUID ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | STRSTARTS ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | STRLEN ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | STRLANG ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | STRENDS ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | STRDT ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | STRBEFORE ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | STRAFTER ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | STR ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | SHA512 ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | SHA384 ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | SHA256 ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | SHA1 ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | SECONDS ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | SAMPLE ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | SAMETERM ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | ROUND ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | REPLACE ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | REGEX ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | RAND ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | Pname_ns _v_0 ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState628
      | Pname_ln _v_1 ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState628
      | NOW ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | NOT ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | MONTH ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | MINUTES ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | MIN ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | MD5 ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | MAX ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | LPAR ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | LCASE ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | LANGMATCHES ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | LANG ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | Iriref_ _v_2 ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState628
      | ISURI ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | ISNUMERIC ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | ISLITERAL ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | ISIRI ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | ISBLANK ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | IRI ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | IF ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | HOURS ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | GROUP_CONCAT ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | FLOOR ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | EXISTS ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | ENCODE_FOR_URI ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | DAY ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | DATATYPE ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | COUNT ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | CONTAINS ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | CONCAT ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | COALESCE ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | CEIL ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | BOUND ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | BNODE ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | AVG ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | ABS ->
          let _menhir_stack = MenhirCell1_having_condition (_menhir_stack, _menhir_s, _v) in
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState628
      | EOF | LIMIT | OFFSET | ORDER | RBRACE | VALUES ->
          let x = _v in
          let _v = _menhir_action_185 x in
          _menhir_goto_nonempty_list_having_condition_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_nonempty_list_having_condition_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState628 ->
          _menhir_run_629 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | MenhirState625 ->
          _menhir_run_626 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_629 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_having_condition -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_having_condition (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_186 x xs in
      _menhir_goto_nonempty_list_having_condition_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_626 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_option_group_clause_ -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let l = _v in
      let _v = _menhir_action_139 l in
      let x = _v in
      let _v = _menhir_action_234 x in
      _menhir_goto_option_having_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
  
  and _menhir_run_588 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | OFFSET | ORDER | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let _1 = _v in
          let _v = _menhir_action_129 _1 in
          _menhir_goto_group_condition _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | AMPAMP | AS | EQUAL | GT | GTE | IN | LT | LTE | NOTEQUAL | PIPEPIPE | SLASH | STAR ->
          let (_endpos_bic_, _startpos_bic_, bic) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_297 _endpos_bic_ _startpos_bic_ bic in
          _menhir_goto_primary_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_bic_ _startpos_bic_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_296 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos_bic_, _startpos_bic_, bic) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_297 _endpos_bic_ _startpos_bic_ bic in
      _menhir_goto_primary_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_bic_ _startpos_bic_ _v _menhir_s _tok
  
  and _menhir_run_046 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | Langtag _v_0 ->
          let _endpos_1 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let (_startpos_s_, s, _endpos_t_, t) = (_startpos, _v, _endpos_1, _v_0) in
          let _v = _menhir_action_320 s t in
          _menhir_goto_rdf_literal_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_t_ _startpos_s_ _v _menhir_s _tok
      | HATHAT ->
          let _menhir_stack = MenhirCell1_string (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          let _menhir_s = MenhirState048 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Pname_ns _v ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Pname_ln _v ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | Iriref_ _v ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
          | _ ->
              _eRR ())
      | A | ABS | AMPAMP | ANON | AS | AVG | BANG | BIND | BNODE | BOUND | Blank_node_label _ | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | DOT | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FILTER | FLOOR | GRAPH | GROUP_CONCAT | GT | GTE | HAT | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LBRACE | LBRACKET | LCASE | LIMIT | LPAR | LT | LTE | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NIL | NOT | NOTEQUAL | NOW | OFFSET | OPTIONAL | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | RBRACKET | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SERVICE | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | UNDEF | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let (_endpos_s_, _startpos_s_, s) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_318 s in
          _menhir_goto_rdf_literal_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_s_ _startpos_s_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_rdf_literal_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos_r_, _startpos_r_, r) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_317 _endpos_r_ _startpos_r_ r in
      _menhir_goto_rdf_literal _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_r_ _startpos_r_ _v _menhir_s _tok
  
  and _menhir_goto_rdf_literal : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState611 ->
          _menhir_run_600 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState605 ->
          _menhir_run_600 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState598 ->
          _menhir_run_600 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState682 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState582 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState578 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState127 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState129 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState133 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState135 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState137 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState139 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState143 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState468 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState465 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState145 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState461 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState149 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState151 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState455 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState153 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState451 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState155 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState447 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState157 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState443 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState159 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState439 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState161 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState163 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState165 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState167 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState169 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState171 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState173 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState176 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState421 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState178 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState180 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState415 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState412 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState410 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState182 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState406 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState403 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState184 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState187 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState194 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState196 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState197 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState200 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState202 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState205 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState206 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState208 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState383 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState210 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState212 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState214 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState216 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState218 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState220 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState222 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState224 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState365 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState363 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState226 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState228 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState231 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState233 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState237 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState239 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState241 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState244 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState340 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState248 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState251 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState255 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState262 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState263 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState266 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState268 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState325 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState323 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState321 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState319 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState315 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState313 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState306 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState304 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState302 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState300 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState292 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState287 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState280 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState271 ->
          _menhir_run_277 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState756 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState750 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState718 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState698 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState561 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState556 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState492 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState544 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState536 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState531 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState103 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState097 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState019 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState086 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState080 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState024 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState055 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState030 ->
          _menhir_run_052 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_600 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_085 _1 in
      _menhir_goto_data_block_value _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_277 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos_lit_, _startpos_lit_, lit) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_298 _endpos_lit_ _startpos_lit_ lit in
      _menhir_goto_primary_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_lit_ _startpos_lit_ _v _menhir_s _tok
  
  and _menhir_run_052 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_123 _1 in
      _menhir_goto_graph_term _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_641 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_274 _1 in
      _menhir_goto_order_condition _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_597 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_VALUES as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_var (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | UNDEF ->
              _menhir_run_599 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState598
          | String_literal _v_0 ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState598
          | Pname_ns _v_1 ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState598
          | Pname_ln _v_2 ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState598
          | Iriref_ _v_3 ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState598
          | Integer_positive _v_4 ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState598
          | Integer_negative _v_5 ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState598
          | Integer _v_6 ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState598
          | Double_positive _v_7 ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState598
          | Double_negative _v_8 ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState598
          | Double _v_9 ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState598
          | Decimal_positive _v_10 ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState598
          | Decimal_negative _v_11 ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState598
          | Decimal _v_12 ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState598
          | Boolean _v_13 ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState598
          | RBRACE ->
              let _v_14 = _menhir_action_152 () in
              _menhir_run_602 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_593 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_var (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState593
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState593
      | RPAR ->
          let _v_2 = _menhir_action_166 () in
          _menhir_run_594 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2
      | _ ->
          _eRR ()
  
  and _menhir_run_594 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_var -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let MenhirCell1_var (_menhir_stack, _menhir_s, x, _, _) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_167 x xs in
      _menhir_goto_list_var_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
  
  and _menhir_goto_list_var_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      match _menhir_s with
      | MenhirState592 ->
          _menhir_run_595 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | MenhirState593 ->
          _menhir_run_594 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_587 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_AS -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_AS (_menhir_stack, _) = _menhir_stack in
      let MenhirCell1_expression (_menhir_stack, _menhir_s, e, _startpos_e_, _) = _menhir_stack in
      let (_endpos_v_, v) = (_endpos, _v) in
      let _v = _menhir_action_137 _endpos_v_ _startpos_e_ e v in
      _menhir_goto_group_var _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_579 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EXISTS | FLOOR | GROUP_CONCAT | HAVING | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | OFFSET | ORDER | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let (_endpos_v_, _startpos_v_, v) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_136 _endpos_v_ _startpos_v_ v in
          _menhir_goto_group_var _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | AMPAMP | AS | EQUAL | GT | GTE | IN | LT | LTE | NOTEQUAL | PIPEPIPE | SLASH | STAR ->
          let (_endpos_v_, _startpos_v_, v) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_301 _endpos_v_ _startpos_v_ v in
          _menhir_goto_primary_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_v_ _startpos_v_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_546 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_409 _1 in
      _menhir_goto_verb_path_or_simple _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_487 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_335 _1 _endpos__1_ _startpos__1_ in
      _menhir_goto_select_var _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_select_var : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          let _menhir_stack = MenhirCell1_select_var (_menhir_stack, _menhir_s, _v) in
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState489
      | Var1 _v_1 ->
          let _menhir_stack = MenhirCell1_select_var (_menhir_stack, _menhir_s, _v) in
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState489
      | LPAR ->
          let _menhir_stack = MenhirCell1_select_var (_menhir_stack, _menhir_s, _v) in
          _menhir_run_127 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState489
      | FROM | LBRACE | WHERE ->
          let x = _v in
          let _v = _menhir_action_189 x in
          _menhir_goto_nonempty_list_select_var_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_127 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_LPAR (_menhir_stack, _menhir_s, _startpos) in
      let _menhir_s = MenhirState127 in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | YEAR ->
          _menhir_run_128 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Var2 _v ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Var1 _v ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | UUID ->
          _menhir_run_130 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | URI ->
          _menhir_run_132 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | UCASE ->
          _menhir_run_134 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TZ ->
          _menhir_run_136 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | TIMEZONE ->
          _menhir_run_138 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | String_literal _v ->
          _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | SUM ->
          _menhir_run_140 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SUBSTR ->
          _menhir_run_144 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRUUID ->
          _menhir_run_146 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRSTARTS ->
          _menhir_run_148 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLEN ->
          _menhir_run_150 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRLANG ->
          _menhir_run_152 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRENDS ->
          _menhir_run_154 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRDT ->
          _menhir_run_156 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRBEFORE ->
          _menhir_run_158 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STRAFTER ->
          _menhir_run_160 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | STR ->
          _menhir_run_162 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA512 ->
          _menhir_run_164 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA384 ->
          _menhir_run_166 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA256 ->
          _menhir_run_168 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SHA1 ->
          _menhir_run_170 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SECONDS ->
          _menhir_run_172 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMPLE ->
          _menhir_run_174 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | SAMETERM ->
          _menhir_run_177 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ROUND ->
          _menhir_run_179 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REPLACE ->
          _menhir_run_181 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | REGEX ->
          _menhir_run_183 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | RAND ->
          _menhir_run_185 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Pname_ns _v ->
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Pname_ln _v ->
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | PLUS ->
          _menhir_run_187 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOW ->
          _menhir_run_188 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | NOT ->
          _menhir_run_190 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MONTH ->
          _menhir_run_193 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUTES ->
          _menhir_run_195 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MINUS ->
          _menhir_run_197 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MIN ->
          _menhir_run_198 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MD5 ->
          _menhir_run_201 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | MAX ->
          _menhir_run_203 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LPAR ->
          _menhir_run_206 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LCASE ->
          _menhir_run_207 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANGMATCHES ->
          _menhir_run_209 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | LANG ->
          _menhir_run_211 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Iriref_ _v ->
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_positive _v ->
          _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer_negative _v ->
          _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Integer _v ->
          _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | ISURI ->
          _menhir_run_213 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISNUMERIC ->
          _menhir_run_215 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISLITERAL ->
          _menhir_run_217 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISIRI ->
          _menhir_run_219 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ISBLANK ->
          _menhir_run_221 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IRI ->
          _menhir_run_223 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | IF ->
          _menhir_run_225 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | HOURS ->
          _menhir_run_227 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | GROUP_CONCAT ->
          _menhir_run_229 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | FLOOR ->
          _menhir_run_232 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | EXISTS ->
          _menhir_run_234 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ENCODE_FOR_URI ->
          _menhir_run_236 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Double_positive _v ->
          _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double_negative _v ->
          _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Double _v ->
          _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_positive _v ->
          _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal_negative _v ->
          _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | Decimal _v ->
          _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | DAY ->
          _menhir_run_238 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | DATATYPE ->
          _menhir_run_240 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COUNT ->
          _menhir_run_242 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONTAINS ->
          _menhir_run_247 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CONCAT ->
          _menhir_run_249 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | COALESCE ->
          _menhir_run_252 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | CEIL ->
          _menhir_run_254 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | Boolean _v ->
          _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | BOUND ->
          _menhir_run_256 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BNODE ->
          _menhir_run_260 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | BANG ->
          _menhir_run_263 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | AVG ->
          _menhir_run_264 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | ABS ->
          _menhir_run_267 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
      | _ ->
          _eRR ()
  
  and _menhir_goto_nonempty_list_select_var_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState125 ->
          _menhir_run_491 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | MenhirState489 ->
          _menhir_run_490 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_491 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_SELECT _menhir_cell0_option_select_flag_ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let _1 = _v in
      let _v = _menhir_action_338 _1 in
      _menhir_goto_select_vars _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
  
  and _menhir_goto_select_vars : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_SELECT _menhir_cell0_option_select_flag_ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell0_option_select_flag_ (_menhir_stack, f) = _menhir_stack in
      let MenhirCell1_SELECT (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let v = _v in
      let _v = _menhir_action_332 f v in
      _menhir_goto_select_clause _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_select_clause : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState011 ->
          _menhir_run_783 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState120 ->
          _menhir_run_574 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_783 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_prologue as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_select_clause (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | FROM ->
          _menhir_run_725 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState783
      | LBRACE | WHERE ->
          let _v_0 = _menhir_action_156 () in
          _menhir_run_784 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState783 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_574 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_LBRACE as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_select_clause (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | WHERE ->
          _menhir_run_575 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState574
      | LBRACE ->
          let _menhir_s = MenhirState574 in
          let _v = _menhir_action_227 () in
          _menhir_goto_option_WHERE_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_490 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_select_var -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_select_var (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_190 x xs in
      _menhir_goto_nonempty_list_select_var_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_485 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_LPAR, _menhir_box_query) _menhir_cell1_expression, _menhir_box_query) _menhir_cell1_AS -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RPAR ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell1_AS (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_expression (_menhir_stack, _, e, _startpos_e_, _) = _menhir_stack in
          let MenhirCell1_LPAR (_menhir_stack, _menhir_s, _) = _menhir_stack in
          let (_endpos_v_, v) = (_endpos, _v) in
          let _v = _menhir_action_336 _endpos_v_ _startpos_e_ e v in
          _menhir_goto_select_var _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_269 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos_v_, _startpos_v_, v) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_301 _endpos_v_ _startpos_v_ v in
      _menhir_goto_primary_expression _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_v_ _startpos_v_ _v _menhir_s _tok
  
  and _menhir_run_258 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_BOUND _menhir_cell0_LPAR -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      match (_tok : MenhirBasics.token) with
      | RPAR ->
          let _endpos_0 = _menhir_lexbuf.Lexing.lex_curr_p in
          let _tok = _menhir_lexer _menhir_lexbuf in
          let MenhirCell0_LPAR (_menhir_stack, _) = _menhir_stack in
          let MenhirCell1_BOUND (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
          let (v, _endpos__4_) = (_v, _endpos_0) in
          let _v = _menhir_action_025 v in
          _menhir_goto_built_in_call _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__4_ _startpos__1_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_070 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_400 _1 in
      _menhir_goto_var_or_iri _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
  
  and _menhir_goto_var_or_iri : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState736 ->
          _menhir_run_736 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState723 ->
          _menhir_run_736 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok
      | MenhirState676 ->
          _menhir_run_677 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState669 ->
          _menhir_run_670 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState095 ->
          _menhir_run_096 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState087 ->
          _menhir_run_069 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState082 ->
          _menhir_run_069 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState025 ->
          _menhir_run_069 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | MenhirState028 ->
          _menhir_run_069 _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_736 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          let _menhir_stack = MenhirCell1_var_or_iri (_menhir_stack, _menhir_s, _v, _startpos) in
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState736
      | Var1 _v_1 ->
          let _menhir_stack = MenhirCell1_var_or_iri (_menhir_stack, _menhir_s, _v, _startpos) in
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState736
      | Pname_ns _v_2 ->
          let _menhir_stack = MenhirCell1_var_or_iri (_menhir_stack, _menhir_s, _v, _startpos) in
          _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState736
      | Pname_ln _v_3 ->
          let _menhir_stack = MenhirCell1_var_or_iri (_menhir_stack, _menhir_s, _v, _startpos) in
          _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState736
      | Iriref_ _v_4 ->
          let _menhir_stack = MenhirCell1_var_or_iri (_menhir_stack, _menhir_s, _v, _startpos) in
          _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState736
      | EOF | FROM | GROUP | HAVING | LBRACE | LIMIT | OFFSET | ORDER | VALUES | WHERE ->
          let x = _v in
          let _v = _menhir_action_191 x in
          _menhir_goto_nonempty_list_var_or_iri_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_nonempty_list_var_or_iri_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState723 ->
          _menhir_run_738 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
      | MenhirState736 ->
          _menhir_run_737 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_738 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_nonempty_list_var_or_iri_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | FROM ->
          _menhir_run_725 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState738
      | EOF | GROUP | HAVING | LBRACE | LIMIT | OFFSET | ORDER | VALUES | WHERE ->
          let _v_0 = _menhir_action_156 () in
          _menhir_run_739 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_0 MenhirState738 _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_739 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_nonempty_list_var_or_iri_ as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_list_dataset_clause_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | WHERE ->
          _menhir_run_575 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState739
      | LBRACE ->
          let _menhir_s = MenhirState739 in
          let _v = _menhir_action_227 () in
          _menhir_goto_option_WHERE_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | EOF | GROUP | HAVING | LIMIT | OFFSET | ORDER | VALUES ->
          let _v_1 = _menhir_action_267 () in
          _menhir_run_740 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_1 MenhirState739 _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_737 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_var_or_iri -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_var_or_iri (_menhir_stack, _menhir_s, x, _) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_192 x xs in
      _menhir_goto_nonempty_list_var_or_iri_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_677 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_GRAPH as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_var_or_iri (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState677
      | _ ->
          _eRR ()
  
  and _menhir_run_670 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_SERVICE _menhir_cell0_option_SILENT_ as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_var_or_iri (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          _menhir_run_120 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState670
      | _ ->
          _eRR ()
  
  and _menhir_run_096 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_GRAPH as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_var_or_iri (_menhir_stack, _menhir_s, _v, _startpos) in
      match (_tok : MenhirBasics.token) with
      | LBRACE ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Var2 _v_0 ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState097
          | Var1 _v_1 ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState097
          | String_literal _v_2 ->
              _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v_2 MenhirState097
          | Pname_ns _v_3 ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState097
          | Pname_ln _v_4 ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState097
          | NIL ->
              _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState097
          | LPAR ->
              _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState097
          | LBRACKET ->
              _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState097
          | Iriref_ _v_5 ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState097
          | Integer_positive _v_6 ->
              _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v_6 MenhirState097
          | Integer_negative _v_7 ->
              _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v_7 MenhirState097
          | Integer _v_8 ->
              _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v_8 MenhirState097
          | Double_positive _v_9 ->
              _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v_9 MenhirState097
          | Double_negative _v_10 ->
              _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v_10 MenhirState097
          | Double _v_11 ->
              _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v_11 MenhirState097
          | Decimal_positive _v_12 ->
              _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v_12 MenhirState097
          | Decimal_negative _v_13 ->
              _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v_13 MenhirState097
          | Decimal _v_14 ->
              _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v_14 MenhirState097
          | Boolean _v_15 ->
              _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v_15 MenhirState097
          | Blank_node_label _v_16 ->
              _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v_16 MenhirState097
          | ANON ->
              _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState097
          | RBRACE ->
              let _v_17 = _menhir_action_259 () in
              _menhir_run_098 _menhir_stack _menhir_lexbuf _menhir_lexer _v_17 _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_069 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _startpos _v _menhir_s _tok ->
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_404 _1 in
      _menhir_goto_verb _menhir_stack _menhir_lexbuf _menhir_lexer _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_044 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_402 _1 in
      _menhir_goto_var_or_term _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_121 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell1_SELECT (_menhir_stack, _menhir_s, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | REDUCED ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let _v = _menhir_action_334 () in
          _menhir_goto_select_flag _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | DISTINCT ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let _v = _menhir_action_333 () in
          _menhir_goto_select_flag _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | LPAR | STAR | Var1 _ | Var2 _ ->
          let _v = _menhir_action_251 () in
          _menhir_goto_option_select_flag_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _eRR ()
  
  and _menhir_goto_select_flag : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_SELECT -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let x = _v in
      let _v = _menhir_action_252 x in
      _menhir_goto_option_select_flag_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
  
  and _menhir_goto_option_select_flag_ : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_SELECT -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let _menhir_stack = MenhirCell0_option_select_flag_ (_menhir_stack, _v) in
      match (_tok : MenhirBasics.token) with
      | Var2 _v_0 ->
          _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState125
      | Var1 _v_1 ->
          _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState125
      | STAR ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let _v = _menhir_action_337 () in
          _menhir_goto_select_vars _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | LPAR ->
          _menhir_run_127 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState125
      | _ ->
          _eRR ()
  
  and _menhir_run_766 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_ASK as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_list_dataset_clause_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | WHERE ->
          _menhir_run_575 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState766
      | LBRACE ->
          let _menhir_s = MenhirState766 in
          let _v = _menhir_action_227 () in
          _menhir_goto_option_WHERE_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_754 : type  ttv_stack. (((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_CONSTRUCT as 'stack) -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_list_dataset_clause_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | WHERE ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | LBRACE ->
              let _menhir_s = MenhirState756 in
              let _tok = _menhir_lexer _menhir_lexbuf in
              (match (_tok : MenhirBasics.token) with
              | Var2 _v ->
                  _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Var1 _v ->
                  _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | String_literal _v ->
                  _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Pname_ns _v ->
                  _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Pname_ln _v ->
                  _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | NIL ->
                  _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | LPAR ->
                  _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | LBRACKET ->
                  _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | Iriref_ _v ->
                  _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Integer_positive _v ->
                  _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Integer_negative _v ->
                  _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Integer _v ->
                  _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Double_positive _v ->
                  _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Double_negative _v ->
                  _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Double _v ->
                  _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Decimal_positive _v ->
                  _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Decimal_negative _v ->
                  _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Decimal _v ->
                  _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Boolean _v ->
                  _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Blank_node_label _v ->
                  _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | ANON ->
                  _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | _ ->
                  _eRR ())
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_run_730 : type  ttv_stack. ((((ttv_stack, _menhir_box_query) _menhir_cell1_prologue, _menhir_box_query) _menhir_cell1_DESCRIBE, _menhir_box_query) _menhir_cell1_STAR as 'stack) -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_list_dataset_clause_ (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | WHERE ->
          _menhir_run_575 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState730
      | LBRACE ->
          let _menhir_s = MenhirState730 in
          let _v = _menhir_action_227 () in
          _menhir_goto_option_WHERE_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | EOF | GROUP | HAVING | LIMIT | OFFSET | ORDER | VALUES ->
          let _v_1 = _menhir_action_267 () in
          _menhir_run_732 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_1 MenhirState730 _tok
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_727 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_FROM, _menhir_box_query) _menhir_cell1_NAMED -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_NAMED (_menhir_stack, _) = _menhir_stack in
      let MenhirCell1_FROM (_menhir_stack, _menhir_s) = _menhir_stack in
      let _3 = _v in
      let _v = _menhir_action_094 _3 in
      _menhir_goto_dataset_clause _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_627 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_iri (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | NIL ->
          _menhir_run_285 _menhir_stack _menhir_lexbuf _menhir_lexer
      | LPAR ->
          _menhir_run_286 _menhir_stack _menhir_lexbuf _menhir_lexer
      | _ ->
          _eRR ()
  
  and _menhir_run_285 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_iri -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
      let _tok = _menhir_lexer _menhir_lexbuf in
      let (_endpos__1_, _startpos__1_) = (_endpos, _startpos) in
      let _v = _menhir_action_010 _endpos__1_ _startpos__1_ in
      _menhir_goto_arg_list _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _v _tok
  
  and _menhir_run_286 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_iri -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer ->
      let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
      let _menhir_stack = MenhirCell0_LPAR (_menhir_stack, _startpos) in
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | DISTINCT ->
          _menhir_run_142 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState286
      | ABS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EXISTS | FLOOR | GROUP_CONCAT | HOURS | IF | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LPAR | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOW | PLUS | Pname_ln _ | Pname_ns _ | RAND | REGEX | REPLACE | ROUND | SAMETERM | SAMPLE | SECONDS | SHA1 | SHA256 | SHA384 | SHA512 | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | Var1 _ | Var2 _ | YEAR ->
          let _v = _menhir_action_221 () in
          _menhir_run_287 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState286 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_604 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_084 _1 in
      _menhir_goto_data_block_value _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_518 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_289 _1 in
      _menhir_goto_path_primary _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_506 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_285 _1 in
      _menhir_goto_path_one_in_property_set _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_500 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_HAT -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_HAT (_menhir_stack, _menhir_s, _) = _menhir_stack in
      let _2 = _v in
      let _v = _menhir_action_287 _2 in
      _menhir_goto_path_one_in_property_set _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _menhir_s _tok
  
  and _menhir_run_284 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      match (_tok : MenhirBasics.token) with
      | NIL ->
          let _menhir_stack = MenhirCell1_iri (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_285 _menhir_stack _menhir_lexbuf _menhir_lexer
      | LPAR ->
          let _menhir_stack = MenhirCell1_iri (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
          _menhir_run_286 _menhir_stack _menhir_lexbuf _menhir_lexer
      | ABS | AMPAMP | AS | AVG | BANG | BNODE | BOUND | Boolean _ | CEIL | COALESCE | COMMA | CONCAT | CONTAINS | COUNT | DATATYPE | DAY | Decimal _ | Decimal_negative _ | Decimal_positive _ | Double _ | Double_negative _ | Double_positive _ | ENCODE_FOR_URI | EOF | EQUAL | EXISTS | FLOOR | GROUP_CONCAT | GT | GTE | HAVING | HOURS | IF | IN | IRI | ISBLANK | ISIRI | ISLITERAL | ISNUMERIC | ISURI | Integer _ | Integer_negative _ | Integer_positive _ | Iriref_ _ | LANG | LANGMATCHES | LCASE | LIMIT | LT | LTE | MAX | MD5 | MIN | MINUS | MINUTES | MONTH | NOT | NOTEQUAL | NOW | OFFSET | ORDER | PIPEPIPE | PLUS | Pname_ln _ | Pname_ns _ | RAND | RBRACE | REGEX | REPLACE | ROUND | RPAR | SAMETERM | SAMPLE | SECONDS | SEMICOLON | SHA1 | SHA256 | SHA384 | SHA512 | SLASH | STAR | STR | STRAFTER | STRBEFORE | STRDT | STRENDS | STRLANG | STRLEN | STRSTARTS | STRUUID | SUBSTR | SUM | String_literal _ | TIMEZONE | TZ | UCASE | URI | UUID | VALUES | Var1 _ | Var2 _ | YEAR ->
          let (_endpos_iri_, _startpos_iri_, iri) = (_endpos, _startpos, _v) in
          let _v = _menhir_action_147 iri in
          _menhir_goto_iri_or_function _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_iri_ _startpos_iri_ _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_115 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_USING -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_USING (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_endpos_i_, i) = (_endpos, _v) in
      let _v = _menhir_action_391 _endpos_i_ _startpos__1_ i in
      _menhir_goto_using_clause _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_using_clause : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_using_clause (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | USING ->
          _menhir_run_112 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState116
      | WHERE ->
          let _v_0 = _menhir_action_164 () in
          _menhir_run_117 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0
      | _ ->
          _eRR ()
  
  and _menhir_run_117 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_using_clause -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v ->
      let MenhirCell1_using_clause (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_165 x xs in
      _menhir_goto_list_using_clause_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
  
  and _menhir_goto_list_using_clause_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s ->
      match _menhir_s with
      | MenhirState778 ->
          _menhir_run_779 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | MenhirState773 ->
          _menhir_run_774 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | MenhirState709 ->
          _menhir_run_710 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | MenhirState111 ->
          _menhir_run_118 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
      | MenhirState116 ->
          _menhir_run_117 _menhir_stack _menhir_lexbuf _menhir_lexer _v
      | _ ->
          _menhir_fail ()
  
  and _menhir_run_114 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_USING, _menhir_box_query) _menhir_cell1_NAMED -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_NAMED (_menhir_stack, _) = _menhir_stack in
      let MenhirCell1_USING (_menhir_stack, _menhir_s, _startpos__1_) = _menhir_stack in
      let (_endpos_i_, i) = (_endpos, _v) in
      let _v = _menhir_action_392 _endpos_i_ _startpos__1_ i in
      _menhir_goto_using_clause _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_run_072 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_startpos__1_, _1) = (_startpos, _v) in
      let _v = _menhir_action_401 _1 in
      _menhir_goto_var_or_iri _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_062 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let (_endpos__1_, _startpos__1_, _1) = (_endpos, _startpos, _v) in
      let _v = _menhir_action_122 _1 in
      _menhir_goto_graph_term _menhir_stack _menhir_lexbuf _menhir_lexer _endpos__1_ _startpos__1_ _v _menhir_s _tok
  
  and _menhir_run_049 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_string -> _ -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v _tok ->
      let MenhirCell1_string (_menhir_stack, _menhir_s, s, _startpos_s_, _) = _menhir_stack in
      let (_endpos_iri_, iri) = (_endpos, _v) in
      let _v = _menhir_action_319 iri s in
      _menhir_goto_rdf_literal_ _menhir_stack _menhir_lexbuf _menhir_lexer _endpos_iri_ _startpos_s_ _v _menhir_s _tok
  
  and _menhir_run_017 : type  ttv_stack. ((ttv_stack, _menhir_box_query) _menhir_cell1_WITH as 'stack) -> _ -> _ -> _ -> _ -> _ -> ('stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _startpos _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_iri (_menhir_stack, _menhir_s, _v, _startpos, _endpos) in
      match (_tok : MenhirBasics.token) with
      | INSERT ->
          _menhir_run_018 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState017
      | DELETE ->
          let _menhir_s = MenhirState017 in
          let _startpos = _menhir_lexbuf.Lexing.lex_start_p in
          let _menhir_stack = MenhirCell1_DELETE (_menhir_stack, _menhir_s, _startpos) in
          let _menhir_s = MenhirState109 in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | LBRACE ->
              _menhir_run_019 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  let _menhir_run_790 : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _1 = _v in
      let _v = _menhir_action_303 _1 in
      let _menhir_stack = MenhirCell1_prologue (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | WITH ->
          _menhir_run_012 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | SELECT ->
          _menhir_run_121 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | MOVE ->
          _menhir_run_714 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | LOAD ->
          _menhir_run_715 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | INSERT ->
          _menhir_run_716 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | DROP ->
          _menhir_run_722 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | DESCRIBE ->
          let _menhir_stack = MenhirCell1_DESCRIBE (_menhir_stack, MenhirState011) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Var2 _v_0 ->
              _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 MenhirState723
          | Var1 _v_1 ->
              _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v_1 MenhirState723
          | STAR ->
              let _endpos = _menhir_lexbuf.Lexing.lex_curr_p in
              let _menhir_stack = MenhirCell1_STAR (_menhir_stack, MenhirState723, _endpos) in
              let _tok = _menhir_lexer _menhir_lexbuf in
              (match (_tok : MenhirBasics.token) with
              | FROM ->
                  _menhir_run_725 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState724
              | EOF | GROUP | HAVING | LBRACE | LIMIT | OFFSET | ORDER | VALUES | WHERE ->
                  let _v_2 = _menhir_action_156 () in
                  _menhir_run_730 _menhir_stack _menhir_lexbuf _menhir_lexer _endpos _v_2 MenhirState724 _tok
              | _ ->
                  _eRR ())
          | Pname_ns _v_3 ->
              _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v_3 MenhirState723
          | Pname_ln _v_4 ->
              _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v_4 MenhirState723
          | Iriref_ _v_5 ->
              _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v_5 MenhirState723
          | _ ->
              _eRR ())
      | DELETE ->
          _menhir_run_742 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | CREATE ->
          _menhir_run_747 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | COPY ->
          _menhir_run_748 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | CONSTRUCT ->
          let _menhir_stack = MenhirCell1_CONSTRUCT (_menhir_stack, MenhirState011) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | LBRACE ->
              let _menhir_stack = MenhirCell1_LBRACE (_menhir_stack, MenhirState749) in
              let _menhir_s = MenhirState750 in
              let _tok = _menhir_lexer _menhir_lexbuf in
              (match (_tok : MenhirBasics.token) with
              | Var2 _v ->
                  _menhir_run_020 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Var1 _v ->
                  _menhir_run_021 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | String_literal _v ->
                  _menhir_run_022 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Pname_ns _v ->
                  _menhir_run_013 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Pname_ln _v ->
                  _menhir_run_014 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | NIL ->
                  _menhir_run_023 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | LPAR ->
                  _menhir_run_024 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | LBRACKET ->
                  _menhir_run_025 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | Iriref_ _v ->
                  _menhir_run_015 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Integer_positive _v ->
                  _menhir_run_031 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Integer_negative _v ->
                  _menhir_run_032 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Integer _v ->
                  _menhir_run_033 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Double_positive _v ->
                  _menhir_run_034 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Double_negative _v ->
                  _menhir_run_035 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Double _v ->
                  _menhir_run_036 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Decimal_positive _v ->
                  _menhir_run_037 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Decimal_negative _v ->
                  _menhir_run_038 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Decimal _v ->
                  _menhir_run_039 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Boolean _v ->
                  _menhir_run_040 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | Blank_node_label _v ->
                  _menhir_run_041 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s
              | ANON ->
                  _menhir_run_042 _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s
              | RBRACE ->
                  let _v = _menhir_action_229 () in
                  _menhir_goto_option_construct_triples_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
              | _ ->
                  _eRR ())
          | FROM ->
              _menhir_run_725 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState749
          | WHERE ->
              let _v_24 = _menhir_action_156 () in
              _menhir_run_754 _menhir_stack _menhir_lexbuf _menhir_lexer _v_24 MenhirState749 _tok
          | _ ->
              _eRR ())
      | CLEAR ->
          _menhir_run_764 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | ASK ->
          let _menhir_stack = MenhirCell1_ASK (_menhir_stack, MenhirState011) in
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | FROM ->
              _menhir_run_725 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState765
          | LBRACE | WHERE ->
              let _v_25 = _menhir_action_156 () in
              _menhir_run_766 _menhir_stack _menhir_lexbuf _menhir_lexer _v_25 MenhirState765 _tok
          | _ ->
              _eRR ())
      | ADD ->
          _menhir_run_769 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState011
      | EOF ->
          let _v = _menhir_action_174 () in
          _menhir_goto_loption_separated_nonempty_list_SEMICOLON_update_action__ _menhir_stack _v
      | _ ->
          _menhir_fail ()
  
  let rec _menhir_run_010 : type  ttv_stack. (ttv_stack, _menhir_box_query) _menhir_cell1_prologue_item -> _ -> _ -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok ->
      let MenhirCell1_prologue_item (_menhir_stack, _menhir_s, x) = _menhir_stack in
      let xs = _v in
      let _v = _menhir_action_161 x xs in
      _menhir_goto_list_prologue_item_ _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
  
  and _menhir_goto_list_prologue_item_ : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      match _menhir_s with
      | MenhirState000 ->
          _menhir_run_790 _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | MenhirState009 ->
          _menhir_run_010 _menhir_stack _menhir_lexbuf _menhir_lexer _v _tok
      | _ ->
          _menhir_fail ()
  
  let rec _menhir_run_001 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Pname_ns _v ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          (match (_tok : MenhirBasics.token) with
          | Iriref_ _v_0 ->
              let _tok = _menhir_lexer _menhir_lexbuf in
              let (ir, name) = (_v_0, _v) in
              let _v = _menhir_action_305 ir name in
              _menhir_goto_prologue_item _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
          | _ ->
              _eRR ())
      | _ ->
          _eRR ()
  
  and _menhir_goto_prologue_item : type  ttv_stack. ttv_stack -> _ -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok ->
      let _menhir_stack = MenhirCell1_prologue_item (_menhir_stack, _menhir_s, _v) in
      match (_tok : MenhirBasics.token) with
      | PREFIX ->
          _menhir_run_001 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState009
      | BASE ->
          _menhir_run_004 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState009
      | ADD | ASK | CLEAR | CONSTRUCT | COPY | CREATE | DELETE | DESCRIBE | DROP | EOF | INSERT | LOAD | MOVE | SELECT | WITH ->
          let _v_0 = _menhir_action_160 () in
          _menhir_run_010 _menhir_stack _menhir_lexbuf _menhir_lexer _v_0 _tok
      | _ ->
          _eRR ()
  
  and _menhir_run_004 : type  ttv_stack. ttv_stack -> _ -> _ -> (ttv_stack, _menhir_box_query) _menhir_state -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer _menhir_s ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | Iriref_ _v ->
          let _tok = _menhir_lexer _menhir_lexbuf in
          let _2 = _v in
          let _v = _menhir_action_304 _2 in
          _menhir_goto_prologue_item _menhir_stack _menhir_lexbuf _menhir_lexer _v _menhir_s _tok
      | _ ->
          _eRR ()
  
  let _menhir_run_000 : type  ttv_stack. ttv_stack -> _ -> _ -> _menhir_box_query =
    fun _menhir_stack _menhir_lexbuf _menhir_lexer ->
      let _tok = _menhir_lexer _menhir_lexbuf in
      match (_tok : MenhirBasics.token) with
      | PREFIX ->
          _menhir_run_001 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState000
      | BASE ->
          _menhir_run_004 _menhir_stack _menhir_lexbuf _menhir_lexer MenhirState000
      | ADD | ASK | CLEAR | CONSTRUCT | COPY | CREATE | DELETE | DESCRIBE | DROP | EOF | INSERT | LOAD | MOVE | SELECT | WITH ->
          let _v = _menhir_action_160 () in
          _menhir_run_790 _menhir_stack _menhir_lexbuf _menhir_lexer _v MenhirState000 _tok
      | _ ->
          _eRR ()
  
end

let query =
  fun _menhir_lexer _menhir_lexbuf ->
    let _menhir_stack = () in
    let MenhirBox_query v = _menhir_run_000 _menhir_stack _menhir_lexbuf _menhir_lexer in
    v
