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

Convert text to sql: List all schools and their nicknames in the order of founded year. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select school , nickname from university order by founded asc

### Instruction:

Convert text to sql: What are the different schools and their nicknames, ordered by their founding years? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select school , nickname from university order by founded asc

### Instruction:

Convert text to sql: List all public schools and their locations. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select school , location from university where affiliation = 'Public'

### Instruction:

Convert text to sql: What are the public schools and what are their locations? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select school , location from university where affiliation = 'Public'

### Instruction:

Convert text to sql: When was the school with the largest enrollment founded? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select founded from university order by enrollment desc limit 1

### Instruction:

Convert text to sql: Return the founded year for the school with the largest enrollment. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select founded from university order by enrollment desc limit 1
### Instruction:

Convert text to sql: Find the founded year of the newest non public school. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select founded from university where affiliation != 'Public' order by founded desc limit 1

### Instruction:

Convert text to sql: What is the founded year of the non public school that was founded most recently? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select founded from university where affiliation != 'Public' order by founded desc limit 1

### Instruction:

Convert text to sql: How many schools are in the basketball match? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( distinct school_id ) from basketball_match

### Instruction:

Convert text to sql: Count the number of schools that have had basketball matches. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( distinct school_id ) from basketball_match

### Instruction:

Convert text to sql: What is the highest acc percent score in the competition? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select acc_percent from basketball_match order by acc_percent desc limit 1
### Instruction:

Convert text to sql: Return the highest acc percent across all basketball matches. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select acc_percent from basketball_match order by acc_percent desc limit 1

### Instruction:

Convert text to sql: What is the primary conference of the school that has the lowest acc percent score in the competition? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select university.primary_conference from university join basketball_match on university.school_id = basketball_match.school_id order by basketball_match.acc_percent asc limit 1

### Instruction:

Convert text to sql: Return the primary conference of the school with the lowest acc percentage score. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select university.primary_conference from university join basketball_match on university.school_id = basketball_match.school_id order by basketball_match.acc_percent asc limit 1

### Instruction:

Convert text to sql: What is the team name and acc regular season score of the school that was founded for the longest time? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select basketball_match.team_name , basketball_match.acc_regular_season from university join basketball_match on university.school_id = basketball_match.school_id order by university.founded asc limit 1
### Instruction:

Convert text to sql: Return the name of the team and the acc during the regular season for the school that was founded the earliest. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select basketball_match.team_name , basketball_match.acc_regular_season from university join basketball_match on university.school_id = basketball_match.school_id order by university.founded asc limit 1

### Instruction:

Convert text to sql: Find the location and all games score of the school that has Clemson as its team name. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select basketball_match.all_games , university.location from university join basketball_match on university.school_id = basketball_match.school_id where team_name = 'Clemson'

### Instruction:

Convert text to sql: What are the all games score and location of the school called Clemson? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select basketball_match.all_games , university.location from university join basketball_match on university.school_id = basketball_match.school_id where team_name = 'Clemson'

### Instruction:

Convert text to sql: What are the average enrollment size of the universities that are founded before 1850? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select avg ( enrollment ) from university where founded < 1850

### Instruction:

Convert text to sql: Return the average enrollment of universities founded before 1850. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select avg ( enrollment ) from university where founded < 1850
### Instruction:

Convert text to sql: Show the enrollment and primary_conference of the oldest college. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select enrollment , primary_conference from university order by founded asc limit 1

### Instruction:

Convert text to sql: What are the enrollment and primary conference for the university which was founded the earliest? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select enrollment , primary_conference from university order by founded asc limit 1

### Instruction:

Convert text to sql: What is the total and minimum enrollment of all schools? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( enrollment ) , min ( enrollment ) from university

### Instruction:

Convert text to sql: Return the total and minimum enrollments across all schools. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( enrollment ) , min ( enrollment ) from university

### Instruction:

Convert text to sql: Find the total student enrollment for different affiliation type schools. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( enrollment ) , affiliation from university group by affiliation
### Instruction:

Convert text to sql: What are the total enrollments of universities of each affiliation type? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( enrollment ) , affiliation from university group by affiliation

### Instruction:

Convert text to sql: How many schools do not participate in the basketball match? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( * ) from university where school_id not in ( select school_id from basketball_match )

### Instruction:

Convert text to sql: Count the number of universities that do not participate in the baketball match. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( * ) from university where school_id not in ( select school_id from basketball_match )

### Instruction:

Convert text to sql: Find the schools that were either founded after 1850 or public. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select school from university where founded > 1850 or affiliation = 'Public'

### Instruction:

Convert text to sql: What are the schools that were either founded before 1850 or are public? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select school from university where founded > 1850 or affiliation = 'Public'
### Instruction:

Convert text to sql: Find how many different affiliation types there are. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( distinct affiliation ) from university

### Instruction:

Convert text to sql: Count the number of different affiliation types. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( distinct affiliation ) from university

### Instruction:

Convert text to sql: Find how many school locations have the word 'NY'. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( * ) from university where location like '%NY%'

### Instruction:

Convert text to sql: How many universities have a location that contains NY? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( * ) from university where location like '%NY%'

### Instruction:

Convert text to sql: Find the team names of the universities whose enrollments are smaller than the average enrollment size. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select basketball_match.team_name from university join basketball_match on university.school_id = basketball_match.school_id where enrollment < ( select avg ( enrollment ) from university )
### Instruction:

Convert text to sql: What are the names of teams from universities that have a below average enrollment? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select basketball_match.team_name from university join basketball_match on university.school_id = basketball_match.school_id where enrollment < ( select avg ( enrollment ) from university )

### Instruction:

Convert text to sql: Find the number of universities that have over a 20000 enrollment size for each affiliation type. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( * ) , affiliation from university where enrollment > 20000 group by affiliation

### Instruction:

Convert text to sql: What are the different affiliations, and how many schools with each have an enrollment size of above 20000? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( * ) , affiliation from university where enrollment > 20000 group by affiliation

### Instruction:

Convert text to sql: Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( enrollment ) , affiliation from university where founded > 1850 group by affiliation

### Instruction:

Convert text to sql: What are the different affiliations, and what is the total enrollment of schools founded after 1850 for each enrollment type? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( enrollment ) , affiliation from university where founded > 1850 group by affiliation