CREATE TABLE "victories_by_nationality" (
  "country" text,
  "men_s_race" real,
  "women_s_race" real,
  "men_s_wheelchair" real,
  "women_s_wheelchair" real,
  "total" real
);

Question: What's the highest Total when Women's Wheelchair was 2, Men's Wheelchair was smaller than 1, and Women's race was larger than 0?
SQL: SELECT MAX("total") FROM "victories_by_nationality" WHERE "women_s_wheelchair"=2 AND "men_s_wheelchair"<1 AND "women_s_race">0;

Question: What's the average men's wheelchair when women's wheelchair is less than 0?
SQL: SELECT AVG("men_s_wheelchair") FROM "victories_by_nationality" WHERE "women_s_wheelchair"<0;

Question: When the Country is Mexico, Women's race is less than 0, and Men's race is more than 0, what's the average total?
SQL: SELECT AVG("total") FROM "victories_by_nationality" WHERE "men_s_race">0 AND "country"='mexico' AND "women_s_race"<0;

Question: What's the sum of Men's race when Women's race is less than 1, Women's Wheelchair is 1, Men's wheelchair is more than 3 and the Total is more than 3?
SQL: SELECT SUM("men_s_race") FROM "victories_by_nationality" WHERE "women_s_race"<1 AND "women_s_wheelchair"=1 AND "total">3 AND "men_s_wheelchair">3;

Question: What's the average Women's Wheelchair when Men's race is 0, Women's race is 1, and Men's wheelchair is less than 2?
SQL: SELECT AVG("women_s_wheelchair") FROM "victories_by_nationality" WHERE "men_s_race"=0 AND "women_s_race"=1 AND "men_s_wheelchair"<2;