Table view for multiple groupings

Currently if you build a question with 2 groupings using the query builder, you get a nicely formatted table like so:


This is very useful for a per user per week type breakdown.

However running this exact same query in SQL mode(copied from the debug output of the log) produces a standard table with 3 columns. Is there a way to for the render of the table in this 2d format for custom SQL queries?