Tree format query does not render as a nested list
From semantic-mediawiki.org
Fragment of a discussion from Help talk:Tree format
The issue is that the countries e.g. Netherlands are not assigned to the "City" category. In your query you are asking for pages which are in the category "City" only. Have a look at more examples in the sandbox wiki.
Thanks for the reply. Seems like I overestimated what a result format can do.
Including a country in the query does indeed have the desired effect:
{{#ask: [[Germany]] OR [[Category:City]] [[Located in::Germany]] | format = tree | parent = Located in | limit = 5 }}
Result:
Nice :)
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.