input: def select_approved_rows(cur):
      """Select all rows from a table where the 'status' is 'approved'.
      >>> import sqlite3
      >>> conn = sqlite3.connect(':memory:')
      >>> cur = conn.cursor()
      >>> cur.execute("CREATE TABLE table (id INTEGER, status TEXT)")
      >>> cur.execute("INSERT INTO table VALUES (1, 'approved')")
      >>> cur.execute("INSERT INTO table VALUES (2, 'rejected')")
      >>> cur.execute("INSERT INTO table VALUES (3, 'approved')")
      >>> result = select_approved_rows(cur)
      >>> [(row[0], row[1]) for row in result]
      [(1, 'approved'), (3, 'approved')]
      """
      sql = "SELECT * FROM table WHERE status = 'approved'"
      cur.execute(sql)
      return cur.fetchall()
output:     sql = "SELECT * FROM table WHERE status = 'approved'"
      cur.execute(sql)
      return cur.fetchall()