query-4bf9d7a8ed05dfba75d87fc56089bb24
Number of values of a property of each instance TODO
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?lang ?langLabel (COUNT(DISTINCT ?website) as ?count)
WHERE {
?lang wdt:P31/wdt:P279* wd:Q9143.
?lang p:P856 ?website.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
GROUP BY ?lang ?langLabel
ORDER BY DESC(?count)
Query found at
- https://www.wikidata.org/wiki/User:Infovarius/Queries
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2017/03
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?count")
v2("?lang"):::projected
v3("?website"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c3(["wd:Q9143"]):::iri
c8(["en"]):::literal
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v2 --"p:P856"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"count(?website)"/]
v3 --o bind1
bind1 --as--o v4