Develop the graphical query plan