Table: rgc_1987_2
Columns: place
nation
all_around
final
total

Question: What is the average final with an all around greater than 19.35 and a total over 40?
SQL: SELECT AVG("final") FROM rgc_1987_2 WHERE "all_around" > 19.35 AND "total" > 40

Question: What is the sum of the final for finland, who placed greater than 2 and had an all around larger than 18.9?
SQL: SELECT SUM("final") FROM rgc_1987_2 WHERE "place" > 2 AND "nation" = 'finland' AND "all_around" > 18.9