you can try using result_scan of the last query.
list @stage_file_name; select $2 from table(result_scan(last_query_id())) ;