query-979cc6d3d1ee3347333d8d18343f3366
Propertiesinstance of (P31)subclass of (P279)country (P17)diocese (P708)
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#>
SELECT ?diocesis ?diocesisLabel (COUNT(?iglesia) as ?nIglesias) WHERE {
?iglesia wdt:P31/wdt:P279* wd:Q16970;
wdt:P17 wd:Q29;
wdt:P708 ?diocesis.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?diocesis ?diocesisLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?diocesis"):::projected
v1("?iglesia"):::projected
v3("?nIglesias")
a1((" "))
c5(["wd:Q29"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q16970"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P17"--> c5
v1 --"wdt:P708"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"count(?iglesia)"/]
v1 --o bind1
bind1 --as--o v3