query-e9a984fa138f846975338612755630c0
Biographies for the Asian Month, which are biographies of people from any Asian country lacking an article in a given language in Wikipedia. Asian Month, "Women born in Suriname who are lacking an article in English Wikipedia", I was thinking about listing the biographies that would qualify for the 10 cool queries for Wikidata that will blow your mind. Number 7 will shock you.In a similar way to the 10th example listed in the article 06:05, 2 November 2016 (UTC)) talk (SabbutIn some cases, there is an additional country restriction. For instance, in the Spanish language Wikipedia, this would translate to "People born in Asia, excluding the Philippines, lacking an article in the Spanish language Wikipedia". Note that in the case of transcontinental countries only the Asian part counts, for example, the European part of Russia wouldn't qualify, but the Asian part would. 14:19, 2 November 2016 (UTC) Jura--- has a selection based on continent and nationality. Wikidata:Bistro/Archive/2016/01#Spqarql_et_WikiLovesWomen.3F Good to hear you liked my Welsh query ;) Reminds I should fix it.Thanks, Jura! By modifying a few things, I came up with this:
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#>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?count ?pers ?persLabel ?desc ?paysLabel WHERE {
{
SELECT ?pers ?pays (COUNT(DISTINCT ?art) AS ?count) WHERE {
?pers wdt:P31 wd:Q5.
?pers wdt:P27 ?pays.
?pers wdt:P106 wd:Q82955.
?pays wdt:P30 wd:Q48.
OPTIONAL {
?persfrwart schema:about ?pers.
?persfrwart schema:inLanguage "es".
}
?art schema:about ?pers.
FILTER(NOT EXISTS {
?pays wdt:P30 ?continent.
FILTER(?continent != wd:Q48)
})
FILTER(!BOUND(?persfrwart))
}
GROUP BY ?pers ?pays
}
OPTIONAL {
?pers schema:description ?desc.
FILTER((LANG(?desc)) = "es")
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "es,en". }
}
ORDER BY DESC(?count)