In general, no, not in the query. Formatting such as this (between rows) is usually done by the client program. The query itself just returns a relation (table). Your second result is not even a table, because the rows do not have the same number of columns.