query-b85c4cea73d69560c2e0b6257f02809f

rq turtle/ttl

Humans whose native language or spoken/written language is Santali SELECT distinct ?item ?wikis ?itemLabel ?itemDescription WHERE { ?item wdt:P31 wd:Q5. # item is a human {?item wdt:P103 wd:Q33965 } UNION {?item wdt:P1412 wd:Q33965 }
OPTIONAL { ?item wikibase:sitelinks ?wikis. } #count sitelinks SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" } } ORDER BY DESC(?wikis)

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#>
# Humans whose native language or spoken/written language is Santali
SELECT distinct ?item ?wikis ?itemLabel ?itemDescription 
WHERE {
  ?item wdt:P31 wd:Q5. # item is a human
  {?item wdt:P103 wd:Q33965 }
    UNION {?item wdt:P1412 wd:Q33965 }        
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 c8(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal c4(["wd:Q33965"]):::iri 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