query-91ee2661d8b07352f4279f89e50c798d
PropertiesOlympic.org athlete ID (archived) (P3171)sex or gender (P21)sports discipline competed in (P2416)country of citizenship (P27)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT
?person ?personLabel ?sexgenderLabel ?sport ?sportLabel ?citizenship ?citizenshipLabel
WHERE
{
{ SELECT DISTINCT ?person ?sexgender ?sport ?citizenship
WHERE {
{ SELECT DISTINCT ?person
WHERE { ?person wdt:P3171 ?value .
?person wikibase:statements ?statements .
FILTER (?statements > 50) . }
}
{ ?person wdt:P21 ?sexgender . }
{ ?person wdt:P2416 ?sport . }
{ ?person wdt:P27 ?citizenship . }
} } 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;
v6("?citizenship"):::projected
v2("?person"):::projected
v4("?sexgender")
v5("?sport"):::projected
v1("?statements")
v3("?value")
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
f0[["?statements > '50^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P3171"--> v3
v2 --"wikibase:statements"--> v1
v2 --"wdt:P21"--> v4
v2 --"wdt:P2416"--> v5
v2 --"wdt:P27"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end