It would be nice if we actually could use the new parser to do this stuff. As is that's not yet possible, though. The existing backends internally expose the return type of a query (only queries with a single return are supported anyways) but not in way it could be accessed from here without nowing the backend-specific implementation type.