PCT-671: Support for explain

Alpha prototype, WIP
Yes, I agree with named variables, in this case it's more clear to me what variable we are going to return.
So I prefer named variables.