CREATE TABLE "1247_1405" (
  "name" text,
  "father" text,
  "birth" text,
  "marriage" text,
  "became_countess" text,
  "ceased_to_be_countess" text,
  "death" text,
  "spouse" text
);

Question: What is the date of death of the Countess of Flanders who was born in 1309?
SQL: SELECT "death" FROM "1247_1405" WHERE "birth"='1309';

Question: What is the date of death of the Countess of Flanders who was born in 1309?
SQL: SELECT "death" FROM "1247_1405" WHERE "birth"='1309';

Question: Who was Margaret of Brabant's spouse?
SQL: SELECT "spouse" FROM "1247_1405" WHERE "name"='margaret of brabant';