Removing extra BQ having just one clause as only child under query in ANTLR parser