compile query.coffee