def _query_by_country_code(self, table_name):
logger.info('<STR_LIT>',<EOL>table_name)<EOL>q = "<STR_LIT>""<STR_LIT>""<STR_LIT>""<STR_LIT>" % (<EOL>self._from_for_table(table_name),<EOL>self._where_for_projects<EOL>)<EOL>res = self._run_query(q)<EOL>result = self._dict_for_projects()<EOL>for row in res:<EOL><INDENT>result[row['<STR_LIT>']][row['<STR_LIT>']] = int(<EOL>row['<STR_LIT>'])<EOL><DEDENT>return result<EOL>
Query for download data broken down by country code, for one day.

:param table_name: table name to query against
:type table_name: str
:return: dict of download information by country code; keys are project
  name, values are a dict of country code to download count.
:rtype: dict