1sf/bird-sql-train-with-schema huggingface dataset:
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: List 10 cities with a median age over 40. Include their zip codes and area codes.
Evidence: median age over 40 refers to median_age > 40
SQL: SELECT T2.city, T2.zip_code, T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.median_age >= 40 LIMIT 10
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: Name the county that has the bad alias of Druid Hills.
Evidence: "Druid Hills" is the bad_alias
SQL: SELECT T2.county FROM avoid AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T1.bad_alias = 'Druid Hills'
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: What is the area code of Phillips county in Montana?
Evidence: "PHILLIPS" is the county; 'Montana' is the name of state
SQL: SELECT DISTINCT T1.area_code FROM area_code AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code INNER JOIN state AS T3 ON T2.state = T3.abbreviation WHERE T2.county = 'PHILLIPS' AND T3.name = 'Montana'
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: Which district has the largest land area in Wisconsin? Write the full name of the congress representative and include the postal codes.
Evidence: "Wisconsin" is the state; largest land area refers to Max(land_area); full name refers to first_name, last_name; postal code refers to zip_code
SQL: SELECT T2.zip_code, T1.first_name, T1.last_name FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.state = 'Wisconsin' ORDER BY T1.land_area DESC LIMIT 1
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: How many states are in the central time zone? Write their full names.
Evidence: central time zone refers to time_zone = 'Central'
SQL: SELECT SUM(CASE WHEN T1.time_zone = 'Central' THEN 1 ELSE 0 END) AS count FROM zip_data AS T1 INNER JOIN state AS T2 ON T2.abbreviation = T1.state WHERE T1.time_zone = 'Central'
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: Name 10 cities with their states that are under the Lexington-Fayette, KY office of the Canada Border Services Agency.
Evidence: "Lexington-Fayette, KY" is the CBSA_name
SQL: SELECT DISTINCT T2.city, T2.state FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Lexington-Fayette, KY' LIMIT 10
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: What is the percentage ratio between Democrats and Republicans in Indiana? List the zip codes belonging to Democrats.
Evidence: "Democrats" and "Republicans" refers to party = 'Democrat" and party = 'Republican'; percentage ratio = Multiply (Divide (Count(party = 'Democrat"), Count(party = 'Republican')), 100)
SQL: SELECT CAST(COUNT(CASE WHEN T2.party = 'Democrat' THEN 1 ELSE NULL END) AS REAL) / COUNT(CASE WHEN T2.party = 'Republican' THEN 1 ELSE NULL END)FROM zip_congress AS T1 INNER JOIN congress AS T2 ON T2.cognress_rep_id = T1.district
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: Calculate the ratio between the number of representatives in Alabama and the number of representatives in Illinois.
Evidence: "Alabama" and "Illinois" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))
SQL: SELECT CAST(COUNT(CASE WHEN state = 'Alabama' THEN cognress_rep_id ELSE NULL END) AS REAL) / COUNT(CASE WHEN state = 'Illinois' THEN cognress_rep_id ELSE NULL END) FROM congress
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: Calculate the average of 2020's population in each zip code.
Evidence: average of 2020 population in each zip code refers to Divide (Sum(population_2020), Count(zip_code))
SQL: SELECT CAST(SUM(population_2020) AS REAL) / COUNT(zip_code) FROM zip_data
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: State the male population for all zip code which were under the Berlin, NH CBSA.
Evidence: "Berlin, NH" is the CBSA_name
SQL: SELECT T2.male_population FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Berlin, NH' GROUP BY T2.male_population
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: Which CBSAs have more than 10 zip codes?
Evidence: has more than 10 zip codes refers to CBSA where count(CBSA) > 10
SQL: SELECT T1.CBSA_name FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA GROUP BY T1.CBSA HAVING COUNT(T2.zip_code) > 10
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: List all the bad alias for zip codes in Puerto Rico.
Evidence: "Puerto Rico" refers to state = 'PR'
SQL: SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.state = 'PR'