query-e7a6497cc694fc34e1e0381fc878f5ab

rq turtle/ttl

List ten people with an occupation of Journalist without a death date or an ID for the site Muckrack

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
  {
    SELECT DISTINCT ?item WHERE {
      ?item p:P106 ?statement0.
      ?statement0 (ps:P106/(wdt:P279*)) wd:Q1930187.
      MINUS {
        ?item p:P570 ?statement_1.
        ?statement_1 psv:P570 ?statementValue_1.
        ?statementValue_1 wikibase:timeValue ?P570_1.
      }
      MINUS {
        ?item p:P6005 ?statement2.
        ?statement2 (ps:P6005) _:anyValueP6005.
      }
    }
    LIMIT 10
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?P570_1") v1("?item"):::projected v2("?statement0") v6("?statement2") v4("?statementValue_1") v3("?statement_1") a2((" ")) a1((" ")) c8(["wd:Q1930187"]):::iri c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"p:P106"--> v2 v2 --"p:statement/P106"--> a1 a1 --"p:direct/P279"--> c8 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"p:P570"--> v3 v3 --"p:statement/value/P570"--> v4 v4 --"wikibase:timeValue"--> v5 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"p:P6005"--> v6 v6 --"p:statement/P6005"--> a2 end