query-9fa13f40a61f8da567be810d4329d070

rq turtle/ttl

Infrastrukturhttps://www.w3.org/TR/sparql11-query/(P26)spouse

Use at

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 ?item ?itemLabel ?spouse_recursive ?spouse_recursiveLabel
WHERE
{
  ?item wdt:P31 wd:Q5 .
  ?item wdt:P39 wd:Q11696 .
  ?item wdt:P26+ ?spouse_recursive .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?spouse_recursive"):::projected c7(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q11696"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P39"--> c4 v1 --"wdt:P26"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end