query-370745f0e2420d40039aaf5c7e5e08c3
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel {
?item wdt:P780/wdt:P31*/wdt:P279* wd:Q737460, wd:Q86, wd:Q21120251.
OPTIONAL { ?item rdfs:label ?itemLabel FILTER(LANG(?itemLabel) = "en") }
}
Query found at
- https://www.wikidata.org/wiki/User:Iwan.Aucamp/Trash
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service
- https://www.wikidata.org/wiki/Wikidata_talk:SPARQL_query_service/Wikidata_Query_Help
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemLabel"):::projected
a1((" "))
a2((" "))
c7(["wd:Q21120251"]):::iri
c6(["wd:Q86"]):::iri
c5(["wd:Q737460"]):::iri
v2 --"wdt:P780"--> a1
a1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c5
a2 --"wdt:P279"--> c6
a2 --"wdt:P279"--> c7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."rdfs:label".-> v1
end