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: Give the web site address for "Swarthmore College".
Evidence: website address refers to site; Swarthmore College refers to chronname = 'Swarthmore College';
SQL: SELECT T FROM ( SELECT DISTINCT CASE WHEN chronname = 'Swarthmore College' THEN site ELSE NULL END AS T FROM institution_details ) WHERE T IS NOT NULL
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: Which state is "Mercer University" located in?
Evidence: Mercer University refers to chronname = 'Mercer University';
SQL: SELECT T FROM ( SELECT DISTINCT CASE WHEN chronname = 'Mercer University' THEN state ELSE NULL END AS T FROM institution_details ) WHERE T IS NOT NULL
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: Which city is "Rensselaer Polytechnic Institute" located in?
Evidence: Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';
SQL: SELECT T FROM ( SELECT DISTINCT CASE WHEN chronname = 'Rensselaer Polytechnic Institute' THEN city ELSE NULL END AS T FROM institution_details ) WHERE T IS NOT NULL
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: Tell the abbreviation for "Delaware" state.
Evidence: abbreviation for state refers to state_abbr;
SQL: SELECT T FROM ( SELECT DISTINCT CASE WHEN state = 'Delaware' THEN state_abbr ELSE NULL END AS T FROM state_sector_grads ) WHERE T IS NOT NULL
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: How many 2-year public schools are there in "California"?
Evidence: 2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';
SQL: SELECT COUNT(stateid) FROM state_sector_details WHERE state = 'California' AND level = '2-year' AND 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: Give the post name of "Idaho" state.
Evidence: post name refers to state_post;
SQL: SELECT T FROM ( SELECT DISTINCT CASE WHEN state = 'Idaho' THEN state_post ELSE NULL END AS T FROM state_sector_details ) WHERE T IS NOT NULL
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: Tell the name of school in "NJ" that could get the bachelor's degree with highest students number.
Evidence: name of school refers to chronname; NJ refers to state_abbr = 'NJ'; bachelor's degree refers to level = '4-year'; highest students number refers to MAX(student_count);
SQL: SELECT DISTINCT T1.chronname FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'NJ' AND T1.level = '4-year' AND T1.student_count = ( SELECT MAX(T1.student_count) FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'NJ' AND T1.level = '4-year' )
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 web site address for the school in "PA" state with the highest latitude.
Evidence: web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);
SQL: SELECT DISTINCT T1.site FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'PA' AND T1.lat_y = ( SELECT MAX(T1.lat_y) FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'PA' )
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: Tell the number of 4-year public schools in UT whose graduation rate exceeds the average for the state.
Evidence: 4-year refers to level = '4-year'; public refers to control = 'Public'; UT refers to state_abbr = 'UT'; graduation rate exceeds the average for the state refers to awards_per_value > awards_per_state_value;
SQL: SELECT COUNT(DISTINCT T1.chronname) FROM institution_details AS T1 INNER JOIN state_sector_grads AS T2 ON T2.state = T1.state WHERE T2.state_abbr = 'UT' AND T1.level = '4-year' AND T1.control = 'Public' AND T1.awards_per_value > T1.awards_per_state_value