answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "Score" FROM table_36452 WHERE "Date" = 'july 18' AND "Record" = '41-51' | What is the Score on July 18 that has Record of 41-51? | CREATE TABLE table_36452 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." real,
"Record" text
) |
SELECT year FROM table_name_26 WHERE top_25 = 0 AND earnings__$_ > 0 | What year has a Top 25 of 0, and a Earnings ($) larger than 0? | CREATE TABLE table_name_26 (year VARCHAR, top_25 VARCHAR, earnings__$_ VARCHAR) |
SELECT MAX(pts_agst) FROM table_21991074_3 | Name the most points agst | CREATE TABLE table_21991074_3 (pts_agst INTEGER) |
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE DATETIME(inputevents_cv.charttime) >= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY inputevents_cv.itemid) AS t1 WHERE t1.c1 <= 3) | what's the three most frequent input event since 3 years ago? | CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
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 inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
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
) |
SELECT MAX(top_25) FROM table_name_53 WHERE money_list_rank = "232" AND cuts_made < 2 | What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2? | CREATE TABLE table_name_53 (top_25 INTEGER, money_list_rank VARCHAR, cuts_made VARCHAR) |
SELECT MIN(lost) FROM table_21991074_3 | Name the least lost | CREATE TABLE table_21991074_3 (lost INTEGER) |
SELECT "Date" FROM table_74211 WHERE "Score" = 'W 104-98' | What date was the game score w 104-98? | CREATE TABLE table_74211 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT MIN(earnings__) AS $_ FROM table_name_93 WHERE money_list_rank = "6" AND starts < 22 | What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22? | CREATE TABLE table_name_93 (earnings__ INTEGER, money_list_rank VARCHAR, starts VARCHAR) |
SELECT written_by FROM table_21979779_1 WHERE us_viewers__million_ = "3.07" | who are the writers of the episode that had 3.07 millions of North American spectators? | CREATE TABLE table_21979779_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT MIN(tournaments) FROM table_name_46 WHERE highest_rank = "maegashira 13" | What is the lowest Tournaments with Highest Rank of Maegashira 13? | CREATE TABLE table_name_46 (
tournaments INTEGER,
highest_rank VARCHAR
) |
SELECT MAX(cuts_made) FROM table_name_47 WHERE top_10 < 8 AND wins > 0 | What is the highest number of Cuts made that has a Top 10 smaller than 8 and Wins larger than 0? | CREATE TABLE table_name_47 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR) |
SELECT MAX(no) FROM table_21979779_1 WHERE production_code = "2T7211" | what is the biggest series episode number whose production code is 2t7211? | CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR) |
SELECT player FROM table_name_57 WHERE pick = 402 | What was the name of the player for pick 402? | CREATE TABLE table_name_57 (
player VARCHAR,
pick VARCHAR
) |
SELECT COUNT(starts) FROM table_name_66 WHERE cuts_made = 2 AND top_25 > 0 AND earnings__$_ < 338 OFFSET 067 | How many Starts that have Cuts made of 2, Top 25 larger than 0, and Earnings ($) smaller than 338,067? | CREATE TABLE table_name_66 (starts VARCHAR, earnings__$_ VARCHAR, cuts_made VARCHAR, top_25 VARCHAR) |
SELECT MIN(no) FROM table_21979779_1 WHERE production_code = "2T7211" | what is the smallest series episode number whose production code is 2t7211? | CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR) |
SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-85328' AND patient.hospitaldischargetime IS NULL) ORDER BY patient.unitadmittime LIMIT 1 | during their current hospital visit what was the first id of the ward of patient 027-85328? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
) |
SELECT event FROM table_name_70 WHERE round = 1 AND res = "win" AND record = "15-4" | Which event was in round 1, resulted in a win, and a record of 15-4? | CREATE TABLE table_name_70 (event VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR) |
SELECT original_air_date FROM table_21979779_1 WHERE us_viewers__million_ = "1.76" | when was the premiere of the episode where the amount of North American spectators was 1.76 millions? | CREATE TABLE table_21979779_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR) |
SELECT DISTINCT name FROM genres | What are the different names of the genres? | CREATE TABLE playlist_tracks (
playlist_id number,
track_id number
)
CREATE TABLE sqlite_sequence (
name text,
seq text
)
CREATE TABLE customers (
id number,
first_name text,
last_name text,
company text,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text,
support_rep_id number
)
CREATE TABLE media_types (
id number,
name text
)
CREATE TABLE playlists (
id number,
name text
)
CREATE TABLE invoices (
id number,
customer_id number,
invoice_date time,
billing_address text,
billing_city text,
billing_state text,
billing_country text,
billing_postal_code text,
total number
)
CREATE TABLE albums (
id number,
title text,
artist_id number
)
CREATE TABLE tracks (
id number,
name text,
album_id number,
media_type_id number,
genre_id number,
composer text,
milliseconds number,
bytes number,
unit_price number
)
CREATE TABLE invoice_lines (
id number,
invoice_id number,
track_id number,
unit_price number,
quantity number
)
CREATE TABLE employees (
id number,
last_name text,
first_name text,
title text,
reports_to number,
birth_date time,
hire_date time,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text
)
CREATE TABLE genres (
id number,
name text
)
CREATE TABLE artists (
id number,
name text
) |
SELECT res FROM table_name_43 WHERE time = "5:00" AND record = "14-4" | What is the result when the time was 5:00 and a record of 14-4? | CREATE TABLE table_name_43 (res VARCHAR, time VARCHAR, record VARCHAR) |
SELECT MAX(series__number) FROM table_21994729_3 WHERE prod_code = "2APX05" | how many maximum series number have 2apx05 prod. code. | CREATE TABLE table_21994729_3 (series__number INTEGER, prod_code VARCHAR) |
SELECT "Date" FROM table_56423 WHERE "Attendance" = '48,041' | What was the date when the attendance was 48,041? | CREATE TABLE table_56423 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) |
SELECT wins FROM table_name_79 WHERE club = "ayr united" | How many wins did Ayr United have? | CREATE TABLE table_name_79 (wins VARCHAR, club VARCHAR) |
SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin" | What are all the title directed by reginald hudlin | CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Users.Id AS "user_link", Reputation, Location FROM Users, Badges WHERE Users.Id = Badges.UserId AND Badges.Class = 3 AND Badges.TagBased = 1 AND Badges.Name = 'angularjs' AND LOWER(Users.Location) LIKE LOWER('%London%') ORDER BY Reputation DESC | London based Angular Bronze Badge. | 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 PostTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
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 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 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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
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 PostTags (
PostId number,
TagId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE VoteTypes (
Id number,
Name 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 ReviewTaskTypes (
Id number,
Name text,
Description text
) |
SELECT last_final_lost FROM table_name_84 WHERE wins = "3" AND last_win = "2001" | When was the final loss of the club last won in 2001 and has a total of 3 wins? | CREATE TABLE table_name_84 (last_final_lost VARCHAR, wins VARCHAR, last_win VARCHAR) |
SELECT written_by FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin" | reginald hudlin directed how many written by. | CREATE TABLE table_21994729_3 (written_by VARCHAR, directed_by VARCHAR) |
SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 452 AND instructor.name LIKE '%Robert Donia%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id AND semester.semester = 'Winter' AND semester.semester_id = course_offering.semester AND semester.year = 2017 | Is Prof. Robert Donia teaching 452 next Winter ? | CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category 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 offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_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 semester (
semester_id int,
semester varchar,
year 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 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 area (
course_id int,
area varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
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 gsi (
course_offering_id int,
student_id int
)
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
) |
SELECT last_win FROM table_name_34 WHERE last_final_lost = "2011" | When was the last win for the club that had a final loss in 2011? | CREATE TABLE table_name_34 (last_win VARCHAR, last_final_lost VARCHAR) |
SELECT written_by FROM table_21994729_2 WHERE prod_code = "1APX11" | Who wore the episode with the production code of 1apx11? | CREATE TABLE table_21994729_2 (written_by VARCHAR, prod_code VARCHAR) |
SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE | For all employees who have the letters D or S in their first name, show me about the change of department_id over hire_date in a line chart, rank by the X-axis in asc. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,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)
) |
SELECT wins FROM table_name_33 WHERE runners_up = "8" | How many wins did the 8 time runner-up have? | CREATE TABLE table_name_33 (wins VARCHAR, runners_up VARCHAR) |
SELECT total FROM table_21995420_9 WHERE rank = 11 | If the rank is 11, what is the total amount? | CREATE TABLE table_21995420_9 (total VARCHAR, rank VARCHAR) |
SELECT "Pick #" FROM table_43131 WHERE "Player" = 'jason french' | Which pick number was there for Jason French? | CREATE TABLE table_43131 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) |
SELECT wins FROM table_name_42 WHERE last_win = "2000" | How many wins did the club have with the last win in 2000? | CREATE TABLE table_name_42 (wins VARCHAR, last_win VARCHAR) |
SELECT stunts FROM table_21995420_9 WHERE school = "Central Colleges of the Philippines CCP Bobcats" | If the school is Central Colleges of the Philippines CCP Bobcats, what is the stunts number? | CREATE TABLE table_21995420_9 (stunts VARCHAR, school VARCHAR) |
SELECT "Laps" FROM table_46184 WHERE "Car No." = '23' | How many laps did car 23 do? | CREATE TABLE table_46184 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
) |
SELECT SUM(car) FROM table_name_83 WHERE player = "jeremiah pope" | What are the carries of the player Jeremiah Pope? | CREATE TABLE table_name_83 (car INTEGER, player VARCHAR) |
SELECT 08 AS _pts FROM table_22011138_7 WHERE pos = 3 | If the POS is 3, what is the 08 points? | CREATE TABLE table_22011138_7 (pos VARCHAR) |
SELECT Calendar_Date, COUNT(Calendar_Date) FROM Ref_Calendar ORDER BY COUNT(Calendar_Date) DESC | Show all calendar dates and bin by weekday in a bar chart, I want to rank y axis in desc order. | CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Ref_Locations (
Location_Code CHAR(15),
Location_Name VARCHAR(255),
Location_Description VARCHAR(255)
)
CREATE TABLE Employees (
Employee_ID INTEGER,
Role_Code CHAR(15),
Employee_Name VARCHAR(255),
Gender_MFU CHAR(1),
Date_of_Birth DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Calendar (
Calendar_Date DATETIME,
Day_Number INTEGER
) |
SELECT MAX(crowd) FROM table_name_58 WHERE home_team = "fitzroy" | What was the largest crowd that was in attendance for fitzroy? | CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR) |
SELECT 08 AS _pts FROM table_22011138_7 WHERE team = "Rubio Ñú" | If the team is Rubio ñú, what is the 08 points? | CREATE TABLE table_22011138_7 (team VARCHAR) |
SELECT language FROM table_name_86 WHERE television_service = "reteconomy" | What is the Language when the Reteconomy is the television service? | CREATE TABLE table_name_86 (
language VARCHAR,
television_service VARCHAR
) |
SELECT player FROM table_name_69 WHERE team = "st. louis bombers" AND position = "g" | Who plays g position for the st. louis bombers? | CREATE TABLE table_name_69 (player VARCHAR, team VARCHAR, position VARCHAR) |
SELECT MAX(total_pts) FROM table_22011138_7 WHERE avg = "1.2803" | If the average is 1.2803, what is the total points maximum? | CREATE TABLE table_22011138_7 (total_pts INTEGER, avg VARCHAR) |
SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12952 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1 | how much weight was patient 12952's first weight on the first hospital visit? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title 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 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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
) |
SELECT player FROM table_name_15 WHERE position = "f" AND college = "depauw" | Who plays f position for depauw? | CREATE TABLE table_name_15 (player VARCHAR, position VARCHAR, college VARCHAR) |
SELECT total_pld FROM table_22011138_7 WHERE pos = 4 | If the POS is 4, what is the total PLD? | CREATE TABLE table_22011138_7 (total_pld VARCHAR, pos VARCHAR) |
SELECT SUM(lane) FROM table_name_92 WHERE nationality = "france" AND rank > 8 | How many lanes have a Nationality of france, and a Rank larger than 8? | CREATE TABLE table_name_92 (
lane INTEGER,
nationality VARCHAR,
rank VARCHAR
) |
SELECT position FROM table_name_39 WHERE college = "saint louis" | What position does the saint louis player play? | CREATE TABLE table_name_39 (position VARCHAR, college VARCHAR) |
SELECT team_name FROM table_22014431_3 WHERE total = "243" | What is the team name when 243 is the total? | CREATE TABLE table_22014431_3 (team_name VARCHAR, total VARCHAR) |
SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admityear >= "2156" | Specify the average age of unmarried patients admitted in or after the year 2156 | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 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 player FROM table_name_79 WHERE college = "sam houston state" | Who plays for sam houston state? | CREATE TABLE table_name_79 (player VARCHAR, college VARCHAR) |
SELECT team_name FROM table_22014431_3 WHERE tumbling = "44.5" | Which team names have 44.5 for tumbling? | CREATE TABLE table_22014431_3 (team_name VARCHAR, tumbling VARCHAR) |
SELECT MAX(previous_br_no) FROM table_2079664_3 | Name the most previous br number | CREATE TABLE table_2079664_3 (
previous_br_no INTEGER
) |
SELECT COUNT(position) FROM table_name_73 WHERE points = "30-8" AND goals_for > 25 | How many positions have Points of 30-8 and more than 25 goals? | CREATE TABLE table_name_73 (position VARCHAR, points VARCHAR, goals_for VARCHAR) |
SELECT total FROM table_22014431_3 WHERE tosses_pyramids = "44" | What is the total if 44 is tosses/pyramids? | CREATE TABLE table_22014431_3 (total VARCHAR, tosses_pyramids VARCHAR) |
SELECT DISTINCT name FROM genres | List all different genre types. | CREATE TABLE genres (
id number,
name text
)
CREATE TABLE playlists (
id number,
name text
)
CREATE TABLE employees (
id number,
last_name text,
first_name text,
title text,
reports_to number,
birth_date time,
hire_date time,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text
)
CREATE TABLE playlist_tracks (
playlist_id number,
track_id number
)
CREATE TABLE invoices (
id number,
customer_id number,
invoice_date time,
billing_address text,
billing_city text,
billing_state text,
billing_country text,
billing_postal_code text,
total number
)
CREATE TABLE albums (
id number,
title text,
artist_id number
)
CREATE TABLE media_types (
id number,
name text
)
CREATE TABLE artists (
id number,
name text
)
CREATE TABLE sqlite_sequence (
name text,
seq text
)
CREATE TABLE tracks (
id number,
name text,
album_id number,
media_type_id number,
genre_id number,
composer text,
milliseconds number,
bytes number,
unit_price number
)
CREATE TABLE invoice_lines (
id number,
invoice_id number,
track_id number,
unit_price number,
quantity number
)
CREATE TABLE customers (
id number,
first_name text,
last_name text,
company text,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text,
support_rep_id number
) |
SELECT MIN(played) FROM table_name_41 WHERE club = "ue figueres" AND goal_difference > 16 | What is the lowest play with ue figueres club and a goal difference more than 16? | CREATE TABLE table_name_41 (played INTEGER, club VARCHAR, goal_difference VARCHAR) |
SELECT deductions FROM table_22014431_3 WHERE tosses_pyramids = "56.5" | How many deductions have 56.5 as tosses/pyramids? | CREATE TABLE table_22014431_3 (deductions VARCHAR, tosses_pyramids VARCHAR) |
SELECT MIN("Int yards") FROM table_72680 WHERE "Sacks" = '11.5' | Name the least int yards when sacks is 11.5 | CREATE TABLE table_72680 (
"Player" text,
"G" real,
"Tackles" real,
"Solo" real,
"Assts" real,
"Sacks" text,
"Int" real,
"Int yards" real,
"Int avg." text,
"Int TD" real,
"Fum. rec" real,
"Fum. rec TD" real
) |
SELECT COUNT(played) FROM table_name_20 WHERE wins = 8 AND goals_against > 58 | How many played have 8 wins and more than 58 goals against? | CREATE TABLE table_name_20 (played VARCHAR, wins VARCHAR, goals_against VARCHAR) |
SELECT COUNT(rank) FROM table_22014431_3 WHERE tumbling = "36.5" | What is the rank when 36.5 is tumbling? | CREATE TABLE table_22014431_3 (rank VARCHAR, tumbling VARCHAR) |
SELECT "TO Winning Team" FROM table_18905 WHERE "GTO Winning Team" = 'Gene Felton' | Who is Gene Felton's TO Winning Team? | CREATE TABLE table_18905 (
"Rnd" real,
"Circuit" text,
"GTO Winning Team" text,
"GTU Winning Team" text,
"TO Winning Team" text,
"TU Winning Team" text,
"Results" text
) |
SELECT withdrawn FROM table_name_72 WHERE gsr_class = "296" | What is withdrawn with a GSR Class of 296? | CREATE TABLE table_name_72 (withdrawn VARCHAR, gsr_class VARCHAR) |
SELECT MAX(rank) FROM table_22014431_3 WHERE tosses_pyramids = "64.5" | What is the rank when 64.5 is tosses/pyramids? | CREATE TABLE table_22014431_3 (rank INTEGER, tosses_pyramids VARCHAR) |
SELECT meter_200, AVG(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 | Draw a bar chart about the distribution of meter_200 and the average of meter_100 , and group by attribute meter_200, and show by the x-axis from low to high. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
) |
SELECT inchicore_class FROM table_name_4 WHERE gsr_class = "235" | What Inchicore Class has a GSR Class of 235? | CREATE TABLE table_name_4 (inchicore_class VARCHAR, gsr_class VARCHAR) |
SELECT COUNT(outcome) FROM table_2201724_2 WHERE championship = "French championships" | How many different outcomes of the French Championships were there? | CREATE TABLE table_2201724_2 (outcome VARCHAR, championship VARCHAR) |
SELECT MIN("No. in series") FROM table_30156 | What is the lowest numbered episode in the series? | CREATE TABLE table_30156 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production" text,
"U.S. viewers (in millions)" text
) |
SELECT inchicore_class FROM table_name_60 WHERE gswr_class < 268 AND type = "0-4-2t" | What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t? | CREATE TABLE table_name_60 (inchicore_class VARCHAR, gswr_class VARCHAR, type VARCHAR) |
SELECT COUNT(score_in_the_final) FROM table_2201724_2 WHERE year = 1963 | How many different final scores were there in 1963? | CREATE TABLE table_2201724_2 (score_in_the_final VARCHAR, year VARCHAR) |
SELECT AVG("Year") FROM table_71691 WHERE "Class" = 'car' AND "Stages won" = '0' AND "Position" = 'dnf' | What is the average year that has a car that won 0 stages with a position of DNF? | CREATE TABLE table_71691 (
"Year" real,
"Class" text,
"Vehicle" text,
"Position" text,
"Stages won" text
) |
SELECT gswr_class FROM table_name_80 WHERE year = "1893" | Which GSWR Class is from 1893? | CREATE TABLE table_name_80 (gswr_class VARCHAR, year VARCHAR) |
SELECT director FROM table_22020724_1 WHERE film_title_used_in_nomination = "Steam of Life" | Who directed the film titled 'Steam of Life'? | CREATE TABLE table_22020724_1 (director VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT "Opponent" FROM table_54867 WHERE "Record" = '4-4' | Who did the Cubs play when they had a record of 4-4? | CREATE TABLE table_54867 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) |
SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = "24:57" | On the episode that had a run time of 24:57, how many million viewers were there? | CREATE TABLE table_name_5 (viewers__in_millions_ VARCHAR, run_time VARCHAR) |
SELECT year__ceremony_ FROM table_22020724_1 WHERE title_in_the_original_language = "Tummien perhosten koti" | What year was the ceremony where the film 'Tummien Perhosten Koti' was submitted? | CREATE TABLE table_22020724_1 (year__ceremony_ VARCHAR, title_in_the_original_language VARCHAR) |
SELECT player FROM table_name_89 WHERE to_par = "+1" AND score = 71 - 67 - 73 = 211 | What player has a To Par of +1 with a score of 71-67-73=211? | CREATE TABLE table_name_89 (
player VARCHAR,
to_par VARCHAR,
score VARCHAR
) |
SELECT year FROM table_name_32 WHERE record = "4-21" | What year had a record of 4-21? | CREATE TABLE table_name_32 (year VARCHAR, record VARCHAR) |
SELECT COUNT(result) FROM table_22020724_1 WHERE title_in_the_original_language = "Joki" | What are the results for the film titled 'Joki'? | CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "64" AND diagnoses.icd9_code = "V6284" | give me the number of patients whose age is less than 64 and diagnoses icd9 code is v6284? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid 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
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
) |
SELECT reg_season FROM table_name_7 WHERE record = "16-12" | What regular season had a record of 16-12? | CREATE TABLE table_name_7 (reg_season VARCHAR, record VARCHAR) |
SELECT domestic_box_office FROM table_2203760_4 WHERE foreign_box_office = "$26,600,000" | What was the domestic box office for the film that had a foreign box office of $26,600,000? | CREATE TABLE table_2203760_4 (domestic_box_office VARCHAR, foreign_box_office VARCHAR) |
SELECT ACC_Road, AVG(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road DESC | Give me the comparison about the average of School_ID over the ACC_Road , and group by attribute ACC_Road by a bar chart, order X-axis in descending order please. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) |
SELECT reg_season FROM table_name_87 WHERE record = "20-10" | What is the regular season info that had a record of 20-10? | CREATE TABLE table_name_87 (reg_season VARCHAR, record VARCHAR) |
SELECT domestic_box_office FROM table_2203760_4 WHERE film = "House on Haunted Hill" | What was the domestic box office for "House on Haunted Hill"? | CREATE TABLE table_2203760_4 (domestic_box_office VARCHAR, film VARCHAR) |
SELECT "Torque" FROM table_16483 WHERE "Performance" = '0–100km/h: 7.5s auto, VMax: km/h (mph)' | what's the torque where performance is 0 100km/h: 7.5s auto, vmax: km/h (mph) | CREATE TABLE table_16483 (
"Trim" text,
"Engine" text,
"Turbo" text,
"Fuel Delivery" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Performance" text
) |
SELECT 1 AS st_leg FROM table_name_9 WHERE team__number1 = "asfa rabat" | Tell me the 1st leg for asfa rabat | CREATE TABLE table_name_9 (team__number1 VARCHAR) |
SELECT budget FROM table_2203760_4 WHERE film = "Thirteen Ghosts" | What was the budget for "Thirteen Ghosts"? | CREATE TABLE table_2203760_4 (budget VARCHAR, film VARCHAR) |
SELECT COUNT("Location of the Church") FROM table_21950 WHERE "Year Built" = '1957' AND "Church Name" = 'Askrova bedehuskapell' | On how many locations is there a church named Askrova Bedehuskapell, built in 1957? | CREATE TABLE table_21950 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sokn)" text,
"Church Name" text,
"Year Built" text,
"Location of the Church" text
) |
SELECT 2 AS nd_leg FROM table_name_61 WHERE team__number1 = "alemannia aachen" | Tell me the 2nd leg for alemannia aachen | CREATE TABLE table_name_61 (team__number1 VARCHAR) |
SELECT school FROM table_22043925_1 WHERE location = "Adelaide" | What is every school for the Adelaide location? | CREATE TABLE table_22043925_1 (school VARCHAR, location VARCHAR) |
SELECT MIN("Attendance") FROM table_70651 WHERE "Opponent" = 'devil rays' AND "Date" = 'may 13' | How low is the Attendance that has an Opponent of devil rays and a Date of may 13? | CREATE TABLE table_70651 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) |
SELECT 1 AS st_leg FROM table_name_10 WHERE team__number2 = "antwerp bc" | Tell me the 1st leg for antwerp bc | CREATE TABLE table_name_10 (team__number2 VARCHAR) |
SELECT COUNT(founded) FROM table_22043925_1 WHERE enrolment = 850 | How many values for founded when enrollment is 850? | CREATE TABLE table_22043925_1 (founded VARCHAR, enrolment VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.to_airport = AIRPORT_SERVICE_0.airport_code AND flight.from_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'DL' | i would like to fly DL from ATLANTA to PITTSBURGH | CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
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 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 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 ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
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 flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
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 compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time 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
) |
SELECT team__number2 FROM table_name_78 WHERE team__number1 = "handelsministerium vienna" | Tell me the team 2 for handelsministerium vienna | CREATE TABLE table_name_78 (team__number2 VARCHAR, team__number1 VARCHAR) |
SELECT denomination FROM table_22043925_1 WHERE school = "Seymour College" | What is every denomination for the school Seymour college? | CREATE TABLE table_22043925_1 (denomination VARCHAR, school VARCHAR) |
SELECT Name, Height FROM people ORDER BY Name DESC | Draw a bar chart about the distribution of Name and Height , and list by the Name from high to low. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.