query-10c29b86653059426aeabd1712c7eb18
Propertiesinstance of (P31)topic's main template (P1424)
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 ?licLabel (count(?item) as ?count) (min(?item) as ?example)
{
?item wdt:P31 ?lic .
?item wdt:P1424 ?temp.
?temp wdt:P31 wd:Q110010043 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
group by ?licLabel
order by desc(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v5("?example")
v2("?item"):::projected
v3("?lic")
v4("?temp")
c5(["bd:serviceParam"]):::iri
c3(["wd:Q110010043"]):::iri
c7(["en"]):::literal
v2 --"wdt:P31"--> v3
v2 --"wdt:P1424"--> v4
v4 --"wdt:P31"--> c3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"count(?item)"/]
v2 --o bind2
bind2 --as--o v5
bind3[/"min(?item)"/]
v2 --o bind3
bind3 --as--o v5