How can I get the aggregate information to appear in a matrix as in this example:

![enter image description here](https://i.stack.imgur.com/X8y4W.png)

The query results are in a single row with columns representing each of the aggregate numbers.