query-6e1f5d0e6a28e0dc4510f6ff99ce49fe
Propertiesinstance of (P31)occupation (P106)
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?occupation (COUNT(?item) AS ?count) ?occupationLabel
WHERE {
?item wdt:P31 wd:Q5. # all humans
?item wdt:P106 ?occupation.
?article schema:about ?item. # and have an article about them
?article schema:isPartOf <https://or.wikipedia.org/> . # on *Odia* Wikipedia
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?occupation ?occupationLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?article")
v5("?count")
v2("?item"):::projected
v3("?occupation"):::projected
c8(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6([https://or.wikipedia.org/]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P106"--> v3
v4 --"schema:about"--> v2
v4 --"schema:isPartOf"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v5