code: public Plan createQueryPlan(String qry, Transaction tx) {
  		Parser parser = new Parser(qry);
  		QueryData data = parser.queryCommand();
  		Verifier.verifyQueryData(data, tx);
  		return qPlanner.createPlan(data, tx);
  	}
docs: Creates a plan for an SQL select statement, using the supplied planner.
  
  @param qry
  the SQL query string
  @param tx
  the transaction
  @return the scan corresponding to the query plan