If a Query output depends on internal variables, show them too

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>