answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT name FROM table_name_86 WHERE goals < 7 AND rank < 7 AND appearances > 8 | Who had less than 7 goals, was ranked under 7, and had more than 8 appearances? | CREATE TABLE table_name_86 (
name VARCHAR,
appearances VARCHAR,
goals VARCHAR,
rank VARCHAR
) |
SELECT original_air_date FROM table_23399481_2 WHERE directed_by = "David Paymer" | What is the original air date of the episode that was directed by David Paymer? | CREATE TABLE table_23399481_2 (original_air_date VARCHAR, directed_by VARCHAR) |
SELECT COUNT(team_captain) FROM table_23214833_1 WHERE club = "Sliven 2000" | How many different team captains does the club Sliven 2000 have? | CREATE TABLE table_23214833_1 (team_captain VARCHAR, club 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 (((flight.departure_time <= 1200 AND flight.departure_time >= 1800) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ORLANDO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CLEVELAND' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'US' | okay what flights are there US from ORLANDO to CLEVELAND leaving in the afternoon | CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
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 code_description (
code varchar,
description text
)
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 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 state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
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 time_interval (
period text,
begin_time int,
end_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 airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight 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 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 date_day (
month_number int,
day_number int,
year int,
day_name varchar
) |
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.14" | If the amount of U.S. viewers is 2.14 million, who was the episode directed by? | CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR) |
SELECT team_captain FROM table_23214833_1 WHERE stadium = "Gradski Stadion" | Who's the captain of the team whose stadium is Gradski Stadion? | CREATE TABLE table_23214833_1 (team_captain VARCHAR, stadium VARCHAR) |
SELECT COUNT(*) FROM campuses WHERE county = "Los Angeles" | How many campuses are there in Los Angeles county? | CREATE TABLE campuses (
county VARCHAR
) |
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.05" | If the amount of U.S. viewers is 2.05 milliom, who was the episode directed by? | CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR) |
SELECT stadium FROM table_23214833_1 WHERE capacity = 13800 | What stadium has capacity for 13800? | CREATE TABLE table_23214833_1 (stadium VARCHAR, capacity VARCHAR) |
SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor | Visualize a scatter chart on how many students does each advisor have? | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Voting_record (
StuID INTEGER,
Registration_Date VARCHAR(12),
Election_Cycle VARCHAR(12),
President_Vote INTEGER,
Vice_President_Vote INTEGER,
Secretary_Vote INTEGER,
Treasurer_Vote INTEGER,
Class_President_Vote INTEGER,
Class_Senator_Vote INTEGER
) |
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.22" | What is the director name is the U.S. viewers is 2.22 million? | CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR) |
SELECT capacity FROM table_23214833_1 WHERE team_captain = "Vasil Vasilev" | How many people can attend games in the stadium of the team whose captain is Vasil Vasilev? | CREATE TABLE table_23214833_1 (capacity VARCHAR, team_captain VARCHAR) |
SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE program_course.category LIKE '%Other%' AND semester.semester = 'Winter' AND semester.year = 2017 | Which teachers will be teaching Other next Winter ? | 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 offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
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 area (
course_id int,
area varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year 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 instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text 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 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 ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
) |
SELECT viewers__millions_ FROM table_23397386_2 WHERE rating / SHARE(18 AS –49) = 2.6 / 7 | How many million viewers watched the episode that had a 2.6/7 rating/share (18-49) | CREATE TABLE table_23397386_2 (viewers__millions_ VARCHAR, rating VARCHAR) |
SELECT season FROM table_23224961_2 WHERE mittelfranken_süd = "ASV Nürnberg-Süd" | When asv nürnberg-süd is the mittelfranken süd what is the season? | CREATE TABLE table_23224961_2 (season VARCHAR, mittelfranken_süd VARCHAR) |
SELECT MAX("No. in season") FROM table_2858 WHERE "Production code" = '3ABC12' | Name the most number in season for production code 3abc12 | CREATE TABLE table_2858 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) |
SELECT viewers__millions_ FROM table_23397386_2 WHERE airdate = "March 28, 2010" | How many million viewers watched the episode that aired on March 28, 2010? | CREATE TABLE table_23397386_2 (viewers__millions_ VARCHAR, airdate VARCHAR) |
SELECT season FROM table_23224961_2 WHERE oberfranken_west = "SV Neuses" | When sv neuses is the oberfranken west what is the season? | CREATE TABLE table_23224961_2 (season VARCHAR, oberfranken_west VARCHAR) |
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 30 AND 39) AND STRFTIME('%y', procedures_icd.charttime) <= '2102' GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 <= 5) | what is the five most commonly ordered procedure in patients aged 30s until 2102? | 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 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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 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 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 d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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 d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
) |
SELECT COUNT(rank__timeslot_) FROM table_23397386_2 WHERE airdate = "May 2, 2010" | How many rankings (timeslot) were there for the episode that aired on May 2, 2010? | CREATE TABLE table_23397386_2 (rank__timeslot_ VARCHAR, airdate VARCHAR) |
SELECT COUNT(unterfranken_west) FROM table_23224961_2 WHERE oberfranken_ost = "Wacker Marktredwitz" | When wacker marktredwitz is the oberfranken ost how many unterfranken wests are there? | CREATE TABLE table_23224961_2 (unterfranken_west VARCHAR, oberfranken_ost VARCHAR) |
SELECT a.Id AS "post_link", q.Title, a.Score FROM Posts AS a JOIN Posts AS q ON a.ParentId = q.Id WHERE a.OwnerUserId = '##id?210401##' AND a.PostTypeId = 2 ORDER BY a.Id | Scores of answers by a specific user. | 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 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 VoteTypes (
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 ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId 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 PostTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
) |
SELECT series__number FROM table_23399481_3 WHERE us_viewers__in_millions_ = "1.42" | What episode had 1.42 million viewers? | CREATE TABLE table_23399481_3 (series__number VARCHAR, us_viewers__in_millions_ VARCHAR) |
SELECT mittelfranken_süd FROM table_23224961_2 WHERE unterfranken_west = "Alemannia Haibach" AND mittelfranken_nord = "ATSV Erlangen" | When atsv erlangen is the mittelfranken nord and alemannia haibach is the unterfranken west what is the mittelfranken süd? | CREATE TABLE table_23224961_2 (mittelfranken_süd VARCHAR, unterfranken_west VARCHAR, mittelfranken_nord VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "ROMANIAN EAST. ORTH" | count the number of patients whose religion is romanian east. orth. | 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 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 original_air_date FROM table_23399481_3 WHERE season__number = 4 | What is the original air date for episode 4? | CREATE TABLE table_23399481_3 (original_air_date VARCHAR, season__number VARCHAR) |
SELECT high_rebounds FROM table_23248940_8 WHERE team = "Orlando" | Who tied for the highest rebounds during the game against Orlando? | CREATE TABLE table_23248940_8 (high_rebounds VARCHAR, team VARCHAR) |
SELECT DISTINCT name, number FROM course WHERE credits = 18 AND department = 'EECS' | Are there any courses worth 18 credits ? | CREATE TABLE gsi (
course_offering_id int,
student_id 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 program_course (
program_id int,
course_id int,
workload int,
category 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 course_prerequisite (
pre_course_id int,
course_id 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 instructor (
instructor_id int,
name varchar,
uniqname 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 area (
course_id int,
area varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
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 program (
program_id int,
name varchar,
college varchar,
introduction 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 requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
) |
SELECT team FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick" | Which team uses lola t92/00/ buick for their chassis/engine? | CREATE TABLE table_23391714_1 (team VARCHAR, chassis_engine VARCHAR) |
SELECT high_points FROM table_23248940_6 WHERE game = 14 | Who are all high points in game 14? | CREATE TABLE table_23248940_6 (high_points VARCHAR, game VARCHAR) |
SELECT "Constellation" FROM table_53389 WHERE "Right ascension ( J2000 )" = '10h18m58.4s' | what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s? | CREATE TABLE table_53389 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text
) |
SELECT MAX(points) FROM table_23391714_1 WHERE pos = 18 | When the pos equals 18 what is the max amount of points? | CREATE TABLE table_23391714_1 (points INTEGER, pos VARCHAR) |
SELECT location_attendance FROM table_23248940_6 WHERE date = "November 18" | What is every value for location attendance on date of November 18? | CREATE TABLE table_23248940_6 (location_attendance VARCHAR, date VARCHAR) |
SELECT "Trainer" FROM table_68150 WHERE "Odds" = '6/1' | Who has 6/1 odds? | CREATE TABLE table_68150 (
"Race" text,
"Dist (f)" real,
"Course" text,
"Class" text,
"Prize (\u00a3K)" real,
"Odds" text,
"Runners" real,
"Placing" real,
"Margin" real,
"Time" text,
"Jockey" text,
"Trainer" text
) |
SELECT COUNT(no) FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick" | How many drivers used lola t92/00/ buick for their chassis/engine? | CREATE TABLE table_23391714_1 (no VARCHAR, chassis_engine VARCHAR) |
SELECT score FROM table_23248940_6 WHERE date = "November 10" | What is every score when date is November 10? | CREATE TABLE table_23248940_6 (score VARCHAR, date VARCHAR) |
SELECT "iso/iec standard" FROM table_204_200 ORDER BY "status" DESC LIMIT 1 | what was the last standard published ? | CREATE TABLE table_204_200 (
id number,
"iso/iec standard" text,
"title" text,
"status" text,
"description" text,
"wg" number
) |
SELECT MIN(no_in_series) FROM table_23403578_3 WHERE written_by = "Bernie Ancheta" AND no_in_season = 5 | What's the series number of the episode with a season number 5, written by Bernie Ancheta? | CREATE TABLE table_23403578_3 (no_in_series INTEGER, written_by VARCHAR, no_in_season VARCHAR) |
SELECT record FROM table_23248940_6 WHERE game = 11 | What is every record for game 11? | CREATE TABLE table_23248940_6 (record VARCHAR, game VARCHAR) |
SELECT COUNT("event") FROM table_204_53 WHERE "date" = 2010 | how many events did grigorian attend in 2010 ? | CREATE TABLE table_204_53 (
id number,
"date" text,
"result" text,
"opponent" text,
"event" text,
"location" text,
"method" text,
"round" number,
"time" text
) |
SELECT original_air_date FROM table_23403578_3 WHERE prod_code = "213" | When did the episode with production code 213 air for the first time? | CREATE TABLE table_23403578_3 (original_air_date VARCHAR, prod_code VARCHAR) |
SELECT COUNT(location_attendance) FROM table_23248967_5 WHERE game = 3 | How many locations was game 3 played at? | CREATE TABLE table_23248967_5 (location_attendance VARCHAR, game VARCHAR) |
SELECT qual FROM table_name_44 WHERE rank = "18" AND year = "1964" | What is the qual for rank 18 in 1964? | CREATE TABLE table_name_44 (
qual VARCHAR,
rank VARCHAR,
year VARCHAR
) |
SELECT directed_by FROM table_23403578_3 WHERE prod_code = "208" | Who directed the episode with production code 208? | CREATE TABLE table_23403578_3 (directed_by VARCHAR, prod_code VARCHAR) |
SELECT score FROM table_23248967_5 WHERE team = "New Orleans" | What was the score against New Orleans? | CREATE TABLE table_23248967_5 (score VARCHAR, team VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.dob_year < "2197" | how many patients whose ethnicity is hispanic/latino - puerto rican and year of birth is less than 2197? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid 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 COUNT(24 AS _mountains) FROM table_23406517_2 WHERE bearing___degrees = "67.6 - 82.5 82.6 - 97.5 97.6 - 112.5" | How many values for 24 mountains when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5? | CREATE TABLE table_23406517_2 (bearing___degrees VARCHAR) |
SELECT COUNT(location_attendance) FROM table_23248967_9 WHERE date = "March 6" | How many game locations occurred on March 6? | CREATE TABLE table_23248967_9 (location_attendance VARCHAR, date VARCHAR) |
SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'external pacemaker' AND STRFTIME('%y', treatment.treatmenttime) >= '2105') AS t1 JOIN (SELECT patient.uniquepid, microlab.culturesite, microlab.culturetakentime FROM microlab JOIN patient ON microlab.patientunitstayid = patient.patientunitstayid WHERE STRFTIME('%y', microlab.culturetakentime) >= '2105') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.culturetakentime AND DATETIME(t1.treatmenttime, 'start of month') = DATETIME(t2.culturetakentime, 'start of month') GROUP BY t2.culturesite) AS t3 WHERE t3.c1 <= 4 | what are the four most commonly ordered microbiology tests for patients who had received external pacemaker before within the same month since 2105? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 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 intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
) |
SELECT trigram FROM table_23406517_2 WHERE direction = "Northwest" | What is every trigram when direction is Northwest? | CREATE TABLE table_23406517_2 (trigram VARCHAR, direction VARCHAR) |
SELECT surface FROM table_23258574_2 WHERE championship = "Wimbledon" AND year = 1974 | What was the surface during wimbledon in 1974? | CREATE TABLE table_23258574_2 (surface VARCHAR, championship VARCHAR, year VARCHAR) |
SELECT "Party" FROM table_62133 WHERE "Incumbent" = 'virginia foxx' | What is the party affiliation of Virginia Foxx? | CREATE TABLE table_62133 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text
) |
SELECT 24 AS _mountains FROM table_23406517_2 WHERE direction = "Northeast" | What are all values for 24 mountains when direction is Northeast? | CREATE TABLE table_23406517_2 (direction VARCHAR) |
SELECT overall FROM table_23265433_2 WHERE offensive = "Mark Steenhuis" | Name the overall for mark steenhuis | CREATE TABLE table_23265433_2 (overall VARCHAR, offensive VARCHAR) |
SELECT "Frequency" FROM table_51963 WHERE "Destination" = 'dibrugarh' AND "Train Name" = 'chennai egmore dibrugarh express' | What is the frequency of the Chennai Egmore Dibrugarh Express to Dibrugarh? | CREATE TABLE table_51963 (
"Train No." text,
"Train Name" text,
"Origin" text,
"Destination" text,
"Frequency" text
) |
SELECT total_career_titles FROM table_23408094_14 WHERE player = "Roy Emerson" | How many career titles does roy emerson have? | CREATE TABLE table_23408094_14 (total_career_titles VARCHAR, player VARCHAR) |
SELECT COUNT(offensive) FROM table_23265433_2 WHERE overall = "Colin Doyle" | Name the total number of offensive for colin doyle | CREATE TABLE table_23265433_2 (offensive VARCHAR, overall VARCHAR) |
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-21071')) AND lab.labname = 'mch' AND DATETIME(lab.labresulttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY lab.labresult DESC, lab.labresulttime LIMIT 1 | when was patient 030-21071's first maximum mch a month before? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime 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 medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
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 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 lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) |
SELECT COUNT(total_career_titles) FROM table_23408094_14 WHERE span_of_years_led = 5 | What were the total career titles of the player who led for 5 years? | CREATE TABLE table_23408094_14 (total_career_titles VARCHAR, span_of_years_led VARCHAR) |
SELECT week FROM table_23265433_2 WHERE transition = "Steve Toll" | Name the week for steve toll | CREATE TABLE table_23265433_2 (week VARCHAR, transition VARCHAR) |
SELECT date_successor_seated FROM table_224837_4 WHERE reason_for_change = "Contested election; served until February 14, 1794" | Name the date successor seated for contested election; served until february 14, 1794 | CREATE TABLE table_224837_4 (
date_successor_seated VARCHAR,
reason_for_change VARCHAR
) |
SELECT MIN(span_of_years_led) FROM table_23408094_14 WHERE tournament_at_which_lead_began = "Australian Championships" | Of the players whose lead began at the australian championships, what was the shortest span of years led? | CREATE TABLE table_23408094_14 (span_of_years_led INTEGER, tournament_at_which_lead_began VARCHAR) |
SELECT rookie FROM table_23265433_2 WHERE offensive = "Ryan Powell" | Name the rookie for ryan powell | CREATE TABLE table_23265433_2 (rookie VARCHAR, offensive VARCHAR) |
SELECT "Team" FROM table_73518 WHERE "Date" = 'January 4' | Name the team for january 4 | CREATE TABLE table_73518 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "William Renshaw" AND titles_won_at_point_of_lead = 7 | At which tournament did william renshaw begin his lead when he had won 7 titles? | CREATE TABLE table_23408094_14 (tournament_at_which_lead_began VARCHAR, player VARCHAR, titles_won_at_point_of_lead VARCHAR) |
SELECT defensive FROM table_23265433_2 WHERE week = 9 | Name the defensive for week 9 | CREATE TABLE table_23265433_2 (defensive VARCHAR, week VARCHAR) |
SELECT h FROM table WHERE c__max_ = 99 | Name the h when c max is 99 | CREATE TABLE table (
h VARCHAR,
c__max_ VARCHAR
) |
SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "Pete Sampras" | At what tournament did pete sampras begin his lead? | CREATE TABLE table_23408094_14 (tournament_at_which_lead_began VARCHAR, player VARCHAR) |
SELECT high_rebounds FROM table_23274514_5 WHERE record = "10-19" | Name the high rebounds for record 10-19 | CREATE TABLE table_23274514_5 (high_rebounds VARCHAR, record VARCHAR) |
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) DESC | For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the amount of hire_date bin hire_date by time, and display by the y axis in descending. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) |
SELECT directed_by FROM table_2342078_2 WHERE written_by = "Sherwood Schwartz" | Who are all directors when Sherwood Schwartz is the writer? | CREATE TABLE table_2342078_2 (directed_by VARCHAR, written_by VARCHAR) |
SELECT high_points FROM table_23274514_5 WHERE score = "L 109–112 (OT)" | Name the high points for l 109–112 (ot) | CREATE TABLE table_23274514_5 (high_points VARCHAR, score VARCHAR) |
SELECT "Guest" FROM table_28000 WHERE "Original airdate" = 'December 07' | Who were the guests for the episode with an original airdate of december 07? | CREATE TABLE table_28000 (
"Episode #" real,
"The W\u00f8rd" text,
"Guest" text,
"Introductory phrase" text,
"Original airdate" text,
"Production code" real
) |
SELECT MAX(episode__number) FROM table_2342078_2 WHERE written_by = "Paul West" | What is the highest episode# with the writer Paul West? | CREATE TABLE table_2342078_2 (episode__number INTEGER, written_by VARCHAR) |
SELECT high_assists FROM table_23281862_5 WHERE record = "4-3" | Name the high assists for 4-3 | CREATE TABLE table_23281862_5 (high_assists VARCHAR, record VARCHAR) |
SELECT position FROM table_name_51 WHERE pick > 315 AND round = 30 | What is position of the player with a pick number greater than 315 and a round of 30? | CREATE TABLE table_name_51 (
position VARCHAR,
pick VARCHAR,
round VARCHAR
) |
SELECT production_code__order_they_were_made___number FROM table_2342078_2 WHERE episode__number = 13 | What is every production code for episode # 13? | CREATE TABLE table_2342078_2 (production_code__order_they_were_made___number VARCHAR, episode__number VARCHAR) |
SELECT location_attendance FROM table_23281862_5 WHERE team = "Memphis" | Name the location attendance for memphis | CREATE TABLE table_23281862_5 (location_attendance VARCHAR, team VARCHAR) |
SELECT player FROM table_name_6 WHERE college = "iowa state" | What Player is from Iowa State? | CREATE TABLE table_name_6 (
player VARCHAR,
college VARCHAR
) |
SELECT MAX(episode__number) FROM table_2342078_4 WHERE written_by = "Harry Winkler" | What is the highest episode number written by Harry Winkler? | CREATE TABLE table_2342078_4 (episode__number INTEGER, written_by VARCHAR) |
SELECT COUNT(score) FROM table_23281862_5 WHERE team = "Sacramento" | Name the number of score for sacramento | CREATE TABLE table_23281862_5 (score VARCHAR, team VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program, program_course, semester WHERE course.course_id = course_offering.course_id AND program_course.category LIKE '%MDE%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | Can you name for me the classes that can be taken as MDE next semester ? | CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year 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 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 jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category 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 requirement (
requirement_id int,
requirement varchar,
college 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 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 instructor (
instructor_id int,
name varchar,
uniqname varchar
) |
SELECT directed_by FROM table_2342078_4 WHERE written_by = "Brad Radnitz" | List all directors when Brad Radnitz was the writer? | CREATE TABLE table_2342078_4 (directed_by VARCHAR, written_by VARCHAR) |
SELECT high_points FROM table_23284271_10 WHERE record = "53-27" | Who has the high points when 53-27 is the record? | CREATE TABLE table_23284271_10 (high_points VARCHAR, record VARCHAR) |
SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND CITY_1.state_code = 'DC' AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND flight_stop.stop_airport = AIRPORT_SERVICE_2.airport_code AND flight.flight_id = flight_stop.flight_id AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND flight.airline_code = airline.airline_code AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | which airlines fly from BOSTON to WASHINGTON but stopover in some other city | 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 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 days (
days_code varchar,
day_name varchar
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_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 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 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 date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
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_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
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 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 time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
) |
SELECT original_airdate FROM table_2342078_6 WHERE written_by = "Howard Ostroff" | Name the airdate for the episode written by howard ostroff | CREATE TABLE table_2342078_6 (original_airdate VARCHAR, written_by VARCHAR) |
SELECT team FROM table_23284271_10 WHERE high_rebounds = "Dirk Nowitski (13)" | Which team has dirk nowitski (13) as high rebounds? | CREATE TABLE table_23284271_10 (team VARCHAR, high_rebounds VARCHAR) |
SELECT "Model number" FROM table_7139 WHERE "Order part number" = 'tmdml44bkx5ld' | Which model number has an order part number of TMDML44BKX5LD? | CREATE TABLE table_7139 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"Multi 1" text,
"Voltage" real,
"Socket" text,
"Release date" text,
"Order part number" text
) |
SELECT COUNT(production_code__number) FROM table_2342078_6 WHERE episode__number = 109 | Name the production code # for episode 109 | CREATE TABLE table_2342078_6 (production_code__number VARCHAR, episode__number VARCHAR) |
SELECT score FROM table_23284271_10 WHERE game = 78 | What is the score for game 78? | CREATE TABLE table_23284271_10 (score VARCHAR, game VARCHAR) |
SELECT medal FROM table_name_43 WHERE name = "félix sánchez" AND games = "2012 london" | Which Medal had a Name of f lix s nchez, and a Games of 2012 london? | CREATE TABLE table_name_43 (
medal VARCHAR,
name VARCHAR,
games VARCHAR
) |
SELECT directed_by FROM table_2342078_6 WHERE written_by = "George Tibbles" | Name who drected the episode written by george tibbles | CREATE TABLE table_2342078_6 (directed_by VARCHAR, written_by VARCHAR) |
SELECT high_assists FROM table_23284271_10 WHERE record = "50-26" | Who has the high assists when 50-26 is the record? | CREATE TABLE table_23284271_10 (high_assists VARCHAR, record VARCHAR) |
SELECT "Date" FROM table_65434 WHERE "Result" = '3-1' AND "Location" = 'hague' | What date was the result 3-1 in Hague? | CREATE TABLE table_65434 (
"Date" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
) |
SELECT title FROM table_2342078_5 WHERE written_by = "Harry Winkler" | What's the title of the episode written by Harry Winkler? | CREATE TABLE table_2342078_5 (title VARCHAR, written_by VARCHAR) |
SELECT high_points FROM table_23284271_10 WHERE record = "50-26" | Who has high points when 50-26 is the record? | CREATE TABLE table_23284271_10 (high_points VARCHAR, record VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "27" AND lab.label = "Creatine Kinase (CK)" | what number of patients under the age of 27 underwent the lab test for creatine kinase (ck)? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid 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 act FROM table_23429629_4 WHERE place_came = "1st Place (Won the Series)" | During the 1st Place (Won the Series), who was the act? | CREATE TABLE table_23429629_4 (act VARCHAR, place_came VARCHAR) |
SELECT date FROM table_23284271_10 WHERE team = "@ LA Clippers" | Which date is the team @ la clippers? | CREATE TABLE table_23284271_10 (date VARCHAR, team VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "SNF" AND diagnoses.long_title = "Schizoaffective disorder, unspecified" | how many patients whose discharge location is snf and diagnoses long title is schizoaffective disorder, unspecified? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid 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
)
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
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.