CREATE TABLE "female_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);

Question: What is No. 2, when No. 9 is Mia?
SQL: SELECT "no_2" FROM "female_names" WHERE "no_9"='mia';

Question: What is No. 7, when No. 4 is Madison, and when No. 10 is Amelia?
SQL: SELECT "no_7" FROM "female_names" WHERE "no_4"='madison' AND "no_10"='amelia';

Question: What is No.1, when No. 2 is Emma, and when No. 7 is Olivia?
SQL: SELECT "no_1" FROM "female_names" WHERE "no_2"='emma' AND "no_7"='olivia';

Question: What is No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail?
SQL: SELECT "no_5" FROM "female_names" WHERE "no_2"='olivia' AND "no_4"='ava' AND "no_6"='abigail';

Question: What is No. 3, when No. 7 is Abigail, and when No. 2 is Olivia?
SQL: SELECT "no_3" FROM "female_names" WHERE "no_7"='abigail' AND "no_2"='olivia';

Question: What is No. 3, when No. 7 is Abigail, and when No. 4 is Ava?
SQL: SELECT "no_3" FROM "female_names" WHERE "no_7"='abigail' AND "no_4"='ava';