query-a92e6826388f28fafec8ddd6c12b15a5
-- despite the fact that every church is a sort of building fails, c:Category:Grade I listed churches in BedfordshireBut this, for TODO
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 DISTINCT ?item ?itemLabel WHERE {
?item wdt:P31?/wdt:P279* wd:Q16970 ;
wdt:P131+ wd:Q23143 ;
wdt:P1435 wd:Q15700818 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:Project_chat/Archive/2017/02
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service/queries
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a1((" "))
c7(["wd:Q15700818"]):::iri
c5(["wd:Q23143"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["en"]):::literal
c3(["wd:Q16970"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> a1
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
a1 --"wdt:P279"--> c3
v1 --"wdt:P131"--> c5
v1 --"wdt:P1435"--> c7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end