query-5248cdec37d06bae8f9055abb3142652
product models used by the military (combatants)
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 ?item ?itemLabel ?instanceLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?item ?instance WHERE {
?item wdt:P31/wdt:P279 wd:Q10929058. # product model
?item wdt:P31 ?instance.
# has parts of the class/subclass/used by
?instance wdt:P2670/wdt:P279*/wdt:P1535 wd:Q1414937. # combatant
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?instance")
v1("?item"):::projected
a1((" "))
a2((" "))
a3((" "))
c10(["wd:Q1414937"]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;"]):::literal
c7(["wd:Q10929058"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c7
v1 --"wdt:P31"--> v2
v2 --"wdt:P2670"--> a2
a2 --"wdt:P279"--> a3
a3 --"wdt:P1535"--> c10