query-b8861ee45c81822fb129c69f367a5e6a
Az ELTE 1930 előtt született végzőseinek alma mater adatai
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 ?item ?itemLabel ?dobyear ?dodyear ?datyear ?sc ?scLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "hu". }
?item wdt:P69 wd:Q390287; wdt:P31 wd:Q5.
?item p:P69 ?statement.
?statement ps:P69 ?egyetem.
OPTIONAL { ?statement pq:P582 ?dat. }
BIND(YEAR(?dat) AS ?datyear) .
OPTIONAL { ?statement pq:P812 ?sc. }
OPTIONAL { ?item wdt:P569 ?dob .
BIND(YEAR(?dob) AS ?dobyear) .
}
OPTIONAL {
?item wdt:P570 ?dod .
BIND(YEAR(?dod) AS ?dodyear) .
}
FILTER(!BOUND(?dobyear)|| ?dobyear < 1930) .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?dat")
v6("?datyear"):::projected
v8("?dob")
v9("?dobyear"):::projected
v9("?dod")
v10("?dodyear"):::projected
v4("?egyetem")
v2("?item"):::projected
v7("?sc"):::projected
v3("?statement")
c7(["wd:Q390287"]):::iri
c5(["hu"]):::literal
c3(["bd:serviceParam"]):::iri
c9(["wd:Q5"]):::iri
f0[["(not bound(?dobyear) || ?dobyear < '1930^^xsd:integer')"]]
f0 --> v9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
v2 --"p:direct/P69"--> c7
v2 --"p:direct/P31"--> c9
v2 --"p:P69"--> v3
v3 --"p:statement/P69"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P582".-> v5
end
bind1[/"year-from-dateTime(?dat)"/]
v5 --o bind1
bind1 --as--o v6
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P812".-> v7
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P569".-> v8
bind2[/"year-from-dateTime(?dob)"/]
v8 --o bind2
bind2 --as--o v9
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P570".-> v9
bind3[/"year-from-dateTime(?dod)"/]
v9 --o bind3
bind3 --as--o v10
end