Onepoint Interview Question

How to handle queries that depend on each other (@Transactional)