query-718e73b419dc18c8ee0575e4ef6e002c

rq turtle/ttl

title:Belgian municipalities (should 581) SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q493522 . MINUS { ?item wdt:P576 [] } MINUS { ?item wdt:P571 ?date . FILTER (DATATYPE(?date) = xsd:dateTime && ?date > now()) } SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,de,en". } } ORDER BY ?itemLabel

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 bd: <http://www.bigdata.com/rdf#>
#title:Belgian municipalities (should 581)
SELECT DISTINCT ?item ?itemLabel
WHERE {
  ?item wdt:P31 wd:Q493522 .
  MINUS { ?item wdt:P576 [] }
  MINUS { ?item wdt:P571 ?date .
    FILTER (DATATYPE(?date) = xsd:dateTime && ?date > now())
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "nl,fr,de,en". }
}
ORDER BY ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?date") v2("?item"):::projected v1("?itemLabel"):::projected a1((" ")) c7(["bd:serviceParam"]):::iri c9(["nl,fr,de,en"]):::literal c2(["wd:Q493522"]):::iri v2 --"wdt:P31"--> c2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P576"--> a1 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; f2[["?date = 'xsd:dateTime'?date > NOW()"]] f2 --> v3 v2 --"wdt:P571"--> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end