def execute_fetch(connection, query):
    """Execute SELECT sql"""
    sql = str(query)
    with connection.cursor() as cursor:
        row = cursor.execute(sql)
        result = cursor.fetchall()
    return result, row
