On QueryPlanGrammar