Added title to query print