select * from
table (
my_table_function(
CURSOR(select
field1, field2, field3
FROM
some_table
)
)
);