query-6b36b1d23a6b494cd4c31066da669ee4

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?p { 
  VALUES ?p { # in fact there can be more than 30,000 items
    wd:Q30385394 wd:Q30359318 # two statements P577 (now)
    wd:Q21030593 wd:Q21045381 # exact one statement P577
    wd:Q1305037               # without statement P577
  } 
  ?p wdt:P577 ?date1
  FILTER NOT EXISTS {
    ?p wdt:P577 ?date2
    FILTER(?date2 != ?date1)
    }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?date1") v1("?date2") v4("?p"):::projected f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?date2 != ?date1"]] e0f0 --> e0v1 e0f0 --> e0v2 e0v3 --"wdt:P577"--> e0v1 e0v2("?date1"):::projected e0v1("?date2"):::projected e0v3("?p"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> v4 f0 --> c1 f1[["?date2 != ?date1"]] f1 --> v1 f1 --> v2 v4 --"wdt:P577"--> v1 bind2[/VALUES ?p/] bind2-->v4 bind20(["wd:Q30385394"]) bind20 --> bind2 bind21(["wd:Q30359318"]) bind21 --> bind2 bind22(["wd:Q21030593"]) bind22 --> bind2 bind23(["wd:Q21045381"]) bind23 --> bind2 bind24(["wd:Q1305037"]) bind24 --> bind2 v4 --"wdt:P577"--> v2