Suppose I have the followng sample input:
WITH Ratings AS ( (SELECT \'A\' name, 2 score) UNION ALL (SELECT \'B\' name, 0 score) UNION ALL (SELECT \'C
More craziness here