query-98cbb34670344730288552c946ca24c3
TODO
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?itemLabel ?item ?eduLabel ?start ?end WHERE
{
?item wdt:P31 wd:Q5 .
?item wdt:P27 wd:Q28 .
?item p:P69 ?education_statement .
?education_statement ps:P69 ?edu .
OPTIONAL { ?education_statement pq:P580 ?start . }
OPTIONAL { ?education_statement pq:P582 ?end }
SERVICE wikibase:label { bd:serviceParam wikibase:language "hu,en,de,fr" . }
} ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?edu")
v3("?education_statement")
v6("?end"):::projected
v2("?item"):::projected
v1("?itemLabel"):::projected
v5("?start"):::projected
c4(["wd:Q28"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["hu,en,de,fr"]):::literal
c2(["wd:Q5"]):::iri
v2 --"p:direct/P31"--> c2
v2 --"p:direct/P27"--> c4
v2 --"p:P69"--> v3
v3 --"p:statement/P69"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P580".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P582".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end