In MySQL Workbench whenever you make changes directly to the results table after running a select query, it will ask you to confirm the query you want to run and show you the actual query.
I find this useful for verifying/learning about query syntax. Also there are times where I only have read access to sensitive tables and I must provide the update query to a senior member of my team to verify/run.
Does this feature exist in DataGrip? I've searched for this all the ways I could think of.