Example to execute a query but handle the
basic graph patterns in the query in some special way.
Stages are one step in executing a basic graph pattern (BGP).
A StageGenerator builds a StageList and the stage list
is executes with the output (a QueryIterator) of the previous
stage fed int the current stage.