input: 
  def select_approved_rows() -> str:
      """ Select all rows from a table where the 'status' is 'approved' using SQL query.
      >>> select_approved_rows()
      "SELECT * FROM table WHERE status = 'approved'"
      """
      sql = "SELECT * FROM table WHERE status = 'approved'"
      cur.execute(sql)
      return cur.fetchall()
  
output:     return sql