query-28254c9469b9da5d80fe2aa0da002186
Jura1(P3921)Wikidata SPARQL query equivalent (Q76557)uncle
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?subject ?subjectLabel ?nieceOrNephewClass ?nieceOrNephewClassLabel ?uncle ?uncleLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?subject p:P1038 ?statement.
?nieceOrNephewClass wdt:P279*/wdt:P279* wd:Q76477.
?statement pq:P1039 ?nieceOrNephewClass.
?statement ps:P1038 ?uncle.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?nieceOrNephewClass"):::projected
v2("?statement")
v1("?subject"):::projected
v4("?uncle"):::projected
a1((" "))
c2(["bd:serviceParam"]):::iri
c7(["wd:Q76477"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:P1038"--> v2
v3 --"p:direct/P279"--> a1
a1 --"p:direct/P279"--> c7
v2 --"p:qualifier/P1039"--> v3
v2 --"p:statement/P1038"--> v4