Add query path diagram.