CREATE TABLE "finals_3_balls_3_hoops" (
  "place" real,
  "nation" text,
  "all_around" real,
  "final" real,
  "total" real
);

Question: What is the average final with an all around greater than 19.35 and a total over 40?
SQL: SELECT AVG("final") FROM "finals_3_balls_3_hoops" 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 "finals_3_balls_3_hoops" WHERE "place">2 AND "nation"='finland' AND "all_around">18.9;