query-0eac86455827a8b69305a2e6fdd3b858
Ancient Greece or Roman Republic or Empire used as state
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?property ?countryLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
VALUES ?country { wd:Q2277 wd:Q11772 wd:Q17167} .
VALUES ?property { wdt:P17 wdt:P27 wdt:P710 wdt:P1001 } .
?item ?property ?country .
}
Query found at
- https://www.wikidata.org/wiki/User:Jahl_de_Vautban
- https://www.wikidata.org/wiki/User:Jahl_de_Vautban/Queries
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?country")
v3("?item"):::projected
v2("?property"):::projected
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
bind0[/VALUES ?country/]
bind0-->v1
bind00(["wd:Q2277"])
bind00 --> bind0
bind01(["wd:Q11772"])
bind01 --> bind0
bind02(["wd:Q17167"])
bind02 --> bind0
bind1[/VALUES ?property/]
bind1-->v2
bind10(["wdt:P17"])
bind10 --> bind1
bind11(["wdt:P27"])
bind11 --> bind1
bind12(["wdt:P710"])
bind12 --> bind1
bind13(["wdt:P1001"])
bind13 --> bind1
v3 -->v2--> v1