query-ec68fcf7bfad2c8dc2bc58aab48ea970
Propertiesmember of (P463)country (P17)official language (P37)Wikimedia language code (P424)
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#>
SELECT ?member ?memberLabel ?country ?countryLabel ?lang ?langLabel ?code ?codeLabel
WHERE {
?member wdt:P463 wd:Q5275956.
?member wdt:P17 ?country.
?country wdt:P37 ?lang.
?lang wdt:P424 ?code.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?code"):::projected
v2("?country"):::projected
v3("?lang"):::projected
v1("?member"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q5275956"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P463"--> c2
v1 --"wdt:P17"--> v2
v2 --"wdt:P37"--> v3
v3 --"wdt:P424"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end