I have a simple query
SELECT 'kill ' + '''' + session_id + '''' FROM sys.dm_pdw_waits
where object_name like 'dw_prd.F%'
union
SELECT 'kill ' + '''' + session_id + '''' FROM sys.dm_pdw_waits
where object_name like 'dw_prd.D%'
This is the resultset

I want to execute the result set as is, meaning all the kills should execute. I tried making this a variable and executing it but it doesn't execute
What's the easiest way to execute this result set.