show query result in a table