The Tree view only creates nodes for Wikidata entities, not OSM Wiki data items or OSM elements. For example, this query displays nothing even though the table view shows a row for most of the U.S. states:
#defaultView:Tree
SELECT ?osm ?name WHERE {
?osm osmt:boundary "administrative";
osmt:admin_level "4";
osmt:is_in:country_code "US";
osmt:name ?name.
}
But replacing the OSM element with a Wikidata entity in the output results in a node for each state:
#defaultView:Tree
SELECT ?wd ?name WHERE {
?osm osmt:boundary "administrative";
osmt:admin_level "4";
osmt:is_in:country_code "US";
osmt:name ?name;
osmt:wikidata ?wd.
}