I would like to query the DPA database for the information displayed on the Server/date page

I would like to be able to see the 

SQL Name

Wait Time

Total Wait Time

% of Total Wait Time

Average

Executions

SQL Text the time period shown on the page

Could you proved me with some guidance on how to write this query?  Our DPA database is stored on SQL server.

Thank you