richardr1126/spider-skeleton-context-instruct huggingface dataset:
### Instruction:

Convert text to sql: What campuses are located in Northridge, Los Angeles or in San Francisco, San Francisco? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ union select _ from _ where _ | select campus from campuses where location = 'Northridge' and county = 'Los Angeles' union select campus from campuses where location = 'San Francisco' and county = 'San Francisco'
### Instruction:

Convert text to sql: What is the campus fee of "San Jose State University" in year 1996? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ | select campusfee from campuses join csu_fees on campuses.id = csu_fees.campus where campuses.campus = 'San Jose State University' and csu_fees.year = 1996
### Instruction:

Convert text to sql: What is the campus fee for San Jose State University in 1996? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ | select campusfee from campuses join csu_fees on campuses.id = csu_fees.campus where campuses.campus = 'San Jose State University' and csu_fees.year = 1996
### Instruction:

Convert text to sql: What is the campus fee of "San Francisco State University" in year 1996? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ | select campusfee from campuses join csu_fees on campuses.id = csu_fees.campus where campuses.campus = 'San Francisco State University' and csu_fees.year = 1996
### Instruction:

Convert text to sql: What is the campus fee for San Francisco State University in 1996? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ | select campusfee from campuses join csu_fees on campuses.id = csu_fees.campus where campuses.campus = 'San Francisco State University' and csu_fees.year = 1996
### Instruction:

Convert text to sql: Find the count of universities whose campus fee is greater than the average campus fee. | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select count ( _ ) from _ where _ > ( select avg ( _ ) from _ ) | select count ( * ) from csu_fees where campusfee > ( select avg ( campusfee ) from csu_fees )
### Instruction:

Convert text to sql: How many universities have a campus fee higher than average? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select count ( _ ) from _ where _ > ( select avg ( _ ) from _ ) | select count ( * ) from csu_fees where campusfee > ( select avg ( campusfee ) from csu_fees )
### Instruction:

Convert text to sql: How many universities have a campus fee greater than the average? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select count ( _ ) from _ where _ > ( select avg ( _ ) from _ ) | select count ( * ) from csu_fees where campusfee > ( select avg ( campusfee ) from csu_fees )
### Instruction:

Convert text to sql: Which university is in Los Angeles county and opened after 1950? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ | select campus from campuses where county = 'Los Angeles' and year > 1950
### Instruction:

Convert text to sql: What campuses are located in Los Angeles county and opened after 1950? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ | select campus from campuses where county = 'Los Angeles' and year > 1950
### Instruction:

Convert text to sql: Which year has the most degrees conferred? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ group by _ order by sum ( _ ) desc limit _ | select year from degrees group by year order by sum ( degrees ) desc limit 1
### Instruction:

Convert text to sql: In what year was the most degrees conferred? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ group by _ order by sum ( _ ) desc limit _ | select year from degrees group by year order by sum ( degrees ) desc limit 1
### Instruction:

Convert text to sql: Which campus has the most degrees conferred in all times? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ group by _ order by sum ( _ ) desc limit _ | select campus from degrees group by campus order by sum ( degrees ) desc limit 1
### Instruction:

Convert text to sql: What campus has the most degrees  conferrred over its entire existence? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ group by _ order by sum ( _ ) desc limit _ | select campus from degrees group by campus order by sum ( degrees ) desc limit 1
### Instruction:

Convert text to sql: Which campus has the most faculties in year 2003? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ order by _ desc limit _ | select campuses.campus from campuses join faculty on campuses.id = faculty.campus where faculty.year = 2003 order by faculty.faculty desc limit 1
### Instruction:

Convert text to sql: What campus has the most faculties in 2003? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ order by _ desc limit _ | select campuses.campus from campuses join faculty on campuses.id = faculty.campus where faculty.year = 2003 order by faculty.faculty desc limit 1
### Instruction:

Convert text to sql: Find the average fee on a CSU campus in 1996 | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select avg ( _ ) from _ where _ | select avg ( campusfee ) from csu_fees where year = 1996
### Instruction:

