query-7e42b95bdde774429505f11aaa108726
Count
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?count
?license ?licenseLabel
(CONCAT("#license/", SUBSTR(STR(?license), 32)) AS ?licenseUrl)
?licenseDescription
WHERE {
{
SELECT
(COUNT(*) AS ?count)
?license
WHERE {
[] wdt:P275 ?license .
}
GROUP BY ?license
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?count"):::projected
v2("?license"):::projected
v3("?licenseUrl")
a1((" "))
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
a1 --"wdt:P275"--> v2
bind1[/"count(*)"/]
bind1 --as--o v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
bind2[/"concat('#license/',substring(str(?license),'32^^xsd:integer'))"/]
v2 --o bind2
bind2 --as--o v3