documentation: ensure SQL queries are below 85 chars per line.

for the reviewer:
Task: improve readability of documentation - ensure that character length of SQL queries is below 85 chars per line.

My attempt is to split up the task:
- fix SQL queries in general (which is this PR).
- fix output of SQL queries.

do we prefer spaces around operators? e.g. `date = 0`