0

How can I get all chairpersons, which are still holding this job (where the predicate has no end date?).

My current version returns all chairpersons:

SELECT ?chairperson ?x WHERE {
  ?university wdt:P488 ?chairperson.
}
logi-kal
  • 7,107
  • 6
  • 31
  • 43
Querenker
  • 2,242
  • 1
  • 18
  • 29
  • 2
    `SELECT ?university ?chairperson WHERE { ?university p:P488 ?stmt. ?stmt ps:P488 ?chairperson filter not exists {?stmt pq:P582 ?end} }` - you should also add some type triple pattern for universities I guess – UninformedUser Apr 16 '19 at 16:54
  • Thanks @AKSW, that was exactly what I was looking for. That was only a (minimal) example, in the original version there are already type triple ;) – Querenker Apr 16 '19 at 18:14
  • @AKSW seems you should convert your comment to an answer – Tomasz Pluskiewicz Apr 17 '19 at 12:17

0 Answers0