Retool Interview Question

How would you set up an SQL Query in Retool? How would you dynamically display data from a database in a list view component?