query-17672d8e39bed134024e595ecee63a47

rq turtle/ttl

Chess players without specific Elo ratingI am trying to generate a list that gives all chess players that do not have an Elo rating for a particular month (January 2012). I constructed the following query, but at the moment it returns also players with this rating month. I guess the filtering is incorrect. Can somebody fix it?

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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel 
WHERE 
{
  ?item wdt:P106 wd:Q10873124.
  ?item wdt:P1440 ?fide .
  ?item p:P1087 [pq:P585 ?date ] .

  FILTER ( ?date != "+2012-01-01T00:00:00Z"^^xsd:dateTime ) .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?date") v3("?fide") v2("?item"):::projected a1((" ")) c8(["bd:serviceParam"]):::iri c3(["wd:Q10873124"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?date != '+2012-01-01T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 v2 --"p:direct/P106"--> c3 v2 --"p:direct/P1440"--> v3 a1 --"p:qualifier/P585"--> v1 v2 --"p:P1087"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end