query-5ef89875b10ab2ac9f0d6ab2afb9e2d0

rq turtle/ttl

TODO

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 ?artist ?artistLabel ?location ?locationLabel  (count(?item) as ?count)  where
{
  values ?artist {wd:Q762}    # Artist Qid(s) here
  ?artist ^wdt:P170 ?item.
  ?item wdt:P276 ?location.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
}
group by ?artist ?artistLabel ?location ?locationLabel order by ?locationLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?artist"):::projected v5("?count") v3("?item"):::projected v4("?location"):::projected v1("?locationLabel"):::projected c4(["bd:serviceParam"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?artist/] bind0-->v2 bind00(["wd:Q762"]) bind00 --> bind0 v3 --"wdt:P170"--> v2 v3 --"wdt:P276"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end bind2[/"count(?item)"/] v3 --o bind2 bind2 --as--o v5