Table: us_popular_names_by_3
Columns: region_year
no_1
no_2
no_3
no_4
no_5
no_6
no_7
no_8
no_9
no_10

Question: What is No. 2, when No. 9 is Mia?
SQL: SELECT "no_2" FROM us_popular_names_by_3 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 us_popular_names_by_3 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 us_popular_names_by_3 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 us_popular_names_by_3 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 us_popular_names_by_3 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 us_popular_names_by_3 WHERE "no_7" = 'abigail' AND "no_4" = 'ava'