<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def resolve_aonly(self,tables_dict,table_ctor):
    "circular depends on pgmock.Table. refactor."
    for alias,selectx in self.aonly.items():
      table = table_ctor(alias,infer_columns(selectx,tables_dict),None)
      table.rows = run_select(selectx,tables_dict,table_ctor)
      self.aonly[alias] = table
    self.aonly_resolved = True