query-d92d03c37ea13d34d1e6f105ef76178a
Top 100 Biography articles available on most wikis, but not yet created on Central Kurdish WikipediaReferenced from above query.
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?enwiki ?numOfSitelinks ?genderLabel (GROUP_CONCAT(DISTINCT ?citizenshipLabel; separator="؛ ") AS ?citizenships)
WHERE {
{
SELECT DISTINCT ?item ?enwiki ?numOfSitelinks ?genderLabel ?citizenshipLabel
WHERE {
?item wdt:P31 wd:Q5 .
?item wikibase:sitelinks ?numOfSitelinks .
FILTER (?numOfSitelinks > 70)
OPTIONAL {
?item wdt:P21 ?gender .
?gender rdfs:label ?genderLabel .
FILTER(LANG(?genderLabel) = "ckb")
}
OPTIONAL {
?item wdt:P27 ?citizenship .
?citizenship rdfs:label ?citizenshipLabel .
FILTER(LANG(?citizenshipLabel) = "ckb")
}
OPTIONAL {
?enwikiPage schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/> ;
schema:name ?enTitle .
BIND(CONCAT("[[:en:", ?enTitle, "|", ?enTitle, "]]") AS ?enwiki)
}
MINUS {
?cat schema:isPartOf <https://ckb.wikipedia.org/> ;
schema:about ?item .
}
}
}
}
GROUP BY ?item ?enwiki ?numOfSitelinks ?genderLabel
ORDER BY DESC(?numOfSitelinks)
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v10("?cat")
v6("?citizenship")
v2("?citizenshipLabel"):::projected
v11("?citizenships")
v8("?enTitle")
v9("?enwiki"):::projected
v7("?enwikiPage")
v5("?gender")
v3("?genderLabel"):::projected
v4("?item"):::projected
v1("?numOfSitelinks"):::projected
c13([https://ckb.wikipedia.org/]):::iri
c11([https://en.wikipedia.org/]):::iri
c4(["wd:Q5"]):::iri
f0[["?numOfSitelinks > '70^^xsd:integer'"]]
f0 --> v1
v4 --"wdt:P31"--> c4
v4 --"wikibase:sitelinks"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P21".-> v5
v5 --"rdfs:label"--> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P27".-> v6
v6 --"rdfs:label"--> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v7 -."schema:about".-> v4
v7 --"schema:isPartOf"--> c11
v7 --"schema:name"--> v8
bind1[/"concat('#91;#91;:en:',?enTitle,'|',?enTitle,'#93;#93;')"/]
v8 --o bind1
bind1 --as--o v9
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v10 --"schema:isPartOf"--> c13
v10 --"schema:about"--> v4
end
bind4[/"?citizenshipLabel"/]
v2 --o bind4
bind4 --as--o v11