Onepoint interview question

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