query-cb7f8764f86c16c2d61af82aa58a3e03
Propertiessubclass of (P279)copyright license (P275)instance of (P31)
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?license ?licenseLabel (COUNT(?app) AS ?count)
WHERE {
?app (p:P31/ps:P31/wdt:P279*) wd:Q7397.
?app wdt:P275 ?license.
?license wdt:P279 ?class
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?license ?licenseLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?app"):::projected
v4("?class")
v5("?count")
v3("?license"):::projected
a1((" "))
a2((" "))
c4(["wd:Q7397"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
v2 --"p:P31"--> a1
a1 --"p:statement/P31"--> a2
a2 --"p:direct/P279"--> c4
v2 --"p:direct/P275"--> v3
v3 --"p:direct/P279"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind1[/"count(?app)"/]
v2 --o bind1
bind1 --as--o v5