query-8a6330e771fb2d7ccf094c8b97f70193
title:Count Latin as language of work or name SELECT (COUNT(DISTINCT ?item) AS ?count) WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } { SELECT DISTINCT ?item WHERE { ?item p:P407 ?statement0. ?statement0 (ps:P407) wd:Q397. } } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Count Latin as language of work or name
SELECT (COUNT(DISTINCT ?item) AS ?count) WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?item WHERE {
?item p:P407 ?statement0.
?statement0 (ps:P407) wd:Q397.
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?count")
v1("?item"):::projected
v2("?statement0")
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;"]):::literal
c7(["wd:Q397"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:P407"--> v2
v2 --"p:statement/P407"--> c7
bind1[/"count(?item)"/]
v1 --o bind1
bind1 --as--o v3