Frage im Vorstellungsgespräch bei Meta

Two SQL question about correlation using CTEs and group by functions