Queries on TRIGGER and INDEX