input: Write a function to select all rows from a table where the 'status' is 'approved'.
  def select_approved_rows():
      sql = "SELECT * FROM table WHERE status = 'approved'"
      cur.execute(sql)
      return cur.fetchall()
  
  assert select_approved_rows() == [('item1', 'approved'), ('item2', 'approved')]
  assert select_approved_rows() == [('item3', 'rejected'), ('item4', 'pending')]
output: def select_approved_rows():
      sql = "SELECT * FROM table WHERE status = 'approved'"
      cur.execute(sql)
      return cur.fetchall()