Show full query text for CSV, TSV, and JSON output format

Please ignore commit 7fb8893 which has already been added to master.

CLT-572