def run_join(db, t1, t2, r1, r2, s1, s2, prefix):
    if s1 and s2:
        raise Exception()
        suffix = "3(db, t1, t2)"
    elif s1:
        raise Exception()
        suffix = "2(db, t2, t1, r2)"
    elif s2:
        raise Exception()
        suffix = "2(db, t1, t2, r1)"
    else:
        suffix = "1(db, t1, t2, r1, r2)"

    cmd = "res = %s_%s" % (prefix, suffix)
    exec(cmd)
    return res
        
    

### Same zoom level
dataset/ETHPy150Open sirrice/dbtruck/dbtruck/analyze/fuzzyjoin.py/run_join/original