When is it better to use plain SQL instead of ORM?

Technical