query-21b5e397cbeb8565dec997285ef13b5c
Стороны конфликта в Викиданных
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 ?loyalLabel (COUNT(?item) AS ?cnt) WHERE {
?item wdt:P607 wd:Q15860072.
OPTIONAL {?item wdt:P945 ?loyal.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?loyalLabel ?loyal
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?cnt")
v1("?item"):::projected
v2("?loyal")
c5(["bd:serviceParam"]):::iri
c2(["wd:Q15860072"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P607"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P945".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"count(?item)"/]
v1 --o bind1
bind1 --as--o v3