code: def get_regulate_amounts(self):
          qstr = "$.events.frames[(@.type is 'transcription')]"
          res = self.tree.execute(qstr)
          all_res = []
          if res is not None:
              all_res += list(res)
          qstr = "$.events.frames[(@.type is 'amount')]"
          res = self.tree.execute(qstr)
          if res is not None:
              all_res += list(res)
          for r in all_res:
              subtype = r.get('subtype')
              epistemics = self._get_epistemics(r)
              if epistemics.get('negated'):
                  continue
              annotations, context = self._get_annot_context(r)
              frame_id = r['frame_id']
              args = r['arguments']
              theme = None
              for a in args:
                  if self._get_arg_type(a) == 'theme':
                      theme = a['arg']
                      break
              if theme is None:
                  continue
              theme_agent, theme_coords = self._get_agent_from_entity(theme)
              qstr = "$.events.frames[(@.type is 'regulation') and " + \
                     "(@.arguments[0].arg is '%s')]" % frame_id
              reg_res = self.tree.execute(qstr)
              for reg in reg_res:
                  controller_agent, controller_coords = None, None
                  for a in reg['arguments']:
                      if self._get_arg_type(a) == 'controller':
                          controller_agent, controller_coords = \
                              self._get_controller_agent(a)
                  sentence = reg['verbose-text']
                  annotations['agents']['coords'] = [controller_coords,
                                                     theme_coords]
                  ev = Evidence(source_api='reach', text=sentence,
                                annotations=annotations, pmid=self.citation,
                                context=context, epistemics=epistemics)
                  args = [controller_agent, theme_agent, ev]
                  subtype = reg.get('subtype')
                  if subtype == 'positive-regulation':
                      st = IncreaseAmount(*args)
                  else:
                      st = DecreaseAmount(*args)
                  self.statements.append(st)