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

Convert text to sql: Find the number of activities available. | 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 count ( _ ) from _ | select count ( * ) from activity
### Instruction:

Convert text to sql: How many faculty members participate in an activity? | 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 count ( distinct _ ) from _ | select count ( distinct facid ) from faculty_participates_in
### Instruction:

Convert text to sql: Give me the number of faculty members who participate in an activity | 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 count ( distinct _ ) from _ | select count ( distinct facid ) from faculty_participates_in
### Instruction:

Convert text to sql: Show the ids of the faculty who don't participate in any activity. | 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 _ except select _ from _ | select facid from faculty except select facid from faculty_participates_in
### Instruction:

Convert text to sql: Which faculty do not participate in any activity? Find their faculty 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 _ except select _ from _ | select facid from faculty except select facid from faculty_participates_in
### Instruction:

Convert text to sql: Show the ids of all the faculty members who participate in an activity and advise a student. | 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 _ intersect select _ from _ | select facid from faculty_participates_in intersect select advisor from student
### Instruction:

Convert text to sql: What are ids of the faculty members who not only participate in an activity but also advise a student. | 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 _ intersect select _ from _ | select facid from faculty_participates_in intersect select advisor from student
### Instruction:

Convert text to sql: How many activities does Mark Giuliano participate in? | 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 count ( _ ) from _ where _ | select count ( * ) from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid where faculty.fname = 'Mark' and faculty.lname = 'Giuliano'
### Instruction:

Convert text to sql: Find the number of activities Mark Giuliano is involved in. | 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 count ( _ ) from _ where _ | select count ( * ) from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid where faculty.fname = 'Mark' and faculty.lname = 'Giuliano'
### Instruction:

Convert text to sql: Show the names of all the activities Mark Giuliano participates in. | 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 _ | select activity.activity_name from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid join activity on activity.actid = faculty_participates_in.actid where faculty.fname = 'Mark' and faculty.lname = 'Giuliano'
### Instruction:

Convert text to sql: What are the names of the activities Mark Giuliano is involved in | 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 _ | select activity.activity_name from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid join activity on activity.actid = faculty_participates_in.actid where faculty.fname = 'Mark' and faculty.lname = 'Giuliano'
### Instruction:

Convert text to sql: Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in. | 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 _ , count ( _ ) , _ from _ group by _ | select faculty.fname , faculty.lname , count ( * ) , faculty.facid from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid group by faculty.facid
### Instruction:

Convert text to sql: What is the first and last name of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in. | 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 _ , count ( _ ) , _ from _ group by _ | select faculty.fname , faculty.lname , count ( * ) , faculty.facid from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid group by faculty.facid
### Instruction:

Convert text to sql: Show all the activity names and the number of faculty involved in each activity. | 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 _ , count ( _ ) from _ group by _ | select activity.activity_name , count ( * ) from activity join faculty_participates_in on activity.actid = faculty_participates_in.actid group by activity.actid
### Instruction:

Convert text to sql: How many faculty members participate in each activity? Return the activity names and the number of faculty members. | 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 _ , count ( _ ) from _ group by _ | select activity.activity_name , count ( * ) from activity join faculty_participates_in on activity.actid = faculty_participates_in.actid group by activity.actid
### Instruction:

Convert text to sql: What is the first and last name of the faculty participating in the most activities? | 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 _ group by _ order by count ( _ ) desc limit _ | select faculty.fname , faculty.lname from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid group by faculty.facid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Find the first and last name of the faculty who is involved in the largest number of activities. | 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 _ group by _ order by count ( _ ) desc limit _ | select faculty.fname , faculty.lname from faculty join faculty_participates_in on faculty.facid = faculty_participates_in.facid group by faculty.facid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the name of the activity that has the most faculty members involved in? | 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 _ group by _ order by count ( _ ) desc limit _ | select activity.activity_name from activity join faculty_participates_in on activity.actid = faculty_participates_in.actid group by activity.actid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which activity has the most faculty members participating in? Find the activity name. | 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 _ group by _ order by count ( _ ) desc limit _ | select activity.activity_name from activity join faculty_participates_in on activity.actid = faculty_participates_in.actid group by activity.actid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show the ids of the students who don't participate in any activity. | 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 _ except select _ from _ | select stuid from student except select stuid from participates_in
### Instruction:

Convert text to sql: What are the ids of the students who are not involved in any activity | 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 _ except select _ from _ | select stuid from student except select stuid from participates_in
### Instruction:

Convert text to sql: Show the ids for all the students who participate in an activity and are under 20. | 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 _ intersect select _ from _ where _ | select stuid from participates_in intersect select stuid from student where age < 20
### Instruction:

Convert text to sql: What are the ids of the students who are under 20 years old and are involved in at least one activity. | 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 _ intersect select _ from _ where _ | select stuid from participates_in intersect select stuid from student where age < 20
### Instruction:

Convert text to sql: What is the first and last name of the student participating in the most activities? | 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 _ group by _ order by count ( _ ) desc limit _ | select student.fname , student.lname from student join participates_in on student.stuid = participates_in.stuid group by student.stuid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Tell me the first and last name of the student who has the most activities. | 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 _ group by _ order by count ( _ ) desc limit _ | select student.fname , student.lname from student join participates_in on student.stuid = participates_in.stuid group by student.stuid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the name of the activity with the most students? | 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 _ group by _ order by count ( _ ) desc limit _ | select activity.activity_name from activity join participates_in on activity.actid = participates_in.actid group by activity.actid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Find the name of the activity that has the largest number of student participants. | 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 _ group by _ order by count ( _ ) desc limit _ | select activity.activity_name from activity join participates_in on activity.actid = participates_in.actid group by activity.actid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Find the first names of the faculty members who are playing Canoeing or 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 distinct _ from _ where _ | select distinct 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' or activity.activity_name = 'Kayaking'
### Instruction:

Convert text to sql: Which faculty members are playing either Canoeing or Kayaking? Tell me their first names. | 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 distinct _ from _ where _ | select distinct 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' or activity.activity_name = 'Kayaking'
### Instruction:

Convert text to sql: Find the first names of professors who are not playing Canoeing or 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 _ except select distinct _ from _ where _ | select lname from faculty where rank = 'Professor' except select distinct 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' or activity.activity_name = 'Kayaking'
### Instruction:

Convert text to sql: What are the first names of the professors who do not play Canoeing or Kayaking as activities? | 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 _ except select distinct _ from _ where _ | select lname from faculty where rank = 'Professor' except select distinct 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' or activity.activity_name = 'Kayaking'