Generating optimal DAG-structured query evaluation plans
Database System Implementation