display sql query.