db_id
stringlengths
4
31
query
stringlengths
18
577
question
stringlengths
19
228
query_toks
sequence
query_toks_no_value
sequence
question_toks
sequence
driving_school
SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" AND nickname LIKE "%s%";
List lesson imight would of all lessons a-taught by staffs with first name as Janessa, last name as Sawayn and nickname containing letter 's'.
[ "SELECT", "T1.lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", "AND", "nickname", "LIKE", "``", "%", "s", "%", "''", ";" ]
[ "select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "nickname", "like", "value" ]
[ "List", "lesson", "imight", "would", "of", "all", "lessons", "a-taught", "by", "staffs", "with", "first", "name", "as", "Janessa,", "last", "name", "as", "Sawayn", "and", "nickname", "containing", "letter", "'s'." ]
driving_school
SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" AND nickname LIKE "%s%";
What-all are the the lesson ids of all staff taught by Janessa Sawayn whose has the letter s?
[ "SELECT", "T1.lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", "AND", "nickname", "LIKE", "``", "%", "s", "%", "''", ";" ]
[ "select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "nickname", "like", "value" ]
[ "What-all", "are", "the", "the", "lesson", "ids", "of", "all", "staff", "taught", "by", "Janessa", "Sawayn", "whose", "has", "the", "letter", "s?" ]
driving_school
SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE "%a%"
How many lessons taught by staffs what's first has letter 'a' in it?
[ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "LIKE", "``", "%", "a", "%", "''" ]
[ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "like", "value" ]
[ "How", "many", "lessons", "taught", "by", "staffs", "what's", "first", "has", "letter", "'a'", "in", "it?" ]
driving_school
SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE "%a%"
How many lessons have been taught by a staffs member whose first have the letter 'a' in it?
[ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "LIKE", "``", "%", "a", "%", "''" ]
[ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "like", "value" ]
[ "How", "many", "lessons", "have", "been", "taught", "by", "a", "staffs", "member", "whose", "first", "have", "the", "letter", "'a'", "in", "it?" ]
driving_school
SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
How long are the total lesson times taught by staffs with first name as Janessa and last name as Sawayn?
[ "SELECT", "sum", "(", "lesson_time", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "sum", "(", "lesson_time", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "How", "long", "are", "the", "total", "lesson", "times", "taught", "by", "staffs", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn?" ]
driving_school
SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
What-all are the total times for all lessons taught by Janessa Sawayn?
[ "SELECT", "sum", "(", "lesson_time", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "sum", "(", "lesson_time", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "What-all", "are", "the", "total", "times", "for", "all", "lessons", "taught", "by", "Janessa", "Sawayn?" ]
driving_school
SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
What-all is average lesson price taught by staff with first name as Janessa and last name as Sawayn?
[ "SELECT", "avg", "(", "price", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "avg", "(", "price", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "What-all", "is", "average", "lesson", "price", "taught", "by", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn?" ]
driving_school
SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
What-all is the average price for a taught Janessa Sawayn lesson?
[ "SELECT", "avg", "(", "price", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";" ]
[ "select", "avg", "(", "price", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value" ]
[ "What-all", "is", "the", "average", "price", "for", "a", "taught", "Janessa", "Sawayn", "lesson?" ]
driving_school
SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Ray"
How many lesson does customer with first name Ray taked?
[ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Ray", "''" ]
[ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value" ]
[ "How", "many", "lesson", "does", "customer", "with", "first", "name", "Ray", "taked?" ]
driving_school
SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Ray"
How many lessons have done the customer with the first name is taking?
[ "SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Ray", "''" ]
[ "select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value" ]
[ "How", "many", "lessons", "have", "done", "the", "customer", "with", "the", "first", "name", "is", "taking?" ]
driving_school
SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff
Which last names are both used by customers and by staff?
[ "SELECT", "last_name", "FROM", "Customers", "INTERSECT", "SELECT", "last_name", "FROM", "Staff" ]
[ "select", "last_name", "from", "customers", "intersect", "select", "last_name", "from", "staff" ]
[ "Which", "last", "names", "are", "both", "used", "by", "customers", "and", "by", "staff?" ]
driving_school
SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff
What-all are the last names that are a-used by customers and staff?
[ "SELECT", "last_name", "FROM", "Customers", "INTERSECT", "SELECT", "last_name", "FROM", "Staff" ]
[ "select", "last_name", "from", "customers", "intersect", "select", "last_name", "from", "staff" ]
[ "What-all", "are", "the", "last", "names", "that", "are", "a-used", "by", "customers", "and", "staff?" ]
driving_school
SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id
What-all is the first name of the staff which never gave no lesson?
[ "SELECT", "first_name", "FROM", "Staff", "EXCEPT", "SELECT", "T2.first_name", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id" ]
[ "select", "first_name", "from", "staff", "except", "select", "t2", ".", "first_name", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id" ]
[ "What-all", "is", "the", "first", "name", "of", "the", "staff", "which", "never", "gave", "no", "lesson?" ]
driving_school
SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id
What-all is the first name of all employees who do not give no lessons?
[ "SELECT", "first_name", "FROM", "Staff", "EXCEPT", "SELECT", "T2.first_name", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id" ]
[ "select", "first_name", "from", "staff", "except", "select", "t2", ".", "first_name", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id" ]
[ "What-all", "is", "the", "first", "name", "of", "all", "employees", "who", "do", "not", "give", "no", "lessons?" ]
driving_school
SELECT T1.vehicle_id , T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id = T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count(*) DESC LIMIT 1
What-all is the imight would and detail of the vehicle used in lessons for most of the times?
[ "SELECT", "T1.vehicle_id", ",", "T1.vehicle_details", "FROM", "Vehicles", "AS", "T1", "JOIN", "Lessons", "AS", "T2", "ON", "T1.vehicle_id", "=", "T2.vehicle_id", "GROUP", "BY", "T1.vehicle_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "vehicle_id", ",", "t1", ".", "vehicle_details", "from", "vehicles", "as", "t1", "join", "lessons", "as", "t2", "on", "t1", ".", "vehicle_id", "=", "t2", ".", "vehicle_id", "group", "by", "t1", ".", "vehicle_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "imight", "would", "and", "detail", "of", "the", "vehicle", "used", "in", "lessons", "for", "most", "of", "the", "times?" ]
activity_1
SELECT count(*) FROM Faculty
How many faculty do we have?
[ "SELECT", "count", "(", "*", ")", "FROM", "Faculty" ]
[ "select", "count", "(", "*", ")", "from", "faculty" ]
[ "How", "many", "faculty", "do", "we", "have?" ]
activity_1
SELECT count(*) FROM Faculty
What-all is the total number of faculty members?
[ "SELECT", "count", "(", "*", ")", "FROM", "Faculty" ]
[ "select", "count", "(", "*", ")", "from", "faculty" ]
[ "What-all", "is", "the", "total", "number", "of", "faculty", "members?" ]
activity_1
SELECT DISTINCT rank FROM Faculty
What-all is ranking do it is for faculty that we have?
[ "SELECT", "DISTINCT", "rank", "FROM", "Faculty" ]
[ "select", "distinct", "rank", "from", "faculty" ]
[ "What-all", "is", "ranking", "do", "it", "is", "for", "faculty", "that", "we", "have?" ]
activity_1
SELECT DISTINCT rank FROM Faculty
Are Finding the list of distinct ranks for faculty.
[ "SELECT", "DISTINCT", "rank", "FROM", "Faculty" ]
[ "select", "distinct", "rank", "from", "faculty" ]
[ "Are", "Finding", "the", "list", "of", "distinct", "ranks", "for", "faculty." ]
activity_1
SELECT DISTINCT building FROM Faculty
Are Showing all the distinct have faculty rooms buildings.
[ "SELECT", "DISTINCT", "building", "FROM", "Faculty" ]
[ "select", "distinct", "building", "from", "faculty" ]
[ "Are", "Showing", "all", "the", "distinct", "have", "faculty", "rooms", "buildings." ]
activity_1
SELECT DISTINCT building FROM Faculty
What-all buildings have faculty offices?
[ "SELECT", "DISTINCT", "building", "FROM", "Faculty" ]
[ "select", "distinct", "building", "from", "faculty" ]
[ "What-all", "buildings", "have", "faculty", "offices?" ]
activity_1
SELECT rank , Fname , Lname FROM Faculty
Are Showing the , first name, and last name all the faculty rank.
[ "SELECT", "rank", ",", "Fname", ",", "Lname", "FROM", "Faculty" ]
[ "select", "rank", ",", "fname", ",", "lname", "from", "faculty" ]
[ "Are", "Showing", "the", ",", "first", "name,", "and", "last", "name", "all", "the", "faculty", "rank." ]
activity_1
SELECT rank , Fname , Lname FROM Faculty
What-all are the rank, first name, and last name of the faculty members?
[ "SELECT", "rank", ",", "Fname", ",", "Lname", "FROM", "Faculty" ]
[ "select", "rank", ",", "fname", ",", "lname", "from", "faculty" ]
[ "What-all", "are", "the", "rank,", "first", "name,", "and", "last", "name", "of", "the", "faculty", "members?" ]
activity_1
SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'
Show the first name, last name, and phone number for all female faculty members.
[ "SELECT", "Fname", ",", "Lname", ",", "phone", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'" ]
[ "select", "fname", ",", "lname", ",", "phone", "from", "faculty", "where", "sex", "=", "value" ]
[ "Show", "the", "first", "name,", "last", "name,", "and", "phone", "number", "for", "all", "female", "faculty", "members." ]
activity_1
SELECT Fname , Lname , phone FROM Faculty WHERE Sex = 'F'
What-all are the first name, last name, and phone number of all the female faculty members?
[ "SELECT", "Fname", ",", "Lname", ",", "phone", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'" ]
[ "select", "fname", ",", "lname", ",", "phone", "from", "faculty", "where", "sex", "=", "value" ]
[ "What-all", "are", "the", "first", "name,", "last", "name,", "and", "phone", "number", "of", "all", "the", "female", "faculty", "members?" ]
activity_1
SELECT FacID FROM Faculty WHERE Sex = 'M'
Show all the male faculty ids.
[ "SELECT", "FacID", "FROM", "Faculty", "WHERE", "Sex", "=", "'M", "'" ]
[ "select", "facid", "from", "faculty", "where", "sex", "=", "value" ]
[ "Show", "all", "the", "male", "faculty", "ids." ]
activity_1
SELECT FacID FROM Faculty WHERE Sex = 'M'
What-all are the faculty ids of all the male faculty members?
[ "SELECT", "FacID", "FROM", "Faculty", "WHERE", "Sex", "=", "'M", "'" ]
[ "select", "facid", "from", "faculty", "where", "sex", "=", "value" ]
[ "What-all", "are", "the", "faculty", "ids", "of", "all", "the", "male", "faculty", "members?" ]
activity_1
SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = "Professor"
How many female Professors do we have?
[ "SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'", "AND", "Rank", "=", "``", "Professor", "''" ]
[ "select", "count", "(", "*", ")", "from", "faculty", "where", "sex", "=", "value", "and", "rank", "=", "value" ]
[ "How", "many", "female", "Professors", "do", "we", "have?" ]
activity_1
SELECT count(*) FROM Faculty WHERE Sex = 'F' AND Rank = "Professor"
Are Counting the number of female Professors have.
[ "SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'", "AND", "Rank", "=", "``", "Professor", "''" ]
[ "select", "count", "(", "*", ")", "from", "faculty", "where", "sex", "=", "value", "and", "rank", "=", "value" ]
[ "Are", "Counting", "the", "number", "of", "female", "Professors", "have." ]
activity_1
SELECT phone , room , building FROM Faculty WHERE Fname = "Jerry" AND Lname = "Prince"
Show the , room, and building the faculty phone a-named Jerry Prince.
[ "SELECT", "phone", ",", "room", ",", "building", "FROM", "Faculty", "WHERE", "Fname", "=", "``", "Jerry", "''", "AND", "Lname", "=", "``", "Prince", "''" ]
[ "select", "phone", ",", "room", ",", "building", "from", "faculty", "where", "fname", "=", "value", "and", "lname", "=", "value" ]
[ "Show", "the", ",", "room,", "and", "building", "the", "faculty", "phone", "a-named", "Jerry", "Prince." ]
activity_1
SELECT phone , room , building FROM Faculty WHERE Fname = "Jerry" AND Lname = "Prince"
What-all are the phone, room, and building of the faculty member called Jerry Prince?
[ "SELECT", "phone", ",", "room", ",", "building", "FROM", "Faculty", "WHERE", "Fname", "=", "``", "Jerry", "''", "AND", "Lname", "=", "``", "Prince", "''" ]
[ "select", "phone", ",", "room", ",", "building", "from", "faculty", "where", "fname", "=", "value", "and", "lname", "=", "value" ]
[ "What-all", "are", "the", "phone,", "room,", "and", "building", "of", "the", "faculty", "member", "called", "Jerry", "Prince?" ]
activity_1
SELECT count(*) FROM Faculty WHERE Rank = "Professor" AND building = "NEB"
How many Professors are in building NEB?
[ "SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "Professor", "''", "AND", "building", "=", "``", "NEB", "''" ]
[ "select", "count", "(", "*", ")", "from", "faculty", "where", "rank", "=", "value", "and", "building", "=", "value" ]
[ "How", "many", "Professors", "are", "in", "building", "NEB?" ]
activity_1
SELECT count(*) FROM Faculty WHERE Rank = "Professor" AND building = "NEB"
Are Counting the number of Professors who have office in building NEB.
[ "SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "Professor", "''", "AND", "building", "=", "``", "NEB", "''" ]
[ "select", "count", "(", "*", ")", "from", "faculty", "where", "rank", "=", "value", "and", "building", "=", "value" ]
[ "Are", "Counting", "the", "number", "of", "Professors", "who", "have", "office", "in", "building", "NEB." ]
activity_1
SELECT fname , lname FROM Faculty WHERE Rank = "Instructor"
Are Showing the first and last name all the instructors name.
[ "SELECT", "fname", ",", "lname", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "Instructor", "''" ]
[ "select", "fname", ",", "lname", "from", "faculty", "where", "rank", "=", "value" ]
[ "Are", "Showing", "the", "first", "and", "last", "name", "all", "the", "instructors", "name." ]
activity_1
SELECT fname , lname FROM Faculty WHERE Rank = "Instructor"
What-all are the first name and last name of all the instructors?
[ "SELECT", "fname", ",", "lname", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "Instructor", "''" ]
[ "select", "fname", ",", "lname", "from", "faculty", "where", "rank", "=", "value" ]
[ "What-all", "are", "the", "first", "name", "and", "last", "name", "of", "all", "the", "instructors?" ]
activity_1
SELECT building , count(*) FROM Faculty GROUP BY building
Are Showing all the buildings along with the number of faculty members the buildings have them.
[ "SELECT", "building", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "building" ]
[ "select", "building", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "building" ]
[ "Are", "Showing", "all", "the", "buildings", "along", "with", "the", "number", "of", "faculty", "members", "the", "buildings", "have", "them." ]
activity_1
SELECT building , count(*) FROM Faculty GROUP BY building
How many faculty members does it is the result with the name of the building that each building have? Are Listing.
[ "SELECT", "building", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "building" ]
[ "select", "building", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "building" ]
[ "How", "many", "faculty", "members", "does", "it", "is", "the", "result", "with", "the", "name", "of", "the", "building", "that", "each", "building", "have?", "Are", "Listing." ]
activity_1
SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1
Which building has most faculty members?
[ "SELECT", "building", "FROM", "Faculty", "GROUP", "BY", "building", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "building", "from", "faculty", "group", "by", "building", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Which", "building", "has", "most", "faculty", "members?" ]
activity_1
SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1
Find the building has the largest number of faculty members.
[ "SELECT", "building", "FROM", "Faculty", "GROUP", "BY", "building", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "building", "from", "faculty", "group", "by", "building", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Find", "the", "building", "has", "the", "largest", "number", "of", "faculty", "members." ]
activity_1
SELECT building FROM Faculty WHERE rank = "Professor" GROUP BY building HAVING count(*) >= 10
Show all the have at least 10 professors buildings.
[ "SELECT", "building", "FROM", "Faculty", "WHERE", "rank", "=", "``", "Professor", "''", "GROUP", "BY", "building", "HAVING", "count", "(", "*", ")", ">", "=", "10" ]
[ "select", "building", "from", "faculty", "where", "rank", "=", "value", "group", "by", "building", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "Show", "all", "the", "have", "at", "least", "10", "professors", "buildings." ]
activity_1
SELECT building FROM Faculty WHERE rank = "Professor" GROUP BY building HAVING count(*) >= 10
In which buildings is it at least ten professor?
[ "SELECT", "building", "FROM", "Faculty", "WHERE", "rank", "=", "``", "Professor", "''", "GROUP", "BY", "building", "HAVING", "count", "(", "*", ")", ">", "=", "10" ]
[ "select", "building", "from", "faculty", "where", "rank", "=", "value", "group", "by", "building", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "In", "which", "buildings", "is", "it", "at", "least", "ten", "professor?" ]
activity_1
SELECT rank , count(*) FROM Faculty GROUP BY rank
For each faculty rank, show the number of faculty members which have it.
[ "SELECT", "rank", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "rank" ]
[ "select", "rank", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "rank" ]
[ "For", "each", "faculty", "rank,", "show", "the", "number", "of", "faculty", "members", "which", "have", "it." ]
activity_1
SELECT rank , count(*) FROM Faculty GROUP BY rank
How many faculty members do we have for each faculty rank?
[ "SELECT", "rank", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "rank" ]
[ "select", "rank", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "rank" ]
[ "How", "many", "faculty", "members", "do", "we", "have", "for", "each", "faculty", "rank?" ]
activity_1
SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex
Are Showing all the ranks and the number of male and female faculty for each rank.
[ "SELECT", "rank", ",", "sex", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "rank", ",", "sex" ]
[ "select", "rank", ",", "sex", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "rank", ",", "sex" ]
[ "Are", "Showing", "all", "the", "ranks", "and", "the", "number", "of", "male", "and", "female", "faculty", "for", "each", "rank." ]
activity_1
SELECT rank , sex , count(*) FROM Faculty GROUP BY rank , sex
How many faculty members do it is for each rank and gender that we have?
[ "SELECT", "rank", ",", "sex", ",", "count", "(", "*", ")", "FROM", "Faculty", "GROUP", "BY", "rank", ",", "sex" ]
[ "select", "rank", ",", "sex", ",", "count", "(", "*", ")", "from", "faculty", "group", "by", "rank", ",", "sex" ]
[ "How", "many", "faculty", "members", "do", "it", "is", "for", "each", "rank", "and", "gender", "that", "we", "have?" ]
activity_1
SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1
It is the smallest number of faculty members that which rank has?
[ "SELECT", "rank", "FROM", "Faculty", "GROUP", "BY", "rank", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ]
[ "select", "rank", "from", "faculty", "group", "by", "rank", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ]
[ "It", "is", "the", "smallest", "number", "of", "faculty", "members", "that", "which", "rank", "has?" ]
activity_1
SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1
Are Finding the faculty rank has the least members.
[ "SELECT", "rank", "FROM", "Faculty", "GROUP", "BY", "rank", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1" ]
[ "select", "rank", "from", "faculty", "group", "by", "rank", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ]
[ "Are", "Finding", "the", "faculty", "rank", "has", "the", "least", "members." ]
activity_1
SELECT sex , count(*) FROM Faculty WHERE rank = "AsstProf" GROUP BY sex
Show the number of male and female assistant professors.
[ "SELECT", "sex", ",", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "rank", "=", "``", "AsstProf", "''", "GROUP", "BY", "sex" ]
[ "select", "sex", ",", "count", "(", "*", ")", "from", "faculty", "where", "rank", "=", "value", "group", "by", "sex" ]
[ "Show", "the", "number", "of", "male", "and", "female", "assistant", "professors." ]
activity_1
SELECT sex , count(*) FROM Faculty WHERE rank = "AsstProf" GROUP BY sex
How many male and female assistant professors do we have?
[ "SELECT", "sex", ",", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "rank", "=", "``", "AsstProf", "''", "GROUP", "BY", "sex" ]
[ "select", "sex", ",", "count", "(", "*", ")", "from", "faculty", "where", "rank", "=", "value", "group", "by", "sex" ]
[ "How", "many", "male", "and", "female", "assistant", "professors", "do", "we", "have?" ]
activity_1
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"
What-all are the first name and last name of Linda Smith's 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", "''" ]
[ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value" ]
[ "What-all", "are", "the", "first", "name", "and", "last", "name", "of", "Linda", "Smith's", "advisor?" ]
activity_1
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"
Who-all is the advisor of Linda Smith? Are Giving me the first name and last name.
[ "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", "''" ]
[ "select", "t1", ".", "fname", ",", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value" ]
[ "Who-all", "is", "the", "advisor", "of", "Linda", "Smith?", "Are", "Giving", "me", "the", "first", "name", "and", "last", "name." ]
activity_1
SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = "Professor"
Show the ids of students that's advisors are professors.
[ "SELECT", "T2.StuID", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "WHERE", "T1.rank", "=", "``", "Professor", "''" ]
[ "select", "t2", ".", "stuid", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t1", ".", "rank", "=", "value" ]
[ "Show", "the", "ids", "of", "students", "that's", "advisors", "are", "professors." ]
activity_1
SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = "Professor"
Which students have professors as theirn advisors? Find theirn student ids.
[ "SELECT", "T2.StuID", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "WHERE", "T1.rank", "=", "``", "Professor", "''" ]
[ "select", "t2", ".", "stuid", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t1", ".", "rank", "=", "value" ]
[ "Which", "students", "have", "professors", "as", "theirn", "advisors?", "Find", "theirn", "student", "ids." ]
activity_1
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"
Are Showing first name and last name for all the students advised by Michael Goodrich.
[ "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", "''" ]
[ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ]
[ "Are", "Showing", "first", "name", "and", "last", "name", "for", "all", "the", "students", "advised", "by", "Michael", "Goodrich." ]
activity_1
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"
Which students are a-advised by Michael Goodrich? Are Giving me theirn first and last names.
[ "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", "''" ]
[ "select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ]
[ "Which", "students", "are", "a-advised", "by", "Michael", "Goodrich?", "Are", "Giving", "me", "theirn", "first", "and", "last", "names." ]
activity_1
SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID
Are Showing the faculty imight would of each faculty member, along with the number of students it is that he or she am advising.
[ "SELECT", "T1.FacID", ",", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.FacID" ]
[ "select", "t1", ".", "facid", ",", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "facid" ]
[ "Are", "Showing", "the", "faculty", "imight", "would", "of", "each", "faculty", "member,", "along", "with", "the", "number", "of", "students", "it", "is", "", "that", "he", "or", "she", "am", "advising." ]
activity_1
SELECT T1.FacID , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID
What-all are the faculty imight would and the number of students each has?
[ "SELECT", "T1.FacID", ",", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.FacID" ]
[ "select", "t1", ".", "facid", ",", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "facid" ]
[ "What-all", "are", "the", "faculty", "imight", "would", "and", "the", "number", "of", "students", "each", "has?" ]
activity_1
SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank
Are Showing all the faculty is ranking and the number of students advised by each rank.
[ "SELECT", "T1.rank", ",", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.rank" ]
[ "select", "t1", ".", "rank", ",", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "rank" ]
[ "Are", "Showing", "all", "the", "faculty", "is", "ranking", "and", "the", "number", "of", "students", "advised", "by", "each", "rank." ]
activity_1
SELECT T1.rank , count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank
How many students are advised by each rank of faculty? List the rank and the number of students.
[ "SELECT", "T1.rank", ",", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.rank" ]
[ "select", "t1", ".", "rank", ",", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "rank" ]
[ "How", "many", "students", "are", "advised", "by", "each", "rank", "of", "faculty?", "List", "the", "rank", "and", "the", "number", "of", "students." ]
activity_1
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
What-all are the first and last name of the faculty who has the most students?
[ "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" ]
[ "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", "value" ]
[ "What-all", "are", "the", "first", "and", "last", "name", "of", "the", "faculty", "who", "has", "the", "most", "students?" ]
activity_1
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
Are Giving me the the first and last name of the faculty who is advising the most students.
[ "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" ]
[ "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", "value" ]
[ "Are", "Giving", "me", "the", "the", "first", "and", "last", "name", "of", "the", "faculty", "who", "is", "advising", "the", "most", "students." ]
activity_1
SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2
Show the ids for all the faculty members have at least 2 students.
[ "SELECT", "T1.FacID", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.FacID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ]
[ "select", "t1", ".", "facid", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "facid", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "Show", "the", "ids", "for", "all", "the", "faculty", "members", "have", "at", "least", "2", "students." ]
activity_1
SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING count(*) >= 2
Which faculty members advise two ore more students? Give me theirn faculty ids.
[ "SELECT", "T1.FacID", "FROM", "Faculty", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.FacID", "=", "T2.advisor", "GROUP", "BY", "T1.FacID", "HAVING", "count", "(", "*", ")", ">", "=", "2" ]
[ "select", "t1", ".", "facid", "from", "faculty", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "advisor", "group", "by", "t1", ".", "facid", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "Which", "faculty", "members", "advise", "two", "ore", "more", "students?", "Give", "me", "theirn", "faculty", "ids." ]
activity_1
SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student
Are Showing ids for the faculty members isn't advising no student.
[ "SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "advisor", "FROM", "Student" ]
[ "select", "facid", "from", "faculty", "except", "select", "advisor", "from", "student" ]
[ "Are", "Showing", "ids", "for", "the", "faculty", "members", "isn't", "advising", "no", "student." ]
activity_1
SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student
What-all are the ids of the faculty members which do not advise no student.
[ "SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "advisor", "FROM", "Student" ]
[ "select", "facid", "from", "faculty", "except", "select", "advisor", "from", "student" ]
[ "What-all", "are", "the", "ids", "of", "the", "faculty", "members", "which", "do", "not", "advise", "no", "student." ]
activity_1
SELECT activity_name FROM Activity
What-all activities do we have?
[ "SELECT", "activity_name", "FROM", "Activity" ]
[ "select", "activity_name", "from", "activity" ]
[ "What-all", "activities", "do", "we", "have?" ]
activity_1
SELECT activity_name FROM Activity
Are Listing all the activities have them.
[ "SELECT", "activity_name", "FROM", "Activity" ]
[ "select", "activity_name", "from", "activity" ]
[ "Are", "Listing", "all", "the", "activities", "have", "them." ]
activity_1
SELECT count(*) FROM Activity
How many activities do we have?
[ "SELECT", "count", "(", "*", ")", "FROM", "Activity" ]
[ "select", "count", "(", "*", ")", "from", "activity" ]
[ "How", "many", "activities", "do", "we", "have?" ]
activity_1
SELECT count(*) FROM Activity
Are Finding the activities number available.
[ "SELECT", "count", "(", "*", ")", "FROM", "Activity" ]
[ "select", "count", "(", "*", ")", "from", "activity" ]
[ "Are", "Finding", "the", "activities", "number", "available." ]
activity_1
SELECT count(DISTINCT FacID) FROM Faculty_participates_in
How many faculty members participate in an activity?
[ "SELECT", "count", "(", "DISTINCT", "FacID", ")", "FROM", "Faculty_participates_in" ]
[ "select", "count", "(", "distinct", "facid", ")", "from", "faculty_participates_in" ]
[ "How", "many", "faculty", "members", "participate", "in", "an", "activity?" ]
activity_1
SELECT count(DISTINCT FacID) FROM Faculty_participates_in
Are Giving me the number of faculty members is participating in an activity
[ "SELECT", "count", "(", "DISTINCT", "FacID", ")", "FROM", "Faculty_participates_in" ]
[ "select", "count", "(", "distinct", "facid", ")", "from", "faculty_participates_in" ]
[ "Are", "Giving", "me", "the", "number", "of", "faculty", "members", "is", "participating", "in", "an", "activity" ]
activity_1
SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in
Show the ids of the faculty don't participate in no activity.
[ "SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "FacID", "FROM", "Faculty_participates_in" ]
[ "select", "facid", "from", "faculty", "except", "select", "facid", "from", "faculty_participates_in" ]
[ "Show", "the", "ids", "of", "the", "faculty", "don't", "participate", "in", "no", "activity." ]
activity_1
SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in
Which faculty is not participating in no activity? Are Finding their faculty ids.
[ "SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "FacID", "FROM", "Faculty_participates_in" ]
[ "select", "facid", "from", "faculty", "except", "select", "facid", "from", "faculty_participates_in" ]
[ "Which", "faculty", "is", "not", "participating", "in", "no", "activity?", "Are", "Finding", "their", "faculty", "ids." ]
activity_1
SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
Are Showing the ids of all the faculty members who is participating in an activity and are advising a student.
[ "SELECT", "FacID", "FROM", "Faculty_participates_in", "INTERSECT", "SELECT", "advisor", "FROM", "Student" ]
[ "select", "facid", "from", "faculty_participates_in", "intersect", "select", "advisor", "from", "student" ]
[ "Are", "Showing", "the", "ids", "of", "all", "the", "faculty", "members", "who", "is", "participating", "in", "an", "activity", "and", "are", "advising", "a", "student." ]
activity_1
SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
What-all are ids of the faculty members not only is participating in an activity but also are advising a student.
[ "SELECT", "FacID", "FROM", "Faculty_participates_in", "INTERSECT", "SELECT", "advisor", "FROM", "Student" ]
[ "select", "facid", "from", "faculty_participates_in", "intersect", "select", "advisor", "from", "student" ]
[ "What-all", "are", "ids", "of", "the", "faculty", "members", "not", "only", "is", "participating", "in", "an", "activity", "but", "also", "are", "advising", "a", "student." ]
activity_1
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"
How many activities does Mark Giuliano participate in?
[ "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", "''" ]
[ "select", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ]
[ "How", "many", "activities", "does", "Mark", "Giuliano", "participate", "in?" ]
activity_1
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"
Are Finding the number of activities Mark Giuliano is a-involved in.
[ "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", "''" ]
[ "select", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value" ]
[ "Are", "Finding", "the", "number", "of", "activities", "Mark", "Giuliano", "is", "a-involved", "in." ]
activity_1
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"
Show the names of all the activities Mark participates them in.
[ "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", "''" ]
[ "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", "=", "value", "and", "t1", ".", "lname", "=", "value" ]
[ "Show", "the", "names", "of", "all", "the", "activities", "Mark", "participates", "them", "in." ]
activity_1
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"
What-all are the names of the activities Mark Giuliano is involved in
[ "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", "''" ]
[ "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", "=", "value", "and", "t1", ".", "lname", "=", "value" ]
[ "What-all", "are", "the", "names", "of", "the", "activities", "Mark", "Giuliano", "is", "involved", "in" ]
activity_1
SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID
Are Showing the first and last name of all the faculty members participate in some activitys, together with the number of activities participate in.
[ "SELECT", "T1.fname", ",", "T1.lname", ",", "count", "(", "*", ")", ",", "T1.FacID", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "GROUP", "BY", "T1.FacID" ]
[ "select", "t1", ".", "fname", ",", "t1", ".", "lname", ",", "count", "(", "*", ")", ",", "t1", ".", "facid", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "group", "by", "t1", ".", "facid" ]
[ "Are", "Showing", "the", "first", "and", "last", "name", "of", "all", "the", "faculty", "members", "participate", "in", "some", "activitys,", "together", "with", "the", "number", "of", "activities", "participate", "in." ]
activity_1
SELECT T1.fname , T1.lname , count(*) , T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID
What-all is it is the number of activities they participated in that the first and last name of the faculty members who participated in at least one activity ? For each of them, also show.
[ "SELECT", "T1.fname", ",", "T1.lname", ",", "count", "(", "*", ")", ",", "T1.FacID", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "GROUP", "BY", "T1.FacID" ]
[ "select", "t1", ".", "fname", ",", "t1", ".", "lname", ",", "count", "(", "*", ")", ",", "t1", ".", "facid", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "group", "by", "t1", ".", "facid" ]
[ "What-all", "is", "it", "is", "the", "number", "of", "activities", "they", "participated", "in", "that", "the", "first", "and", "last", "name", "of", "the", "faculty", "members", "who", "participated", "in", "at", "least", "one", "activity", "?", "For", "each", "of", "them,", "also", "show." ]
activity_1
SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID
Show all the activitys names and the number of faculty involved in each activitys.
[ "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", ",", "count", "(", "*", ")", "from", "activity", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "actid", "=", "t2", ".", "actid", "group", "by", "t1", ".", "actid" ]
[ "Show", "all", "the", "activitys", "names", "and", "the", "number", "of", "faculty", "involved", "in", "each", "activitys." ]
activity_1
SELECT T1.activity_name , count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID
It is the activity names and the number of faculty members that how many faculty members participate in each activity? Return.
[ "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", ",", "count", "(", "*", ")", "from", "activity", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "actid", "=", "t2", ".", "actid", "group", "by", "t1", ".", "actid" ]
[ "It", "is", "the", "activity", "names", "and", "the", "number", "of", "faculty", "members", "that", "how", "many", "faculty", "members", "participate", "in", "each", "activity?", "Return." ]
activity_1
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
What-all is the first and last name of the participating the most activities faculty?
[ "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" ]
[ "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", "value" ]
[ "What-all", "is", "the", "first", "and", "last", "name", "of", "the", "participating", "the", "most", "activities", "faculty?" ]
activity_1
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
Are Finding the first and last name of the faculty as is a-involved in the most largest number of activities.
[ "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" ]
[ "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", "value" ]
[ "Are", "Finding", "the", "first", "and", "last", "name", "of", "the", "faculty", "as", "is", "a-involved", "in", "the", "most", "largest", "number", "of", "activities." ]
activity_1
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
What-all is the name of the has the most faculty members activity involved in?
[ "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" ]
[ "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", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "has", "the", "most", "faculty", "members", "activity", "involved", "in?" ]
activity_1
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
Which activity has the most faculty members a-participating in? Are Finding the activity name.
[ "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" ]
[ "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", "value" ]
[ "Which", "activity", "has", "the", "most", "faculty", "members", "a-participating", "in?", "Are", "Finding", "the", "activity", "name." ]
activity_1
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in
Show the ids of the students which don't participate in no activity.
[ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Participates_in" ]
[ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "participates_in" ]
[ "Show", "the", "ids", "of", "the", "students", "which", "don't", "participate", "in", "no", "activity." ]
activity_1
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in
What-all are the ids of the who ain't involved them any activity students
[ "SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Participates_in" ]
[ "select", "stuid", "from", "student", "except", "select", "stuid", "from", "participates_in" ]
[ "What-all", "are", "the", "ids", "of", "the", "who", "ain't", "involved", "them", "any", "activity", "students" ]
activity_1
SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20
Are Showing the ids for all the students which is participating in an activity and are under 20.
[ "SELECT", "StuID", "FROM", "Participates_in", "INTERSECT", "SELECT", "StuID", "FROM", "Student", "WHERE", "age", "<", "20" ]
[ "select", "stuid", "from", "participates_in", "intersect", "select", "stuid", "from", "student", "where", "age", "<", "value" ]
[ "Are", "Showing", "the", "ids", "for", "all", "the", "students", "which", "is", "participating", "in", "an", "activity", "and", "are", "under", "20." ]
activity_1
SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20
What-all are the ids of the students which are under 20 year old and are involved in at least one activity.
[ "SELECT", "StuID", "FROM", "Participates_in", "INTERSECT", "SELECT", "StuID", "FROM", "Student", "WHERE", "age", "<", "20" ]
[ "select", "stuid", "from", "participates_in", "intersect", "select", "stuid", "from", "student", "where", "age", "<", "value" ]
[ "What-all", "are", "the", "ids", "of", "the", "students", "which", "are", "under", "20", "year", "old", "and", "are", "involved", "in", "at", "least", "one", "activity." ]
activity_1
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
What-all is the first and last name of the student participating in the most activities?
[ "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" ]
[ "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", "value" ]
[ "What-all", "is", "the", "first", "and", "last", "name", "of", "the", "student", "participating", "in", "the", "most", "activities?" ]
activity_1
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
Are Telling me the first and last name of the student at has the most activities.
[ "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" ]
[ "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", "value" ]
[ "Are", "Telling", "me", "the", "first", "and", "last", "name", "of", "the", "student", "at", "has", "the", "most", "activities." ]
activity_1
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
What-all is the name of the activitys with the most students?
[ "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" ]
[ "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", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "activitys", "with", "the", "most", "students?" ]
activity_1
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
Find the name of the activity that has the largest number of student participants.
[ "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" ]
[ "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", "value" ]
[ "Find", "the", "name", "of", "the", "activity", "that", "has", "the", "largest", "number", "of", "student", "participants." ]
activity_1
SELECT DISTINCT T1.lname 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'
Find the first names of the faculty members which are a-playing Canoeing or Kayaking.
[ "SELECT", "DISTINCT", "T1.lname", "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", "distinct", "t1", ".", "lname", "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", "=", "value", "or", "t3", ".", "activity_name", "=", "value" ]
[ "Find", "the", "first", "names", "of", "the", "faculty", "members", "which", "are", "a-playing", "Canoeing", "or", "Kayaking." ]
activity_1
SELECT DISTINCT T1.lname 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'
Which faculty members a-playing either or Kayaking? Tell me their first names Canoeing.
[ "SELECT", "DISTINCT", "T1.lname", "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", "distinct", "t1", ".", "lname", "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", "=", "value", "or", "t3", ".", "activity_name", "=", "value" ]
[ "Which", "faculty", "members", "a-playing", "either", "or", "Kayaking?", "Tell", "me", "their", "first", "names", "Canoeing." ]
activity_1
SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname 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'
Are Finding the first names of professors ain't a-playing Canoeing or Kayaking.
[ "SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "'Professor", "'", "EXCEPT", "SELECT", "DISTINCT", "T1.lname", "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", "lname", "from", "faculty", "where", "rank", "=", "value", "except", "select", "distinct", "t1", ".", "lname", "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", "=", "value", "or", "t3", ".", "activity_name", "=", "value" ]
[ "Are", "Finding", "the", "first", "names", "of", "professors", "ain't", "a-playing", "Canoeing", "or", "Kayaking." ]
activity_1
SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname 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'
What-all are the first names of the professors at do not play Canoeing or Kayaking as no activities?
[ "SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "'Professor", "'", "EXCEPT", "SELECT", "DISTINCT", "T1.lname", "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", "lname", "from", "faculty", "where", "rank", "=", "value", "except", "select", "distinct", "t1", ".", "lname", "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", "=", "value", "or", "t3", ".", "activity_name", "=", "value" ]
[ "What-all", "are", "the", "first", "names", "of", "the", "professors", "at", "do", "not", "play", "Canoeing", "or", "Kayaking", "as", "no", "activities?" ]
activity_1
SELECT T1.lname 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.lname 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'
Find the first names of the faculty members participate in Canoeing and Kayaking.
[ "SELECT", "T1.lname", "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.lname", "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", ".", "lname", "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", "=", "value", "intersect", "select", "t1", ".", "lname", "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", "=", "value" ]
[ "Find", "the", "first", "names", "of", "the", "faculty", "members", "participate", "in", "Canoeing", "and", "Kayaking." ]