query-dbb0ba41c5be94bb0cf90bc02c8de5ad

rq turtle/ttl

People born after year 1920 with no death date and with article in Greek Wikipedia SELECT ?person ?personLabel ?date WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P569 ?birth . OPTIONAL {?person wdt:P570 ?death } FILTER (?birth > "1920-01-01T00:00:00Z"^^xsd:dateTime) FILTER (!bound(?death)) FILTER EXISTS { ?article schema:about ?person . ?article schema:inLanguage "el" . ?article schema:isPartOf https://el.wikipedia.org/ } SERVICE wikibase:label { bd:serviceParam wikibase:language "el" } } LIMIT 1000

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
#People born after year 1920 with no death date and with article in Greek Wikipedia
SELECT ?person ?personLabel ?date
WHERE
{
    ?person wdt:P31 wd:Q5 .
    ?person wdt:P569 ?birth .
    OPTIONAL {?person wdt:P570 ?death }
    FILTER (?birth > "1920-01-01T00:00:00Z"^^xsd:dateTime)
    FILTER (!bound(?death))
    FILTER EXISTS {
    ?article schema:about ?person .
    ?article schema:inLanguage "el" .
    ?article schema:isPartOf <https://el.wikipedia.org/>
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "el" }
}
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?article") v4("?birth") v3("?death") v2("?person"):::projected c3(["el"]):::literal c12(["bd:serviceParam"]):::iri c8(["wd:Q5"]):::iri c5([https://el.wikipedia.org/]):::iri f0[[" "]] subgraph f0e0["Exists Clause"] e0v1 --"schema:about"--> e0v2 e0v1 --"schema:inLanguage"--> e0c3 e0v1 --"schema:isPartOf"--> e0c5 e0v1("?article"):::projected e0v2("?person"):::projected e0c3(["el"]):::literal e0c5([https://el.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 f0 --> c2 f0 --> c3 f0 --> c4 f0 --> c5 v1 --"schema:about"--> v2 v1 --"schema:inLanguage"--> c3 v1 --"schema:isPartOf"--> c5 f1[["not bound(?death)"]] f1 --> v3 f2[["?birth > '1920-01-01T00:00:00Z^^xsd:dateTime'"]] f2 --> v4 v2 --"wdt:P31"--> c8 v2 --"wdt:P569"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c3 end