def _query_by_distro(self, table_name):
logger.info('<STR_LIT>', table_name)<EOL>q = "<STR_LIT>""<STR_LIT>""<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>proj = result[row['<STR_LIT>']]<EOL>dname = row['<STR_LIT>']<EOL>dver = row['<STR_LIT>']<EOL>if dname not in proj:<EOL><INDENT>proj[dname] = {}<EOL><DEDENT>if dver not in proj[dname]:<EOL><INDENT>proj[dname][dver] = <NUM_LIT:0><EOL><DEDENT>proj[dname][dver] += int(row['<STR_LIT>'])<EOL><DEDENT>return result<EOL>
Query for download data broken down by OS distribution, for one day.

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