Selecting queries when targeting mass emails and reports