query-6660e892f02dc1bb946e49ab0caca9e4

rq turtle/ttl

People that have married two Olympians "Has anyone in history besides Yuriy Sedykh ever been married to two different Olympic gold medalists?" could be answered with a WD query, or if not that specific question, then the simpler question "Which people have been married to two different Olympians?" this questionHi, I'm trying to get back into writing queries and was wondering if . (Q8470)1988 Summer Olympics (P1344)participant in I think. For example, (Q82414)Winter Olympic Games or (Q159821)Summer Olympic Games and value (P31)instance of , and a value of something that itself has property (P1344)participant in All Olympians at the modern olympics should have Wikidata items with property values where at least two of those values matches the definition of "olympian" above. I understand the spousal data is incomplete and not all spouses have wikidata items, but I'm looking for the best we have here. (P26)spouse So I'd be looking for someone who has multiple Here is a query I came up with to list all spouses of Olympians:

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 ?person ?personLabel
WHERE {
  VALUES ?olympics { wd:Q159821 wd:Q82414 }
  ?person wdt:P26 ?spouse.
  ?spouse wdt:P1344 ?event.
  ?event wdt:P31 ?olympics.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?event") v1("?olympics") v2("?person"):::projected v3("?spouse") c5(["bd:serviceParam"]):::iri c7(["en"]):::literal bind0[/VALUES ?olympics/] bind0-->v1 bind00(["wd:Q159821"]) bind00 --> bind0 bind01(["wd:Q82414"]) bind01 --> bind0 v2 --"wdt:P26"--> v3 v3 --"wdt:P1344"--> v4 v4 --"wdt:P31"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end