Table: liturgical_days_ranking
Columns: date
doubles_i_class
doubles_ii_class
greater_doubles
doubles
semidoubles
total

Question: Which Doubles have a Total larger than 176, and a Date smaller than 1907, and Doubles, I Class smaller than 21?
SQL: SELECT MAX("doubles") FROM liturgical_days_ranking WHERE "total" > 176 AND "date" < 1907 AND "doubles_i_class" < 21

Question: Which Total has a Date of 1602, and Greater Doubles smaller than 16?
SQL: SELECT MAX("total") FROM liturgical_days_ranking WHERE "date" = 1602 AND "greater_doubles" < 16

Question: How much Total has Semidoubles smaller than 78, and Doubles, II Class smaller than 17?
SQL: SELECT COUNT("total") FROM liturgical_days_ranking WHERE "semidoubles" < 78 AND "doubles_ii_class" < 17

Question: Which Greater Doubles have Doubles, II Class smaller than 17?
SQL: SELECT AVG("greater_doubles") FROM liturgical_days_ranking WHERE "doubles_ii_class" < 17

Question: How much Total has Doubles of 45, and Doubles, II Class larger than 18?
SQL: SELECT COUNT("total") FROM liturgical_days_ranking WHERE "doubles" = 45 AND "doubles_ii_class" > 18