input: Write a function to select all rows from a table where the 'status' is 'approved'.
  assert select_approved_rows() == [(1, 'John', 'approved'), (2, 'Jane', 'approved')]
  assert select_approved_rows() == [(3, 'Jim', 'pending'), (4, 'Jill', 'approved')]
  assert select_approved_rows() == []
  assert select_approved_rows() == [(5, 'Jack', 'approved')]
  assert select_approved_rows() == []
output: def select_approved_rows():
      table = [(1, 'John', 'approved'), (2, 'Jane', 'approved'), (3, 'Jim', 'pending'), (4, 'Jill', 'approved'), (5, 'Jack', 'approved')]
      return [row for row in table if row[2] == 'approved']