query-b4805ec0bb6f2091f32268a8114dfddb

rq turtle/ttl

TODO

Use at

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 ?country ?countryLabel ?count WHERE { 
    {
        select ?country (COUNT(*) AS ?count) where {
            ?item wdt:P1412 wd:Q9067 . 
            ?item wdt:P31 wd:Q5 .
            ?item wdt:P27 ?country .
        } group by ?country 
    }
    SERVICE wikibase:label {            # ... include the labels
        bd:serviceParam wikibase:language "hu" .
    }
} ORDER BY DESC (?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count"):::projected v3("?country"):::projected v2("?item") c7(["bd:serviceParam"]):::iri c2(["wd:Q9067"]):::iri c4(["wd:Q5"]):::iri c9(["hu"]):::literal v2 --"wdt:P1412"--> c2 v2 --"wdt:P31"--> c4 v2 --"wdt:P27"--> v3 bind1[/"count(*)"/] bind1 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end