richardr1126/spider-context-instruct huggingface dataset:
### 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 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 campus from campuses where county = 'Los Angeles'

### Instruction:

Convert text to sql: What campuses are 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 campus from campuses where county = 'Los Angeles'

### Instruction:

Convert text to sql: How many degrees were conferred in "San Jose State University" in 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 degrees from campuses join degrees on campuses.id = degrees.campus where campuses.campus = 'San Jose State University' and degrees.year = 2000
### Instruction:

Convert text to sql: How many degrees were conferred at San Jose State University in 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 degrees from campuses join degrees on campuses.id = degrees.campus where campuses.campus = 'San Jose State University' and degrees.year = 2000

### Instruction:

Convert text to sql: What are the degrees conferred in "San Francisco State University" in 2001. | 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 degrees from campuses join degrees on campuses.id = degrees.campus where campuses.campus = 'San Francisco State University' and degrees.year = 2001

### Instruction:

Convert text to sql: What degrees were conferred in San Francisco State University in the year 2001? | 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 degrees from campuses join degrees on campuses.id = degrees.campus where campuses.campus = 'San Francisco State University' and degrees.year = 2001

### Instruction:

Convert text to sql: How many faculty is there in total in the year of 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 ( faculty ) from faculty where year = 2002
### Instruction:

Convert text to sql: How many faculty, in total, are there in the year 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 ( faculty ) from faculty where year = 2002

### Instruction:

Convert text to sql: What is the number of faculty lines in campus "Long Beach State University" in 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 faculty from faculty join campuses on faculty.campus = campuses.id where faculty.year = 2002 and campuses.campus = 'Long Beach State University'

### Instruction:

Convert text to sql: What is the number of faculty at Long Beach State University in 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 faculty from faculty join campuses on faculty.campus = campuses.id where faculty.year = 2002 and campuses.campus = 'Long Beach State University'

### Instruction:

Convert text to sql: How many faculty lines are there in "San Francisco State University" in year 2004? | 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 faculty from faculty join campuses on faculty.campus = campuses.id where faculty.year = 2004 and campuses.campus = 'San Francisco State University'
### Instruction:

Convert text to sql: How many faculty lines are there at San Francisco State University in 2004? | 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 faculty from faculty join campuses on faculty.campus = campuses.id where faculty.year = 2004 and campuses.campus = 'San Francisco State University'

### Instruction:

Convert text to sql: List the campus that have between 600 and 1000 faculty lines in year 2004. | 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 campuses.campus from campuses join faculty on campuses.id = faculty.campus where faculty.faculty >= 600 and faculty.faculty <= 1000 and campuses.year = 2004

### Instruction:

Convert text to sql: What are the campuses that had between 600 and 1000 faculty members in 2004? | 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 campuses.campus from campuses join faculty on campuses.id = faculty.campus where faculty.faculty >= 600 and faculty.faculty <= 1000 and campuses.year = 2004

### Instruction:

Convert text to sql: How many faculty lines are there in the university that conferred the most number of degrees in year 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 faculty.faculty from campuses join faculty on campuses.id = faculty.campus join degrees on campuses.id = degrees.campus and faculty.year = degrees.year where faculty.year = 2002 order by degrees.degrees desc limit 1
### Instruction:

Convert text to sql: How many faculty members did the university that conferred the most degrees in 2002 have? | 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 faculty.faculty from campuses join faculty on campuses.id = faculty.campus join degrees on campuses.id = degrees.campus and faculty.year = degrees.year where faculty.year = 2002 order by degrees.degrees desc limit 1

### Instruction:

Convert text to sql: How many faculty lines are there in the university that conferred the least number of degrees in year 2001? | 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 faculty.faculty from campuses join faculty on campuses.id = faculty.campus join degrees on campuses.id = degrees.campus and faculty.year = degrees.year where faculty.year = 2001 order by degrees.degrees asc limit 1

### Instruction:

Convert text to sql: How many faculty members are at the university that gave the least number of degrees in 2001? | 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 faculty.faculty from campuses join faculty on campuses.id = faculty.campus join degrees on campuses.id = degrees.campus and faculty.year = degrees.year where faculty.year = 2001 order by degrees.degrees asc limit 1
### Instruction:

Convert text to sql: How many undergraduates are there in "San Jose State University" in year 2004? | 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 ( discipline_enrollments.undergraduate ) from discipline_enrollments join campuses on discipline_enrollments.campus = campuses.id where discipline_enrollments.year = 2004 and campuses.campus = 'San Jose State University'

### Instruction:

Convert text to sql: How many undergraduates are there at San Jose State | 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 ( discipline_enrollments.undergraduate ) from discipline_enrollments join campuses on discipline_enrollments.campus = campuses.id where discipline_enrollments.year = 2004 and campuses.campus = 'San Jose State University'

### Instruction:

Convert text to sql: What is the number of graduates in "San Francisco State University" in year 2004? | 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 ( discipline_enrollments.graduate ) from discipline_enrollments join campuses on discipline_enrollments.campus = campuses.id where discipline_enrollments.year = 2004 and campuses.campus = 'San Francisco State University'
### Instruction:

Convert text to sql: How many people graduated from San Francisco State University in 2004? | 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 ( discipline_enrollments.graduate ) from discipline_enrollments join campuses on discipline_enrollments.campus = campuses.id where discipline_enrollments.year = 2004 and campuses.campus = 'San Francisco State University'

### Instruction:

Convert text to sql: What is the campus fee of "San Francisco State University" in year 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 csu_fees.campusfee from csu_fees join campuses on csu_fees.campus = campuses.id where campuses.campus = 'San Francisco State University' and csu_fees.year = 2000

### Instruction:

Convert text to sql: In the year 2000, what is the campus fee for San Francisco State University? | 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 csu_fees.campusfee from csu_fees join campuses on csu_fees.campus = campuses.id where campuses.campus = 'San Francisco State University' and csu_fees.year = 2000

### Instruction:

Convert text to sql: Find the campus fee of "San Jose State University" in year 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 csu_fees.campusfee from csu_fees join campuses on csu_fees.campus = campuses.id where campuses.campus = 'San Jose State University' and csu_fees.year = 2000
### Instruction:

Convert text to sql: What is the campus fee in the year 2000 for San Jose State University? | 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 csu_fees.campusfee from csu_fees join campuses on csu_fees.campus = campuses.id where campuses.campus = 'San Jose State University' and csu_fees.year = 2000

### Instruction:

Convert text to sql: How many CSU campuses are there? | 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 campuses

### Instruction:

Convert text to sql: What is the total number of campuses? | 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 campuses