How to make query output data format in 1 string

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

Remove ?pretty and you should be ok.