Support list function, and dump the table for each query