query-fe76471eb90681b1ad221281f4e08d3a

rq turtle/ttl

Propertiesemployer (P108)instance of (P31)date of death (P570)author (P50)publication date (P577)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?authorLabel ?publication ?publicationLabel ?date 
WHERE {
      { ?author wdt:P108 wd:Q34433 } # Listed as employees of the university
UNION { {?college wdt:P31 wd:Q2581649 } UNION { ?college wdt:P31 wd:Q3338504 }.
        ?author wdt:P108 ?college } # Listed as employees of a college or hall
        MINUS{ ?author wdt:P570 ?date } # No death date
        ?publication wdt:P50 ?author 
    OPTIONAL { ?publication wdt:P577 ?date }

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" }
} ORDER BY DESC(?date)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?author") v3("?college") v1("?date"):::projected v4("?publication"):::projected c10(["bd:serviceParam"]):::iri c5(["wd:Q3338504"]):::iri c2(["wd:Q34433"]):::iri c12(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal c4(["wd:Q2581649"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> c5 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> c4 end union1r <== or ==> union1l end v2 --"wdt:P108"--> v3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P108"--> c2 end union0r <== or ==> union0l end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P570"--> v1 end v4 --"wdt:P50"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P577".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end