query-d137d062d4ca9bd7d71a8cdbed9fc89b

rq turtle/ttl

Propertiesinstance of (P31)place of birth (P19)date of birth (P569)date of death (P570)place of death (P20)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel ?Geburtsdatum ?Sterbedatum
WHERE {
  {
    ?item wdt:P31 wd:Q5.
    ?item wdt:P19 wd:Q504590.
    OPTIONAL { ?item wdt:P569 ?Geburtsdatum. }
    OPTIONAL { ?item wdt:P570 ?Sterbedatum. }
    FILTER((YEAR(?Geburtsdatum)) < 1924)
  }
  UNION
  {
    ?item wdt:P31 wd:Q5.
    ?item wdt:P20 wd:Q504590.
    OPTIONAL { ?item wdt:P569 ?Geburtsdatum. }
    OPTIONAL { ?item wdt:P570 ?Sterbedatum. }
    FILTER((YEAR(?Sterbedatum)) < 1924)
  }
}
ORDER BY ?Geburtsdatum

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?Geburtsdatum"):::projected v3("?Sterbedatum"):::projected v2("?item"):::projected c5(["wd:Q504590"]):::iri c3(["wd:Q5"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; f0[["year-from-dateTime(?Sterbedatum) < '1924^^xsd:integer'"]] f0 --> v3 v2 --"wdt:P31"--> c3 v2 --"wdt:P20"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P569".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v3 end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; f1[["year-from-dateTime(?Geburtsdatum) < '1924^^xsd:integer'"]] f1 --> v1 v2 --"wdt:P31"--> c3 v2 --"wdt:P19"--> c5 subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P569".-> v1 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v3 end end union0r <== or ==> union0l end