query-13bb66746559b67c8c313b0ca850b3c0
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT (GROUP_CONCAT(DISTINCT ?armament_label; SEPARATOR=', ') AS ?armaments) (GROUP_CONCAT(DISTINCT ?conflict_label; SEPARATOR=', ') AS ?conflicts) WHERE {
OPTIONAL {
wd:Q1785916 wdt:P520 ?armament .
?armament rdfs:label ?armament_label .
FILTER(LANG(?armament_label) = 'en') .
}
OPTIONAL {
wd:Q1785916 wdt:P607 ?conflict .
?conflict rdfs:label ?conflict_label .
FILTER(LANG(?conflict_label) = 'en') .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?armament")
v2("?armament_label"):::projected
v5("?armaments")
v4("?conflict")
v1("?conflict_label"):::projected
v6("?conflicts")
c2(["wd:Q1785916"]):::iri
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
c2 -."wdt:P520".-> v3
v3 --"rdfs:label"--> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
c2 -."wdt:P607".-> v4
v4 --"rdfs:label"--> v1
end
bind2[/"?armament_label"/]
v2 --o bind2
bind2 --as--o v5
bind3[/"?conflict_label"/]
v1 --o bind3
bind3 --as--o v6