Display select query results in test program