def METHOD_NAME(sql, uri=None, engine=None):
    if engine is None:
        engine = create_engine(uri, echo=True)
    res = engine.execute(sql)
    data_res = res.fetchall()
    col_res = res.keys()
    sql_result = []
    for row in data_res:
        rows = []
        for item in row:
            rows.append(item)
        sql_result.append(rows)
    columns = []
    for column in col_res:
        columns.append(column)
    return [columns, sql_result]