query-5d434f20a704eab94bdc8654f62ebabf

rq turtle/ttl

Query for people employed at Penn State without position held qualifier

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?human ?humanLabel WHERE {
  ?human wdt:P108 wd:Q739627. # employer is Penn State University, change final value to your employer
  ?item p:P108 ?employment_statement.
  ?employment_statement ps:P108 wd:Q739627.
  FILTER(NOT EXISTS { ?employment_statement pq:P39 ?o. }) # this tests to see if the person has a position held qualifier
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?employment_statement") v3("?human"):::projected v4("?item") v2("?o") c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q739627"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"p:qualifier/P39"--> e0v2 e0v1("?employment_statement"):::projected e0v2("?o"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 v1 --"p:qualifier/P39"--> v2 v3 --"p:direct/P108"--> c3 v4 --"p:P108"--> v1 v1 --"p:statement/P108"--> c3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end