answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT MIN(week) FROM table_24481478_1 WHERE team_record = "7–2" | In which week was the team record 7–2? | CREATE TABLE table_24481478_1 (week INTEGER, team_record VARCHAR) |
SELECT release_date___xbox360__ FROM table_26631526_1 WHERE artist = "Sea Wolf" | Name the release date xbox 360 for sea wolf | CREATE TABLE table_26631526_1 (release_date___xbox360__ VARCHAR, artist VARCHAR) |
SELECT DISTINCT course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (course.number = 532 OR course.number = 481) AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON PROGRAM_COURSEalias1.course_id = COURSEalias1.course_id WHERE (COURSEalias1.number = 532 OR COURSEalias1.number = 481) AND COURSEalias1.department = 'EECS') | Which one is easier EECS 532 or EECS 481 ? | CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE area (
course_id int,
area varchar
) |
SELECT MAX(attendance) FROM table_24481478_1 WHERE opponent = "Raleigh-Durham Skyhawks" | How man fans showed up to watch the game versus the raleigh-durham skyhawks? | CREATE TABLE table_24481478_1 (attendance INTEGER, opponent VARCHAR) |
SELECT party FROM table_2668243_20 WHERE incumbent = "Richard Coulter" | What party was represented by incumbent Richard Coulter ? | CREATE TABLE table_2668243_20 (party VARCHAR, incumbent VARCHAR) |
SELECT episode_title FROM table_name_3 WHERE prod_code = "1gowo04" | What was the title of the episode with a production code of 1gowo04? | CREATE TABLE table_name_3 (
episode_title VARCHAR,
prod_code VARCHAR
) |
SELECT disposable_usd_growth FROM table_24486462_1 WHERE rank = 26 | If the rank is 26, what is the disposable USD growth? | CREATE TABLE table_24486462_1 (disposable_usd_growth VARCHAR, rank VARCHAR) |
SELECT result FROM table_2668243_8 WHERE incumbent = "Henry Daniel" | What was the result for Henry Daniel's race? | CREATE TABLE table_2668243_8 (result VARCHAR, incumbent VARCHAR) |
SELECT opening FROM table_name_83 WHERE white = "anand" AND moves < 61 AND result = "½–½" | What's the opening when white is Anand with fewer than 61 moves for a result of ? | CREATE TABLE table_name_83 (
opening VARCHAR,
result VARCHAR,
white VARCHAR,
moves VARCHAR
) |
SELECT country FROM table_24486462_1 WHERE compulsory_deduction = "29.3%" | What country has a compulsory deduction of 29.3%? | CREATE TABLE table_24486462_1 (country VARCHAR, compulsory_deduction VARCHAR) |
SELECT first_elected FROM table_2668243_8 WHERE incumbent = "Henry Daniel" | When was Henry Daniel first elected? | CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT organization_details, COUNT(organization_details) FROM Things AS T1 JOIN Organizations AS T2 ON T1.organization_id = T2.organization_id GROUP BY organization_details ORDER BY organization_details | List the number of items by the details of the organization that owns it using a bar chart, rank in ascending by the organization_details. | CREATE TABLE Residents_Services (
resident_id INTEGER,
service_id INTEGER,
date_moved_in DATETIME,
property_id INTEGER,
date_requested DATETIME,
date_provided DATETIME,
other_details VARCHAR(255)
)
CREATE TABLE Timed_Locations_of_Things (
thing_id INTEGER,
Date_and_Time DATETIME,
Location_Code CHAR(15)
)
CREATE TABLE Timed_Status_of_Things (
thing_id INTEGER,
Date_and_Date DATETIME,
Status_of_Thing_Code CHAR(15)
)
CREATE TABLE Customers (
customer_id INTEGER,
customer_details VARCHAR(255)
)
CREATE TABLE Services (
service_id INTEGER,
organization_id INTEGER,
service_type_code CHAR(15),
service_details VARCHAR(255)
)
CREATE TABLE Organizations (
organization_id INTEGER,
parent_organization_id INTEGER,
organization_details VARCHAR(255)
)
CREATE TABLE Customer_Event_Notes (
Customer_Event_Note_ID INTEGER,
Customer_Event_ID INTEGER,
service_type_code CHAR(15),
resident_id INTEGER,
property_id INTEGER,
date_moved_in DATETIME
)
CREATE TABLE Properties (
property_id INTEGER,
property_type_code CHAR(15),
property_address VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Customer_Events (
Customer_Event_ID INTEGER,
customer_id INTEGER,
date_moved_in DATETIME,
property_id INTEGER,
resident_id INTEGER,
thing_id INTEGER
)
CREATE TABLE Residents (
resident_id INTEGER,
property_id INTEGER,
date_moved_in DATETIME,
date_moved_out DATETIME,
other_details VARCHAR(255)
)
CREATE TABLE Things (
thing_id INTEGER,
organization_id INTEGER,
Type_of_Thing_Code CHAR(15),
service_type_code CHAR(10),
service_details VARCHAR(255)
) |
SELECT MAX(disposable_usd_growth) FROM table_24486462_1 WHERE country = "Australia" | What is Australia's Disposable USD growth? | CREATE TABLE table_24486462_1 (disposable_usd_growth INTEGER, country VARCHAR) |
SELECT COUNT(first_elected) FROM table_2668243_8 WHERE incumbent = "Thomas P. Moore" | How many first elected years are provided for Thomas P. Moore? | CREATE TABLE table_2668243_8 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT T2.shop_name FROM stock AS T1 JOIN shop AS T2 ON T1.shop_id = T2.shop_id GROUP BY T1.shop_id ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of the shop that has the most different kinds of devices in stock? | CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version text,
applications text,
software_platform text
)
CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
) |
SELECT MIN(disposable_usd_2011) FROM table_24486462_1 | What is the lowest disposable USD 2011? | CREATE TABLE table_24486462_1 (disposable_usd_2011 INTEGER) |
SELECT district FROM table_2668243_8 WHERE incumbent = "Joseph Lecompte" | What district is Joseph Lecompte in office in? | CREATE TABLE table_2668243_8 (district VARCHAR, incumbent VARCHAR) |
SELECT "Opponent" FROM table_4985 WHERE "Event" = 'rumble of the kings 6' | Who did he fight in Rumble of the Kings 6? | CREATE TABLE table_4985 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) |
SELECT MAX(minutes) FROM table_24477075_1 WHERE starts = 12 | Name the most minutes and starts being 12 | CREATE TABLE table_24477075_1 (minutes INTEGER, starts VARCHAR) |
SELECT party FROM table_2668264_22 WHERE incumbent = "Joel R. Poinsett" | What party does joel r. poinsett represent? | CREATE TABLE table_2668264_22 (party VARCHAR, incumbent VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE" AND demographic.dob_year < "2107" | get me the number of patients born before 2107 who have coronary artery primary disease. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) |
SELECT position FROM table_24477075_1 WHERE minutes = 132 | Name the position for 132 minutes | CREATE TABLE table_24477075_1 (position VARCHAR, minutes VARCHAR) |
SELECT first_elected FROM table_2668264_22 WHERE incumbent = "Andrew R. Govan" | What was the first elected year that featured incumbent andrew r. govan? | CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT film_title_used_in_nomination FROM table_name_65 WHERE original_title = "sedamdeset i dva dana" | What is the film title used for nomination with the original title sedamdeset i dva dana? | CREATE TABLE table_name_65 (
film_title_used_in_nomination VARCHAR,
original_title VARCHAR
) |
SELECT rank FROM table_24489942_10 WHERE name = "Thomas Morgenstern" | Name the rank for thomas morgenstern | CREATE TABLE table_24489942_10 (rank VARCHAR, name VARCHAR) |
SELECT district FROM table_2668336_17 WHERE incumbent = "Charles Fisher" | In what district is the incumbent Charles Fisher? | CREATE TABLE table_2668336_17 (district VARCHAR, incumbent VARCHAR) |
SELECT Id, DisplayName, Reputation FROM Users ORDER BY Reputation DESC LIMIT 10 | Top 10 Users from. | CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
) |
SELECT COUNT(rank) FROM table_24489942_10 WHERE nationality = "Switzerland" | Name the rank for switzerland | CREATE TABLE table_24489942_10 (rank VARCHAR, nationality VARCHAR) |
SELECT district FROM table_2668336_17 WHERE first_elected = "1807 1817" | First elected in 1807 1817 in what district? | CREATE TABLE table_2668336_17 (district VARCHAR, first_elected VARCHAR) |
SELECT season FROM table_2140071_10 WHERE premier_date = "August 16, 2010" | Name the season for august 16, 2010 | CREATE TABLE table_2140071_10 (
season VARCHAR,
premier_date VARCHAR
) |
SELECT points FROM table_24489942_10 WHERE nationality = "Switzerland" | Name the points for switzerland | CREATE TABLE table_24489942_10 (points VARCHAR, nationality VARCHAR) |
SELECT incumbent FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%" | The candidates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% is for what incumbent? | CREATE TABLE table_2668336_17 (incumbent VARCHAR, candidates VARCHAR) |
SELECT AVG(played) FROM table_name_13 WHERE lost < 3 AND drawn < 0 | What Played has a Lost smaller than 3, and a Drawn smaller than 0? | CREATE TABLE table_name_13 (
played INTEGER,
lost VARCHAR,
drawn VARCHAR
) |
SELECT points FROM table_24489942_10 WHERE name = "Thomas Morgenstern" | Name the points for thomas morgenstern | CREATE TABLE table_24489942_10 (points VARCHAR, name VARCHAR) |
SELECT candidates FROM table_2668336_17 WHERE district = "North Carolina 10" | In district North Carolina 10, what are the candidates? | CREATE TABLE table_2668336_17 (candidates VARCHAR, district VARCHAR) |
SELECT "First Pref votes" FROM table_9516 WHERE "% FPv" = '0.06' | What is the First Pref Votes for the % FPv of 0.06? | CREATE TABLE table_9516 (
"Party" text,
"Leader" text,
"Seats" text,
"% of seats" text,
"First Pref votes" text,
"% FPv" text
) |
SELECT appointed FROM table_24490665_1 WHERE name = "Jack Watson" | When was jack watson appointed? | CREATE TABLE table_24490665_1 (appointed VARCHAR, name VARCHAR) |
SELECT result FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%" | Candiates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% had what result? | CREATE TABLE table_2668336_17 (result VARCHAR, candidates VARCHAR) |
SELECT "1989" FROM table_77106 WHERE "1997" = 'qf' AND "1993" = 'a' | What was the value in 1989 with QF in 1997 and A in 1993? | CREATE TABLE table_77106 (
"Tournament" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"Career SR" text,
"Career Win-Loss" text
) |
SELECT launched FROM table_24496403_1 WHERE ship = "Carysfort" | When was the Carysfort launched? | CREATE TABLE table_24496403_1 (launched VARCHAR, ship VARCHAR) |
SELECT incumbent FROM table_2668336_19 WHERE candidates = "John Murray (DR) 50.4% George Denison (DR) 49.6%" AND result = "Retired Democratic-Republican hold" | Who were the incumbent(s) in the election featuring john murray (dr) 50.4% george denison (dr) 49.6% with a result of a retired democratic-republican hold? | CREATE TABLE table_2668336_19 (incumbent VARCHAR, candidates VARCHAR, result VARCHAR) |
SELECT AVG(workload) FROM program_course WHERE category LIKE '%PreMajor%' | How difficult on average are the PreMajor classes ? | CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
) |
SELECT launched FROM table_24496403_1 WHERE disposition = "Stokers' training ship" | When was the stokers' training ship launched? | CREATE TABLE table_24496403_1 (launched VARCHAR, disposition VARCHAR) |
SELECT incumbent FROM table_2668336_19 WHERE result = "Retired Democratic-Republican hold" AND first_elected = "1816" | Who were the incumbent(s) when the result was a retired democratic-republican hold and the first elected representative was in 1816> | CREATE TABLE table_2668336_19 (incumbent VARCHAR, result VARCHAR, first_elected VARCHAR) |
SELECT order_date, COUNT(order_date) FROM Customers AS t1 JOIN Customer_Orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = "Delivered" | How many orders in each day? Return a bar chart to show. | CREATE TABLE Customers (
customer_id INTEGER,
payment_method VARCHAR(15),
customer_name VARCHAR(80),
date_became_customer DATETIME,
other_customer_details VARCHAR(255)
)
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_status VARCHAR(15),
order_date DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Customer_Contact_Channels (
customer_id INTEGER,
channel_code VARCHAR(15),
active_from_date DATETIME,
active_to_date DATETIME,
contact_number VARCHAR(50)
)
CREATE TABLE Customer_Addresses (
customer_id INTEGER,
address_id INTEGER,
date_address_from DATETIME,
address_type VARCHAR(15),
date_address_to DATETIME
)
CREATE TABLE Order_Items (
order_id INTEGER,
product_id INTEGER,
order_quantity VARCHAR(15)
)
CREATE TABLE Products (
product_id INTEGER,
product_details VARCHAR(255)
)
CREATE TABLE Addresses (
address_id INTEGER,
address_content VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50),
other_address_details VARCHAR(255)
) |
SELECT COUNT(completed) FROM table_24496403_1 WHERE ship = "Carysfort" | How many ships were named Carysfort? | CREATE TABLE table_24496403_1 (completed VARCHAR, ship VARCHAR) |
SELECT candidates FROM table_2668336_19 WHERE incumbent = "William Wilson" | Who were the candidates in the election where william wilson was the incumbent? | CREATE TABLE table_2668336_19 (candidates VARCHAR, incumbent VARCHAR) |
SELECT MIN(time) FROM table_name_45 WHERE athlete = "muna lee" | What is the athlete muna lee lowest time? | CREATE TABLE table_name_45 (
time INTEGER,
athlete VARCHAR
) |
SELECT background FROM table_24501530_1 WHERE result = "Fired in week 5" | What is the background of the person fired in week 5? | CREATE TABLE table_24501530_1 (background VARCHAR, result VARCHAR) |
SELECT result FROM table_2668352_14 WHERE district = "Pennsylvania 8" | Name the result for pennsylvania 8 | CREATE TABLE table_2668352_14 (result VARCHAR, district VARCHAR) |
SELECT combined FROM table_name_93 WHERE overall = "2" AND slalom = "5" | What is the combined of 2 overalls and 5 slaloms? | CREATE TABLE table_name_93 (
combined VARCHAR,
overall VARCHAR,
slalom VARCHAR
) |
SELECT result FROM table_24501530_1 WHERE hometown = "Maylands, Western Australia" | What was the result of the player from Maylands, Western Australia? | CREATE TABLE table_24501530_1 (result VARCHAR, hometown VARCHAR) |
SELECT result FROM table_2668352_14 WHERE first_elected = "1810" | Name the result for 1810 | CREATE TABLE table_2668352_14 (result VARCHAR, first_elected VARCHAR) |
SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC | For those employees who was hired before 2002-06-21, visualize a line chart about the change of department_id over hire_date , and could you list in descending by the X-axis? | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) |
SELECT COUNT(age) FROM table_24501530_1 WHERE candidate = "Amy Cato" | How many ages for player Amy Cato? | CREATE TABLE table_24501530_1 (age VARCHAR, candidate VARCHAR) |
SELECT district FROM table_2668352_14 WHERE incumbent = "Hugh Glasgow" | Name the district for hugh glasgow | CREATE TABLE table_2668352_14 (district VARCHAR, incumbent VARCHAR) |
SELECT alternate_title_translation FROM table_name_40 WHERE series_premiere = "december 12, 2006" | What is the alternate title/translation of the series that premiered on December 12, 2006? | CREATE TABLE table_name_40 (
alternate_title_translation VARCHAR,
series_premiere VARCHAR
) |
SELECT candidate FROM table_24501530_1 WHERE hometown = "Maylands, Western Australia" | What is the name of the player from Maylands, Western Australia? | CREATE TABLE table_24501530_1 (candidate VARCHAR, hometown VARCHAR) |
SELECT incumbent FROM table_2668352_14 WHERE result = "Lost re-election Democratic-Republican hold" | Name the incumbent for lost re-election democratic-republican hold | CREATE TABLE table_2668352_14 (incumbent VARCHAR, result VARCHAR) |
SELECT MAX("Occurrence") FROM table_28964 WHERE "Matrix Sim" = '0.925' | What occurence has 0.925 listed as the matrix sim? | CREATE TABLE table_28964 (
"Detailed Family Information" text,
"From" real,
"To" real,
"Anchor" real,
"Orientation" text,
"Conserved in Mus Musculus" text,
"Matrix Sim" text,
"Sequence" text,
"Occurrence" real
) |
SELECT COUNT(age) FROM table_24501530_1 WHERE result = "Fired in week 6" | How many age figures for the player fired in week 6? | CREATE TABLE table_24501530_1 (age VARCHAR, result VARCHAR) |
SELECT district FROM table_2668352_14 WHERE first_elected = "1810" | Name the district for first elected 1810 | CREATE TABLE table_2668352_14 (district VARCHAR, first_elected VARCHAR) |
SELECT MIN("Rank") FROM table_63273 WHERE "Nationality" = 'united states' AND "Time" = '58.06' AND "Heat" > '5' | When the nationality is united states, and the time is 58.06, and the heat is larger than 5 what is the lowest rank? | CREATE TABLE table_63273 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) |
SELECT latitude FROM table_24518475_1 WHERE time__utc_ = "18:19:36" | What was the latitude that had a UTC time of 18:19:36? | CREATE TABLE table_24518475_1 (latitude VARCHAR, time__utc_ VARCHAR) |
SELECT party FROM table_2668352_19 WHERE incumbent = "James Pleasants" | What party does James Pleasants belong to? | CREATE TABLE table_2668352_19 (party VARCHAR, incumbent VARCHAR) |
SELECT source FROM table_21535453_1 WHERE terry_mcauliffe = "30%" AND dates_administered = "June 8" | What was the source of the poll that gave McAuliffe 30% on June 8? | CREATE TABLE table_21535453_1 (
source VARCHAR,
terry_mcauliffe VARCHAR,
dates_administered VARCHAR
) |
SELECT depth FROM table_24518475_1 WHERE time__utc_ = "18:00:22" | What is the depth of the aftershock at 18:00:22? | CREATE TABLE table_24518475_1 (depth VARCHAR, time__utc_ VARCHAR) |
SELECT first_elected FROM table_2668374_11 WHERE incumbent = "William Kennedy" | When was William Kennedy first elected? | CREATE TABLE table_2668374_11 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT "Nationality" FROM table_54539 WHERE "Player" = 'steven anthony' | What nationality is Steven Anthony? | CREATE TABLE table_54539 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"League from" text
) |
SELECT team FROM table_24535095_2 WHERE listed_owner_s_ = "Susan Bates" | Name the team for susan bates | CREATE TABLE table_24535095_2 (team VARCHAR, listed_owner_s_ VARCHAR) |
SELECT district FROM table_2668378_13 WHERE incumbent = "William Hoge" | what was the section where the winner is william hoge | CREATE TABLE table_2668378_13 (district VARCHAR, incumbent VARCHAR) |
SELECT "Preschool (0\u20135 years)" FROM table_27316 WHERE "Primary (6\u201313 years)" = '93.10' | What is the enrollment ratio in preschool in the region where the enrollment ratio in primary is 93.10? | CREATE TABLE table_27316 (
"Region" text,
"Preschool (0\u20135 years)" text,
"Primary (6\u201313 years)" text,
"Secondary (14\u201317 years)" text,
"Tertiary (18\u201324 years)" text
) |
SELECT truck_s_ FROM table_24535095_2 WHERE crew_chief = "Eric Phillips" | Name the truck for eric phillips | CREATE TABLE table_24535095_2 (truck_s_ VARCHAR, crew_chief VARCHAR) |
SELECT candidates FROM table_2668378_13 WHERE incumbent = "Daniel Montgomery" | who was running where the winner is daniel montgomery | CREATE TABLE table_2668378_13 (candidates VARCHAR, incumbent VARCHAR) |
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Elementary African Languages%' OR name LIKE '%Elementary African Languages%') AND department = 'EECS' | Are there any classes about Elementary African Languages ? | CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
) |
SELECT listed_owner_s_ FROM table_24535095_2 WHERE crew_chief = "Mike Garvey" | Name the listed owner for mike garvey | CREATE TABLE table_24535095_2 (listed_owner_s_ VARCHAR, crew_chief VARCHAR) |
SELECT candidates FROM table_2668378_13 WHERE district = "Pennsylvania 5" | who was running in the section pennsylvania 5 | CREATE TABLE table_2668378_13 (candidates VARCHAR, district VARCHAR) |
SELECT "Year" FROM table_38331 WHERE "Crew" = 'varsity 8+' AND "Record" = '7-3' | Which year's crew is varsity 8+ when the record is 7-3? | CREATE TABLE table_38331 (
"Year" text,
"Coach" text,
"Crew" text,
"Record" text,
"Win %" real
) |
SELECT MIN(_number) FROM table_24535095_2 WHERE listed_owner_s_ = "Pete Raymer" | Name the least listed owner for pete raymer | CREATE TABLE table_24535095_2 (_number INTEGER, listed_owner_s_ VARCHAR) |
SELECT incumbent FROM table_2668378_18 WHERE first_elected = "1807" | Who was the incumbent in the district that first elected someone in 1807? | CREATE TABLE table_2668378_18 (incumbent VARCHAR, first_elected VARCHAR) |
SELECT visitor FROM table_name_37 WHERE date = "february 11" | What visitor has February 11 as the date? | CREATE TABLE table_name_37 (
visitor VARCHAR,
date VARCHAR
) |
SELECT crew_chief FROM table_24535095_2 WHERE listed_owner_s_ = "Rhonda Thorson" | Name the crew chief for rhonda thorson | CREATE TABLE table_24535095_2 (crew_chief VARCHAR, listed_owner_s_ VARCHAR) |
SELECT first_elected FROM table_2668378_18 WHERE incumbent = "John Smith" | When was someone first elected in the district with incumbent john smith? | CREATE TABLE table_2668378_18 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT SUM(cost.cost) FROM cost WHERE cost.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52898 AND admissions.dischtime IS NULL) | what is the total bill for patient 52898's hospital stay in their current hospital encounter? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
) |
SELECT MAX(production_code) FROM table_2453243_3 WHERE no_in_season = 3 | What is the production code for episode 3 in the season? | CREATE TABLE table_2453243_3 (production_code INTEGER, no_in_season VARCHAR) |
SELECT party FROM table_2668378_18 WHERE incumbent = "Matthew Clay" | What party represents the district with incumbent matthew clay? | CREATE TABLE table_2668378_18 (party VARCHAR, incumbent VARCHAR) |
SELECT COUNT(*) FROM products WHERE NOT product_id IN (SELECT product_id FROM Order_items) | How many products were not included in any order? | CREATE TABLE products (
product_id VARCHAR
)
CREATE TABLE Order_items (
product_id VARCHAR
) |
SELECT MIN(match2) FROM table_24538140_2 | What is the lowest score of all games for match 2? | CREATE TABLE table_24538140_2 (match2 INTEGER) |
SELECT party FROM table_2668378_18 WHERE incumbent = "John G. Jackson" | What party represents the district with john g. jackson? | CREATE TABLE table_2668378_18 (party VARCHAR, incumbent VARCHAR) |
SELECT MAX("Laps") FROM table_12062 WHERE "Grid" = '20' | what is the most laps with a grid of 20? | CREATE TABLE table_12062 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
SELECT MAX(match2) FROM table_24538140_2 WHERE match4 = 0 AND total = 5 | What is the highest score for match 2 where the score for match 4 is 0 and the total score is 5? | CREATE TABLE table_24538140_2 (match2 INTEGER, match4 VARCHAR, total VARCHAR) |
SELECT COUNT(candidates) FROM table_2668393_18 WHERE incumbent = "John Dawson Redistricted from the 15th district" | How many times was the incumbent john dawson redistricted from the 15th district? | CREATE TABLE table_2668393_18 (candidates VARCHAR, incumbent VARCHAR) |
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND fare.one_direction_cost = (SELECT MIN(FAREalias1.one_direction_cost) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE (CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'BOSTON' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'SAN FRANCISCO' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.airline_code = 'UA' AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id) AND flight_fare.fare_id = fare.fare_id AND flight.airline_code = 'UA' AND flight.flight_id = flight_fare.flight_id | what is the lowest fare UA charges between BOSTON and SAN FRANCISCO | CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,
time_elapsed int,
to_airport varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_miles int,
pressurized varchar
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
) |
SELECT match1 FROM table_24538140_2 WHERE team = "Eastern Tigers" | What is the score for match 1 for the team Eastern Tigers? | CREATE TABLE table_24538140_2 (match1 VARCHAR, team VARCHAR) |
SELECT party FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)" | What is the party for the candidates edwin gray (dr)? | CREATE TABLE table_2668393_18 (party VARCHAR, candidates VARCHAR) |
SELECT i_o_bus FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-21xx" | What is the i/o bus for the brand name Core i3-21xx? | CREATE TABLE table_24538587_11 (
i_o_bus VARCHAR,
brand_name__list_ VARCHAR
) |
SELECT COUNT(socket) FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-2xx7M" | How many sockets are listed that have a brand name of "Core i3-2xx7m"? | CREATE TABLE table_24538587_11 (socket VARCHAR, brand_name__list_ VARCHAR) |
SELECT result FROM table_2668393_18 WHERE district = "Virginia 11" | What is the result in the virginia 11 district? | CREATE TABLE table_2668393_18 (result VARCHAR, district VARCHAR) |
SELECT "Name" FROM table_54822 WHERE "Year" > '2006' AND "Floors" > '101' | What is the name of the building housing more than 101 floors, that was built after 2006? | CREATE TABLE table_54822 (
"Rank" text,
"Name" text,
"Height m (ft)" text,
"Floors" real,
"Year" real
) |
SELECT i_o_bus FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-21xx" | What is the i/o bus for the brand name Core i3-21xx? | CREATE TABLE table_24538587_11 (i_o_bus VARCHAR, brand_name__list_ VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.