query-6c357a02f4136d7155f7d770f72ca8a4
Propertiesinstrument (P1303)date of birth (P569)place of birth (P19)
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?player ?playerLabel ?article ?birthyear ?placeLabel
WHERE {
?player wdt:P1303 wd:Q180733.
OPTIONAL {?player wdt:P569 ?born}.
OPTIONAL {?player wdt:P19 ?place}.
BIND(YEAR(?born) as ?birthyear).
OPTIONAL{ ?article schema:about ?player. ?article schema:isPartOf <https://en.wikipedia.org/>. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" }
}
ORDER BY ASC(?birthyear)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article"):::projected
v5("?birthyear"):::projected
v3("?born")
v4("?place")
v2("?player"):::projected
c2(["wd:Q180733"]):::iri
c7([https://en.wikipedia.org/]):::iri
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
v2 --"wdt:P1303"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P19".-> v4
end
bind0[/"year-from-dateTime(?born)"/]
v3 --o bind0
bind0 --as--o v5
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:about".-> v2
v5 --"schema:isPartOf"--> c7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end