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

Convert text to sql: Find the first names of the faculty members who participate in Canoeing and Kayaking. | activity : actid , activity_name | participates_in : stuid , actid | faculty_participates_in : facid , actid | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | participates_in.actid = activity.actid | participates_in.stuid = student.stuid | faculty_participates_in.actid = activity.actid | faculty_participates_in.facid = faculty.facid | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select faculty.lname from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid join activity on faculty_participates_in.actid = faculty_participates_in.actid where activity.activity_name = 'Canoeing' intersect select faculty.lname from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid join activity on faculty_participates_in.actid = faculty_participates_in.actid where activity.activity_name = 'Kayaking'
### Instruction:

Convert text to sql: What are the first names of the faculty members playing both Canoeing and Kayaking? | activity : actid , activity_name | participates_in : stuid , actid | faculty_participates_in : facid , actid | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | participates_in.actid = activity.actid | participates_in.stuid = student.stuid | faculty_participates_in.actid = activity.actid | faculty_participates_in.facid = faculty.facid | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select faculty.lname from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid join activity on faculty_participates_in.actid = faculty_participates_in.actid where activity.activity_name = 'Canoeing' intersect select faculty.lname from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid join activity on faculty_participates_in.actid = faculty_participates_in.actid where activity.activity_name = 'Kayaking'
### Instruction:

Convert text to sql: Find the ids of the students who participate in Canoeing and Kayaking. | activity : actid , activity_name | participates_in : stuid , actid | faculty_participates_in : facid , actid | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | participates_in.actid = activity.actid | participates_in.stuid = student.stuid | faculty_participates_in.actid = activity.actid | faculty_participates_in.facid = faculty.facid | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select participates_in.stuid from participates_in join activity on activity.actid = activity.actid where activity.activity_name = 'Canoeing' intersect select participates_in.stuid from participates_in join activity on activity.actid = activity.actid where activity.activity_name = 'Kayaking'
### Instruction:

Convert text to sql: Which students participate in both Canoeing and Kayaking as their activities? Tell me their student ids. | activity : actid , activity_name | participates_in : stuid , actid | faculty_participates_in : facid , actid | student : stuid , lname , fname , age , sex , major , advisor , city_code | faculty : facid , lname , fname , rank , sex , phone , room , building | participates_in.actid = activity.actid | participates_in.stuid = student.stuid | faculty_participates_in.actid = activity.actid | faculty_participates_in.facid = faculty.facid | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select participates_in.stuid from participates_in join activity on activity.actid = activity.actid where activity.activity_name = 'Canoeing' intersect select participates_in.stuid from participates_in join activity on activity.actid = activity.actid where activity.activity_name = 'Kayaking'
### Instruction:

Convert text to sql: Find the name of the airport in the city of Goroka. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ where _ | select name from airports where city = 'Goroka'
### Instruction:

Convert text to sql: What are the names of the airports in the city of Goroka? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ where _ | select name from airports where city = 'Goroka'
### Instruction:

Convert text to sql: Find the name, city, country, and altitude (or elevation) of the airports in the city of New York. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ where _ | select name , city , country , elevation from airports where city = 'New York'
### Instruction:

Convert text to sql: What is the name, city, country, and elevation for every airport in the city of New York? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ where _ | select name , city , country , elevation from airports where city = 'New York'
### Instruction:

Convert text to sql: How many airlines are there? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

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

Convert text to sql: What is the total number of airlines? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

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

Convert text to sql: How many airlines does Russia has? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from airlines where country = 'Russia'
### Instruction:

Convert text to sql: What is the number of airlines based in Russia? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from airlines where country = 'Russia'
### Instruction:

Convert text to sql: What is the maximum elevation of all airports in the country of Iceland? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select max ( _ ) from _ where _ | select max ( elevation ) from airports where country = 'Iceland'
### Instruction:

Convert text to sql: What is the highest elevation of an airport in the country of Iceland? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select max ( _ ) from _ where _ | select max ( elevation ) from airports where country = 'Iceland'
### Instruction:

Convert text to sql: Find the name of the airports located in Cuba or Argentina. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ where _ | select name from airports where country = 'Cuba' or country = 'Argentina'
### Instruction:

Convert text to sql: What are the names of all airports in Cuba or Argentina? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ where _ | select name from airports where country = 'Cuba' or country = 'Argentina'
### Instruction:

