Can't seem to figure this out I want to generate a list from wiki data that shows all the languages found in a city
E.G South African languages and their locations
Country Language Province
South Africa --- Afrikaans -------- KwaZulu-Natal
South Africa --- Afrikaans -------- Cape Town
South Africa --- Northern Sotho ---- Free State
South Africa --- Swazi --------------Durban
South Africa --- Tsonga ------------- Lesotho
I also don't want to limit the results to Official languages as many countries have several languages that are not officially recognized. as show here.
https://en.wikipedia.org/wiki/Languages_of_South_Africa
this is what I currently have
SELECT DISTINCT ?lang ?langLabel ?Country ?CountryLabel ?City ?CityLabel
WHERE
{
?lang wdt:P31 wd:Q34770 .
?Country wdt:P31 wd:Q6256 .
VALUES ?Country {wd:Q258 }
VALUES ?Country {wd:Q258 }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
LIMIT 100
I'm currently using the Javascript wikidata-sdk