Removes QueryPlan and moves the solved PatternQuery to LogicalPlan
Merge pull request #2972 from systay/solved-on-logicalplan

Removes QueryPlan and moves the solved PatternQuery to LogicalPlan