Direct Assurance Interview Question

How to get a table using sql?