1sf/bird-sql-train-with-schema huggingface dataset:
Database: college_completion
Tables: institution_details, institution_grads, state_sector_grads, state_sector_details
Columns (table index, column name): -1, *, 0, unitid, 0, chronname, 0, city, 0, state, 0, level, 0, control, 0, basic, 0, hbcu, 0, flagship, 0, long_x, 0, lat_y, 0, site, 0, student_count, 0, awards_per_value, 0, awards_per_state_value, 0, awards_per_natl_value, 0, exp_award_value, 0, exp_award_state_value, 0, exp_award_natl_value, 0, exp_award_percentile, 0, ft_pct, 0, fte_value, 0, fte_percentile, 0, med_sat_value, 0, med_sat_percentile, 0, aid_value, 0, aid_percentile, 0, endow_value, 0, endow_percentile, 0, grad_100_value, 0, grad_100_percentile, 0, grad_150_value, 0, grad_150_percentile, 0, pell_value, 0, pell_percentile, 0, retain_value, 0, retain_percentile, 0, ft_fac_value, 0, ft_fac_percentile, 0, vsa_year, 0, vsa_grad_after4_first, 0, vsa_grad_elsewhere_after4_first, 0, vsa_enroll_after4_first, 0, vsa_enroll_elsewhere_after4_first, 0, vsa_grad_after6_first, 0, vsa_grad_elsewhere_after6_first, 0, vsa_enroll_after6_first, 0, vsa_enroll_elsewhere_after6_first, 0, vsa_grad_after4_transfer, 0, vsa_grad_elsewhere_after4_transfer, 0, vsa_enroll_after4_transfer, 0, vsa_enroll_elsewhere_after4_transfer, 0, vsa_grad_after6_transfer, 0, vsa_grad_elsewhere_after6_transfer, 0, vsa_enroll_after6_transfer, 0, vsa_enroll_elsewhere_after6_transfer, 0, similar, 0, state_sector_ct, 0, carnegie_ct, 0, counted_pct, 0, nicknames, 0, cohort_size, 1, unitid, 1, year, 1, gender, 1, race, 1, cohort, 1, grad_cohort, 1, grad_100, 1, grad_150, 1, grad_100_rate, 1, grad_150_rate, 2, stateid, 2, state, 2, state_abbr, 2, control, 2, level, 2, year, 2, gender, 2, race, 2, cohort, 2, grad_cohort, 2, grad_100, 2, grad_150, 2, grad_100_rate, 2, grad_150_rate, 2, grad_cohort_ct, 3, stateid, 3, state, 3, state_post, 3, level, 3, control, 3, schools_count, 3, counted_pct, 3, awards_per_state_value, 3, awards_per_natl_value, 3, exp_award_state_value, 3, exp_award_natl_value, 3, state_appr_value, 3, state_appr_rank, 3, grad_rate_rank, 3, awards_per_rank
Question: What is the percentage of the number of 4-year public schools from Madison Area Technical College's home state in the Alabama?
Evidence: percentage = MULTIPLY(DIVIDE(SUM(chronname = 'Madison Area Technical College'), SUM(state = 'Alabama')), 100); 4-year refers to level = '4-year'; public refers to control = 'Public'; Madison Area Technical College refers to chronname = 'Madison Area Technical College'; home state in the United States refers to state;
SQL: SELECT CAST(COUNT(DISTINCT CASE WHEN T1.state = ( SELECT T1.state FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state WHERE T1.chronname = 'Madison Area Technical College' ) AND T1.level = '4-year' AND T1.control = 'Public' THEN T1.chronname ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT CASE WHEN T2.state = 'Alabama' THEN T1.chronname ELSE NULL END) FROM institution_details AS T1 INNER JOIN state_sector_details AS T2 ON T2.state = T1.state
Database: college_completion
Tables: institution_details, institution_grads, state_sector_grads, state_sector_details
Columns (table index, column name): -1, *, 0, unitid, 0, chronname, 0, city, 0, state, 0, level, 0, control, 0, basic, 0, hbcu, 0, flagship, 0, long_x, 0, lat_y, 0, site, 0, student_count, 0, awards_per_value, 0, awards_per_state_value, 0, awards_per_natl_value, 0, exp_award_value, 0, exp_award_state_value, 0, exp_award_natl_value, 0, exp_award_percentile, 0, ft_pct, 0, fte_value, 0, fte_percentile, 0, med_sat_value, 0, med_sat_percentile, 0, aid_value, 0, aid_percentile, 0, endow_value, 0, endow_percentile, 0, grad_100_value, 0, grad_100_percentile, 0, grad_150_value, 0, grad_150_percentile, 0, pell_value, 0, pell_percentile, 0, retain_value, 0, retain_percentile, 0, ft_fac_value, 0, ft_fac_percentile, 0, vsa_year, 0, vsa_grad_after4_first, 0, vsa_grad_elsewhere_after4_first, 0, vsa_enroll_after4_first, 0, vsa_enroll_elsewhere_after4_first, 0, vsa_grad_after6_first, 0, vsa_grad_elsewhere_after6_first, 0, vsa_enroll_after6_first, 0, vsa_enroll_elsewhere_after6_first, 0, vsa_grad_after4_transfer, 0, vsa_grad_elsewhere_after4_transfer, 0, vsa_enroll_after4_transfer, 0, vsa_enroll_elsewhere_after4_transfer, 0, vsa_grad_after6_transfer, 0, vsa_grad_elsewhere_after6_transfer, 0, vsa_enroll_after6_transfer, 0, vsa_enroll_elsewhere_after6_transfer, 0, similar, 0, state_sector_ct, 0, carnegie_ct, 0, counted_pct, 0, nicknames, 0, cohort_size, 1, unitid, 1, year, 1, gender, 1, race, 1, cohort, 1, grad_cohort, 1, grad_100, 1, grad_150, 1, grad_100_rate, 1, grad_150_rate, 2, stateid, 2, state, 2, state_abbr, 2, control, 2, level, 2, year, 2, gender, 2, race, 2, cohort, 2, grad_cohort, 2, grad_100, 2, grad_150, 2, grad_100_rate, 2, grad_150_rate, 2, grad_cohort_ct, 3, stateid, 3, state, 3, state_post, 3, level, 3, control, 3, schools_count, 3, counted_pct, 3, awards_per_state_value, 3, awards_per_natl_value, 3, exp_award_state_value, 3, exp_award_natl_value, 3, state_appr_value, 3, state_appr_rank, 3, grad_rate_rank, 3, awards_per_rank
Question: Give the state and name of institutions in year of data release from 2010 to 2012 with black students.
Evidence: name of institutions refers to chronname; year of data release refers to year; from '2010' to '2012' refers to year BETWEEN 2010 AND 2012; Black refers to race = 'B';
SQL: SELECT DISTINCT T1.state, T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.race = 'B' AND T2.year BETWEEN 2010 AND 2012
Database: college_completion
Tables: institution_details, institution_grads, state_sector_grads, state_sector_details
Columns (table index, column name): -1, *, 0, unitid, 0, chronname, 0, city, 0, state, 0, level, 0, control, 0, basic, 0, hbcu, 0, flagship, 0, long_x, 0, lat_y, 0, site, 0, student_count, 0, awards_per_value, 0, awards_per_state_value, 0, awards_per_natl_value, 0, exp_award_value, 0, exp_award_state_value, 0, exp_award_natl_value, 0, exp_award_percentile, 0, ft_pct, 0, fte_value, 0, fte_percentile, 0, med_sat_value, 0, med_sat_percentile, 0, aid_value, 0, aid_percentile, 0, endow_value, 0, endow_percentile, 0, grad_100_value, 0, grad_100_percentile, 0, grad_150_value, 0, grad_150_percentile, 0, pell_value, 0, pell_percentile, 0, retain_value, 0, retain_percentile, 0, ft_fac_value, 0, ft_fac_percentile, 0, vsa_year, 0, vsa_grad_after4_first, 0, vsa_grad_elsewhere_after4_first, 0, vsa_enroll_after4_first, 0, vsa_enroll_elsewhere_after4_first, 0, vsa_grad_after6_first, 0, vsa_grad_elsewhere_after6_first, 0, vsa_enroll_after6_first, 0, vsa_enroll_elsewhere_after6_first, 0, vsa_grad_after4_transfer, 0, vsa_grad_elsewhere_after4_transfer, 0, vsa_enroll_after4_transfer, 0, vsa_enroll_elsewhere_after4_transfer, 0, vsa_grad_after6_transfer, 0, vsa_grad_elsewhere_after6_transfer, 0, vsa_enroll_after6_transfer, 0, vsa_enroll_elsewhere_after6_transfer, 0, similar, 0, state_sector_ct, 0, carnegie_ct, 0, counted_pct, 0, nicknames, 0, cohort_size, 1, unitid, 1, year, 1, gender, 1, race, 1, cohort, 1, grad_cohort, 1, grad_100, 1, grad_150, 1, grad_100_rate, 1, grad_150_rate, 2, stateid, 2, state, 2, state_abbr, 2, control, 2, level, 2, year, 2, gender, 2, race, 2, cohort, 2, grad_cohort, 2, grad_100, 2, grad_150, 2, grad_100_rate, 2, grad_150_rate, 2, grad_cohort_ct, 3, stateid, 3, state, 3, state_post, 3, level, 3, control, 3, schools_count, 3, counted_pct, 3, awards_per_state_value, 3, awards_per_natl_value, 3, exp_award_state_value, 3, exp_award_natl_value, 3, state_appr_value, 3, state_appr_rank, 3, grad_rate_rank, 3, awards_per_rank
Question: List down the states in 2011 with a national sector average of 20 and below.
Evidence: in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;
SQL: SELECT DISTINCT T1.state FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T2.year = 2011 AND T1.awards_per_natl_value <= 20
Database: college_completion
Tables: institution_details, institution_grads, state_sector_grads, state_sector_details
Columns (table index, column name): -1, *, 0, unitid, 0, chronname, 0, city, 0, state, 0, level, 0, control, 0, basic, 0, hbcu, 0, flagship, 0, long_x, 0, lat_y, 0, site, 0, student_count, 0, awards_per_value, 0, awards_per_state_value, 0, awards_per_natl_value, 0, exp_award_value, 0, exp_award_state_value, 0, exp_award_natl_value, 0, exp_award_percentile, 0, ft_pct, 0, fte_value, 0, fte_percentile, 0, med_sat_value, 0, med_sat_percentile, 0, aid_value, 0, aid_percentile, 0, endow_value, 0, endow_percentile, 0, grad_100_value, 0, grad_100_percentile, 0, grad_150_value, 0, grad_150_percentile, 0, pell_value, 0, pell_percentile, 0, retain_value, 0, retain_percentile, 0, ft_fac_value, 0, ft_fac_percentile, 0, vsa_year, 0, vsa_grad_after4_first, 0, vsa_grad_elsewhere_after4_first, 0, vsa_enroll_after4_first, 0, vsa_enroll_elsewhere_after4_first, 0, vsa_grad_after6_first, 0, vsa_grad_elsewhere_after6_first, 0, vsa_enroll_after6_first, 0, vsa_enroll_elsewhere_after6_first, 0, vsa_grad_after4_transfer, 0, vsa_grad_elsewhere_after4_transfer, 0, vsa_enroll_after4_transfer, 0, vsa_enroll_elsewhere_after4_transfer, 0, vsa_grad_after6_transfer, 0, vsa_grad_elsewhere_after6_transfer, 0, vsa_enroll_after6_transfer, 0, vsa_enroll_elsewhere_after6_transfer, 0, similar, 0, state_sector_ct, 0, carnegie_ct, 0, counted_pct, 0, nicknames, 0, cohort_size, 1, unitid, 1, year, 1, gender, 1, race, 1, cohort, 1, grad_cohort, 1, grad_100, 1, grad_150, 1, grad_100_rate, 1, grad_150_rate, 2, stateid, 2, state, 2, state_abbr, 2, control, 2, level, 2, year, 2, gender, 2, race, 2, cohort, 2, grad_cohort, 2, grad_100, 2, grad_150, 2, grad_100_rate, 2, grad_150_rate, 2, grad_cohort_ct, 3, stateid, 3, state, 3, state_post, 3, level, 3, control, 3, schools_count, 3, counted_pct, 3, awards_per_state_value, 3, awards_per_natl_value, 3, exp_award_state_value, 3, exp_award_natl_value, 3, state_appr_value, 3, state_appr_rank, 3, grad_rate_rank, 3, awards_per_rank
Question: Among the race of all students, what is the control of institution and level of institution with highest number of students?
Evidence: highest number of students refers to student_count; all students refer to race = 'X'.
SQL: SELECT DISTINCT T1.control, T1.level FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.race = 'X' AND T1.student_count = ( SELECT MAX(T1.student_count) FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.race = 'X' )
Database: college_completion
Tables: institution_details, institution_grads, state_sector_grads, state_sector_details
Columns (table index, column name): -1, *, 0, unitid, 0, chronname, 0, city, 0, state, 0, level, 0, control, 0, basic, 0, hbcu, 0, flagship, 0, long_x, 0, lat_y, 0, site, 0, student_count, 0, awards_per_value, 0, awards_per_state_value, 0, awards_per_natl_value, 0, exp_award_value, 0, exp_award_state_value, 0, exp_award_natl_value, 0, exp_award_percentile, 0, ft_pct, 0, fte_value, 0, fte_percentile, 0, med_sat_value, 0, med_sat_percentile, 0, aid_value, 0, aid_percentile, 0, endow_value, 0, endow_percentile, 0, grad_100_value, 0, grad_100_percentile, 0, grad_150_value, 0, grad_150_percentile, 0, pell_value, 0, pell_percentile, 0, retain_value, 0, retain_percentile, 0, ft_fac_value, 0, ft_fac_percentile, 0, vsa_year, 0, vsa_grad_after4_first, 0, vsa_grad_elsewhere_after4_first, 0, vsa_enroll_after4_first, 0, vsa_enroll_elsewhere_after4_first, 0, vsa_grad_after6_first, 0, vsa_grad_elsewhere_after6_first, 0, vsa_enroll_after6_first, 0, vsa_enroll_elsewhere_after6_first, 0, vsa_grad_after4_transfer, 0, vsa_grad_elsewhere_after4_transfer, 0, vsa_enroll_after4_transfer, 0, vsa_enroll_elsewhere_after4_transfer, 0, vsa_grad_after6_transfer, 0, vsa_grad_elsewhere_after6_transfer, 0, vsa_enroll_after6_transfer, 0, vsa_enroll_elsewhere_after6_transfer, 0, similar, 0, state_sector_ct, 0, carnegie_ct, 0, counted_pct, 0, nicknames, 0, cohort_size, 1, unitid, 1, year, 1, gender, 1, race, 1, cohort, 1, grad_cohort, 1, grad_100, 1, grad_150, 1, grad_100_rate, 1, grad_150_rate, 2, stateid, 2, state, 2, state_abbr, 2, control, 2, level, 2, year, 2, gender, 2, race, 2, cohort, 2, grad_cohort, 2, grad_100, 2, grad_150, 2, grad_100_rate, 2, grad_150_rate, 2, grad_cohort_ct, 3, stateid, 3, state, 3, state_post, 3, level, 3, control, 3, schools_count, 3, counted_pct, 3, awards_per_state_value, 3, awards_per_natl_value, 3, exp_award_state_value, 3, exp_award_natl_value, 3, state_appr_value, 3, state_appr_rank, 3, grad_rate_rank, 3, awards_per_rank
Question: Among the states with a public school count of 20 and below, list their race.
Evidence: public refers to control = 'Public'; school_count < 20;
SQL: SELECT DISTINCT T2.race FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T1.schools_count <= 20 AND T1.control = 'Public'
Database: college_completion
Tables: institution_details, institution_grads, state_sector_grads, state_sector_details
Columns (table index, column name): -1, *, 0, unitid, 0, chronname, 0, city, 0, state, 0, level, 0, control, 0, basic, 0, hbcu, 0, flagship, 0, long_x, 0, lat_y, 0, site, 0, student_count, 0, awards_per_value, 0, awards_per_state_value, 0, awards_per_natl_value, 0, exp_award_value, 0, exp_award_state_value, 0, exp_award_natl_value, 0, exp_award_percentile, 0, ft_pct, 0, fte_value, 0, fte_percentile, 0, med_sat_value, 0, med_sat_percentile, 0, aid_value, 0, aid_percentile, 0, endow_value, 0, endow_percentile, 0, grad_100_value, 0, grad_100_percentile, 0, grad_150_value, 0, grad_150_percentile, 0, pell_value, 0, pell_percentile, 0, retain_value, 0, retain_percentile, 0, ft_fac_value, 0, ft_fac_percentile, 0, vsa_year, 0, vsa_grad_after4_first, 0, vsa_grad_elsewhere_after4_first, 0, vsa_enroll_after4_first, 0, vsa_enroll_elsewhere_after4_first, 0, vsa_grad_after6_first, 0, vsa_grad_elsewhere_after6_first, 0, vsa_enroll_after6_first, 0, vsa_enroll_elsewhere_after6_first, 0, vsa_grad_after4_transfer, 0, vsa_grad_elsewhere_after4_transfer, 0, vsa_enroll_after4_transfer, 0, vsa_enroll_elsewhere_after4_transfer, 0, vsa_grad_after6_transfer, 0, vsa_grad_elsewhere_after6_transfer, 0, vsa_enroll_after6_transfer, 0, vsa_enroll_elsewhere_after6_transfer, 0, similar, 0, state_sector_ct, 0, carnegie_ct, 0, counted_pct, 0, nicknames, 0, cohort_size, 1, unitid, 1, year, 1, gender, 1, race, 1, cohort, 1, grad_cohort, 1, grad_100, 1, grad_150, 1, grad_100_rate, 1, grad_150_rate, 2, stateid, 2, state, 2, state_abbr, 2, control, 2, level, 2, year, 2, gender, 2, race, 2, cohort, 2, grad_cohort, 2, grad_100, 2, grad_150, 2, grad_100_rate, 2, grad_150_rate, 2, grad_cohort_ct, 3, stateid, 3, state, 3, state_post, 3, level, 3, control, 3, schools_count, 3, counted_pct, 3, awards_per_state_value, 3, awards_per_natl_value, 3, exp_award_state_value, 3, exp_award_natl_value, 3, state_appr_value, 3, state_appr_rank, 3, grad_rate_rank, 3, awards_per_rank
Question: List the basic of the institution in 2012 with race of all male students.
Evidence: in 2012 refers to year = '2012'; male refers to gender = 'M'; all students refer to race = 'X'.
SQL: SELECT DISTINCT T1.basic, T2.race FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.year = 2012 AND T2.gender = 'M' AND t2.race = 'X'
Database: college_completion
Tables: institution_details, institution_grads, state_sector_grads, state_sector_details
Columns (table index, column name): -1, *, 0, unitid, 0, chronname, 0, city, 0, state, 0, level, 0, control, 0, basic, 0, hbcu, 0, flagship, 0, long_x, 0, lat_y, 0, site, 0, student_count, 0, awards_per_value, 0, awards_per_state_value, 0, awards_per_natl_value, 0, exp_award_value, 0, exp_award_state_value, 0, exp_award_natl_value, 0, exp_award_percentile, 0, ft_pct, 0, fte_value, 0, fte_percentile, 0, med_sat_value, 0, med_sat_percentile, 0, aid_value, 0, aid_percentile, 0, endow_value, 0, endow_percentile, 0, grad_100_value, 0, grad_100_percentile, 0, grad_150_value, 0, grad_150_percentile, 0, pell_value, 0, pell_percentile, 0, retain_value, 0, retain_percentile, 0, ft_fac_value, 0, ft_fac_percentile, 0, vsa_year, 0, vsa_grad_after4_first, 0, vsa_grad_elsewhere_after4_first, 0, vsa_enroll_after4_first, 0, vsa_enroll_elsewhere_after4_first, 0, vsa_grad_after6_first, 0, vsa_grad_elsewhere_after6_first, 0, vsa_enroll_after6_first, 0, vsa_enroll_elsewhere_after6_first, 0, vsa_grad_after4_transfer, 0, vsa_grad_elsewhere_after4_transfer, 0, vsa_enroll_after4_transfer, 0, vsa_enroll_elsewhere_after4_transfer, 0, vsa_grad_after6_transfer, 0, vsa_grad_elsewhere_after6_transfer, 0, vsa_enroll_after6_transfer, 0, vsa_enroll_elsewhere_after6_transfer, 0, similar, 0, state_sector_ct, 0, carnegie_ct, 0, counted_pct, 0, nicknames, 0, cohort_size, 1, unitid, 1, year, 1, gender, 1, race, 1, cohort, 1, grad_cohort, 1, grad_100, 1, grad_150, 1, grad_100_rate, 1, grad_150_rate, 2, stateid, 2, state, 2, state_abbr, 2, control, 2, level, 2, year, 2, gender, 2, race, 2, cohort, 2, grad_cohort, 2, grad_100, 2, grad_150, 2, grad_100_rate, 2, grad_150_rate, 2, grad_cohort_ct, 3, stateid, 3, state, 3, state_post, 3, level, 3, control, 3, schools_count, 3, counted_pct, 3, awards_per_state_value, 3, awards_per_natl_value, 3, exp_award_state_value, 3, exp_award_natl_value, 3, state_appr_value, 3, state_appr_rank, 3, grad_rate_rank, 3, awards_per_rank
Question: In Alaska with school count of 1 from year 2011 to 2013, how many of the students are white?
Evidence: Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';
SQL: SELECT COUNT(T2.race) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T1.schools_count = 1 AND T2.year BETWEEN 2011 AND 2013 AND T2.race = 'W' AND T1.state = 'Alaska'
Database: college_completion
Tables: institution_details, institution_grads, state_sector_grads, state_sector_details
Columns (table index, column name): -1, *, 0, unitid, 0, chronname, 0, city, 0, state, 0, level, 0, control, 0, basic, 0, hbcu, 0, flagship, 0, long_x, 0, lat_y, 0, site, 0, student_count, 0, awards_per_value, 0, awards_per_state_value, 0, awards_per_natl_value, 0, exp_award_value, 0, exp_award_state_value, 0, exp_award_natl_value, 0, exp_award_percentile, 0, ft_pct, 0, fte_value, 0, fte_percentile, 0, med_sat_value, 0, med_sat_percentile, 0, aid_value, 0, aid_percentile, 0, endow_value, 0, endow_percentile, 0, grad_100_value, 0, grad_100_percentile, 0, grad_150_value, 0, grad_150_percentile, 0, pell_value, 0, pell_percentile, 0, retain_value, 0, retain_percentile, 0, ft_fac_value, 0, ft_fac_percentile, 0, vsa_year, 0, vsa_grad_after4_first, 0, vsa_grad_elsewhere_after4_first, 0, vsa_enroll_after4_first, 0, vsa_enroll_elsewhere_after4_first, 0, vsa_grad_after6_first, 0, vsa_grad_elsewhere_after6_first, 0, vsa_enroll_after6_first, 0, vsa_enroll_elsewhere_after6_first, 0, vsa_grad_after4_transfer, 0, vsa_grad_elsewhere_after4_transfer, 0, vsa_enroll_after4_transfer, 0, vsa_enroll_elsewhere_after4_transfer, 0, vsa_grad_after6_transfer, 0, vsa_grad_elsewhere_after6_transfer, 0, vsa_enroll_after6_transfer, 0, vsa_enroll_elsewhere_after6_transfer, 0, similar, 0, state_sector_ct, 0, carnegie_ct, 0, counted_pct, 0, nicknames, 0, cohort_size, 1, unitid, 1, year, 1, gender, 1, race, 1, cohort, 1, grad_cohort, 1, grad_100, 1, grad_150, 1, grad_100_rate, 1, grad_150_rate, 2, stateid, 2, state, 2, state_abbr, 2, control, 2, level, 2, year, 2, gender, 2, race, 2, cohort, 2, grad_cohort, 2, grad_100, 2, grad_150, 2, grad_100_rate, 2, grad_150_rate, 2, grad_cohort_ct, 3, stateid, 3, state, 3, state_post, 3, level, 3, control, 3, schools_count, 3, counted_pct, 3, awards_per_state_value, 3, awards_per_natl_value, 3, exp_award_state_value, 3, exp_award_natl_value, 3, state_appr_value, 3, state_appr_rank, 3, grad_rate_rank, 3, awards_per_rank
Question: What is the institution's name of american students within the number of degree-seeking students in the cohort that ranges from 1 to 3?
Evidence: institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;
SQL: SELECT DISTINCT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.grad_cohort BETWEEN 1 AND 3 AND T2.race = 'Ai'
Database: college_completion
Tables: institution_details, institution_grads, state_sector_grads, state_sector_details
Columns (table index, column name): -1, *, 0, unitid, 0, chronname, 0, city, 0, state, 0, level, 0, control, 0, basic, 0, hbcu, 0, flagship, 0, long_x, 0, lat_y, 0, site, 0, student_count, 0, awards_per_value, 0, awards_per_state_value, 0, awards_per_natl_value, 0, exp_award_value, 0, exp_award_state_value, 0, exp_award_natl_value, 0, exp_award_percentile, 0, ft_pct, 0, fte_value, 0, fte_percentile, 0, med_sat_value, 0, med_sat_percentile, 0, aid_value, 0, aid_percentile, 0, endow_value, 0, endow_percentile, 0, grad_100_value, 0, grad_100_percentile, 0, grad_150_value, 0, grad_150_percentile, 0, pell_value, 0, pell_percentile, 0, retain_value, 0, retain_percentile, 0, ft_fac_value, 0, ft_fac_percentile, 0, vsa_year, 0, vsa_grad_after4_first, 0, vsa_grad_elsewhere_after4_first, 0, vsa_enroll_after4_first, 0, vsa_enroll_elsewhere_after4_first, 0, vsa_grad_after6_first, 0, vsa_grad_elsewhere_after6_first, 0, vsa_enroll_after6_first, 0, vsa_enroll_elsewhere_after6_first, 0, vsa_grad_after4_transfer, 0, vsa_grad_elsewhere_after4_transfer, 0, vsa_enroll_after4_transfer, 0, vsa_enroll_elsewhere_after4_transfer, 0, vsa_grad_after6_transfer, 0, vsa_grad_elsewhere_after6_transfer, 0, vsa_enroll_after6_transfer, 0, vsa_enroll_elsewhere_after6_transfer, 0, similar, 0, state_sector_ct, 0, carnegie_ct, 0, counted_pct, 0, nicknames, 0, cohort_size, 1, unitid, 1, year, 1, gender, 1, race, 1, cohort, 1, grad_cohort, 1, grad_100, 1, grad_150, 1, grad_100_rate, 1, grad_150_rate, 2, stateid, 2, state, 2, state_abbr, 2, control, 2, level, 2, year, 2, gender, 2, race, 2, cohort, 2, grad_cohort, 2, grad_100, 2, grad_150, 2, grad_100_rate, 2, grad_150_rate, 2, grad_cohort_ct, 3, stateid, 3, state, 3, state_post, 3, level, 3, control, 3, schools_count, 3, counted_pct, 3, awards_per_state_value, 3, awards_per_natl_value, 3, exp_award_state_value, 3, exp_award_natl_value, 3, state_appr_value, 3, state_appr_rank, 3, grad_rate_rank, 3, awards_per_rank
Question: Among the states that start with letter A and attained a national sector average of 16.5, give the number of degree-seeking students in the cohort of those students in 2012 .
Evidence: state that starts with letter A refers to state LIKE 'A%'; national sector average of 16.5 refers to awards_per_natl_value = 16.5; number of degree-seeking students in the cohort refers to grad_cohort; in 2012 refers to year = '2012';
SQL: SELECT SUM(T2.grad_cohort) FROM state_sector_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.stateid = T1.stateid WHERE T2.state LIKE 'A%' AND T1.awards_per_natl_value = 16.5 AND T2.year = 2012