User:Masssly/Ghana
Events
editQuery
editFor a Wikidata SPARQL queries tutorial, see Wikidata:A beginner-friendly course for SPARQL. To request a new query : Wikidata:Request a query |
All Ghanaians on Wikidata
editThe following query uses these:
- Items: human (Q5) , Ghana (Q117)
- Properties: instance of (P31) , country of citizenship (P27)
# All Ghanaians on Wikidata SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q5 . # all humans ?item wdt:P27 wd:Q117. # who are Ghanaians SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }