How can I get the copy of the executed query?

Is there a way to get executed query and copy to the clipboard?

Hi @ckissi

In the left panel of the editor, you can see the queryName.query property of SQL queries:

You could copy it from there, you refernce the property inside of a {{ }} tag in a button component using a "copy to clipboard" type click action.