created query which shows return statistics