Multiple values in SQL for Execute Query to excel

I got that Write Line String.Join(“‘,’”,Yourlist) then Execute Query → Write Range
But not sure what to write in Execute Query