query-95204746e4f66b30f424ebeb1d0eb8a4
Humans whose native language or spoken/written language is Yoruba (2163 items @14 FEB 2020)
SELECT distinct ?item ?wikis ?itemLabel ?itemDescription
WHERE {
?item wdt:P31 wd:Q5. # item is a human
{?item wdt:P103 wd:Q34311 }
UNION {?item wdt:P1412 wd:Q34311 }
OPTIONAL { ?item wikibase:sitelinks ?wikis. } #count sitelinks
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY DESC(?wikis)
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#>
# Humans whose native language or spoken/written language is Yoruba (2163 items @14 FEB 2020)
SELECT distinct ?item ?wikis ?itemLabel ?itemDescription
WHERE {
?item wdt:P31 wd:Q5. # item is a human
{?item wdt:P103 wd:Q34311 }
UNION {?item wdt:P1412 wd:Q34311 }
OPTIONAL { ?item wikibase:sitelinks ?wikis. } #count sitelinks
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY DESC(?wikis)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?wikis"):::projected
c4(["wd:Q34311"]):::iri
c8(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P1412"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P103"--> c4
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wikibase:sitelinks".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end