query-458e07a56647f31c7f2cd710226ec2a9

rq turtle/ttl

Propertiesinstance of (P31)sex or gender (P21)country of citizenship (P27)family name (P734)date of birth (P569)date of death (P570)occupation (P106)

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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?lastnameLabel ?birthdate ?deathdate ?nationalityLabel ?occupationLabel ?itemDescription ?linkcount WHERE {
  ?item wdt:P31 wd:Q5;
    wdt:P21 wd:Q6581072;
    wdt:P27 wd:Q31;
    wikibase:sitelinks ?linkcount.
  FILTER(?linkcount > 0 )
  FILTER(?deathdate < "2020-02-14T00:00:00Z"^^xsd:dateTime)
  OPTIONAL { ?item wdt:P734 ?lastname. }
  OPTIONAL { ?item wdt:P569 ?birthdate. }
  OPTIONAL { ?item wdt:P570 ?deathdate. }
  OPTIONAL { ?item wdt:P27 ?nationality. }
  OPTIONAL { ?item wdt:P106 ?occupation. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,en,fr,de,es,it". }
}
ORDER BY (?itemLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?birthdate"):::projected v2("?deathdate"):::projected v4("?item"):::projected v1("?itemLabel"):::projected v5("?lastname") v3("?linkcount"):::projected v7("?nationality") v8("?occupation") c17(["nl,en,fr,de,es,it"]):::literal c8(["wd:Q31"]):::iri c6(["wd:Q6581072"]):::iri c15(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri f0[["?deathdate < '2020-02-14T00:00:00Z^^xsd:dateTime'"]] f0 --> v2 f1[["?linkcount > '0^^xsd:integer'"]] f1 --> v3 v4 --"wdt:P31"--> c4 v4 --"wdt:P21"--> c6 v4 --"wdt:P27"--> c8 v4 --"wikibase:sitelinks"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P734".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P569".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P570".-> v2 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P27".-> v7 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P106".-> v8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c15 --"wikibase:language"--> c17 end