CREATE TABLE "victories_by_nationality" (
  "country" text,
  "men_s_open" real,
  "women_s_open" real,
  "men_s_wheelchair" real,
  "women_s_wheelchair" real,
  "total" real
);

Question: What is the sum of men's wheelchair from Ireland and more than 1 total?
SQL: SELECT SUM("men_s_wheelchair") FROM "victories_by_nationality" WHERE "country"='ireland' AND "total">1;

Question: What is the average total for the Men's Open of 7, and the men's wheelchair more than 0?
SQL: SELECT AVG("total") FROM "victories_by_nationality" WHERE "men_s_open"=7 AND "men_s_wheelchair">0;