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

Question: Who was No. 8 when No. 10 Jackson and No. 5 Mason?
SQL: SELECT "no_8" FROM us_popular_names WHERE "no_10" = 'jackson' AND "no_5" = 'mason'

Question: Who was No. 5 when No. 6 Mason and No. 10 Jackson?
SQL: SELECT "no_5" FROM us_popular_names WHERE "no_6" = 'mason' AND "no_10" = 'jackson'

Question: Who was No. 8 when No. 1 Michael and No. 4 Logan?
SQL: SELECT "no_8" FROM us_popular_names WHERE "no_1" = 'michael' AND "no_4" = 'logan'

Question: Who was No. 9 when No. 5 Mason and No. 3 Aiden?
SQL: SELECT "no_9" FROM us_popular_names WHERE "no_5" = 'mason' AND "no_3" = 'aiden'

Question: Who was No. 3 when No. 5 James and No. 6 Mason?
SQL: SELECT "no_3" FROM us_popular_names WHERE "no_5" = 'james' AND "no_6" = 'mason'