input: from typing import List
  
  def select_approved_rows(cur) -> List[dict]:
      """ Select all rows from a table where the 'status' is 'approved'.
      >>> select_approved_rows(cur)
      [{'id': 1, 'status': 'approved', 'name': 'John'}, {'id': 2, 'status': 'approved', 'name': 'Jane'}]
      """
      sql = "SELECT * FROM table WHERE status = 'approved'"
      cur.execute(sql)
      return cur.fetchall()
  
output:     sql = "SELECT * FROM table WHERE status = 'approved'"
      cur.execute(sql)
      return cur.fetchall()