A more complicated example involves using two subquery rankings.
Example 5.18.5 Suppose that we need to find, as above, the top three stu-
dents; in addition, we need to find for each of these students their ranking from
the point of view of the number of courses they took. This can be done using
the query: