Background
Bigger picture: https://phabricator.wikimedia.org/T372357
Task
The output of this task should be an artifact (for example, spreadsheet, JSON, API call) that present info in the following format:
Wikibase domain - ISO country code - number of contributions in this instance coming from this country
Only non-deleted Wikibase instances are included.
Only countries that have at least 1 contribution in this instance are included.
Implementation Details
IPs are stored stored in _recentchanges.rc_ip table
It is up to the engineering team to choose an external service to identify countries based on IP, but we should probably re-use the approach already used for IP info: