refactor SemanticAnalyzer:
- Phase 1 construct WindowingSpec & PTFInvocationSpec
- genPlan: generate separate plans for Windowing & PTF Invocations.