query-ae9f9f9d1486053e29912f57fcad7e2e
Finding out 2 things at once and putting in json it fought in 6 conflicts and had 4 types of gun, but when I ask for both things with (Q1785916)Redoutable For the warship
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 DISTINCT ?conflictLabel ?armamentLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?conflict ?armament WHERE {
VALUES ?item { wd:Q1785916 }
?item wdt:P607 ?conflict.
?item wdt:P520 ?armament.
}
LIMIT 100
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?armament")
v2("?conflict")
v1("?item")
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q1785916"])
bind00 --> bind0
v1 --"wdt:P607"--> v2
v1 --"wdt:P520"--> v3