I don't know if it was intended to do so, but I found a far better answer for the
Exercise 2.3: Find the airports with the most outgoing connections
In the implementing graph data model for neo4j 4.x course
MATCH (a:Airport)
RETURN a.code AS Code, size((a)-[:CONNECTED_TO]->()) AS Connections
ORDER BY Connections DESC
LIMIT 10