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

Convert text to sql: What is the starting year of the oldest technicians? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select starting_year from technician order by age desc limit 1

### Instruction:

Convert text to sql: What is the starting year for the oldest technician? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select starting_year from technician order by age desc limit 1

### Instruction:

Convert text to sql: Show different teams of technicians and the number of technicians in each team. | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select team , count ( * ) from technician group by team

### Instruction:

Convert text to sql: For each team, how many technicians are there? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select team , count ( * ) from technician group by team

### Instruction:

Convert text to sql: Please show the team that has the most number of technicians. | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select team from technician group by team order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What are the teams with the most technicians? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select team from technician group by team order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: Show the team that have at least two technicians. | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select team from technician group by team having count ( * ) >= 2

### Instruction:

Convert text to sql: What is the team with at least 2 technicians? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select team from technician group by team having count ( * ) >= 2

### Instruction:

Convert text to sql: Show names of technicians and series of machines they are assigned to repair. | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select technician.name , machine.machine_series from repair_assignment join machine on repair_assignment.machine_id = machine.machine_id join technician on repair_assignment.technician_id = technician.technician_id
### Instruction:

Convert text to sql: What are the names of technicians and the machine series that they repair? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select technician.name , machine.machine_series from repair_assignment join machine on repair_assignment.machine_id = machine.machine_id join technician on repair_assignment.technician_id = technician.technician_id

### Instruction:

Convert text to sql: Show names of technicians in ascending order of quality rank of the machine they are assigned. | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select technician.name from repair_assignment join machine on repair_assignment.machine_id = machine.machine_id join technician on repair_assignment.technician_id = technician.technician_id order by machine.quality_rank asc

### Instruction:

Convert text to sql: What are the names of the technicians by ascending order of quality rank for the machine they are assigned? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select technician.name from repair_assignment join machine on repair_assignment.machine_id = machine.machine_id join technician on repair_assignment.technician_id = technician.technician_id order by machine.quality_rank asc
### Instruction:

Convert text to sql: Show names of technicians who are assigned to repair machines with value point more than 70. | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select technician.name from repair_assignment join machine on repair_assignment.machine_id = machine.machine_id join technician on repair_assignment.technician_id = technician.technician_id where machine.value_points > 70

### Instruction:

Convert text to sql: What are the names of the technicians that are assigned to repair machines with more point values than 70? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select technician.name from repair_assignment join machine on repair_assignment.machine_id = machine.machine_id join technician on repair_assignment.technician_id = technician.technician_id where machine.value_points > 70

### Instruction:

Convert text to sql: Show names of technicians and the number of machines they are assigned to repair. | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select technician.name , count ( * ) from repair_assignment join technician on repair_assignment.technician_id = technician.technician_id group by technician.name

### Instruction:

Convert text to sql: What are the names of the technicians  and how many machines are they assigned to repair? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select technician.name , count ( * ) from repair_assignment join technician on repair_assignment.technician_id = technician.technician_id group by technician.name
### Instruction:

Convert text to sql: List the names of technicians who have not been assigned to repair machines. | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select name from technician where technician_id not in ( select technician_id from repair_assignment )

### Instruction:

Convert text to sql: What are the names of the technicians that have not been assigned to repair machines? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select name from technician where technician_id not in ( select technician_id from repair_assignment )

### Instruction:

Convert text to sql: Show the starting years shared by technicians from team "CLE" and "CWS". | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select starting_year from technician where team = 'CLE' intersect select starting_year from technician where team = 'CWS'

### Instruction:

Convert text to sql: What are the starting years shared by the technicians from the team "CLE" or "CWS"? | repair : repair_id , name , launch_date , notes | machine : machine_id , making_year , class , team , machine_series , value_points , quality_rank | technician : technician_id , name , team , starting_year , age | repair_assignment : technician_id , repair_id , machine_id | repair_assignment.machine_id = machine.machine_id | repair_assignment.repair_id = repair.repair_id | repair_assignment.technician_id = technician.technician_id | 

### Response:

select starting_year from technician where team = 'CLE' intersect select starting_year from technician where team = 'CWS'
### Instruction:

Convert text to sql: How many entrepreneurs 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 ( * ) from entrepreneur

### Instruction:

Convert text to sql: Count the 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 count ( * ) from entrepreneur

### Instruction:

Convert text to sql: List the companies of entrepreneurs 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 company from entrepreneur order by money_requested desc

### Instruction:

Convert text to sql: What are the companies of entrepreneurs, ordered descending by 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 company from entrepreneur order by money_requested desc

### Instruction:

Convert text to sql: List the companies and the investors 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 company , investor from entrepreneur

### Instruction:

Convert text to sql: What are the companies and investors that correspond to each 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 company , investor from entrepreneur

### Instruction:

Convert text to sql: What is the average money requested by all 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 avg ( money_requested ) from entrepreneur

### Instruction:

Convert text to sql: Return the average money requested across all 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 avg ( money_requested ) from entrepreneur
### Instruction:

Convert text to sql: What are the names of people in ascending order of weight? | 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 name from people order by weight asc

### Instruction:

Convert text to sql: Return the names of people, ordered by weight ascending. | 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 name from people order by weight asc

### Instruction:

Convert text to sql: What are the names 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 people.name from entrepreneur join people on entrepreneur.people_id = people.people_id

### Instruction:

Convert text to sql: Return the names 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 people.name from entrepreneur join people on entrepreneur.people_id = people.people_id

### Instruction:

Convert text to sql: What are the names of entrepreneurs whose investor is not "Rachel Elnaugh"? | 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 people.name from entrepreneur join people on entrepreneur.people_id = people.people_id where entrepreneur.investor != 'Rachel Elnaugh'

### Instruction:

Convert text to sql: Return the names of entrepreneurs do no not have the investor Rachel Elnaugh. | 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 people.name from entrepreneur join people on entrepreneur.people_id = people.people_id where entrepreneur.investor != 'Rachel Elnaugh'

### Instruction:

Convert text to sql: What is the weight of the shortest person? | 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 weight from people order by height asc limit 1

### Instruction:

Convert text to sql: Return the weight of the shortest person. | 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 weight from people order by height asc limit 1
### Instruction:

Convert text to sql: What is the name of the entrepreneur with the greatest weight? | 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 people.name from entrepreneur join people on entrepreneur.people_id = people.people_id order by people.weight desc limit 1

### Instruction:

Convert text to sql: Return the name of the heaviest 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 people.name from entrepreneur join people on entrepreneur.people_id = people.people_id order by people.weight desc limit 1

### Instruction:

Convert text to sql: What is the total money requested by entrepreneurs with height more than 1.85? | 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 sum ( entrepreneur.money_requested ) from entrepreneur join people on entrepreneur.people_id = people.people_id where people.height > 1.85

### Instruction:

Convert text to sql: Give the total money requested by entrepreneurs who are taller than 1.85. | 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 sum ( entrepreneur.money_requested ) from entrepreneur join people on entrepreneur.people_id = people.people_id where people.height > 1.85

### Instruction:

Convert text to sql: What are the dates of birth of entrepreneurs with investor "Simon Woodroffe" or "Peter Jones"? | 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 people.date_of_birth from entrepreneur join people on entrepreneur.people_id = people.people_id where entrepreneur.investor = 'Simon Woodroffe' or entrepreneur.investor = 'Peter Jones'

### Instruction:

Convert text to sql: Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones. | 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 people.date_of_birth from entrepreneur join people on entrepreneur.people_id = people.people_id where entrepreneur.investor = 'Simon Woodroffe' or entrepreneur.investor = 'Peter Jones'