Update stage 7a query for trigger addition.