query-fde97eeae0abb7a1c919446901f71143

rq turtle/ttl

TODO

Use at

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 ?country ?countryLabel WHERE {
  ?country wdt:P31 wd:Q7275 .
  MINUS { ?country wdt:P31 wd:Q3024240 } .
  MINUS {
    ?country wdt:P576 ?date .
    FILTER( YEAR(?date) < 1896 ) .
  } .
  MINUS {
    ?person (wdt:P27|wdt:P1532) ?country;
           p:P1344/pq:P166/wdt:P279* wd:Q636830 .
  } .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?country"):::projected v2("?date") v3("?person") a1((" ")) a2((" ")) c11(["wd:Q636830"]):::iri c15(["en"]):::literal c3(["wd:Q3024240"]):::iri c13(["bd:serviceParam"]):::iri c2(["wd:Q7275"]):::iri v1 --"p:direct/P31"--> c2 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"p:direct/P31"--> c3 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; f2[["year-from-dateTime(?date) < '1896^^xsd:integer'"]] f2 --> v2 v1 --"p:direct/P576"--> v2 end subgraph minus3["MINUS"] style minus3 stroke-width:6px,fill:pink,stroke:red; subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"p:direct/P1532"--> v1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"p:direct/P27"--> v1 end union0r <== or ==> union0l end v3 --"p:P1344"--> a1 a1 --"p:qualifier/P166"--> a2 a2 --"p:direct/P279"--> c11 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end