change SelectAnalyzedStatement to have source relations

- SelectStatementAnalyzer delegates to relationAnalyzer
- RelationAnalyzer can now analyze QuerySpecifications
- Moved some validation logic that depends on TableInfo into the Planner.
- Moved some tests from SelectAnalyzerTest into
  WhereClauseAnalyzerTest or PlannerTest