input: Write a function to execute a SQL query that selects all rows from a table where the 'status' is 'approved'. The function should return the result of the query.
  def select_approved_rows():
     sql = "SELECT * FROM table WHERE status = 'approved'"
     cur.execute(sql)
     return cur.fetchall()
  assert select_approved_rows() == [('John', 'approved'), ('Jane', 'approved')]
  assert select_approved_rows() == []
output: def select_approved_rows():
     sql = "SELECT * FROM table WHERE status = 'approved'"
     cur.execute(sql)
     return cur.fetchall()