prettify the table of  query