query-af66f0c2dbdb51f7a68159186ff1f911
Architects ordered by number of projects in Vilnius
Use at
- https://query.wikidata.org/sparql
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#>
#title:Architects ordered by number of projects in Vilnius
#defaultView:BubbleChart
SELECT ?archLabel (COUNT(DISTINCT ?city) AS ?count) WHERE {
?city (wdt:P131/(wdt:P131*)) wd:Q216;
wdt:P84 ?arch.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?arch ?archLabel
ORDER BY DESC (?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?arch")
v2("?city"):::projected
v4("?count")
a1((" "))
c5(["bd:serviceParam"]):::iri
c2(["wd:Q216"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P131"--> a1
a1 --"wdt:P131"--> c2
v2 --"wdt:P84"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"count(?city)"/]
v2 --o bind1
bind1 --as--o v4