create or replace function task(a,b) as table ( select a, b, a&b, a|b, xor(a, b), ~a, a << b, a >> b ); from task(10, 2);