input: Write a function to select all rows from a table where the 'status' is 'approved'. The function should execute a SQL query using a cursor, fetch all matching rows, and return them.
  
  def select_approved_rows():
     sql = "SELECT * FROM table WHERE status = 'approved'"
     cur.execute(sql)
     return cur.fetchall()
  
  assert select_approved_rows() == [('some_id_1', 'approved'), ('some_id_2', 'approved')]
  assert select_approved_rows() == []
  assert select_approved_rows() == [('some_id_3', 'approved')]
  assert select_approved_rows() == [('some_id_4', 'approved'), ('some_id_5', 'approved')]
  assert select_approved_rows() == [('some_id_6', 'approved'), ('some_id_7', 'approved'), ('some_id_8', 'approved')]
output: def select_approved_rows():
     sql = "SELECT * FROM table WHERE status = 'approved'"
     cur.execute(sql)
     return cur.fetchall()