query-0e0d82531cadd4b38d73ff982cf38788

rq turtle/ttl

FRS appointed in 2019, with no ORCID iD SELECT ?frs ?frsLabel WHERE { ?frs wdt:P31 wd:Q5. ?frs p:P166 ?award. ?award ps:P166 wd:Q15631401. ?award pq:P585 ?year. FILTER (?year = "2019-01-01T00:00:00Z"^^xsd:dateTime) . MINUS { ?frs wdt:P496 [] . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } }

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
#FRS appointed in 2019, with no ORCID iD
SELECT ?frs ?frsLabel
WHERE
{
    ?frs wdt:P31 wd:Q5.
    ?frs p:P166 ?award.
    ?award ps:P166 wd:Q15631401.
    ?award pq:P585 ?year.
    FILTER (?year = "2019-01-01T00:00:00Z"^^xsd:dateTime) .
    MINUS { ?frs wdt:P496 [] . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?award") v2("?frs"):::projected v1("?year") a1((" ")) c10(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q15631401"]):::iri f0[["?year = '2019-01-01T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 v2 --"p:direct/P31"--> c3 v2 --"p:P166"--> v3 v3 --"p:statement/P166"--> c6 v3 --"p:qualifier/P585"--> v1 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P496"--> a1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end