query-dcd3b090e0f0f99582fe896537459415

rq turtle/ttl

Women dead in Paris before 1900 without reference for the date SELECT ?item ?itemLabel ?date WHERE { ?item wdt:P21 wd:Q6581072 . # female ?item wdt:P20 / wdt:P131* wd:Q90 . # dead in Paris or a place located within Paris ?item p:P570 ?date_statement . ?date_statement a wikibase:BestRank . # With a date of death statement of best rank ?date_statement ps:P570 ?date . hint:Prior hint:rangeSafe true . FILTER (?date < "+1900-00-00T00:00:00Z"^^xsd:dateTime) # Dead before year 1900 MINUS { ?item wdt:P31 wd:Q95074 . } MINUS { ?date_statement prov:wasDerivedFrom [] . } # No reference for the date of death statement SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } } ORDER BY DESC (?date) LIMIT 1000

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 prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Women dead in Paris before 1900 without reference for the date
SELECT ?item ?itemLabel ?date 
WHERE 
{
  ?item wdt:P21 wd:Q6581072 . # female
  ?item wdt:P20 / wdt:P131* wd:Q90 . # dead in Paris or a place located within Paris
  ?item p:P570 ?date_statement .
  ?date_statement a wikibase:BestRank . # With a date of death statement of best rank
  ?date_statement ps:P570 ?date .

  FILTER (?date < "+1900-00-00T00:00:00Z"^^xsd:dateTime) # Dead before year 1900
  MINUS { ?item wdt:P31 wd:Q95074 . }
  MINUS { ?date_statement prov:wasDerivedFrom [] . } # No reference for the date of death statement
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
ORDER BY DESC (?date)
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?date"):::projected v3("?date_statement") v2("?item"):::projected a2((" ")) a1((" ")) c6(["wd:Q90"]):::iri c9(["wikibase:BestRank"]):::iri c3(["wd:Q6581072"]):::iri c12(["wd:Q95074"]):::iri c15(["bd:serviceParam"]):::iri c17(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?date < '+1900-00-00T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 v2 --"p:direct/P21"--> c3 v2 --"p:direct/P20"--> a1 a1 --"p:direct/P131"--> c6 v2 --"p:P570"--> v3 v3 --"a"--> c9 v3 --"p:statement/P570"--> v1 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P31"--> c12 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v3 --"prov:wasDerivedFrom"--> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c15 --"wikibase:language"--> c17 end