query-bfeb1d21c4e2b314401894d654237a97
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 DISTINCT (wd:Q883991 as ?uncle) (wd:Q437963 as ?newphew) ?stmt ?termLabel WHERE {
wd:Q437963 p:P39 ?stmt.
?stmt ps:P39 wd:Q4416090;
pq:P2937 ?term.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?termLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?newphew")
v2("?stmt"):::projected
v3("?term")
v1("?termLabel"):::projected
v4("?uncle")
c7(["bd:serviceParam"]):::iri
c4(["wd:Q4416090"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c1(["wd:Q437963"]):::iri
c1 --"p:P39"--> v2
v2 --"p:statement/P39"--> c4
v2 --"p:qualifier/P2937"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind0[/"'wd:Q883991'"/]
bind0 --as--o v4
bind1[/"'wd:Q437963'"/]
bind1 --as--o v5