aherntech/sparc huggingface dataset:
Database: train_station
Question sequence:
What are the names for all the stations?
What are the names for those serving "Ananthapuri Express" trains?
How about those serving "Guruvayur Express"?
Which serve both?
SQL query sequence:
select name from station
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  "Ananthapuri Express"
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  "Guruvayur Express"
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  "Ananthapuri Express" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  "Guruvayur Express"
Final question: What are the names of the stations which serve both "Ananthapuri Express" and "Guruvayur Express" trains?
Final SQL: SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  "Ananthapuri Express" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id  =  T2.station_id JOIN train AS T3 ON T3.train_id  =  T1.train_id WHERE T3.Name  =  "Guruvayur Express"
Database: train_station
Question sequence:
Show station ids for stations located in London.
Show the names for all trains.
Only show the names for the trains that do not pass any station located in London.
SQL query sequence:
SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id  =  T4.station_id WHERE t4.location  =  "London"
SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id  =  T2.train_id
SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id  =  T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id  =  T4.station_id WHERE t4.location  =  "London")
Final question: Find the names of the trains that do not pass any station located in London.
Final SQL: SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id  =  T2.train_id WHERE T1.station_id NOT IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id  =  T4.station_id WHERE t4.location  =  "London")
Database: club_1
Question sequence:
Tell me the age of the student named Tracy.
Tell me the club she is in.
Tell me the last names of the members of the club "Bootup Baltimore"?
SQL query sequence:
SELECT Age FROM Student WHERE Fname = "Tracy"
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname  =  "Tracy"
SELECT t3.Lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubName  =  "Bootup Baltimore"
Final question: Find the last names of the members of the club "Bootup Baltimore".
Final SQL: SELECT t3.Lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubName  =  "Bootup Baltimore"
Database: club_1
Question sequence:
Tell me the description of the club named "Hopkins Student Enterprises".
How about its location?
Tell me who are the members of the club named "Hopkins Student Enterprises"? Show me the last name.
SQL query sequence:
SELECT ClubDesc FROM Club WHERE ClubName = "Hopkins Student Enterprises"
SELECT ClubLocation FROM Club WHERE ClubName = "Hopkins Student Enterprises"
SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubName  =  "Hopkins Student Enterprises"
Final question: Who are the members of the club named "Hopkins Student Enterprises"? Show the last name.
Final SQL: SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises"
Database: club_1
Question sequence:
Tell me the major of the student named "Eric".
What club did he join?
How many members does the club "Tennis Club" have?
SQL query sequence:
SELECT Major FROM Student WHERE Fname = "Eric"
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname  =  "Eric"
SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Tennis Club"
Final question: How many members does the club "Tennis Club" has?
Final SQL: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Tennis Club"
Database: club_1
Question sequence:
Tell me the positions of the student named Lisa.
Tell me the club she is in.
Show me the the number of members of club "Pen and Paper Gaming".
SQL query sequence:
SELECT Position FROM member_of_club AS t1 JOIN student AS t2 ON t1.stuid  =  t2.stuid WHERE T2.Fname = "Lisa"
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname  =  "Lisa"
SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Pen and Paper Gaming"
Final question: Find the number of members of club "Pen and Paper Gaming".
Final SQL: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Pen and Paper Gaming"
Database: club_1
Question sequence:
Tell me the advisor of "Linda Smith".
Tell me her age.
How many clubs does "Linda Smith" belong to?
SQL query sequence:
SELECT Advisor FROM Student WHERE LName = "Smith" AND Fname = "Linda"
SELECT Age FROM Student WHERE LName = "Smith" AND Fname = "Linda"
SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "Linda" AND t3.lname  =  "Smith"
Final question: How many clubs does "Linda Smith" belong to?
Final SQL: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "Linda" AND t3.lname  =  "Smith"
Database: club_1
Question sequence:
Tell me Paul's sex.
Tell me the number of clubs where he is a member.
What is the number of clubs where "Tracy Kim" is a member?
SQL query sequence:
SELECT Sex FROM Student WHERE Fname = "Paul"
SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname = "Paul"
SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "Tracy" AND t3.lname  =  "Kim"
Final question: Find the number of clubs where "Tracy Kim" is a member.
Final SQL: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "Tracy" AND t3.lname  =  "Kim"
Database: club_1
Question sequence:
Tell me the location of club "Tennis Club".
What is the first name of the members in it?
Tell me all the female members of the club "Bootup Baltimore". Show the first name and last name.
SQL query sequence:
SELECT ClubLocation FROM Club WHERE ClubName = "Tennis Club"
SELECT t3.Fname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubName  =  "Tennis Club"
SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t3.sex  =  "F"
Final question: Find all the female members of club "Bootup Baltimore". Show the first name and last name.
Final SQL: SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t3.sex  =  "F"
Database: club_1
Question sequence:
What is the description of the club named "Hopkins Student Enterprises"?
What are all the female members of the club? Show me the first name.
Who are the male members of the club? Show me the first name and last name.
SQL query sequence:
SELECT ClubDesc FROM Club WHERE ClubName = "Hopkins Student Enterprises"
SELECT t3.fname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises" AND t3.sex  =  "F"
SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises" AND t3.sex  =  "M"
Final question: Find all the male members of club "Hopkins Student Enterprises". Show the first name and last name.
Final SQL: SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises" AND t3.sex  =  "M"
Database: club_1
Question sequence:
Tell me the first names of all the female students.
Tell me their majors.
Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name
SQL query sequence:
SELECT Fname FROM Student WHERE Sex = "F"
SELECT Major FROM Student WHERE Sex = "F"
SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t3.major  =  "600"
Final question: Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name.
Final SQL: SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t3.major  =  "600"
Database: club_1
Question sequence:
Tell me the first names of students whose advisor is 1121.
Tell me the last names of students whose major is 600.
Tell me which club has the most members majoring in "600".
SQL query sequence:
SELECT Fname FROM Student WHERE advisor = 1121
SELECT LName FROM Student WHERE major = 600
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.major  =  "600" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1
Final question: Which club has the most members majoring in "600"?
Final SQL: SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.major  =  "600" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1
Database: club_1
Question sequence:
Tell me the club Andy is in.
What is Andy's sex?
What is the name of the club that has the most female students.
SQL query sequence:
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname  =  "Andy"
SELECT Sex FROM Student WHERE Fname = "Andy"
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.sex  =  "F" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1
Final question: Find the name of the club that has the most female students.
Final SQL: SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.sex  =  "F" GROUP BY t1.clubname ORDER BY count(*) DESC LIMIT 1
Database: club_1
Question sequence:
How many students are in club "Bootup Baltimore"?
Tell me its location.
What is the first and last name of the president of this club?
SQL query sequence:
SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore"
SELECT ClubLocation FROM Club WHERE ClubName = "Bootup Baltimore"
SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t2.position  =  "President"
Final question: What are the first and last name of the president of the club "Bootup Baltimore"?
Final SQL: SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t2.position  =  "President"
Database: club_1
Question sequence:
Tell me the position of the student Jandy.
Tell me the club she is in.
Who is the "CTO" of club "Hopkins Student Enterprises"? Show the first name and last name.
SQL query sequence:
SELECT Position FROM member_of_club AS t1 JOIN student AS t2 ON t1.stuid  =  t2.stuid WHERE T2.Fname = "Jandy"
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.Fname  =  "Jandy"
SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises" AND t2.position  =  "CTO"
Final question: Who is the "CTO" of club "Hopkins Student Enterprises"? Show the first name and last name.
Final SQL: SELECT t3.fname ,  t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises" AND t2.position  =  "CTO"
Database: club_1
Question sequence:
How many clubs are there in AKW?
Tell me their name.
How many different roles are there in the club "Bootup Baltimore"?
SQL query sequence:
SELECT COUNT(*) FROM Club WHERE ClubLocation = "AKW"
SELECT ClubName FROM Club WHERE ClubLocation = "AKW"
SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid WHERE t1.clubname  =  "Bootup Baltimore"
Final question: How many different roles are there in the club "Bootup Baltimore"?
Final SQL: SELECT count(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid WHERE t1.clubname  =  "Bootup Baltimore"
Database: club_1
Question sequence:
How many students are there living in NYC?
Tell me the clubs they are in.
Tell me how many members of "Bootup Baltimore" are older than 18?
SQL query sequence:
SELECT COUNT(*) FROM Student WHERE city_code = "NYC"
SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  "NYC"
SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t3.age  >  18
Final question: How many members of "Bootup Baltimore" are older than 18?
Final SQL: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t3.age  >  18
Database: club_1
Question sequence:
What's the age of the student named Derek?
Tell me the age of students in the club "Bootup Baltimore"?
How many members of that club are younger than 18?
SQL query sequence:
SELECT Age FROM Student WHERE Fname = "Derek"
SELECT Age FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore"
SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t3.age  <  18
Final question: How many members of club "Bootup Baltimore" are younger than 18?
Final SQL: SELECT count(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore" AND t3.age  <  18
Database: club_1
Question sequence:
Tell me first names of the students living in the city with city code "LON"
How about that of city with city code "BAL"
Tell me the names of all the clubs that have at least a member from the city with city code "BAL".
SQL query sequence:
SELECT Fname FROM Student WHERE city_code = "LON"
SELECT Fname FROM Student WHERE city_code = "BAL"
SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  "BAL"
Final question: Find the names of all the clubs that have at least a member from the city with city code "BAL".
Final SQL: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  "BAL"
Database: club_1
Question sequence:
Tell me the location of the club "Bootup Baltimore".
Tell me the city code of the cities where at least a member of that club live in.
What are the names of the clubs that have at least a member from the city with the city code "HOU"?
SQL query sequence:
SELECT ClubLocation FROM Club WHERE ClubName = "Bootup Baltimore"
SELECT t3.city_code FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.ClubName = "Bootup Baltimore"
SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  "HOU"
Final question: Find the names of the clubs that have at least a member from the city with city code "HOU".
Final SQL: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.city_code  =  "HOU"
Database: club_1
Question sequence:
Tell me the age of the student named "Eric Tai".
How about his advisor?
How many clubs does the student named "Eric Tai" belong to?
SQL query sequence:
SELECT Age FROM Student WHERE Fname  =  "Eric" AND LName  =  "Tai"
SELECT Advisor FROM Student WHERE Fname  =  "Eric" AND LName  =  "Tai"
SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "Eric" AND t3.lname  =  "Tai"
Final question: How many clubs does the student named "Eric Tai" belong to?
Final SQL: SELECT count(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "Eric" AND t3.lname  =  "Tai"
Database: club_1
Question sequence:
Tell me the city code of the city where "Davis Steven" lives.
What is his major?
Tell me the clubs having "Davis Steven" as a member.
SQL query sequence:
SELECT city_code FROM Student WHERE Lname  =  "Davis" AND FName  =  "Steven"
SELECT Major FROM Student WHERE Lname  =  "Davis" AND FName  =  "Steven"
SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "Davis" AND t3.lname  =  "Steven"
Final question: List the clubs having "Davis Steven" as a member.
Final SQL: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.fname  =  "Davis" AND t3.lname  =  "Steven"
Database: club_1
Question sequence:
What is the student id of the student with first name "Arthur"?
Who is his advisor?
Tell me the clubs that have at least a member with advisor "1121".
SQL query sequence:
SELECT StuID FROM Student WHERE Fname = "Arthur"
SELECT Advisor FROM Student WHERE Fname = "Arthur"
SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.advisor  =  1121
Final question: List the clubs that have at least a member with advisor "1121".
Final SQL: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t3.advisor  =  1121
Database: club_1
Question sequence:
Tell me the age of the members of the club "Tennis Club".
How about that of the club "Bootup Baltimore"?
Can you show me the average number?
SQL query sequence:
SELECT t3.age FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Tennis Club"
SELECT t3.age FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore"
SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore"
Final question: What is the average age of the members of the club "Bootup Baltimore"?
Final SQL: SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Bootup Baltimore"
Database: club_1
Question sequence:
Tell me the number of females in club "Hopkins Student Enterprises".
How about that of the members with age > 18?
I want to know the average age of members in that club.
SQL query sequence:
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises" and t3.Sex = "F"
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises" and t3.Age > 18
SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises"
Final question: Find the average age of members of the club "Hopkins Student Enterprises".
Final SQL: SELECT avg(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid  =  t2.clubid JOIN student AS t3 ON t2.stuid  =  t3.stuid WHERE t1.clubname  =  "Hopkins Student Enterprises"
Database: wedding
Question sequence:
How many churches are there?
What if we only count those opened before 1850?
SQL query sequence:
SELECT count(*) FROM Church
SELECT count(*) FROM Church WHERE Open_Date  <  1850
Final question: How many churches opened before 1850 are there?
Final SQL: SELECT count(*) FROM Church WHERE Open_Date  <  1850
Database: wedding
Question sequence:
Show all churches.
Give me their name, open data, and organizer.
SQL query sequence:
SELECT * FROM Church
SELECT name ,  open_date ,  organized_by FROM Church
Final question: Show the name, open date, and organizer for all churches.
Final SQL: SELECT name ,  open_date ,  organized_by FROM Church
Database: wedding
Question sequence:
Show all churches.
Sort them in descending order of opening date.
Show the church names.
SQL query sequence:
SELECT * FROM Church
SELECT * FROM church ORDER BY open_date DESC
SELECT name FROM church ORDER BY open_date DESC
Final question: List all church names in descending order of opening date.
Final SQL: SELECT name FROM church ORDER BY open_date DESC
Database: wedding
Question sequence:
What is the opening date of each church?
Show the opening year in which at least two churches opened.
SQL query sequence:
SELECT open_date FROM church
SELECT open_date FROM church GROUP BY open_date HAVING count(*)  >=  2
Final question: Show the opening year in which at least two churches opened.
Final SQL: SELECT open_date FROM church GROUP BY open_date HAVING count(*)  >=  2