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

Convert text to sql: What is the investor that has invested in the most number of entrepreneurs? | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select investor from entrepreneur group by investor order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Return the investor who have invested in the greatest number of entrepreneurs. | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select investor from entrepreneur group by investor order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What are the investors that have invested in at least two entrepreneurs? | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select investor from entrepreneur group by investor having count ( * ) >= 2
### Instruction:

Convert text to sql: Return the investors who have invested in two or more entrepreneurs. | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select investor from entrepreneur group by investor having count ( * ) >= 2
### Instruction:

Convert text to sql: List the names of entrepreneurs and their companies in descending order of money requested? | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select people.name , entrepreneur.company from entrepreneur join people on entrepreneur.people_id = people.people_id order by entrepreneur.money_requested asc
### Instruction:

Convert text to sql: What are the names of entrepreneurs and their corresponding investors, ordered descending by the amount of money requested? | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select people.name , entrepreneur.company from entrepreneur join people on entrepreneur.people_id = people.people_id order by entrepreneur.money_requested asc
### Instruction:

Convert text to sql: List the names of people that are not entrepreneurs. | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from people where people_id not in ( select people_id from entrepreneur )
### Instruction:

Convert text to sql: What are the names of people who are not entrepreneurs? | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from people where people_id not in ( select people_id from entrepreneur )
### Instruction:

Convert text to sql: Show the investors shared by entrepreneurs that requested more than 140000 and entrepreneurs that requested less than 120000. | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select investor from entrepreneur where money_requested > 140000 intersect select investor from entrepreneur where money_requested < 120000
### Instruction:

Convert text to sql: What are the investors who have invested in both entrepreneurs who requested more than 140000 and entrepreneurs who requested less than 120000? | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select investor from entrepreneur where money_requested > 140000 intersect select investor from entrepreneur where money_requested < 120000
### Instruction:

Convert text to sql: How many distinct companies are there? | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct company ) from entrepreneur
### Instruction:

Convert text to sql: Count the number of different companies. | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct company ) from entrepreneur
### Instruction:

Convert text to sql: Show the company of the tallest entrepreneur. | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select entrepreneur.company from entrepreneur join people on entrepreneur.people_id = people.people_id order by people.height desc limit 1
### Instruction:

Convert text to sql: Which company was started by the entrepreneur with the greatest height? | entrepreneur : entrepreneur_id , people_id , company , money_requested , investor | people : people_id , name , height , weight , date_of_birth | entrepreneur.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select entrepreneur.company from entrepreneur join people on entrepreneur.people_id = people.people_id order by people.height desc limit 1
### Instruction:

Convert text to sql: How many perpetrators are there? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select count ( _ ) from _ | select count ( * ) from perpetrator
### Instruction:

Convert text to sql: List the date of perpetrators in descending order of the number of people killed. | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc | select date from perpetrator order by killed desc
### Instruction:

Convert text to sql: List the number of people injured by perpetrators in ascending order. | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select injured from perpetrator order by injured asc
### Instruction:

Convert text to sql: What is the average number of people injured by all perpetrators? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select avg ( _ ) from _ | select avg ( injured ) from perpetrator
### Instruction:

Convert text to sql: What is the location of the perpetrator with the largest kills. | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select location from perpetrator order by killed desc limit 1
### Instruction:

Convert text to sql: What are the names of people in ascending order of height? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select name from people order by height asc
### Instruction:

Convert text to sql: What are the names of perpetrators? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ | select people.name from people join perpetrator on people.people_id = perpetrator.people_id
### Instruction:

Convert text to sql: What are the names of perpetrators whose country is not "China"? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ where _ | select people.name from people join perpetrator on people.people_id = perpetrator.people_id where perpetrator.country != 'China'
### Instruction:

Convert text to sql: What is the name of the perpetrator with the biggest weight. | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select people.name from people join perpetrator on people.people_id = perpetrator.people_id order by people.weight desc limit 1
### Instruction:

Convert text to sql: What is the total kills of the perpetrators with height more than 1.84. | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select sum ( _ ) from _ where _ | select sum ( perpetrator.killed ) from people join perpetrator on people.people_id = perpetrator.people_id where people.height > 1.84
### Instruction:

Convert text to sql: What are the names of perpetrators in country "China" or "Japan"? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ where _ | select people.name from people join perpetrator on people.people_id = perpetrator.people_id where perpetrator.country = 'China' or perpetrator.country = 'Japan'
### Instruction:

Convert text to sql: What are the heights of perpetrators in descending order of the number of people they injured? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc | select people.height from people join perpetrator on people.people_id = perpetrator.people_id order by perpetrator.injured desc
### Instruction:

Convert text to sql: What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there. | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select country , count ( * ) from perpetrator group by country
### Instruction:

Convert text to sql: What is the country that has the most perpetrators? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ , count ( _ ) from _ group by _ order by count ( _ ) desc limit _ | select country , count ( * ) from perpetrator group by country order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What are the countries that have at least two perpetrators? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ , count ( _ ) from _ group by _ having count ( _ ) >= _ | select country , count ( * ) from perpetrator group by country having count ( * ) >= 2
### Instruction:

Convert text to sql: List the names of perpetrators in descending order of the year. | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc | select people.name from people join perpetrator on people.people_id = perpetrator.people_id order by perpetrator.year desc
### Instruction:

Convert text to sql: List the names of people that are not perpetrators. | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from people where people_id not in ( select people_id from perpetrator )
### Instruction:

Convert text to sql: Show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20. | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select country from perpetrator where injured > 50 intersect select country from perpetrator where injured < 20
### Instruction:

Convert text to sql: How many distinct locations of perpetrators are there? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct location ) from perpetrator
### Instruction:

Convert text to sql: Show the date of the tallest perpetrator. | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select perpetrator.date from people join perpetrator on people.people_id = perpetrator.people_id order by people.height desc limit 1
### Instruction:

Convert text to sql: In which year did the most recent crime happen? | perpetrator : perpetrator_id , people_id , date , year , location , country , killed , injured | people : people_id , name , height , weight , home town | perpetrator.people_id = people.people_id | 

### Response:

select max ( _ ) from _ | select max ( year ) from perpetrator
### Instruction:

Convert text to sql: Report the name of all 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'
### Instruction:

Convert text to sql: What campuses are located in the county of Los Angeles? | 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'
### Instruction:

Convert text to sql: What are the names of all campuses located at Chico? | 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 location = 'Chico'
### Instruction:

Convert text to sql: What campuses are located in Chico? | 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 location = 'Chico'
### Instruction:

Convert text to sql: Find all the campuses opened in 1958. | 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 year = 1958
### Instruction:

Convert text to sql: What are the campuses that opened in 1958? | 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 year = 1958
### Instruction:

Convert text to sql: Find the name of the campuses opened before 1800. | 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 year < 1800
### Instruction:

Convert text to sql: What campuses opened before 1800? | 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 year < 1800
### Instruction:

Convert text to sql: Which campus was opened between 1935 and 1939? | 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 year >= 1935 and year <= 1939
### Instruction:

Convert text to sql: What campuses opened between 1935 and 1939? | 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 year >= 1935 and year <= 1939
### Instruction:

Convert text to sql: Find the name of the campuses that is 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'