input stringlengths 191 7.13k | output stringlengths 19 578 |
|---|---|
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: L... | SELECT name , dates_active , number_deaths FROM storm WHERE number_deaths >= 1; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT name , dates_active , number_deaths FROM storm WHERE number_deaths >= 1; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: S... | SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT sum(number_deaths) , sum(damage_millions_USD) FROM storm WHERE max_speed > (SELECT avg(max_speed) FROM storm); |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: R... | SELECT sum(number_deaths) , sum(damage_millions_USD) FROM storm WHERE max_speed > (SELECT avg(max_speed) FROM storm); |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: L... | SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT name , damage_millions_USD FROM storm ORDER BY max_speed DESC; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: H... | SELECT count(DISTINCT region_id) FROM affected_region; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: C... | SELECT count(DISTINCT region_id) FROM affected_region; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: S... | SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region); |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT region_name FROM region WHERE region_id NOT IN (SELECT region_id FROM affected_region); |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: S... | SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: H... | SELECT T1.region_name , count(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: L... | SELECT T1.name , count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: H... | SELECT T1.name , count(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: R... | SELECT T1.name , T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY count(*) DESC LIMIT 1; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: S... | SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region); |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT name FROM storm WHERE storm_id NOT IN (SELECT storm_id FROM affected_region); |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: S... | SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected) >= 10; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING sum(T2.number_city_affected) >= 10; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: S... | SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT name FROM storm EXCEPT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING count(*) >= 2; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: R... | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: S... | SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark'; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark'; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: S... | SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*) >= 2; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING count(*) >= 2; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: F... | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id ORDER BY T3.Number_Deaths DESC LIMIT 1; |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: F... | SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T... |
Tables: storm, region, affected_region
Columns: storm.Storm_ID, storm.Name, storm.Dates_active, storm.Max_speed, storm.Damage_millions_USD, storm.Number_Deaths, region.Region_id, region.Region_code, region.Region_name, affected_region.Region_id, affected_region.Storm_ID, affected_region.Number_city_affected
Question: W... | SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T... |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT count(*) FROM county; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT count(*) FROM county; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT County_name , Population FROM county; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT County_name , Population FROM county; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT avg(Population) FROM county; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT avg(Population) FROM county; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT max(Population) , min(Population) FROM county; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT max(Population) , min(Population) FROM county; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT DISTINCT District FROM election; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT DISTINCT District FROM election; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Zip_code FROM county WHERE County_name = "Howard"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Zip_code FROM county WHERE County_name = "Howard"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Delegate FROM election WHERE District = 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Delegate FROM election WHERE District = 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Delegate , Committee FROM election; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Delegate , Committee FROM election; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT count(DISTINCT Governor) FROM party; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT count(DISTINCT Governor) FROM party; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = "Democratic"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Lieutenant_Governor , Comptroller FROM party WHERE Party = "Democratic"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT DISTINCT YEAR FROM party WHERE Governor = "Eliot Spitzer"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT DISTINCT YEAR FROM party WHERE Governor = "Eliot Spitzer"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT * FROM election; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT * FROM election; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Delegate , T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Delegate FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population < 100000; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT count(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T1.Delegate , T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Comptroller FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T1.County_name , COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Party , COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT County_name FROM county ORDER BY Population ASC; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT County_name FROM county ORDER BY Population ASC; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT County_name FROM county ORDER BY County_name DESC; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT County_name FROM county ORDER BY County_name DESC; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT County_name FROM county ORDER BY Population DESC LIMIT 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT County_name FROM county ORDER BY Population DESC LIMIT 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT County_name FROM county ORDER BY Population ASC LIMIT 3; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT County_name FROM county ORDER BY Population ASC LIMIT 3; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Comptroller , COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election); |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT Party FROM party WHERE Party_ID NOT IN (SELECT Party FROM election); |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Economic Matters"; |
Tables: county, party, election
Columns: county.County_Id, county.County_name, county.Population, county.Zip_code, party.Party_ID, party.Year, party.Party, party.Governor, party.Lieutenant_Governor, party.Comptroller, party.Attorney_General, party.US_Senate, election.Election_ID, election.Counties_Represented, election... | SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Appropriations" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = "Economic Matters"; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.