query-eea94d0d09c5a0ad6200fd57f289e84b

rq turtle/ttl

Propertiesinstance of (P31)movement (P135)given name (P735)family name (P734)date of birth (P569)date of death (P570)

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 DISTINCT ?person ?personLabel (SAMPLE(?birthdate) AS ?birthdate) (SAMPLE(?deathdate) AS ?deathdate)
WHERE 
{
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P135 wd:Q3477959 .
  OPTIONAL { ?person wdt:P735 ?givenName . }
  OPTIONAL { ?person wdt:P734 ?name . }
  OPTIONAL { ?person wdt:P569 ?birthdate . }
  OPTIONAL { ?person wdt:P570 ?deathdate . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr, en". }
} GROUP BY ?person ?personLabel ORDER BY ?nameLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?birthdate"):::projected v7("?deathdate"):::projected v3("?givenName") v4("?name") v1("?nameLabel") v2("?person"):::projected c12(["fr, en"]):::literal c4(["wd:Q3477959"]):::iri c10(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri v2 --"wdt:P31"--> c2 v2 --"wdt:P135"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P735".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P734".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P569".-> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end bind2[/"sample(?birthdate)"/] v7 --o bind2 bind2 --as--o v7 bind3[/"sample(?deathdate)"/] v7 --o bind3 bind3 --as--o v7