query-3c3dd8de077d9d55f76913cbfa8b8b16
Ukrainian objects in Austrian and Austro-Hungarian empires for all geographical objects in modern Ukraine (Lviv, Ternopol, Ivano-Frankivsk, Chernovtsy, Uzhgorod regions) which are created before 1867: (Q131964)Austrian Empire I am planning to add P17=
Use at
- https://query.wikidata.org/sparql
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?item ?itemLabel ?coor ?date WHERE {
?item wdt:P131* wd:Q164193.
?item wdt:P625 ?coor.
?item wdt:P571 ?date.
FILTER (?date < "1867-12-31"^^xsd:dat)
MINUS {?item p:P17 [ps:P17 wd:Q131964 ].}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coor"):::projected
v1("?date"):::projected
v2("?item"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c3(["wd:Q164193"]):::iri
c7(["wd:Q131964"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?date < s1867-12-31^^<http://www.w3.org/2001/XMLSchema#dat>'"]]
f0 --> v1
v2 --"p:direct/P131"--> c3
v2 --"p:direct/P625"--> v3
v2 --"p:direct/P571"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
a1 --"p:statement/P17"--> c7
v2 --"p:P17"--> a1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end