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

Convert text to sql: What are the names and location of the wrestlers? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select name , location from wrestler

### Instruction:

Convert text to sql: Give the names and locations of all wrestlers. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select name , location from wrestler

### Instruction:

Convert text to sql: What are the elimination moves of wrestlers whose team is "Team Orton"? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select elimination_move from elimination where team = 'Team Orton'

### Instruction:

Convert text to sql: Return the elimination movies of wrestlers on Team Orton. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select elimination_move from elimination where team = 'Team Orton'

### Instruction:

Convert text to sql: What are the names of wrestlers and the elimination moves? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select wrestler.name , elimination.elimination_move from elimination join wrestler on elimination.wrestler_id = wrestler.wrestler_id

### Instruction:

Convert text to sql: Give the names of wrestlers and their elimination moves. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select wrestler.name , elimination.elimination_move from elimination join wrestler on elimination.wrestler_id = wrestler.wrestler_id

### Instruction:

Convert text to sql: List the names of wrestlers and the teams in elimination in descending order of days held. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select wrestler.name , elimination.team from elimination join wrestler on elimination.wrestler_id = wrestler.wrestler_id order by wrestler.days_held desc
### Instruction:

Convert text to sql: What are the names of wrestlers and their teams in elimination, ordered descending by days held? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select wrestler.name , elimination.team from elimination join wrestler on elimination.wrestler_id = wrestler.wrestler_id order by wrestler.days_held desc

### Instruction:

Convert text to sql: List the time of elimination of the wrestlers with largest days held. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select elimination.time from elimination join wrestler on elimination.wrestler_id = wrestler.wrestler_id order by wrestler.days_held desc limit 1

### Instruction:

Convert text to sql: What is the time of elimination for the wrestler with the most days held? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select elimination.time from elimination join wrestler on elimination.wrestler_id = wrestler.wrestler_id order by wrestler.days_held desc limit 1

### Instruction:

Convert text to sql: Show times of elimination of wrestlers with days held more than 50. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select elimination.time from elimination join wrestler on elimination.wrestler_id = wrestler.wrestler_id where wrestler.days_held > 50

### Instruction:

Convert text to sql: What are the times of elimination for wrestlers with over 50 days held? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select elimination.time from elimination join wrestler on elimination.wrestler_id = wrestler.wrestler_id where wrestler.days_held > 50

### Instruction:

Convert text to sql: Show different teams in eliminations and the number of eliminations from each team. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select team , count ( * ) from elimination group by team
### Instruction:

Convert text to sql: How many eliminations did each team have? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

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

### Instruction:

Convert text to sql: Show teams that have suffered more than three eliminations. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select team from elimination group by team having count ( * ) > 3

### Instruction:

Convert text to sql: Which teams had more than 3 eliminations? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select team from elimination group by team having count ( * ) > 3

### Instruction:

Convert text to sql: Show the reign and days held of wrestlers. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select reign , days_held from wrestler

### Instruction:

Convert text to sql: What are the reigns and days held of all wrestlers? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select reign , days_held from wrestler

### Instruction:

Convert text to sql: What are the names of wrestlers days held less than 100? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select name from wrestler where days_held < 100

### Instruction:

Convert text to sql: Return the names of wrestlers with fewer than 100 days held. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select name from wrestler where days_held < 100

### Instruction:

Convert text to sql: Please show the most common reigns of wrestlers. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select reign from wrestler group by reign order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which reign is the most common among wrestlers? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select reign from wrestler group by reign order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: List the locations that are shared by more than two wrestlers. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select location from wrestler group by location having count ( * ) > 2

### Instruction:

Convert text to sql: Which locations are shared by more than two wrestlers? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select location from wrestler group by location having count ( * ) > 2

### Instruction:

Convert text to sql: List the names of wrestlers that have not been eliminated. | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select name from wrestler where wrestler_id not in ( select wrestler_id from elimination )

### Instruction:

Convert text to sql: What are the names of wrestlers who have never been eliminated? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select name from wrestler where wrestler_id not in ( select wrestler_id from elimination )

