query-c740336c97aebe32aa24c029dddc925f

rq turtle/ttl

added before 2016-10

Most frequent occupations without a label in Latvian (lv)

by Edgars2007/Jura1, 2016-05-09

SELECT ?occup ?occupLabel ?count WHERE { { SELECT ?occup (COUNT(?person) as ?count) WHERE { ?person wdt:P106 ?occup } GROUP BY ?occup ORDER BY DESC(?count) LIMIT 1000 } OPTIONAL {?occup rdfs:label ?label1 filter(lang(?label1) = "lv")} FILTER(!BOUND(?label1))

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,es,pl,ja,zh,ru" }

} ORDER BY DESC(?count) LIMIT 50 added before 2016-10

Most frequent occupations without a label in Latvian (lv)

by Edgars2007/Jura1, 2016-05-09

SELECT ?occup ?occupLabel ?count WHERE { { SELECT ?occup (COUNT(?person) as ?count) WHERE { ?person wdt:P106 ?occup } GROUP BY ?occup ORDER BY DESC(?count) LIMIT 1000 } OPTIONAL {?occup rdfs:label ?label1 filter(lang(?label1) = "lv")} FILTER(!BOUND(?label1))

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,es,pl,ja,zh,ru" }

} ORDER BY DESC(?count) LIMIT 50 added before 2016-10

Most frequent occupations without a label in Latvian (lv)

by Edgars2007/Jura1, 2016-05-09

SELECT ?occup ?occupLabel ?count WHERE { { SELECT ?occup (COUNT(?person) as ?count) WHERE { ?person wdt:P106 ?occup } GROUP BY ?occup ORDER BY DESC(?count) LIMIT 1000 } OPTIONAL {?occup rdfs:label ?label1 filter(lang(?label1) = "lv")} FILTER(!BOUND(?label1))

SERVICE wikibase:label { bd:serviceParam wikibase:language "en,es,pl,ja,zh,ru" }

} ORDER BY DESC(?count) LIMIT 50

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#added before 2016-10

#Most frequent occupations without a label in Latvian (lv)
#by Edgars2007/Jura1, 2016-05-09
SELECT ?occup ?occupLabel ?count
WHERE
{
    {
        SELECT ?occup (COUNT(?person) as ?count)
        WHERE
        {
            ?person wdt:P106 ?occup
        }
        GROUP BY ?occup
        ORDER BY DESC(?count)
        LIMIT 1000
    }
    OPTIONAL {?occup rdfs:label ?label1     filter(lang(?label1) = "lv")}
    FILTER(!BOUND(?label1))

    SERVICE wikibase:label { bd:serviceParam wikibase:language "en,es,pl,ja,zh,ru" }
}
ORDER BY DESC(?count)
LIMIT 50

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count"):::projected v2("?label1") v4("?occup"):::projected v3("?person") c5(["bd:serviceParam"]):::iri c7(["en,es,pl,ja,zh,ru"]):::literal f0[["not bound(?label1)"]] f0 --> v2 v3 --"wdt:P106"--> v4 bind2[/"count(?person)"/] v3 --o bind2 bind2 --as--o v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."rdfs:label".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end