input: Write a function to execute a SQL query to select all rows from a table where the 'status' column is 'approved'. Return the fetched rows.
  
  def select_approved_rows():
     sql = "SELECT * FROM table WHERE status = 'approved'"
     cur.execute(sql)
     return cur.fetchall()
  
  assert select_approved_rows() == [(1, 'approved'), (2, 'approved')]
  assert select_approved_rows() == []
  assert select_approved_rows() == [(3, 'approved'), (4, 'approved'), (5, 'approved')]
output: def select_approved_rows():
     sql = "SELECT * FROM table WHERE status = 'approved'"
     cur.execute(sql)
     return cur.fetchall()