I have narrowed down the problem to a minimum example. There should be more columns which I would select for the top level in the actual query that I want to run.
Q