CREATE TABLE "raiding_history" (
  "date" text,
  "name" text,
  "nationality" text,
  "tonnage_grt" real,
  "fate" text
);

Question: How much tonnage was damaged?
SQL: SELECT SUM("tonnage_grt") FROM "raiding_history" WHERE "fate"='damaged';

Question: Which Nationality has a Fate of sunk, and a Name of alderamin?
SQL: SELECT "nationality" FROM "raiding_history" WHERE "fate"='sunk' AND "name"='alderamin';

Question: Which Name has a Tonnage (GRT) larger than 4,071, and a Nationality of united kingdom, and a Fate of damaged?
SQL: SELECT "name" FROM "raiding_history" WHERE "tonnage_grt">'4,071' AND "nationality"='united kingdom' AND "fate"='damaged';

Question: Which Tonnage (GRT) has a Nationality of united kingdom, and a Name of king gruffydd?
SQL: SELECT MIN("tonnage_grt") FROM "raiding_history" WHERE "nationality"='united kingdom' AND "name"='king gruffydd';