PCT-671: Support for explain

Alpha prototype, WIP
Not sure if this is good practice to use one character for variable, because for understanding this I need to find where you assign something to `q`