def select(s):
    if not isinstance(s, sa.sql.Select):
        if not isinstance(s, (tuple, list)):
            s = [s]
        s = sa.select(s)
    return s
Permissive SQL select
dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py/select