I have below 2 tables which are used for RLS.
select B.name from table1 A inner join table2 B ON A.role=B.role and A.value=B.value where