Frage im Vorstellungsgespräch bei Anonymous

Complete the given sql Query and how you approached it ?