def clean_table_query(conn, table):
    """
    Query the specified table with SQL to create clean dataset.
    :param conn: the Connection object
    :param table: the name of table
    :return: cleaned rows dataset
    """
    cur = conn.cursor()
    if table == 'question2':
        cur.execute('''SELECT upper(country) as alpha_2, hours_bucket, installs, country_total_installs,
        replace(share_within_country,"%","")  as share_within_country
        FROM question2
        WHERE length(country) = 2''')
        print("Success - table question2 was queried to produce a clean dataset.")
        rows = cur.fetchall()
        return rows
    else:
        print("Sorry, this is not possible in current implementation.")