query-c32ca451ae392b992fa23c45ba204fff

rq turtle/ttl

Swpb

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?occupation ?of
WHERE
{
  ?item p:P106 ?occ_stm .
  ?occ_stm ps:P106 ?occupation .
  ?occupation wdt:P31 / wdt:P279* wd:Q2248623 .
  ?occ_stm pq:P642 ?of .
  ?of wdt:P31 / wdt:P279* wd:Q11862829 .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?occ_stm") v3("?occupation"):::projected v4("?of"):::projected a1((" ")) a2((" ")) c5(["wd:Q2248623"]):::iri c7(["wd:Q11862829"]):::iri v1 --"p:P106"--> v2 v2 --"p:statement/P106"--> v3 v3 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c5 v2 --"p:qualifier/P642"--> v4 v4 --"p:direct/P31"--> a2 a2 --"p:direct/P279"--> c7