added parse_query, moving logic from parse_<statement> to parse_query, parse_select will just have logic for checking invalid statements