CREATE TABLE "less_than_a_week" (
  "name" text,
  "country" text,
  "reign_began" text,
  "reign_ended" text,
  "length" text
);

Question: Whose reign ended in Egypt?
SQL: SELECT "reign_ended" FROM "less_than_a_week" WHERE "country"='egypt';

Question: Whose reign ended in Afghanistan after 3 days?
SQL: SELECT "reign_ended" FROM "less_than_a_week" WHERE "length"='3 days' AND "country"='afghanistan';

Question: Whose reign began in Vietnam and ended in October 1005?
SQL: SELECT "reign_began" FROM "less_than_a_week" WHERE "country"='vietnam' AND "reign_ended"='october 1005';

Question: When did Pharaoh Seth's reign end?
SQL: SELECT "reign_ended" FROM "less_than_a_week" WHERE "name"='pharaoh seth';