query-6660e892f02dc1bb946e49ab0caca9e4
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
- 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 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". }
}