def _query_by_implementation(self, table_name):
logger.info('<STR_LIT>'<EOL>'<STR_LIT:%s>', 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>iname = row['<STR_LIT>']<EOL>iver = row['<STR_LIT>']<EOL>if iname not in proj:<EOL><INDENT>proj[iname] = {}<EOL><DEDENT>if iver not in proj[iname]:<EOL><INDENT>proj[iname][iver] = <NUM_LIT:0><EOL><DEDENT>proj[iname][iver] += int(row['<STR_LIT>'])<EOL><DEDENT>return result<EOL>
Query for download data broken down by Python implementation, for one
day.

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