Tree format query does not render as a nested list
From semantic-mediawiki.org
Fragment of a discussion from Help talk:Tree format
Some result formats indeed need a special data structure to work on. Here it appears more to be a matter of selecting pages. Have a look at inferencing too.