Convert text to sql: Find the country of the airlines whose name starts with 'Orbit'. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ where _ like _ | select country from airlines where name like 'Orbit%'
### Instruction:

Convert text to sql: What are the countries of all airlines whose names start with Orbit? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ where _ like _ | select country from airlines where name like 'Orbit%'
### Instruction:

Convert text to sql: Find the name of airports whose altitude is between -50 and 50. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ where _ between _ and _ | select name from airports where elevation between -50 and 50
### Instruction:

Convert text to sql: What are the names of all airports whose elevation is between -50 and 50? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ where _ between _ and _ | select name from airports where elevation between -50 and 50
### Instruction:

Convert text to sql: Which country is the airport that has the highest altitude located in? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ order by _ desc limit _ | select country from airports order by elevation desc limit 1
### Instruction:

Convert text to sql: What is the country of the airport with the highest elevation? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ order by _ desc limit _ | select country from airports order by elevation desc limit 1
### Instruction:

Convert text to sql: Find the number of airports whose name contain the word 'International'. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select count ( _ ) from _ where _ like _ | select count ( * ) from airports where name like '%International%'
### Instruction:

Convert text to sql: How many airports' names have the word Interanation in them? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select count ( _ ) from _ where _ like _ | select count ( * ) from airports where name like '%International%'
### Instruction:

Convert text to sql: How many different cities do have some airport in the country of Greenland? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select count ( distinct _ ) from _ where _ | select count ( distinct city ) from airports where country = 'Greenland'
### Instruction:

Convert text to sql: In how many cities are there airports in the country of Greenland? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select count ( distinct _ ) from _ where _ | select count ( distinct city ) from airports where country = 'Greenland'
### Instruction:

Convert text to sql: Find the number of routes operated by American Airlines. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from airlines join routes on airlines.alid = routes.alid where airlines.name = 'American Airlines'
### Instruction:

Convert text to sql: How many routes does American Airlines operate? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from airlines join routes on airlines.alid = routes.alid where airlines.name = 'American Airlines'
### Instruction:

Convert text to sql: Find the number of routes whose destination airports are in Canada. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from airports join routes on airports.apid = routes.dst_apid where country = 'Canada'
### Instruction:

Convert text to sql: How many routes end in a Canadian airport? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from airports join routes on airports.apid = routes.dst_apid where country = 'Canada'
### Instruction:

Convert text to sql: Find the name, city, and country of the airport that has the lowest altitude. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ order by _ asc limit _ | select name , city , country from airports order by elevation asc limit 1
### Instruction:

Convert text to sql: What is the name, city, and country of the airport with the lowest altitude? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ order by _ asc limit _ | select name , city , country from airports order by elevation asc limit 1
### Instruction:

Convert text to sql: Find the name, city, and country of the airport that has the highest latitude. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ order by _ desc limit _ | select name , city , country from airports order by elevation desc limit 1
### Instruction:

Convert text to sql: What is the name, city, and country of the airport with the highest elevation? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ order by _ desc limit _ | select name , city , country from airports order by elevation desc limit 1
### Instruction:

Convert text to sql: Find the name and city of the airport which is the destination of the most number of routes. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select airports.name , airports.city , routes.dst_apid from airports join routes on airports.apid = routes.dst_apid group by routes.dst_apid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the name and city of the airport that the most routes end at? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select airports.name , airports.city , routes.dst_apid from airports join routes on airports.apid = routes.dst_apid group by routes.dst_apid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Find the names of the top 10 airlines that operate the most number of routes. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select airlines.name , routes.alid from airlines join routes on airlines.alid = routes.alid group by routes.alid order by count ( * ) desc limit 10
### Instruction:

Convert text to sql: For the airline ids with the top 10 most routes operated, what are their names? | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select airlines.name , routes.alid from airlines join routes on airlines.alid = routes.alid group by routes.alid order by count ( * ) desc limit 10
### Instruction:

Convert text to sql: Find the name and city of the airport which is the source for the most number of flight routes. | routes : rid , dst_apid , dst_ap , src_apid , src_ap , alid , airline , codeshare | airports : apid , name , city , country , x , y , elevation , iata , icao | airlines : alid , name , iata , icao , callsign , country , active | routes.alid = airlines.alid | routes.src_apid = airports.apid | routes.dst_apid = airports.apid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select airports.name , airports.city , routes.src_apid from airports join routes on airports.apid = routes.src_apid group by routes.src_apid order by count ( * ) desc limit 1