### Instruction:

Convert text to sql: Show the teams that have both wrestlers eliminated by "Orton" and wrestlers eliminated by "Benjamin". | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select team from elimination where eliminated_by = 'Orton' intersect select team from elimination where eliminated_by = 'Benjamin'

### Instruction:

Convert text to sql: What are the teams that have both wrestlers eliminated by Orton and wrestlers eliminated by Benjamin? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select team from elimination where eliminated_by = 'Orton' intersect select team from elimination where eliminated_by = 'Benjamin'
### Instruction:

Convert text to sql: What is the number of distinct teams that suffer elimination? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select count ( distinct team ) from elimination

### Instruction:

Convert text to sql: How many different teams have had eliminated wrestlers? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select count ( distinct team ) from elimination

### Instruction:

Convert text to sql: Show the times of elimination by "Punk" or "Orton". | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select time from elimination where eliminated_by = 'Punk' or eliminated_by = 'Orton'

### Instruction:

Convert text to sql: What are the times of elimination for any instances in which the elimination was done by Punk or Orton? | wrestler : wrestler_id , name , reign , days_held , location , event | elimination : elimination_id , wrestler_id , team , eliminated_by , elimination_move , time | elimination.wrestler_id = wrestler.wrestler_id | 

### Response:

select time from elimination where eliminated_by = 'Punk' or eliminated_by = 'Orton'
### Instruction:

Convert text to sql: How many schools are there? | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select count ( * ) from school

### Instruction:

Convert text to sql: Count the number of schools. | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select count ( * ) from school

### Instruction:

Convert text to sql: Show all school names in alphabetical order. | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select school_name from school order by school_name asc

### Instruction:

Convert text to sql: List the name, location, mascot for all schools. | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select school_name , location , mascot from school

### Instruction:

Convert text to sql: What are the total and average enrollment of all schools? | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select sum ( enrollment ) , avg ( enrollment ) from school
### Instruction:

Convert text to sql: What are the mascots for schools with enrollments above the average? | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select mascot from school where enrollment > ( select avg ( enrollment ) from school )

### Instruction:

Convert text to sql: List the name of the school with the smallest enrollment. | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select school_name from school order by enrollment asc limit 1

### Instruction:

Convert text to sql: Show the average, maximum, minimum enrollment of all schools. | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select avg ( enrollment ) , max ( enrollment ) , min ( enrollment ) from school

### Instruction:

Convert text to sql: Show each county along with the number of schools and total enrollment in each county. | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select county , count ( * ) , sum ( enrollment ) from school group by county

### Instruction:

Convert text to sql: How many donors have endowment for school named "Glenn"? | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select count ( distinct endowment.donator_name ) from endowment join school on endowment.school_id = school.school_id where school.school_name = 'Glenn'
### Instruction:

Convert text to sql: List each donator name and the amount of endowment in descending order of the amount of endowment. | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select donator_name , sum ( amount ) from endowment group by donator_name order by sum ( amount ) desc

### Instruction:

Convert text to sql: List the names of the schools without any endowment. | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select school_name from school where school_id not in ( select school_id from endowment )

### Instruction:

Convert text to sql: List all the names of schools with an endowment amount smaller than or equal to 10. | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select school.school_name from endowment join school on endowment.school_id = school.school_id group by endowment.school_id having sum ( endowment.amount ) <= 10

### Instruction:

Convert text to sql: Show the names of donors who donated to both school "Glenn" and "Triton." | school : school_id , school_name , location , mascot , enrollment , ihsaa_class , ihsaa_football_class , county | budget : school_id , year , budgeted , total_budget_percent_budgeted , invested , total_budget_percent_invested , budget_invested_percent | endowment : endowment_id , school_id , donator_name , amount | budget.school_id = school.school_id | endowment.school_id = school.school_id | 

### Response:

select endowment.donator_name from endowment join school on endowment.school_id = school.school_id where school.school_name = 'Glenn' intersect select endowment.donator_name from endowment join school on endowment.school_id = school.school_id where school.school_name = 'Triton'