Unnamed: 0
int64
0
60k
text
stringlengths
109
1.06k
2,400
<question>: Please show the titles of films and the types of market estimations. <context>: CREATE TABLE film (Title VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Type VARCHAR, Film_ID VARCHAR) <answer>: SELECT T1.Title, T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film...
2,401
<question>: Show the distinct director of films with market estimation in the year of 1995. <context>: CREATE TABLE film (Director VARCHAR, Film_ID VARCHAR); CREATE TABLE film_market_estimation (Film_ID VARCHAR, Year VARCHAR) <answer>: SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1....
2,402
<question>: What is the average number of cities of markets with low film market estimate bigger than 10000? <context>: CREATE TABLE market (Number_cities INTEGER, Market_ID VARCHAR); CREATE TABLE film_market_estimation (Market_ID VARCHAR, Low_Estimate INTEGER) <answer>: SELECT AVG(T2.Number_cities) FROM film_market_es...
2,403
<question>: Please list the countries and years of film market estimations. <context>: CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Country VARCHAR, Market_ID VARCHAR) <answer>: SELECT T2.Country, T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID ...
2,404
<question>: Please list the years of film market estimations when the market is in country "Japan" in descending order. <context>: CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Market_ID VARCHAR, Country VARCHAR) <answer>: SELECT T1.Year FROM film_market_estimation AS T1 JO...
2,405
<question>: List the studios of each film and the number of films produced by that studio. <context>: CREATE TABLE film (Studio VARCHAR) <answer>: SELECT Studio, COUNT(*) FROM film GROUP BY Studio
2,406
<question>: List the name of film studio that have the most number of films. <context>: CREATE TABLE film (Studio VARCHAR) <answer>: SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1
2,407
<question>: List the names of studios that have at least two films. <context>: CREATE TABLE film (Studio VARCHAR) <answer>: SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2
2,408
<question>: List the title of films that do not have any market estimation. <context>: CREATE TABLE film_market_estimation (Title VARCHAR, Film_ID VARCHAR); CREATE TABLE film (Title VARCHAR, Film_ID VARCHAR) <answer>: SELECT Title FROM film WHERE NOT Film_ID IN (SELECT Film_ID FROM film_market_estimation)
2,409
<question>: Show the studios that have produced films with director "Nicholas Meyer" and "Walter Hill". <context>: CREATE TABLE film (Studio VARCHAR, Director VARCHAR) <answer>: SELECT Studio FROM film WHERE Director = "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director = "Walter Hill"
2,410
<question>: Find the titles and studios of the films that are produced by some film studios that contained the word "Universal". <context>: CREATE TABLE film (title VARCHAR, Studio VARCHAR) <answer>: SELECT title, Studio FROM film WHERE Studio LIKE "%Universal%"
2,411
<question>: Show the studios that have not produced films with director "Walter Hill". <context>: CREATE TABLE film (Studio VARCHAR, Director VARCHAR) <answer>: SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director = "Walter Hill"
2,412
<question>: List the studios which average gross is above 4500000. <context>: CREATE TABLE film (Studio VARCHAR, Gross_in_dollar INTEGER) <answer>: SELECT Studio FROM film GROUP BY Studio HAVING AVG(Gross_in_dollar) >= 4500000
2,413
<question>: What is the title of the film that has the highest high market estimation. <context>: CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR) <answer>: SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC ...
2,414
<question>: What are the titles and directors of the films were never presented in China? <context>: CREATE TABLE film (title VARCHAR, director VARCHAR, film_id VARCHAR, country VARCHAR); CREATE TABLE market (Market_ID VARCHAR); CREATE TABLE film_market_estimation (market_id VARCHAR) <answer>: SELECT title, director FR...
2,415
<question>: How many calendar items do we have? <context>: CREATE TABLE Ref_calendar (Id VARCHAR) <answer>: SELECT COUNT(*) FROM Ref_calendar
2,416
<question>: Show all calendar dates and day Numbers. <context>: CREATE TABLE Ref_calendar (calendar_date VARCHAR, day_Number VARCHAR) <answer>: SELECT calendar_date, day_Number FROM Ref_calendar
2,417
<question>: Show the number of document types. <context>: CREATE TABLE Ref_document_types (Id VARCHAR) <answer>: SELECT COUNT(*) FROM Ref_document_types
2,418
<question>: List all document type codes and document type names. <context>: CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR) <answer>: SELECT document_type_code, document_type_name FROM Ref_document_types
2,419
<question>: What is the name and description for document type code RV? <context>: CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_description VARCHAR, document_type_code VARCHAR) <answer>: SELECT document_type_name, document_type_description FROM Ref_document_types WHERE document_type_code =...
2,420
<question>: What is the document type code for document type "Paper"? <context>: CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR) <answer>: SELECT document_type_code FROM Ref_document_types WHERE document_type_name = "Paper"
2,421
<question>: Show the number of documents with document type code CV or BK. <context>: CREATE TABLE All_documents (document_type_code VARCHAR) <answer>: SELECT COUNT(*) FROM All_documents WHERE document_type_code = "CV" OR document_type_code = "BK"
2,422
<question>: What is the date when the document "Marry CV" was stored? <context>: CREATE TABLE All_documents (date_stored VARCHAR, Document_name VARCHAR) <answer>: SELECT date_stored FROM All_documents WHERE Document_name = "Marry CV"
2,423
<question>: What is the day Number and date of all the documents? <context>: CREATE TABLE All_documents (Date_Stored VARCHAR, date_stored VARCHAR); CREATE TABLE Ref_calendar (day_Number VARCHAR, calendar_date VARCHAR) <answer>: SELECT T2.day_Number, T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1....
2,424
<question>: What is the document type name for the document with name "How to read a book"? <context>: CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_code VARCHAR); CREATE TABLE All_documents (document_type_code VARCHAR, document_name VARCHAR) <answer>: SELECT T2.document_type_name FROM All_...
2,425
<question>: Show the number of locations. <context>: CREATE TABLE Ref_locations (Id VARCHAR) <answer>: SELECT COUNT(*) FROM Ref_locations
2,426
<question>: List all location codes and location names. <context>: CREATE TABLE Ref_locations (location_code VARCHAR, location_name VARCHAR) <answer>: SELECT location_code, location_name FROM Ref_locations
2,427
<question>: What are the name and description for location code x? <context>: CREATE TABLE Ref_locations (location_name VARCHAR, location_description VARCHAR, location_code VARCHAR) <answer>: SELECT location_name, location_description FROM Ref_locations WHERE location_code = "x"
2,428
<question>: What is the location code for the country "Canada"? <context>: CREATE TABLE Ref_locations (location_code VARCHAR, location_name VARCHAR) <answer>: SELECT location_code FROM Ref_locations WHERE location_name = "Canada"
2,429
<question>: How many roles are there? <context>: CREATE TABLE ROLES (Id VARCHAR) <answer>: SELECT COUNT(*) FROM ROLES
2,430
<question>: List all role codes, role names, and role descriptions. <context>: CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR, role_description VARCHAR) <answer>: SELECT role_code, role_name, role_description FROM ROLES
2,431
<question>: What are the name and description for role code "MG"? <context>: CREATE TABLE ROLES (role_name VARCHAR, role_description VARCHAR, role_code VARCHAR) <answer>: SELECT role_name, role_description FROM ROLES WHERE role_code = "MG"
2,432
<question>: Show the description for role name "Proof Reader". <context>: CREATE TABLE ROLES (role_description VARCHAR, role_name VARCHAR) <answer>: SELECT role_description FROM ROLES WHERE role_name = "Proof Reader"
2,433
<question>: Show the name, role code, and date of birth for the employee with name 'Armani'. <context>: CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR, date_of_birth VARCHAR, employee_Name VARCHAR) <answer>: SELECT employee_name, role_code, date_of_birth FROM Employees WHERE employee_Name = 'Armani'
2,434
<question>: What is the id for the employee called Ebba? <context>: CREATE TABLE Employees (employee_ID VARCHAR, employee_name VARCHAR) <answer>: SELECT employee_ID FROM Employees WHERE employee_name = "Ebba"
2,435
<question>: Show the names of all the employees with role "HR". <context>: CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR) <answer>: SELECT employee_name FROM Employees WHERE role_code = "HR"
2,436
<question>: Show all role codes and the number of employees in each role. <context>: CREATE TABLE Employees (role_code VARCHAR) <answer>: SELECT role_code, COUNT(*) FROM Employees GROUP BY role_code
2,437
<question>: What is the role code with the largest number of employees? <context>: CREATE TABLE Employees (role_code VARCHAR) <answer>: SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1
2,438
<question>: Show all role codes with at least 3 employees. <context>: CREATE TABLE Employees (role_code VARCHAR) <answer>: SELECT role_code FROM Employees GROUP BY role_code HAVING COUNT(*) >= 3
2,439
<question>: Show the role code with the least employees. <context>: CREATE TABLE Employees (role_code VARCHAR) <answer>: SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) LIMIT 1
2,440
<question>: What is the role name and role description for employee called Ebba? <context>: CREATE TABLE Employees (role_code VARCHAR, employee_name VARCHAR); CREATE TABLE ROLES (role_name VARCHAR, role_description VARCHAR, role_code VARCHAR) <answer>: SELECT T2.role_name, T2.role_description FROM Employees AS T1 JOIN ...
2,441
<question>: Show the names of employees with role name Editor. <context>: CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR) <answer>: SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name...
2,442
<question>: Show the employee ids for all employees with role name "Human Resource" or "Manager". <context>: CREATE TABLE Employees (employee_id VARCHAR, role_code VARCHAR); CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR) <answer>: SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = ...
2,443
<question>: What are the different location codes for documents? <context>: CREATE TABLE Document_locations (location_code VARCHAR) <answer>: SELECT DISTINCT location_code FROM Document_locations
2,444
<question>: Show the location name for document "Robin CV". <context>: CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR); CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (document_id VARCHAR, location_code VARCHAR) <answer>: SELECT T3.loca...
2,445
<question>: Show the location code, the starting date and ending data in that location for all the documents. <context>: CREATE TABLE Document_locations (location_code VARCHAR, date_in_location_from VARCHAR, date_in_locaton_to VARCHAR) <answer>: SELECT location_code, date_in_location_from, date_in_locaton_to FROM Docum...
2,446
<question>: What is "the date in location from" and "the date in location to" for the document with name "Robin CV"? <context>: CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (date_in_location_from VARCHAR, date_in_locaton_to VARCHAR, document_id VARCHAR) <answe...
2,447
<question>: Show the location codes and the number of documents in each location. <context>: CREATE TABLE Document_locations (location_code VARCHAR) <answer>: SELECT location_code, COUNT(*) FROM Document_locations GROUP BY location_code
2,448
<question>: What is the location code with the most documents? <context>: CREATE TABLE Document_locations (location_code VARCHAR) <answer>: SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY COUNT(*) DESC LIMIT 1
2,449
<question>: Show the location codes with at least 3 documents. <context>: CREATE TABLE Document_locations (location_code VARCHAR) <answer>: SELECT location_code FROM Document_locations GROUP BY location_code HAVING COUNT(*) >= 3
2,450
<question>: Show the location name and code with the least documents. <context>: CREATE TABLE Document_locations (location_code VARCHAR); CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR) <answer>: SELECT T2.location_name, T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 O...
2,451
<question>: What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents? <context>: CREATE TABLE Employees (employee_name VARCHAR, employee_id VARCHAR); CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR, Destroyed_by_...
2,452
<question>: Show the id of each employee and the number of document destruction authorised by that employee. <context>: CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR) <answer>: SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destruct...
2,453
<question>: Show the employee ids and the number of documents destroyed by each employee. <context>: CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR) <answer>: SELECT Destroyed_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID
2,454
<question>: Show the ids of the employees who don't authorize destruction for any document. <context>: CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR); CREATE TABLE Employees (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) <answer>: SELECT...
2,455
<question>: Show the ids of all employees who have authorized destruction. <context>: CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR) <answer>: SELECT DISTINCT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
2,456
<question>: Show the ids of all employees who have destroyed a document. <context>: CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR) <answer>: SELECT DISTINCT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed
2,457
<question>: Show the ids of all employees who don't destroy any document. <context>: CREATE TABLE Employees (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR); CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destroyed_by_Employee_ID VARCHAR) <answer>: SELECT employee_id FROM Employees EXCEPT SELECT De...
2,458
<question>: Show the ids of all employees who have either destroyed a document or made an authorization to do this. <context>: CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) <answer>: SELECT Destroyed_by_Employee_ID FROM Documents_to_be_destroyed...
2,459
<question>: What are the names of all clubs? <context>: CREATE TABLE club (clubname VARCHAR) <answer>: SELECT clubname FROM club
2,460
<question>: How many students are there? <context>: CREATE TABLE student (Id VARCHAR) <answer>: SELECT COUNT(*) FROM student
2,461
<question>: What are the first names of all the students? <context>: CREATE TABLE student (fname VARCHAR) <answer>: SELECT DISTINCT fname FROM student
2,462
<question>: Find the last names of the members of the club "Bootup Baltimore". <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) <answer>: SELECT t3.lname FROM club AS t1 JOIN member_of_club A...
2,463
<question>: Who are the members of the club named "Hopkins Student Enterprises"? Show the last name. <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) <answer>: SELECT t3.lname FROM club AS t1...
2,464
<question>: How many members does the club "Tennis Club" has? <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR) <answer>: SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JO...
2,465
<question>: Find the number of members of club "Pen and Paper Gaming". <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR) <answer>: SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2....
2,466
<question>: How many clubs does "Linda Smith" belong to? <context>: CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR) <answer>: SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.cl...
2,467
<question>: Find the number of clubs where "Tracy Kim" is a member. <context>: CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR) <answer>: SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clu...
2,468
<question>: Find all the female members of club "Bootup Baltimore". Show the first name and last name. <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) <answer>: S...
2,469
<question>: Find all the male members of club "Hopkins Student Enterprises". Show the first name and last name. <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) <a...
2,470
<question>: Find all members of "Bootup Baltimore" whose major is "600". Show the first name and last name. <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR, major VARCHAR) <ans...
2,471
<question>: Which club has the most members majoring in "600"? <context>: CREATE TABLE student (stuid VARCHAR, major VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) <answer>: SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.cl...
2,472
<question>: Find the name of the club that has the most female students. <context>: CREATE TABLE student (stuid VARCHAR, sex VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) <answer>: SELECT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ...
2,473
<question>: What is the description of the club named "Tennis Club"? <context>: CREATE TABLE club (clubdesc VARCHAR, clubname VARCHAR) <answer>: SELECT clubdesc FROM club WHERE clubname = "Tennis Club"
2,474
<question>: Find the description of the club "Pen and Paper Gaming". <context>: CREATE TABLE club (clubdesc VARCHAR, clubname VARCHAR) <answer>: SELECT clubdesc FROM club WHERE clubname = "Pen and Paper Gaming"
2,475
<question>: What is the location of the club named "Tennis Club"? <context>: CREATE TABLE club (clublocation VARCHAR, clubname VARCHAR) <answer>: SELECT clublocation FROM club WHERE clubname = "Tennis Club"
2,476
<question>: Find the location of the club "Pen and Paper Gaming". <context>: CREATE TABLE club (clublocation VARCHAR, clubname VARCHAR) <answer>: SELECT clublocation FROM club WHERE clubname = "Pen and Paper Gaming"
2,477
<question>: Where is the club "Hopkins Student Enterprises" located? <context>: CREATE TABLE club (clublocation VARCHAR, clubname VARCHAR) <answer>: SELECT clublocation FROM club WHERE clubname = "Hopkins Student Enterprises"
2,478
<question>: Find the name of all the clubs at "AKW". <context>: CREATE TABLE club (clubname VARCHAR, clublocation VARCHAR) <answer>: SELECT clubname FROM club WHERE clublocation = "AKW"
2,479
<question>: How many clubs are located at "HHH"? <context>: CREATE TABLE club (clublocation VARCHAR) <answer>: SELECT COUNT(*) FROM club WHERE clublocation = "HHH"
2,480
<question>: What are the first and last name of the president of the club "Bootup Baltimore"? <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR, position VARCHAR) <answer>: SELEC...
2,481
<question>: Who is the "CTO" of club "Hopkins Student Enterprises"? Show the first name and last name. <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR, position VARCHAR) <answe...
2,482
<question>: How many different roles are there in the club "Bootup Baltimore"? <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (position VARCHAR, clubid VARCHAR) <answer>: SELECT COUNT(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid W...
2,483
<question>: How many members of "Bootup Baltimore" are older than 18? <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) <answer>: SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1....
2,484
<question>: How many members of club "Bootup Baltimore" are younger than 18? <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) <answer>: SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2...
2,485
<question>: Find the names of all the clubs that have at least a member from the city with city code "BAL". <context>: CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR) <answer>: SELECT DISTINCT t1.c...
2,486
<question>: Find the names of the clubs that have at least a member from the city with city code "HOU". <context>: CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR) <answer>: SELECT DISTINCT t1.clubn...
2,487
<question>: How many clubs does the student named "Eric Tai" belong to? <context>: CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) <answer>: SELECT COUNT(DISTINCT t1.clubname) FROM club ...
2,488
<question>: List the clubs having "Davis Steven" as a member. <context>: CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) <answer>: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member...
2,489
<question>: List the clubs that have at least a member with advisor "1121". <context>: CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, advisor VARCHAR) <answer>: SELECT DISTINCT t1.clubname FROM club AS t1 JOIN membe...
2,490
<question>: What is the average age of the members of the club "Bootup Baltimore"? <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) <answer>: SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_c...
2,491
<question>: Find the average age of members of the club "Hopkins Student Enterprises". <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) <answer>: SELECT AVG(t3.age) FROM club AS t1 JOIN member_...
2,492
<question>: Retrieve the average age of members of the club "Tennis Club". <context>: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) <answer>: SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t...
2,493
<question>: What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'? <context>: CREATE TABLE grants (grant_amount VARCHAR, grant_end_date INTEGER); CREATE TABLE Grants (grant_amount VARCHAR, grant_id VARCHAR); CREATE T...
2,494
<question>: List the project details of the project both producing patent and paper as outcomes. <context>: CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) <answer>: SELECT T1.project_details FROM Projects AS T1 JOIN Project_o...
2,495
<question>: What is the total grant amount of the organisations described as research? <context>: CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (organisation_id VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARC...
2,496
<question>: List from which date and to which date these staff work: project staff of the project which hires the most staffs <context>: CREATE TABLE Project_Staff (date_from VARCHAR, date_to VARCHAR, project_id VARCHAR, role_code VARCHAR) <answer>: SELECT date_from, date_to FROM Project_Staff WHERE project_id IN (SELE...
2,497
<question>: Find the organisation ids and details of the organisations which are involved in <context>: CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR) <answer>: SELECT T2.organisation_id, T2.organisation_details FRO...
2,498
<question>: What is the organisation type and id of the organisation which has the most number of research staff? <context>: CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR) <answer>: SELECT T1.organisation_type, T1.organisat...
2,499
<question>: Which organisation type hires most research staff? <context>: CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR) <answer>: SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organis...