query-0e698a6634ffc926c37ad8b344ad45b6

rq turtle/ttl

TODO

Use at

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#>
SELECT ?pseudoOccupation ?realOccupation ?label
WHERE {
  {
    SELECT DISTINCT ?pseudoOccupation
    WHERE {
      ?someone wdt:P106 ?pseudoOccupation.
      ?pseudoOccupation wdt:P31 wd:Q4167410.
    }
  }
  ?pseudoOccupation rdfs:label ?label. FILTER (LANG(?label)="en")

  VALUES ?occupation { wd:Q12737077 wd:Q28640 wd:Q4164871 }
  ?realOccupation wdt:P31 ?occupation.
  ?realOccupation rdfs:label ?label .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?label"):::projected v4("?occupation") v3("?pseudoOccupation"):::projected v5("?realOccupation"):::projected v2("?someone") c4(["wd:Q4167410"]):::iri f0[["?label = 'en'"]] f0 --> v1 v2 --"wdt:P106"--> v3 v3 --"wdt:P31"--> c4 v3 --"rdfs:label"--> v1 bind1[/VALUES ?occupation/] bind1-->v4 bind10(["wd:Q12737077"]) bind10 --> bind1 bind11(["wd:Q28640"]) bind11 --> bind1 bind12(["wd:Q4164871"]) bind12 --> bind1 v5 --"wdt:P31"--> v4 v5 --"rdfs:label"--> v1