query-5bcf48b5e20a687c07c983b7f182cf4c

rq turtle/ttl

Missing resultI have this query (to show cadatral areas in Prague ordered by number of houses with wikidata item):

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel (count (DISTINCT ?bud) as ?count) 
WHERE {
    ?item wdt:P31 wd:Q20871353 .
    ?item wdt:P17 wd:Q213 . 
    ?item wdt:P131 ?prs .
    {  
    ?prs wdt:P131 wd:Q1085 .
    }
    UNION
    {
    ?prs wdt:P131 ?vrs .
    ?vrs wdt:P131 wd:Q1085 .  
    } 
    UNION
    {
    ?prs wdt:P131 ?vrs .
    ?vrs wdt:P131 ?drs .  
    ?drs wdt:P131 wd:Q1085 .  
    } 
    SERVICE wikibase:label { bd:serviceParam wikibase:language "cs" }
    ?bud wdt:P131 ?item .
    ?bud wdt:P4856 ?cp .
} GROUP BY ?item ?itemLabel
ORDER BY DESC (?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?bud"):::projected v8("?count") v7("?cp") v5("?drs") v2("?item"):::projected v3("?prs") v4("?vrs") c10(["cs"]):::literal c4(["wd:Q213"]):::iri c8(["bd:serviceParam"]):::iri c6(["wd:Q1085"]):::iri c2(["wd:Q20871353"]):::iri v2 --"wdt:P31"--> c2 v2 --"wdt:P17"--> c4 v2 --"wdt:P131"--> v3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P131"--> v4 v4 --"wdt:P131"--> v5 v5 --"wdt:P131"--> c6 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P131"--> v4 v4 --"wdt:P131"--> c6 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P131"--> c6 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end v6 --"wdt:P131"--> v2 v6 --"wdt:P4856"--> v7 bind1[/"count(?bud)"/] v6 --o bind1 bind1 --as--o v8