Show query

Hello,
I would like to show the query on the page.
See image attached.
Any clue?
Thanks in advance.
edgard