db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
entrepreneur
select count(distinct company) from entrepreneur
Question: count the number of different companies. | Tables: entrepreneur -> Entrepreneur_ID, People_ID, Company, Money_Requested, Investor. people -> People_ID, Name, Height, Weight, Date_of_Birth. | Joins: entrepreneur.People_ID = people.People_ID,
count the number of different companies.
entrepreneur
select t1.company from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id order by t2.height desc limit 1
Question: show the company of the tallest entrepreneur. | Tables: entrepreneur -> Entrepreneur_ID, People_ID, Company, Money_Requested, Investor. people -> People_ID, Name, Height, Weight, Date_of_Birth. | Joins: entrepreneur.People_ID = people.People_ID,
show the company of the tallest entrepreneur.
entrepreneur
select t1.company from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id order by t2.height desc limit 1
Question: which company was started by the entrepreneur with the greatest height? | Tables: entrepreneur -> Entrepreneur_ID, People_ID, Company, Money_Requested, Investor. people -> People_ID, Name, Height, Weight, Date_of_Birth. | Joins: entrepreneur.People_ID = people.People_ID,
which company was started by the entrepreneur with the greatest height?
perpetrator
select count(*) from perpetrator
Question: how many perpetrators are there? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
how many perpetrators are there?
perpetrator
select date from perpetrator order by killed desc
Question: list the date of perpetrators in descending order of the number of people killed. | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
list the date of perpetrators in descending order of the number of people killed.
perpetrator
select injured from perpetrator order by injured asc
Question: list the number of people injured by perpetrators in ascending order. | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
list the number of people injured by perpetrators in ascending order.
perpetrator
select avg(injured) from perpetrator
Question: what is the average number of people injured by all perpetrators? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what is the average number of people injured by all perpetrators?
perpetrator
select location from perpetrator order by killed desc limit 1
Question: what is the location of the perpetrator with the largest kills. | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what is the location of the perpetrator with the largest kills.
perpetrator
select name from people order by height asc
Question: what are the names of people in ascending order of height? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what are the names of people in ascending order of height?
perpetrator
select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id
Question: what are the names of perpetrators? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what are the names of perpetrators?
perpetrator
select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id where t2.country != 'china'
Question: what are the names of perpetrators whose country is not 'china'? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what are the names of perpetrators whose country is not 'china'?
perpetrator
select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id order by t1.weight desc limit 1
Question: what is the name of the perpetrator with the biggest weight. | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what is the name of the perpetrator with the biggest weight.
perpetrator
select sum(t2.killed) from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id where t1.height > 1.84
Question: what is the total kills of the perpetrators with height more than 1.84. | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what is the total kills of the perpetrators with height more than 1.84.
perpetrator
select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id where t2.country = 'china' or t2.country = 'japan'
Question: what are the names of perpetrators in country 'china' or 'japan'? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what are the names of perpetrators in country 'china' or 'japan'?
perpetrator
select t1.height from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id order by t2.injured desc
Question: what are the heights of perpetrators in descending order of the number of people they injured? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what are the heights of perpetrators in descending order of the number of people they injured?
perpetrator
select country , count(*) from perpetrator group by country
Question: what are the countries of perpetrators? show each country and the corresponding number of perpetrators there. | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People...
what are the countries of perpetrators? show each country and the corresponding number of perpetrators there.
perpetrator
select country , count(*) from perpetrator group by country order by count(*) desc limit 1
Question: what is the country that has the most perpetrators? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what is the country that has the most perpetrators?
perpetrator
select country , count(*) from perpetrator group by country having count(*) >= 2
Question: what are the countries that have at least two perpetrators? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
what are the countries that have at least two perpetrators?
perpetrator
select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id order by t2.year desc
Question: list the names of perpetrators in descending order of the year. | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
list the names of perpetrators in descending order of the year.
perpetrator
select name from people where people_id not in (select people_id from perpetrator)
Question: list the names of people that are not perpetrators. | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
list the names of people that are not perpetrators.
perpetrator
select country from perpetrator where injured > 50 intersect select country from perpetrator where injured < 20
Question: show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20. | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = peo...
show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20.
perpetrator
select count(distinct location) from perpetrator
Question: how many distinct locations of perpetrators are there? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
how many distinct locations of perpetrators are there?
perpetrator
select t2.date from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id order by t1.height desc limit 1
Question: show the date of the tallest perpetrator. | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
show the date of the tallest perpetrator.
perpetrator
select max(year) from perpetrator;
Question: in which year did the most recent crime happen? | Tables: perpetrator -> Perpetrator_ID, People_ID, Date, Year, Location, Country, Killed, Injured. people -> People_ID, Name, Height, Weight, Home Town. | Joins: perpetrator.People_ID = people.People_ID,
in which year did the most recent crime happen?
csu_1
select campus from campuses where county = 'los angeles'
Question: report the name of all campuses in los angeles county. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, ...
report the name of all campuses in los angeles county.
csu_1
select campus from campuses where county = 'los angeles'
Question: what campuses are located in the county of los angeles? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY,...
what campuses are located in the county of los angeles?
csu_1
select campus from campuses where location = 'chico'
Question: what are the names of all campuses located at chico? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FT...
what are the names of all campuses located at chico?
csu_1
select campus from campuses where location = 'chico'
Question: what campuses are located in chico? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. faculty -> ...
what campuses are located in chico?
csu_1
select campus from campuses where year = 1958
Question: find all the campuses opened in 1958. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. faculty -...
find all the campuses opened in 1958.
csu_1
select campus from campuses where year = 1958
Question: what are the campuses that opened in 1958? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. facu...
what are the campuses that opened in 1958?
csu_1
select campus from campuses where year < 1800
Question: find the name of the campuses opened before 1800. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_A...
find the name of the campuses opened before 1800.
csu_1
select campus from campuses where year < 1800
Question: what campuses opened before 1800? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. faculty -> Ca...
what campuses opened before 1800?
csu_1
select campus from campuses where year >= 1935 and year <= 1939
Question: which campus was opened between 1935 and 1939? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. ...
which campus was opened between 1935 and 1939?
csu_1
select campus from campuses where year >= 1935 and year <= 1939
Question: what campuses opened between 1935 and 1939? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. fac...
what campuses opened between 1935 and 1939?
csu_1
select campus from campuses where location = 'northridge' and county = 'los angeles' union select campus from campuses where location = 'san francisco' and county = 'san francisco'
Question: find the name of the campuses that is in northridge, los angeles or in san francisco, san francisco. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enr...
find the name of the campuses that is in northridge, los angeles or in san francisco, san francisco.
csu_1
select campus from campuses where location = 'northridge' and county = 'los angeles' union select campus from campuses where location = 'san francisco' and county = 'san francisco'
Question: what campuses are located in northridge, los angeles or in san francisco, san francisco? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> ...
what campuses are located in northridge, los angeles or in san francisco, san francisco?
csu_1
select campusfee from campuses as t1 join csu_fees as t2 on t1.id = t2.campus where t1.campus = 'san jose state university' and t2.year = 1996
Question: what is the campus fee of 'san jose state university' in year 1996? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEn...
what is the campus fee of 'san jose state university' in year 1996?
csu_1
select campusfee from campuses as t1 join csu_fees as t2 on t1.id = t2.campus where t1.campus = 'san jose state university' and t2.year = 1996
Question: what is the campus fee for san jose state university in 1996? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollme...
what is the campus fee for san jose state university in 1996?
csu_1
select campusfee from campuses as t1 join csu_fees as t2 on t1.id = t2.campus where t1.campus = 'san francisco state university' and t2.year = 1996
Question: what is the campus fee of 'san francisco state university' in year 1996? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, To...
what is the campus fee of 'san francisco state university' in year 1996?
csu_1
select campusfee from campuses as t1 join csu_fees as t2 on t1.id = t2.campus where t1.campus = 'san francisco state university' and t2.year = 1996
Question: what is the campus fee for san francisco state university in 1996? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnr...
what is the campus fee for san francisco state university in 1996?
csu_1
select count(*) from csu_fees where campusfee > (select avg(campusfee) from csu_fees)
Question: find the count of universities whose campus fee is greater than the average campus fee. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> C...
find the count of universities whose campus fee is greater than the average campus fee.
csu_1
select count(*) from csu_fees where campusfee > (select avg(campusfee) from csu_fees)
Question: how many universities have a campus fee higher than average? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollmen...
how many universities have a campus fee higher than average?
csu_1
select count(*) from csu_fees where campusfee > (select avg(campusfee) from csu_fees)
Question: find the count of universities whose campus fee is greater than the average campus fee. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> C...
find the count of universities whose campus fee is greater than the average campus fee.
csu_1
select count(*) from csu_fees where campusfee > (select avg(campusfee) from csu_fees)
Question: how many universities have a campus fee greater than the average? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnro...
how many universities have a campus fee greater than the average?
csu_1
select campus from campuses where county = 'los angeles' and year > 1950
Question: which university is in los angeles county and opened after 1950? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrol...
which university is in los angeles county and opened after 1950?
csu_1
select campus from campuses where county = 'los angeles' and year > 1950
Question: what campuses are located in los angeles county and opened after 1950? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, Tota...
what campuses are located in los angeles county and opened after 1950?
csu_1
select year from degrees group by year order by sum(degrees) desc limit 1
Question: which year has the most degrees conferred? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. facu...
which year has the most degrees conferred?
csu_1
select year from degrees group by year order by sum(degrees) desc limit 1
Question: in what year was the most degrees conferred? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. fa...
in what year was the most degrees conferred?
csu_1
select campus from degrees group by campus order by sum(degrees) desc limit 1
Question: which campus has the most degrees conferred in all times? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_A...
which campus has the most degrees conferred in all times?
csu_1
select campus from degrees group by campus order by sum(degrees) desc limit 1
Question: what campus has the most degrees conferrred over its entire existence? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, Tot...
what campus has the most degrees conferrred over its entire existence?
csu_1
select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2003 order by t2.faculty desc limit 1
Question: which campus has the most faculties in year 2003? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_A...
which campus has the most faculties in year 2003?
csu_1
select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2003 order by t2.faculty desc limit 1
Question: what campus has the most faculties in 2003? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. fac...
what campus has the most faculties in 2003?
csu_1
select avg(campusfee) from csu_fees where year = 1996
Question: find the average fee on a csu campus in 1996 | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. fa...
find the average fee on a csu campus in 1996
csu_1
select avg(campusfee) from csu_fees where year = 1996
Question: what is the average fee for a csu campus in the year of 1996? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollme...
what is the average fee for a csu campus in the year of 1996?
csu_1
select avg(campusfee) from csu_fees where year = 2005
Question: what is the average fee on a csu campus in 2005? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY...
what is the average fee on a csu campus in 2005?
csu_1
select avg(campusfee) from csu_fees where year = 2005
Question: what is the average fee for a csu campus in the year of 2005? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollme...
what is the average fee for a csu campus in the year of 2005?
csu_1
select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t2.year >= 1998 and t2.year <= 2002 group by t1.campus
Question: report the total number of degrees granted between 1998 and 2002. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnro...
report the total number of degrees granted between 1998 and 2002.
csu_1
select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t2.year >= 1998 and t2.year <= 2002 group by t1.campus
Question: how many degrees were conferred between 1998 and 2002? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, ...
how many degrees were conferred between 1998 and 2002?
csu_1
select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t1.county = 'orange' and t2.year >= 2000 group by t1.campus
Question: for each orange county campus, report the number of degrees granted after 2000. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Y...
for each orange county campus, report the number of degrees granted after 2000.
csu_1
select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t1.county = 'orange' and t2.year >= 2000 group by t1.campus
Question: what is the total number of degrees granted after 2000 for each orange county campus? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Cam...
what is the total number of degrees granted after 2000 for each orange county campus?
csu_1
select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and faculty > (select max(faculty) from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and t1.county = 'orange')
Question: find the names of the campus which has more faculties in 2002 than every campus in orange county. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enroll...
find the names of the campus which has more faculties in 2002 than every campus in orange county.
csu_1
select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and faculty > (select max(faculty) from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and t1.county = 'orange')
Question: what are the names of the campus that have more faculties in 2002 than the maximum number in orange county? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Gradua...
what are the names of the campus that have more faculties in 2002 than the maximum number in orange county?
csu_1
select t1.campus from campuses as t1 join enrollments as t2 on t1.id = t2.campus where t2.year = 1956 and totalenrollment_ay > 400 and fte_ay > 200
Question: what campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enro...
what campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?
csu_1
select t1.campus from campuses as t1 join enrollments as t2 on t1.id = t2.campus where t2.year = 1956 and totalenrollment_ay > 400 and fte_ay > 200
Question: what campus started in year 1956, has more than 200 full time students, and more than 400 students enrolled? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Gradu...
what campus started in year 1956, has more than 200 full time students, and more than 400 students enrolled?
csu_1
select count(*) from campuses where county = 'los angeles'
Question: how many campuses are there in los angeles county? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_...
how many campuses are there in los angeles county?
csu_1
select count(*) from campuses where county = 'los angeles'
Question: how many campuses exist are in the county of la? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY...
how many campuses exist are in the county of la?
csu_1
select campus from campuses where county = 'los angeles'
Question: list the campuses in los angeles county. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. facult...
list the campuses in los angeles county.
csu_1
select campus from campuses where county = 'los angeles'
Question: what campuses are in los angeles county? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. facult...
what campuses are in los angeles county?
csu_1
select degrees from campuses as t1 join degrees as t2 on t1.id = t2.campus where t1.campus = 'san jose state university' and t2.year = 2000
Question: how many degrees were conferred in 'san jose state university' in 2000? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, Tot...
how many degrees were conferred in 'san jose state university' in 2000?
csu_1
select degrees from campuses as t1 join degrees as t2 on t1.id = t2.campus where t1.campus = 'san jose state university' and t2.year = 2000
Question: how many degrees were conferred at san jose state university in 2000? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, Total...
how many degrees were conferred at san jose state university in 2000?
csu_1
select degrees from campuses as t1 join degrees as t2 on t1.id = t2.campus where t1.campus = 'san francisco state university' and t2.year = 2001
Question: what are the degrees conferred in 'san francisco state university' in 2001. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year,...
what are the degrees conferred in 'san francisco state university' in 2001.
csu_1
select degrees from campuses as t1 join degrees as t2 on t1.id = t2.campus where t1.campus = 'san francisco state university' and t2.year = 2001
Question: what degrees were conferred in san francisco state university in the year 2001? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Y...
what degrees were conferred in san francisco state university in the year 2001?
csu_1
select sum(faculty) from faculty where year = 2002
Question: how many faculty is there in total in the year of 2002? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY,...
how many faculty is there in total in the year of 2002?
csu_1
select sum(faculty) from faculty where year = 2002
Question: how many faculty, in total, are there in the year 2002? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY,...
how many faculty, in total, are there in the year 2002?
csu_1
select faculty from faculty as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2002 and t2.campus = 'long beach state university'
Question: what is the number of faculty lines in campus 'long beach state university' in 2002? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Camp...
what is the number of faculty lines in campus 'long beach state university' in 2002?
csu_1
select faculty from faculty as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2002 and t2.campus = 'long beach state university'
Question: what is the number of faculty at long beach state university in 2002? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, Total...
what is the number of faculty at long beach state university in 2002?
csu_1
select faculty from faculty as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = 'san francisco state university'
Question: how many faculty lines are there in 'san francisco state university' in year 2004? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus...
how many faculty lines are there in 'san francisco state university' in year 2004?
csu_1
select faculty from faculty as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = 'san francisco state university'
Question: how many faculty lines are there at san francisco state university in 2004? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year,...
how many faculty lines are there at san francisco state university in 2004?
csu_1
select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.faculty >= 600 and t2.faculty <= 1000 and t1.year = 2004
Question: list the campus that have between 600 and 1000 faculty lines in year 2004. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, ...
list the campus that have between 600 and 1000 faculty lines in year 2004.
csu_1
select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.faculty >= 600 and t2.faculty <= 1000 and t1.year = 2004
Question: what are the campuses that had between 600 and 1000 faculty members in 2004? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year...
what are the campuses that had between 600 and 1000 faculty members in 2004?
csu_1
select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2002 order by t3.degrees desc limit 1
Question: how many faculty lines are there in the university that conferred the most number of degrees in year 2002? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduat...
how many faculty lines are there in the university that conferred the most number of degrees in year 2002?
csu_1
select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2002 order by t3.degrees desc limit 1
Question: how many faculty members did the university that conferred the most degrees in 2002 have? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments ->...
how many faculty members did the university that conferred the most degrees in 2002 have?
csu_1
select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2001 order by t3.degrees limit 1
Question: how many faculty lines are there in the university that conferred the least number of degrees in year 2001? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Gradua...
how many faculty lines are there in the university that conferred the least number of degrees in year 2001?
csu_1
select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2001 order by t3.degrees limit 1
Question: how many faculty members are at the university that gave the least number of degrees in 2001? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollment...
how many faculty members are at the university that gave the least number of degrees in 2001?
csu_1
select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = 'san jose state university'
Question: how many undergraduates are there in 'san jose state university' in year 2004? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Ye...
how many undergraduates are there in 'san jose state university' in year 2004?
csu_1
select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = 'san jose state university'
Question: how many undergraduates are there at san jose state | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE...
how many undergraduates are there at san jose state
csu_1
select sum(t1.graduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = 'san francisco state university'
Question: what is the number of graduates in 'san francisco state university' in year 2004? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus,...
what is the number of graduates in 'san francisco state university' in year 2004?
csu_1
select sum(t1.graduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = 'san francisco state university'
Question: how many people graduated from san francisco state university in 2004? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, Tota...
how many people graduated from san francisco state university in 2004?
csu_1
select t1.campusfee from csu_fees as t1 join campuses as t2 on t1.campus = t2.id where t2.campus = 'san francisco state university' and t1.year = 2000
Question: what is the campus fee of 'san francisco state university' in year 2000? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, To...
what is the campus fee of 'san francisco state university' in year 2000?
csu_1
select t1.campusfee from csu_fees as t1 join campuses as t2 on t1.campus = t2.id where t2.campus = 'san francisco state university' and t1.year = 2000
Question: in the year 2000, what is the campus fee for san francisco state university? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year...
in the year 2000, what is the campus fee for san francisco state university?
csu_1
select t1.campusfee from csu_fees as t1 join campuses as t2 on t1.campus = t2.id where t2.campus = 'san jose state university' and t1.year = 2000
Question: find the campus fee of 'san jose state university' in year 2000. | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrol...
find the campus fee of 'san jose state university' in year 2000.
csu_1
select t1.campusfee from csu_fees as t1 join campuses as t2 on t1.campus = t2.id where t2.campus = 'san jose state university' and t1.year = 2000
Question: what is the campus fee in the year 2000 for san jose state university? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, Tota...
what is the campus fee in the year 2000 for san jose state university?
csu_1
select count(*) from campuses
Question: how many csu campuses are there? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. faculty -> Cam...
how many csu campuses are there?
csu_1
select count(*) from campuses
Question: what is the total number of campuses? | Tables: Campuses -> Id, Campus, Location, County, Year. csu_fees -> Campus, Year, CampusFee. degrees -> Year, Campus, Degrees. discipline_enrollments -> Campus, Discipline, Year, Undergraduate, Graduate. enrollments -> Campus, Year, TotalEnrollment_AY, FTE_AY. faculty -...
what is the total number of campuses?
candidate_poll
select count(*) from candidate
Question: how many candidates are there? | Tables: candidate -> Candidate_ID, People_ID, Poll_Source, Date, Support_rate, Consider_rate, Oppose_rate, Unsure_rate. people -> People_ID, Sex, Name, Date_of_Birth, Height, Weight. | Joins: candidate.People_ID = people.People_ID,
how many candidates are there?
candidate_poll
select count(*) from candidate
Question: count the number of candidates. | Tables: candidate -> Candidate_ID, People_ID, Poll_Source, Date, Support_rate, Consider_rate, Oppose_rate, Unsure_rate. people -> People_ID, Sex, Name, Date_of_Birth, Height, Weight. | Joins: candidate.People_ID = people.People_ID,
count the number of candidates.
candidate_poll
select poll_source from candidate group by poll_source order by count(*) desc limit 1
Question: which poll resource provided the most number of candidate information? | Tables: candidate -> Candidate_ID, People_ID, Poll_Source, Date, Support_rate, Consider_rate, Oppose_rate, Unsure_rate. people -> People_ID, Sex, Name, Date_of_Birth, Height, Weight. | Joins: candidate.People_ID = people.People_ID,
which poll resource provided the most number of candidate information?
candidate_poll
select poll_source from candidate group by poll_source order by count(*) desc limit 1
Question: return the poll resource associated with the most candidates. | Tables: candidate -> Candidate_ID, People_ID, Poll_Source, Date, Support_rate, Consider_rate, Oppose_rate, Unsure_rate. people -> People_ID, Sex, Name, Date_of_Birth, Height, Weight. | Joins: candidate.People_ID = people.People_ID,
return the poll resource associated with the most candidates.
candidate_poll
select support_rate from candidate order by support_rate desc limit 3
Question: what are the top 3 highest support rates? | Tables: candidate -> Candidate_ID, People_ID, Poll_Source, Date, Support_rate, Consider_rate, Oppose_rate, Unsure_rate. people -> People_ID, Sex, Name, Date_of_Birth, Height, Weight. | Joins: candidate.People_ID = people.People_ID,
what are the top 3 highest support rates?
candidate_poll
select support_rate from candidate order by support_rate desc limit 3
Question: return the top 3 greatest support rates. | Tables: candidate -> Candidate_ID, People_ID, Poll_Source, Date, Support_rate, Consider_rate, Oppose_rate, Unsure_rate. people -> People_ID, Sex, Name, Date_of_Birth, Height, Weight. | Joins: candidate.People_ID = people.People_ID,
return the top 3 greatest support rates.