Hello, everyone!

I have an usual data-table on my sheet1
And I want to have it on my sheet2

How to right my vba code to do this using sql query?