Print the relationships, notes and activities sub-queries