query-eef8246be719ddd55a1f4dbdbeb45831
title:Lithuania men that have Olympedia people ID SELECT ?item ?itemLabel ?born ?died ?olid WHERE { VALUES ?lit { wd:Q37 } ?item wdt:P27 ?lit; wdt:P21 wd:Q6581097; wdt:P8286 ?olid. OPTIONAL { ?item wdt:P569 ?born. } OPTIONAL { ?item wdt:P570 ?died. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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#>
#title:Lithuania men that have Olympedia people ID
SELECT ?item ?itemLabel ?born ?died ?olid WHERE {
VALUES ?lit {
wd:Q37
}
?item wdt:P27 ?lit;
wdt:P21 wd:Q6581097;
wdt:P8286 ?olid.
OPTIONAL { ?item wdt:P569 ?born. }
OPTIONAL { ?item wdt:P570 ?died. }
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;
v4("?born"):::projected
v5("?died"):::projected
v2("?item"):::projected
v1("?lit")
v3("?olid"):::projected
c8(["bd:serviceParam"]):::iri
c3(["wd:Q6581097"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?lit/]
bind0-->v1
bind00(["wd:Q37"])
bind00 --> bind0
v2 --"wdt:P27"--> v1
v2 --"wdt:P21"--> c3
v2 --"wdt:P8286"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P569".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P570".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end