Figure 1: Desired puzzle results
courseid mincourseid
1 1
2 2
3 2
4 4
5 5