Convert text to sql: What is the average fee for a CSU campus in the year of 1996? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select avg ( _ ) from _ where _ | select avg ( campusfee ) from csu_fees where year = 1996
### Instruction:

Convert text to sql: What is the average fee on a CSU campus in 2005? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select avg ( _ ) from _ where _ | select avg ( campusfee ) from csu_fees where year = 2005
### Instruction:

Convert text to sql: What is the average fee for a CSU campus in the year of 2005? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select avg ( _ ) from _ where _ | select avg ( campusfee ) from csu_fees where year = 2005
### Instruction:

Convert text to sql: report the total number of degrees granted between 1998 and 2002. | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ , sum ( _ ) from _ where _ group by _ | select campuses.campus , sum ( degrees.degrees ) from campuses join degrees on campuses.id = degrees.campus where degrees.year >= 1998 and degrees.year <= 2002 group by campuses.campus
### Instruction:

Convert text to sql: how many degrees were conferred between 1998 and 2002? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ , sum ( _ ) from _ where _ group by _ | select campuses.campus , sum ( degrees.degrees ) from campuses join degrees on campuses.id = degrees.campus where degrees.year >= 1998 and degrees.year <= 2002 group by campuses.campus
### Instruction:

Convert text to sql: For each Orange county campus, report the number of degrees granted after 2000. | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ , sum ( _ ) from _ where _ group by _ | select campuses.campus , sum ( degrees.degrees ) from campuses join degrees on campuses.id = degrees.campus where campuses.county = 'Orange' and degrees.year >= 2000 group by campuses.campus
### Instruction:

Convert text to sql: What is the total number of degrees granted after 2000 for each Orange county campus? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ , sum ( _ ) from _ where _ group by _ | select campuses.campus , sum ( degrees.degrees ) from campuses join degrees on campuses.id = degrees.campus where campuses.county = 'Orange' and degrees.year >= 2000 group by campuses.campus
### Instruction:

Convert text to sql: Find the names of the campus which has more faculties in 2002 than every campus in Orange county. | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ > ( select max ( _ ) from _ where _ ) | select campuses.campus from campuses join faculty on campuses.id = faculty.campus where faculty.year = 2002 and faculty > ( select max ( faculty ) from campuses join faculty on campuses.id = faculty.campus where faculty.year = 2002 and campuses.county = 'Orange' )
### Instruction:

Convert text to sql: What are the names of the campus that have more faculties in 2002 than the maximum number in Orange county? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ > ( select max ( _ ) from _ where _ ) | select campuses.campus from campuses join faculty on campuses.id = faculty.campus where faculty.year = 2002 and faculty > ( select max ( faculty ) from campuses join faculty on campuses.id = faculty.campus where faculty.year = 2002 and campuses.county = 'Orange' )
### Instruction:

Convert text to sql: What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ | select campuses.campus from campuses join enrollments on campuses.id = enrollments.campus where enrollments.year = 1956 and totalenrollment_ay > 400 and fte_ay > 200
### Instruction:

Convert text to sql: What campus started in year 1956, has more than 200 full time students, and more than 400 students enrolled? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ | select campuses.campus from campuses join enrollments on campuses.id = enrollments.campus where enrollments.year = 1956 and totalenrollment_ay > 400 and fte_ay > 200
### Instruction:

Convert text to sql: How many campuses are there in Los Angeles county? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from campuses where county = 'Los Angeles'
### Instruction:

Convert text to sql: How many campuses exist are in the county of LA? | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from campuses where county = 'Los Angeles'
### Instruction:

Convert text to sql: List the campuses in Los Angeles county. | 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 : campus , year , faculty | csu_fees.campus = campuses.id | degrees.campus = campuses.id | discipline_enrollments.campus = campuses.id | enrollments.campus = campuses.id | faculty.campus = campuses.id | 

### Response:

select _ from _ where _ | select campus from campuses where county = 'Los Angeles'