query-af366225b6191d175a9b2d0d0ffdcc04
Equivalent of IN in a query 18:20, 20 April 2020 (UTC)) talk (Bouzinac in this query ; how should I redact this ? Thanks, (Q15974882)borders of Cyprus and Q91090320Hello; I'd like to mix
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#>
#defaultView:Map
SELECT distinct ?item ?itemLabel ?coord WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?item wdt:P361*/wdt:P31/wdt:P279* wd:Q757292 .#checkpoints
?item wdt:P361*/wdt:P31*/wdt:P279* wd:Q91090320, wd:Q15974882 .
OPTIONAL { ?item wdt:P625 ?coord. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coord"):::projected
v1("?item"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c9(["wd:Q91090320"]):::iri
c8(["wd:Q757292"]):::iri
c10(["wd:Q15974882"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P361"--> a1
a1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c8
v1 --"wdt:P361"--> a3
a3 --"wdt:P31"--> a4
a4 --"wdt:P279"--> c9
a4 --"wdt:P279"--> c10
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P625".-> v2
end