query-797fa819b7977540ef933d933e0ccd8a
Limit the domain of the target
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 ?value ?valueLabel ?asObject ?asObjectLabel
WHERE
{
wd:P1448 wikibase:claim ?p .
wd:P794 wikibase:qualifier ?q .
?item ?p ?prop .
?prop ?q ?asObject .
?asObject wdt:P31/wdt:P279* wd:Q176799. #limit to military groups
?property wikibase:statementProperty ?ps .
?prop ?ps ?value .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,bg" }
}
ORDER BY ASC(?asObjectLabel)
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?asObject"):::projected
v1("?asObjectLabel"):::projected
v4("?item"):::projected
v2("?p")
v5("?prop")
v7("?property")
v8("?ps")
v3("?q")
v9("?value"):::projected
a1((" "))
c1(["wd:P1448"]):::iri
c7(["wd:Q176799"]):::iri
c3(["wd:P794"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["en,bg"]):::literal
c1 --"wikibase:claim"--> v2
c3 --"wikibase:qualifier"--> v3
v4 -->v2--> v5
v5 -->v3--> v6
v6 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c7
v7 --"wikibase:statementProperty"--> v8
v5 -->v8--> v9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end