query-37a074f3e9664aa1658af6d2c4306f2e
title:Wikis with pages about individual sculptures SELECT ?wiki ?wikinameLabel (COUNT(?site) AS ?count) WITH {SELECT DISTINCT ?item WHERE { ?item wdt:P31/wdt:P279? wd:Q860861 } } AS %toplist WHERE { INCLUDE %toplist. ?site schema:about ?item ; schema:isPartOf ?wiki . OPTIONAL { ?wikiname wdt:P856 ?wiki } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?wiki ?wikinameLabel ORDER BY DESC(?count)
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Wikis with pages about individual sculptures
SELECT ?wiki ?wikinameLabel (COUNT(?site) AS ?count) WHERE {
{SELECT DISTINCT ?item WHERE {
?item wdt:P31/wdt:P279? wd:Q860861 } }
?site schema:about ?item ; schema:isPartOf ?wiki .
OPTIONAL { ?wikiname wdt:P856 ?wiki }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?wiki ?wikinameLabel ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count")
v2("?item")
v3("?site"):::projected
v4("?wiki"):::projected
v5("?wikiname")
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q860861"]):::iri
v2 --"wdt:P31"--> a1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P279"--> c2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
v3 --"schema:about"--> v2
v3 --"schema:isPartOf"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P856".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"count(?site)"/]
v3 --o bind1
bind1 --as--o v6