I've written and attached ANTLR grammar for DrQL which I assume is same as BigQuery language described in Query Reference on BigQuery website. This grammar includes AST production rules.