query-b1596eb634a1cc8c68174f28e4e3e756

rq turtle/ttl

Daehan(P734)family name (Q1158605)Walker (Q8200777)Anthony Walker

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?dob ?dod
WHERE
{
  VALUES ?occupation { wd:Q15296811 wd:Q329439 wd: wd:Q11569986 }
  ?item wdt:P31 wd:Q5 . # ?item is human
  ?item wdt:P106 ?occupation . # item's occupation is draughtsman or engraver
  {
    ?item wdt:P734 wd:Q1158605 . # item's family name is Walker
  }
  UNION
  {
    ?item rdfs:label ?label .
    FILTER CONTAINS(?label, "Walker")
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  OPTIONAL { ?item wdt:P569 ?dob . }
  OPTIONAL { ?item wdt:P570 ?dod . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?dob"):::projected v5("?dod"):::projected v2("?item"):::projected v3("?label") v1("?occupation") c5(["wd:Q1158605"]):::iri c9(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?occupation/] bind0-->v1 bind00(["wd:Q15296811"]) bind00 --> bind0 bind01(["wd:Q329439"]) bind01 --> bind0 bind02(["wd:"]) bind02 --> bind0 bind03(["wd:Q11569986"]) bind03 --> bind0 v2 --"wdt:P31"--> c2 v2 --"wdt:P106"--> v1 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; f1[["contains(?label,'Walker')"]] f1 --> v3 v2 --"rdfs:label"--> v3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P734"--> c5 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P569".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P570".-> v5 end