Added the complete printing of query for views