((block) @subtree
  (#set! role block)
  (#set! scope.byLine))

((transaction) @subtree
  (#set! role block)
  (#set! scope.byLine))
  
((transaction
  (statement) @subtree)
  (#set! role block)
  (#set! scope.byLine))

((block
  (statement) @subtree)
  (#set! role block)
  (#set! scope.byLine))

((select) @subtree
  (#set! role block)
  (#set! scope.byLine))

((update) @subtree
  (#set! role block)
  (#set! scope.byLine))

((insert) @subtree
  (#set! role block)
  (#set! scope.byLine))

((case) @subtree
  (#set! role block)
  (#set! scope.byLine))

((subquery) @subtree
  (#set! role block)
  (#set! scope.byLine))

((cte) @subtree
  (#set! role block)
  (#set! scope.byLine))

((statement) @subtree
  (#set! scope.byLine))
