print result set and map