How do I generically translate a subselect into a pipelined function call?
For example how would I translate this:
select id, stuff from t1 where id in (select unique id from kw where k = 'foo')
to this:
select id, stuff from t1 where id in (select id from table(has_kw('foo'))