aherntech/sparc huggingface dataset:
Database: activity_1
Question sequence:
Show the first name and last name for all faculty.
What about those with rank as Instructor?
SQL query sequence:
SELECT fname ,  lname FROM Faculty
SELECT fname ,  lname FROM Faculty WHERE Rank  =  "Instructor"
Final question: Show the first name and last name for all the instructors.
Final SQL: SELECT fname ,  lname FROM Faculty WHERE Rank  =  "Instructor"
Database: activity_1
Question sequence:
Show the building for all Faculty.
Show how many faculty members each building houses.
SQL query sequence:
SELECT building FROM Faculty
SELECT building ,  count(*) FROM Faculty GROUP BY building
Final question: Show all the buildings along with the number of faculty members the buildings have.
Final SQL: SELECT building ,  count(*) FROM Faculty GROUP BY building
Database: activity_1
Question sequence:
Show the building for all Faculty.
Show the number of faculty members for each of those buildings.
List them in descending order of the count.
Which building has the most?
SQL query sequence:
SELECT building FROM Faculty
SELECT building, count(*) FROM Faculty GROUP BY building
SELECT building, count(*) FROM Faculty GROUP BY building ORDER BY count(*) DESC
SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1
Final question: Which building has most faculty members?
Final SQL: SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question sequence:
Show the building for all Faculty.
How about those for professors?
For each of the buildings, show the number of professors.
Which of them have at least 10?
SQL query sequence:
SELECT building FROM Faculty
SELECT building FROM Faculty WHERE rank  =  "Professor"
SELECT building, count(*) FROM Faculty WHERE rank  =  "Professor" GROUP BY building
SELECT building FROM Faculty WHERE rank  =  "Professor" GROUP BY building HAVING count(*)  >=  10
Final question: Show all the buildings that have at least 10 professors.
Final SQL: SELECT building FROM Faculty WHERE rank  =  "Professor" GROUP BY building HAVING count(*)  >=  10
Database: activity_1
Question sequence:
Show the rank for all faculty members.
For each of them, show the number of faculty members.
SQL query sequence:
SELECT rank FROM Faculty
SELECT rank ,  count(*) FROM Faculty GROUP BY rank
Final question: For each faculty rank, show the number of faculty members who have it.
Final SQL: SELECT rank ,  count(*) FROM Faculty GROUP BY rank
Database: activity_1
Question sequence:
Show all rank and sex for each faculty member.
Show the counts of faculty grouped by both rank and sex.
SQL query sequence:
SELECT rank ,  sex FROM Faculty
SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex
Final question: Show all the ranks and the number of male and female faculty for each rank.
Final SQL: SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex
Database: activity_1
Question sequence:
Show the rank for all Faculty.
For each of them, show the number of faculty members.
Order them by the number.
Which rank has the smallest number?
SQL query sequence:
SELECT rank FROM Faculty
SELECT rank, count(*) FROM Faculty GROUP BY rank
SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*)
SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1
Final question: Which rank has the smallest number of faculty members?
Final SQL: SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1
Database: activity_1
Question sequence:
Show the sex for each Faculty member.
Show the result for only assistant professors.
How many assistant professors are there of each sex?
SQL query sequence:
SELECT sex FROM Faculty
SELECT sex FROM Faculty WHERE rank  =  "AsstProf"
SELECT sex ,  count(*) FROM Faculty WHERE rank  =  "AsstProf" GROUP BY sex
Final question: Show the number of male and female assistant professors.
Final SQL: SELECT sex ,  count(*) FROM Faculty WHERE rank  =  "AsstProf" GROUP BY sex
Database: activity_1
Question sequence:
Show the first name and last name for all Faculty.
Also show the names of students that each one advises.
Who is Linda Smith's advisor?
SQL query sequence:
SELECT fname ,  lname FROM Faculty
SELECT T1.fname ,  T1.lname, T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor
SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T2.fname  =  "Linda" AND T2.lname  =  "Smith"
Final question: What are the first name and last name of Linda Smith's advisor?
Final SQL: SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T2.fname  =  "Linda" AND T2.lname  =  "Smith"
Database: activity_1
Question sequence:
Show the student ids.
Also show the ranks of their advisors.
Show the student id for those whose advisors are professors?
SQL query sequence:
SELECT StuID FROM Student
SELECT T2.StuID, T1.rank FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor
SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.rank  =  "Professor"
Final question: Show the ids of students whose advisors are professors.
Final SQL: SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.rank  =  "Professor"
Database: activity_1
Question sequence:
Show first name and last name for all the students.
Also show their advisor's first name and last name.
Who are advised by Michael Goodrich?
SQL query sequence:
SELECT fname ,  lname FROM Student
SELECT T2.fname ,  T2.lname, T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor
SELECT T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.fname  =  "Michael" AND T1.lname  =  "Goodrich"
Final question: Show first name and last name for all the students advised by Michael Goodrich.
Final SQL: SELECT T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.fname  =  "Michael" AND T1.lname  =  "Goodrich"
Database: activity_1
Question sequence:
Show the faculty id of each faculty member
For each of them, also show the number of students he or she advises.
SQL query sequence:
SELECT FacID from Faculty
SELECT T1.FacID ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID
Final question: Show the faculty id of each faculty member, along with the number of students he or she advises.
Final SQL: SELECT T1.FacID ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID
Database: activity_1
Question sequence:
Show all the faculty ranks
For each of those ranks, show the number of students advised.
SQL query sequence:
SELECT rank FROM Faculty
SELECT T1.rank ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.rank
Final question: Show all the faculty ranks and the number of students advised by each rank.
Final SQL: SELECT T1.rank ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.rank
Database: activity_1
Question sequence:
Show the first and last name of the faculty.
For each faculty member, also count the number of students advised.
Show the names in descending order of the number.
Who has the most?
SQL query sequence:
SELECT fname ,  lname FROM Faculty
SELECT T1.fname ,  T1.lname, count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID
SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC
SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1
Final question: What are the first and last name of the faculty who has the most students?
Final SQL: SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question sequence:
Show the ids for all the faculty members
For each of them, also count the number of students advised.
Who have at least 2 students?
SQL query sequence:
SELECT FacID FROM Faculty
SELECT T1.FacID, count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID
SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID HAVING count(*)  >=  2
Final question: Show the ids for all the faculty members who have at least 2 students.
Final SQL: SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID HAVING count(*)  >=  2
Database: activity_1
Question sequence:
Show all faculty members advising a student.
Show ids for those who don't.
SQL query sequence:
SELECT advisor FROM Student
SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student
Final question: Show ids for the faculty members who don't advise any student.
Final SQL: SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student
Database: activity_1
Question sequence:
Show information for all activities.
Show the name for those.
SQL query sequence:
SELECT * FROM Activity
SELECT activity_name FROM Activity
Final question: What activities do we have?
Final SQL: SELECT activity_name FROM Activity
Database: activity_1
Question sequence:
Show info for all activities.
How many are there?
SQL query sequence:
SELECT * FROM Activity
SELECT count(*) FROM Activity
Final question: How many activities do we have?
Final SQL: SELECT count(*) FROM Activity
Database: activity_1
Question sequence:
Show the faculty id of members participating in an activity.
How many such members are there?
SQL query sequence:
select FacID FROM Faculty_participates_in
SELECT count(DISTINCT FacID) FROM Faculty_participates_in
Final question: How many faculty members participate in an activity?
Final SQL: SELECT count(DISTINCT FacID) FROM Faculty_participates_in
Database: activity_1
Question sequence:
Show the ids of the faculty who participate in an activity.
Show the ids for those who don't.
SQL query sequence:
SELECT FacID FROM Faculty_participates_in
SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in
Final question: Show the ids of the faculty who don't participate in any activity.
Final SQL: SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in
Database: activity_1
Question sequence:
Show the ids of all the faculty members who participate in an activity.
Show the ids of all the faculty members who advise a student.
Show the ids of all the faculty members who do both.
SQL query sequence:
SELECT FacID FROM Faculty_participates_in
SELECT advisor FROM Student
SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
Final question: Show the ids of all the faculty members who participate in an activity and advise a student.
Final SQL: SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
Database: activity_1
Question sequence:
Show first and last name and activity ids for all faculty participating in activities.
How many activities does Mark Giuliano participate in?
SQL query sequence:
SELECT T1.fname, T1.lname, T2.actid FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID
SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID WHERE T1.fname  =  "Mark" AND T1.lname  =  "Giuliano"
Final question: How many activities does Mark Giuliano participate in?
Final SQL: SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID WHERE T1.fname  =  "Mark" AND T1.lname  =  "Giuliano"
Database: activity_1
Question sequence:
Show the names of all the activities.
Show the names of those with faculty participation.
What are those activities which Mark Giuliano participates in?
SQL query sequence:
SELECT activity_name FROM Activity
SELECT T3.activity_name, T1.fname, T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid
SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid WHERE T1.fname  =  "Mark" AND T1.lname  =  "Giuliano"
Final question: Show the names of all the activities Mark Giuliano participates in.
Final SQL: SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid WHERE T1.fname  =  "Mark" AND T1.lname  =  "Giuliano"
Database: activity_1
Question sequence:
Show the first and last name of all the faculty members.
Which of those have participated in some activity?
For each of them, also show the number of activities they participated in.
SQL query sequence:
SELECT  fname ,  lname FROM Faculty
SELECT  T1.fname ,  T1.lname  FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID
SELECT  T1.fname ,  T1.lname ,  count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID
Final question: 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.
Final SQL: SELECT  T1.fname ,  T1.lname ,  count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID
Database: activity_1
Question sequence:
Show all the activity names.
For each of them, how many faculty are involved?
SQL query sequence:
SELECT activity_name from Activity
SELECT T1.activity_name ,  count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID
Final question: Show all the activity names and the number of faculty involved in each activity.
Final SQL: SELECT T1.activity_name ,  count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID
Database: activity_1
Question sequence:
Show the first and last name for all faculty.
For each of them, also count the number of activities they participate in.
Sort the names in the descending order of this count.
Who participates in the most activities?
SQL query sequence:
SELECT  fname ,  lname FROM Faculty
SELECT  T1.fname ,  T1.lname, count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID
SELECT  T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC
SELECT  T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1
Final question: What is the first and last name of the faculty participating in the most activities?
Final SQL: SELECT  T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question sequence:
Show all activity names.
For each of them, also show the number of faculty members involved.
Sort the names in the descending order of the faculty counts.
Which activity has the most?
SQL query sequence:
SELECT activity_name FROM Activity
SELECT T1.activity_name, count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID
SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC
SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1
Final question: What is the name of the activity that has the most faculty members involved in?
Final SQL: SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question sequence:
Show the student ids who participate in an activity.
Show the ids of those who don't.
SQL query sequence:
SELECT StuID FROM Participates_in
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in
Final question: Show the ids of the students who don't participate in any activity.
Final SQL: SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in
Database: activity_1
Question sequence:
Show the ids for the students who participate in an activity.
Among those, who are under 20?
SQL query sequence:
SELECT StuID FROM Participates_in
SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age  <  20
Final question: Show the ids for all the students who participate in an activity and are under 20.
Final SQL: SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age  <  20
Database: activity_1
Question sequence:
Show the first and last name of the student.
For each of them, count the number of activities.
Sort the names in descending order by the number of activities.
Who has the most?
SQL query sequence:
SELECT fname ,  lname FROM Student
SELECT T1.fname ,  T1.lname, count(*) FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID
SELECT T1.fname ,  T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC
SELECT T1.fname ,  T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1
Final question: What is the first and last name of the student participating in the most activities?
Final SQL: SELECT T1.fname ,  T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question sequence:
Show the names of activities.
For each of them, also show the number of students.
Sort the names in descending order by this number.
Which has the most?
SQL query sequence:
SELECT activity_name FROM Activity
SELECT T1.activity_name, count(*) FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID
SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC
SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1
Final question: What is the name of the activity with the most students?
Final SQL: SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question sequence:
Show the first names of the faculty members.
Which of them participate in canoeing?
How about Kayaking?
Show the first names for those participating in either of the two.
SQL query sequence:
SELECT fname FROM Faculty
SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing'
SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'
SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
Final question: Find the first names of the faculty members who are playing Canoeing or Kayaking.
Final SQL: SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
Database: activity_1
Question sequence:
Show the first name of faculty and their activity names.
Which of them practice canoeing or kayaking?
Which of them do not?
Who among these are professors?
SQL query sequence:
SELECT T1.fname, T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid
SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
SELECT fname FROM faculty EXCEPT SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
SELECT fname FROM faculty WHERE rank  =  'Professor' EXCEPT SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
Final question: Find the first names of professors who are not playing Canoeing or Kayaking.
Final SQL: SELECT fname FROM faculty WHERE rank  =  'Professor' EXCEPT SELECT DISTINCT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
Database: activity_1
Question sequence:
Find the first names of the faculty members
Show the activity names for them.
Which of them participate in canoeing?
Which of them participate in kayaking?
Which of them participate in both.
SQL query sequence:
SELECT fname FROM Faculty
SELECT T1.fname, T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid
SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing'
SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'
SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' INTERSECT SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'
Final question: Find the first names of the faculty members who participate in Canoeing and Kayaking.
Final SQL: SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' INTERSECT SELECT T1.fname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'
Database: workshop_paper
Question sequence:
How many authors are from college "Florida"?
How about the college "Temple"?
What is the sum of the number of authors from these two colleges?
Please show the authors' names.
SQL query sequence:
SELECT COUNT(Author) FROM submission WHERE College  =  "Florida"
SELECT COUNT(Author) FROM submission WHERE College  =  "Temple"
SELECT COUNT(Author) FROM submission WHERE College  =  "Florida" OR College  =  "Temple"
SELECT Author FROM submission WHERE College  =  "Florida" OR College  =  "Temple"
Final question: Show the names of authors from college "Florida" or "Temple"
Final SQL: SELECT Author FROM submission WHERE College  =  "Florida" OR College  =  "Temple"
Database: workshop_paper
Question sequence:
How many authors have sumbitted their work?
Please show their names.
What is the author of the submission with the lowest score?
How about the highest score?
SQL query sequence:
SELECT COUNT(Author) FROM submission
SELECT Author FROM submission
SELECT Author FROM submission ORDER BY Scores ASC LIMIT 1
SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1
Final question: What is the author of the submission with the highest score?
Final SQL: SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1