Store complete data from Query one in one table and use table iterator attached to transformation with Query two. Pass variable used in iterator through transformation scalar variable.
You can use a Query Result to Grid component to capture the results from the first query and use a Grid Iterator to iterate through the values passing to the transformation job. This way you can avoid creating another intermediate table.