CREATE TABLE "terror_and_other_attacks_1968_1987" (
  "military_deaths" real,
  "civilian_deaths_including_foreigners" real,
  "total_deaths" real,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);

Question: What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?
SQL: SELECT COUNT("military_deaths") FROM "terror_and_other_attacks_1968_1987" WHERE "military_and_or_civilian_wounded"='78' AND "total_deaths">27;

Question: What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?
SQL: SELECT AVG("military_deaths") FROM "terror_and_other_attacks_1968_1987" WHERE "civilian_deaths_including_foreigners"<38 AND "military_and_or_civilian_wounded"='33';

Question: What is the total number of casualties when there are 12 total deaths and more than 1 military death?
SQL: SELECT "total_casualties" FROM "terror_and_other_attacks_1968_1987" WHERE "total_deaths"=12 AND "military_deaths">1;