query-060bfa357e1f0a4103b18ca6bf4a342e

rq turtle/ttl

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

Use at

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 ?lastnameLabel ?birthdate ?deathdate ?nationalityLabel ?itemDescription ?voornaam ?voornaamLabel ?itemLabel WHERE {
  ?item wdt:P31 wd:Q5.
  ?item wdt:P21 wd:Q6581097.
  ?item wdt:P106 wd:Q2309784.
  ?item wdt:P27 wd:Q31.
  ?item wdt:P1344 wd:Q33881.

  OPTIONAL { ?item wdt:P734 ?lastname }
  OPTIONAL { ?item wdt:P569 ?birthdate }
  OPTIONAL { ?item wdt:P570 ?deathdate }
  OPTIONAL { ?item wdt:P27 ?nationality }
  OPTIONAL { ?item wdt:P735 ?voornaam }

  MINUS { ?item wdt:P734 [] }
  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; v4("?birthdate"):::projected v5("?deathdate"):::projected v2("?item"):::projected v1("?itemLabel"):::projected v3("?lastname") v6("?nationality") v7("?voornaam"):::projected a1((" ")) c18(["nl,en,fr,de,es,it"]):::literal c4(["wd:Q6581097"]):::iri c8(["wd:Q31"]):::iri c6(["wd:Q2309784"]):::iri c16(["bd:serviceParam"]):::iri c10(["wd:Q33881"]):::iri c2(["wd:Q5"]):::iri v2 --"wdt:P31"--> c2 v2 --"wdt:P21"--> c4 v2 --"wdt:P106"--> c6 v2 --"wdt:P27"--> c8 v2 --"wdt:P1344"--> c10 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P734".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P569".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v5 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P27".-> v6 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P735".-> v7 end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P734"--> a1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c16 --"wikibase:language"--> c18 end