query-e85cf0c7178150713bd98b02af05f1b1

rq turtle/ttl

title:cittadini italiani Q38 ma nati prima del 1946, senza P580 SELECT ?human ?humanLabel ?nato ?morte WHERE { ?human wdt:P31 wd:Q5; wdt:P27 wd:Q38; wdt:P569 ?nato; wdt:P570 ?morte; p:P27 ?statement. FILTER NOT EXISTS { ?statement pq:P580 ?datainizio. } FILTER("1946-06-18"^^xsd:dateTime > ?nato) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:cittadini italiani Q38 ma nati prima del 1946, senza P580
SELECT ?human ?humanLabel ?nato ?morte WHERE {
  ?human wdt:P31 wd:Q5;
    wdt:P27 wd:Q38;
    wdt:P569 ?nato;
    wdt:P570 ?morte;
    p:P27 ?statement.
  FILTER NOT EXISTS { ?statement pq:P580 ?datainizio. }
  FILTER("1946-06-18"^^xsd:date > ?nato)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?datainizio") v4("?human"):::projected v5("?morte"):::projected v1("?nato"):::projected v2("?statement") c13(["#91;AUTO_LANGUAGE#93;,it,en"]):::literal c6(["wd:Q38"]):::iri c11(["bd:serviceParam"]):::iri c4(["wd:Q5"]):::iri f0[["'1946-06-18^^xsd:date' > ?nato"]] f0 --> v1 f1[["not "]] subgraph f1e0["Exists Clause"] e0v1 --"p:qualifier/P580"--> e0v2 e0v2("?datainizio"):::projected e0v1("?statement"):::projected end f1--EXISTS--> f1e0 f1 --> v2 f1 --> c2 f1 --> v3 v2 --"p:qualifier/P580"--> v3 v4 --"p:direct/P31"--> c4 v4 --"p:direct/P27"--> c6 v4 --"p:direct/P569"--> v1 v4 --"p:direct/P570"--> v5 v4 --"p:P27"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end