Definitely no with one query activity, but in this link the suggest use a data extraction file to expose all the attributes in CTX. https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/accessing-event-variables-in-acs-transactional-messaging/td-p/370226