@Dhaval Shah Thanks for reaching out.
Make sure you are saving the workflow once you have created and configure the Execute a SQL query (V2) action. Now when you add the Create CSV table action you should see the dynamic content.
If you are not saving your workflow then you could observe the issue that you have mentioned. I was able to reproduce the issue if I am not saving my workflow. In that case you need to manually type the expression as body('Execute_a_SQL_query_(V2)')?['resultsets']
Let me know if you need any assistance.
Please 'Accept Answer' if it helped so that it can help others in the community looking for help on similar topics.