Trustpilot interview question

When would you use SQL, and when would you use NoSQL?