CREATE TABLE Student (
    StuID NUMBER PRIMARY KEY,
    LName TEXT,
    Fname TEXT,
    Age NUMBER,
    Sex TEXT,
    Major NUMBER,
    Advisor NUMBER,
    city_code TEXT
);
CREATE TABLE Club (
    ClubID NUMBER PRIMARY KEY,
    ClubName TEXT,
    ClubDesc TEXT,
    ClubLocation TEXT
);
CREATE TABLE Member_of_club (
    StuID NUMBER,
    ClubID NUMBER,
    Position TEXT,
    FOREIGN KEY ("ClubID") REFERENCES Club("ClubID"),
    FOREIGN KEY ("StuID") REFERENCES Student("StuID")
);

Question: How many clubs are there?
SQL: SELECT count(*) FROM club

Question: Count the total number of clubs.
SQL: SELECT count(*) FROM club

Question: What are the names of all clubs?
SQL: SELECT clubname FROM club

Question: Give me the name of each club.
SQL: SELECT clubname FROM club

Question: How many students are there?
SQL: SELECT count(*) FROM student

Question: Count the total number of students.
SQL: SELECT count(*) FROM student

Question: What are the first names of all the students?
SQL: SELECT DISTINCT fname FROM student

Question: Find each student's first name.
SQL: SELECT DISTINCT fname FROM student

Question: Find the last names of the members of the club "Bootup Baltimore".
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"

Question: Who are the members of the club named "Bootup Baltimore"? Give me their last names.
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"

Question: Who are the members of the club named "Hopkins Student Enterprises"? Show the last name.
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"

Question: Return the last name for the members of the club named "Hopkins Student Enterprises".
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"

Question: How many members does the club "Tennis Club" has?
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"

Question: Count the members of the club "Tennis Club".
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"

Question: Find the number of members of club "Pen and Paper Gaming".
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"

Question: How many people have membership in the club "Pen and Paper Gaming"?
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"

Question: How many clubs does "Linda Smith" belong to?
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"

Question: How many clubs does "Linda Smith" have membership for?
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"

Question: Find the number of clubs where "Tracy Kim" is a member.
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"

Question: For how many clubs is "Tracy Kim" a member?
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"

Question: Find all the female members of club "Bootup Baltimore". Show the first name and last name.
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"

Question: Give me the first name and last name for all the female members of the club "Bootup Baltimore".
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"

Question: Find all the male members of club "Hopkins Student Enterprises". Show the first name and last name.
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"

Question: What are the first name and last name of each male member in club "Hopkins Student Enterprises"?
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"

Question: Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name.
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"

Question: Which members of "Bootup Baltimore" major in "600"? Give me their first names and last names.
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"

Question: Which club has the most members majoring in "600"?
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

Question: Find the club which has the largest number of members majoring in "600".
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

Question: Find the name of the club that has the most female students.
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

Question: Which club has the most female students as their members? Give me the name of the club.
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

Question: What is the description of the club named "Tennis Club"?
SQL: SELECT clubdesc FROM club WHERE clubname  =  "Tennis Club"

Question: Find the description of the club called "Tennis Club".
SQL: SELECT clubdesc FROM club WHERE clubname  =  "Tennis Club"

Question: Find the description of the club "Pen and Paper Gaming".
SQL: SELECT clubdesc FROM club WHERE clubname  =  "Pen and Paper Gaming"

Question: What is the description of the club "Pen and Paper Gaming"?
SQL: SELECT clubdesc FROM club WHERE clubname  =  "Pen and Paper Gaming"

Question: What is the location of the club named "Tennis Club"?
SQL: SELECT clublocation FROM club WHERE clubname  =  "Tennis Club"