answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT district FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)" | What is the district with the candidates edwin gray (dr)? | CREATE TABLE table_2668393_18 (district VARCHAR, candidates VARCHAR) |
SELECT SUM(against) FROM table_name_34 WHERE losses = 14 AND byes > 0 | What is the total number of against when they had 14 losses and more than 0 byes? | CREATE TABLE table_name_34 (
against INTEGER,
losses VARCHAR,
byes VARCHAR
) |
SELECT i_o_bus FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-21xxT" | What i/o buses are associated with the brand name Core i3-21xxt? | CREATE TABLE table_24538587_11 (i_o_bus VARCHAR, brand_name__list_ VARCHAR) |
SELECT COUNT(incumbent) FROM table_2668393_18 WHERE first_elected = "1797" AND candidates = "Abram Trigg (DR)" | How many incumbents were first elected in 1797 with the candidates abram trigg (dr)? | CREATE TABLE table_2668393_18 (incumbent VARCHAR, first_elected VARCHAR, candidates VARCHAR) |
SELECT score FROM table_name_13 WHERE country = "australia" | What did the golfer from Australia score? | CREATE TABLE table_name_13 (
score VARCHAR,
country VARCHAR
) |
SELECT codename__main_article_ FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-32xxT" | What is the codename for the Core i3-32xxt? | CREATE TABLE table_24538587_11 (codename__main_article_ VARCHAR, brand_name__list_ VARCHAR) |
SELECT production_code FROM table_26702204_1 WHERE us_viewers__million_ = "11.76" | What is the production code when the u.s. viewers (million) is 11.76? | CREATE TABLE table_26702204_1 (production_code VARCHAR, us_viewers__million_ VARCHAR) |
SELECT t.TagName, MIN(q.Id) AS "post_link" FROM Tags AS t INNER JOIN PostTags AS pt ON t.Id = pt.TagId INNER JOIN Posts AS q ON q.Id = pt.PostId GROUP BY t.TagName ORDER BY t.TagName | List of all tagnames (each with one post). | 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 PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE 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 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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId 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 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 PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
) |
SELECT i_o_bus FROM table_24538587_11 WHERE socket = "LGA 1155" AND codename__main_article_ = "Sandy Bridge (Desktop)" AND brand_name__list_ = "Core i3-21xx" | What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx? | CREATE TABLE table_24538587_11 (i_o_bus VARCHAR, brand_name__list_ VARCHAR, socket VARCHAR, codename__main_article_ VARCHAR) |
SELECT us_viewers__million_ FROM table_26702204_1 WHERE production_code = "4ALH19" | What was the u.s. viewers (millions) when the production code was 4alh19? | CREATE TABLE table_26702204_1 (us_viewers__million_ VARCHAR, production_code VARCHAR) |
SELECT _number_of_bids FROM table_name_98 WHERE conference = "atlantic 10" | How many bids does Atlantic 10 have? | CREATE TABLE table_name_98 (
_number_of_bids VARCHAR,
conference VARCHAR
) |
SELECT socket FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-3xx0M" | What is the sockets associated with a brand name of Core i3-3xx0m? | CREATE TABLE table_24538587_11 (socket VARCHAR, brand_name__list_ VARCHAR) |
SELECT operator_name FROM table_26745820_1 WHERE distance = "3105km" | What is the operator name when the distance is 3105km? | CREATE TABLE table_26745820_1 (operator_name VARCHAR, distance VARCHAR) |
SELECT COUNT("Year") FROM table_45484 WHERE "Wimbledon" = 'andy murray' | What is the total number of years Andy Murray was at Wimbledon? | CREATE TABLE table_45484 (
"Year" real,
"Australian Open" text,
"French Open" text,
"Wimbledon" text,
"US Open" text
) |
SELECT player FROM table_24540893_6 WHERE cfl_team = "Calgary Stampeders" | Who was drafted by the calgary stampeders? | CREATE TABLE table_24540893_6 (player VARCHAR, cfl_team VARCHAR) |
SELECT no FROM table_26745820_1 WHERE distance = "4168km" | what is the no when the distance is 4168km? | CREATE TABLE table_26745820_1 (no VARCHAR, distance VARCHAR) |
SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4 | What is the least number of laps for the constructor Ferrari and where the grid number was less than 4? | CREATE TABLE table_name_64 (
laps INTEGER,
constructor VARCHAR,
grid VARCHAR
) |
SELECT COUNT(pick__number) FROM table_24540893_6 WHERE school = "SE Missouri State" | Where was the player from se missouri state drafted? | CREATE TABLE table_24540893_6 (pick__number VARCHAR, school VARCHAR) |
SELECT COUNT(written_by) FROM table_26748252_1 WHERE us_viewers__in_millions_ = "3.40" | How many people wrote the episode with 3.40 million U.S viewers? | CREATE TABLE table_26748252_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR) |
SELECT DISTINCT semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 582 AND course_offering.semester = semester.semester_id AND semester.semester_id > (SELECT SEMESTERalias1.semester_id FROM semester AS SEMESTERalias1 WHERE SEMESTERalias1.semester = 'WN' AND SEMESTERalias1.year = 2016) ORDER BY semester.semester_id LIMIT 1 | When will EECS 582 be offered ? | CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
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 program (
program_id int,
name varchar,
college varchar,
introduction 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 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 ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id 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 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 jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip 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 area (
course_id int,
area varchar
) |
SELECT position FROM table_24540893_6 WHERE school = "Kent State" | What position does the player from kent state play? | CREATE TABLE table_24540893_6 (position VARCHAR, school VARCHAR) |
SELECT COUNT(motogp_winner) FROM table_26781017_1 WHERE circuit = "Catalunya" | How many MotoGP winners were there when the circuit was Catalunya? | CREATE TABLE table_26781017_1 (motogp_winner VARCHAR, circuit VARCHAR) |
SELECT "Episode No." FROM table_1208 WHERE "Presenter" = 'Ben Okri' | What episode number is presented by Ben Okri ? | CREATE TABLE table_1208 (
"Episode No." text,
"Episode Title" text,
"UK Broadcast Date" text,
"Presenter" text,
"Countries Visited" text
) |
SELECT school FROM table_24540893_6 WHERE position = "RB" | What school did the rb drafted attend? | CREATE TABLE table_24540893_6 (school VARCHAR, position VARCHAR) |
SELECT moto2_winner FROM table_26781017_1 WHERE grand_prix = "Shell Advance Malaysian grand_prix" | Who are all the Moto2 winners when the grand prix was Shell Advance Malaysian Grand Prix? | CREATE TABLE table_26781017_1 (moto2_winner VARCHAR, grand_prix VARCHAR) |
SELECT AVG("18\u201349") FROM table_51322 WHERE "Viewers (m)" = '3.93' AND "Share" < '4' | What is the average rating of viewers 18 to 49 where the total viewer count is 3.93 million and share less than 4? | CREATE TABLE table_51322 (
"Episode" text,
"Air Date" text,
"Timeslot (EST)" text,
"Season" real,
"Rating" real,
"Share" real,
"18\u201349" real,
"Viewers (m)" real,
"Rank (#)" text
) |
SELECT pick__number FROM table_24540893_6 WHERE school = "Western Ontario" AND position = "OL" | What numbered pick attended western ontario and is an OL? | CREATE TABLE table_24540893_6 (pick__number VARCHAR, school VARCHAR, position VARCHAR) |
SELECT motogp_winner FROM table_26781017_1 WHERE circuit = "Catalunya" | Who are all the motogp winners when the circuit was Catalunya? | CREATE TABLE table_26781017_1 (motogp_winner VARCHAR, circuit VARCHAR) |
SELECT candidates FROM table_2668264_8 WHERE result = "Retired Jacksonian gain" | Who were the candidates for election that had a result of a retired jacksonian gain? | CREATE TABLE table_2668264_8 (
candidates VARCHAR,
result VARCHAR
) |
SELECT COUNT(position) FROM table_24540893_6 WHERE school = "SE Missouri State" | How many players attended SE missouri state? | CREATE TABLE table_24540893_6 (position VARCHAR, school VARCHAR) |
SELECT area__km²___per_sqmi_ FROM table_26769_1 WHERE country_or_territory_with_flag = "Colombia" | What was the area (km²) (per sqmi) of the country Colombia? | CREATE TABLE table_26769_1 (area__km²___per_sqmi_ VARCHAR, country_or_territory_with_flag VARCHAR) |
SELECT "Runner-up" FROM table_39340 WHERE "Season" < '2005' | Who is the Runner-up that has a Season less than 2005? | CREATE TABLE table_39340 (
"Season" real,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text
) |
SELECT pole_position FROM table_24547593_1 WHERE circuit = "Knockhill" | Who was in the pole position for knockhill? | CREATE TABLE table_24547593_1 (pole_position VARCHAR, circuit VARCHAR) |
SELECT MAX(population__july_2009_est_) FROM table_26769_1 WHERE capital = "Quito" | What was the maximum population of the country with Quito as capital? | CREATE TABLE table_26769_1 (population__july_2009_est_ INTEGER, capital VARCHAR) |
SELECT "Airing date" FROM table_66527 WHERE "Number of episodes" > '20' AND "Genre" = 'modern drama' | Which Airing date has a Number of episodes larger than 20, and a Genre of modern drama? | CREATE TABLE table_66527 (
"Airing date" text,
"English title (Chinese title)" text,
"Number of episodes" real,
"Theme song (T) Sub-theme song (ST)" text,
"Genre" text
) |
SELECT COUNT(date) FROM table_24547593_1 WHERE circuit = "Knockhill" | How many dates was knockhill? | CREATE TABLE table_24547593_1 (date VARCHAR, circuit VARCHAR) |
SELECT population__july_2009_est_ FROM table_26769_1 WHERE population_density_per_km² = "14.3/km² (/sqmi)" | What was the population of a country with a population density of 14.3/km² (/sqmi)? | CREATE TABLE table_26769_1 (population__july_2009_est_ VARCHAR, population_density_per_km² VARCHAR) |
SELECT All_Games, Team_ID FROM basketball_match ORDER BY Team_ID DESC | Show me about the distribution of All_Games and Team_ID in a bar chart, display in desc by the y-axis. | 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
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) |
SELECT l3_cache FROM table_24538587_13 WHERE brand_name__list_ = "Core i7-2xxxQE, i7-26xxQM, i7-27xxQM" | Name the l3 cache for core i7-2xxxqe, i7-26xxqm, i7-27xxqm | CREATE TABLE table_24538587_13 (l3_cache VARCHAR, brand_name__list_ VARCHAR) |
SELECT area__km²___per_sqmi_ FROM table_26769_1 WHERE population_density_per_km² = "8.4/km² (/sqmi)" | What was the area (km²) (per sqmi) of a country with a population density per km² of 8.4/km² (/sqmi)? | CREATE TABLE table_26769_1 (area__km²___per_sqmi_ VARCHAR, population_density_per_km² VARCHAR) |
SELECT date_of_birth FROM table_name_11 WHERE player = "mervyn dillon" | What is the birth date for Mervyn Dillon? | CREATE TABLE table_name_11 (
date_of_birth VARCHAR,
player VARCHAR
) |
SELECT most_laps_led FROM table_2454550_1 WHERE track = "Chicagoland Speedway" | Who had most laps led at Chicagoland speedway? | CREATE TABLE table_2454550_1 (most_laps_led VARCHAR, track VARCHAR) |
SELECT country_or_territory_with_flag FROM table_26769_1 WHERE population_density_per_km² = "3.5/km² (/sqmi)" | What was the country with a population density per km² of 3.5/km² (/sqmi)? | CREATE TABLE table_26769_1 (country_or_territory_with_flag VARCHAR, population_density_per_km² VARCHAR) |
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'packed cell transfusion') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime, admissions.hadm_id FROM microbiologyevents JOIN admissions ON microbiologyevents.hadm_id = admissions.hadm_id WHERE DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND t1.hadm_id = t2.hadm_id GROUP BY t2.spec_type_desc) AS t3 WHERE t3.c1 <= 4 | what were the four most commonly given microbiology tests a year before for patients who had previously undergone packed cell transfusion within the same hospital visit? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title 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_labitems (
row_id number,
itemid number,
label 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 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 d_items (
row_id number,
itemid number,
label text,
linksto 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 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 d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE diagnoses_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
) |
SELECT race_name FROM table_2454550_1 WHERE fastest_lap = "Buddy Rice" | In what race did Buddy Rice hav fastest lap? | CREATE TABLE table_2454550_1 (race_name VARCHAR, fastest_lap VARCHAR) |
SELECT capital FROM table_26769_1 WHERE population_density_per_km² = "15.6/km² (/sqmi)" | What is the capital of the country with a population density per km² of 15.6/km² (/sqmi)? | CREATE TABLE table_26769_1 (capital VARCHAR, population_density_per_km² VARCHAR) |
SELECT "Analog" FROM table_15352 WHERE "Affiliation" = 'cw' AND "Digital" = '26' | what is the analog type for cw on digital 26? | CREATE TABLE table_15352 (
"Media market name" text,
"Callsign" text,
"Analog" text,
"Digital" text,
"Affiliation" text
) |
SELECT track FROM table_2454550_1 WHERE date = "March 19" | On what tra k was the march 19 race held? | CREATE TABLE table_2454550_1 (track VARCHAR, date VARCHAR) |
SELECT position FROM table_2679061_6 WHERE pick__number = 103 | what is the position for pick # 103? | CREATE TABLE table_2679061_6 (position VARCHAR, pick__number VARCHAR) |
SELECT Name, Age FROM editor ORDER BY Name | Display a bar chart for the names and the ages of editors, list by the bar from low to high. | CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
) |
SELECT track FROM table_2454550_1 WHERE race_name = "Argent Mortgage Indy 300" | On what track is the Argent mortgage Indy 300 held? | CREATE TABLE table_2454550_1 (track VARCHAR, race_name VARCHAR) |
SELECT MIN(pick__number) FROM table_2679061_6 WHERE nhl_team = "Vancouver Canucks" | What is the pick # for nhl team vancouver canucks? | CREATE TABLE table_2679061_6 (pick__number INTEGER, nhl_team VARCHAR) |
SELECT All_Road, Team_ID FROM basketball_match | Find All_Road and Team_ID , and visualize them by a bar chart. | 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 fastest_lap FROM table_2454550_1 WHERE location = "Phoenix, Arizona" | who held the fastes lap in Phoenix, Arizona? | CREATE TABLE table_2454550_1 (fastest_lap VARCHAR, location VARCHAR) |
SELECT nationality FROM table_2679061_6 WHERE player = "Kevin Stevens" | What is the nationality of the player kevin stevens? | CREATE TABLE table_2679061_6 (nationality VARCHAR, player 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 20 AND 29) AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 <= 3) | what are the top three most frequent procedures among the patients who have 20s since 3 years ago? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
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 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
)
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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto 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 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_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
) |
SELECT COUNT(player) FROM table_24549777_1 WHERE high_checkout = 84 | How man players checked out at 84? | CREATE TABLE table_24549777_1 (player VARCHAR, high_checkout VARCHAR) |
SELECT MAX(pick__number) FROM table_2679061_6 WHERE player = "Don Barber" | What is the highest pick number for player don barber? | CREATE TABLE table_2679061_6 (pick__number INTEGER, player VARCHAR) |
SELECT Rank, COUNT(*) FROM captain WHERE age < 50 GROUP BY Rank | How many captains with younger than 50 are in each rank. Visualize by pie chart. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) |
SELECT COUNT(3 AS _dart_average) FROM table_24549777_1 WHERE player = "Gary Anderson" | How man 3-dart averages did gary anderson have? | CREATE TABLE table_24549777_1 (player VARCHAR) |
SELECT college_junior_club_team FROM table_2679061_6 WHERE player = "Don Barber" | What is the college/junior/club team for player don barber? | CREATE TABLE table_2679061_6 (college_junior_club_team VARCHAR, player VARCHAR) |
SELECT "Home team" FROM table_56456 WHERE "Home team score" = '18.11 (119)' | Which home team scored 18.11 (119)? | CREATE TABLE table_56456 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT result FROM table_24561550_1 WHERE record = "3-3" | List all results from the 3-3 scoring game. | CREATE TABLE table_24561550_1 (result VARCHAR, record VARCHAR) |
SELECT nhl_team FROM table_2679061_6 WHERE position = "Centre" AND nationality = "United States" | What is the nhl team for the position centre and nationality united states? | CREATE TABLE table_2679061_6 (nhl_team VARCHAR, position VARCHAR, nationality VARCHAR) |
SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC | For those employees who was hired before 2002-06-21, a line chart shows the change of manager_id over hire_date, display X-axis in descending order. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE 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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) |
SELECT opponent FROM table_24561550_1 WHERE record = "4-4" | List all opponents from the 4-4 scoring game. | CREATE TABLE table_24561550_1 (opponent VARCHAR, record VARCHAR) |
SELECT nationality FROM table_2679061_7 WHERE nhl_team = "Winnipeg Jets" | What country do the Winnipeg Jets come from? | CREATE TABLE table_2679061_7 (nationality VARCHAR, nhl_team VARCHAR) |
SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-56390') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.celllabel = 'nephrostomy right' | what were the number of times patient 015-56390 produced a nephrostomy right output on the last icu visit? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) |
SELECT record FROM table_24561550_1 WHERE wildcats_points = 48 | List the record from the game where Wildcats had 48 points. | CREATE TABLE table_24561550_1 (record VARCHAR, wildcats_points VARCHAR) |
SELECT COUNT(college_junior_club_team) FROM table_2679061_7 WHERE pick__number = 130 | How many teams got pick number 130? | CREATE TABLE table_2679061_7 (college_junior_club_team VARCHAR, pick__number VARCHAR) |
SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'rbc, csf') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27703) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') | count the number of times patient 27703's rbc, csf test has been taken last month. | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom 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 d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE 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 d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value 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 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 d_icd_diagnoses (
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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
) |
SELECT wildcats_points FROM table_24561550_1 WHERE opponent = "Baylor" | How many points did the Wildcats get when Baylor was an opponent? | CREATE TABLE table_24561550_1 (wildcats_points VARCHAR, opponent VARCHAR) |
SELECT college_junior_club_team FROM table_2679061_7 WHERE nhl_team = "Buffalo Sabres" | Where are the Buffalo Sabres from? | CREATE TABLE table_2679061_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR) |
SELECT "Rider" FROM table_59207 WHERE "Time" = '+59.304' | Name the Rider which has a Time of +59.304? | CREATE TABLE table_59207 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) |
SELECT opponent FROM table_24560733_1 WHERE date = "Oct. 4" | Who was the opponent on Oct. 4? | CREATE TABLE table_24560733_1 (opponent VARCHAR, date VARCHAR) |
SELECT season__number FROM table_26804862_1 WHERE directed_by = "Harvey Laidman" | When harvey laidman is the director what is the season number? | CREATE TABLE table_26804862_1 (season__number VARCHAR, directed_by VARCHAR) |
SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 40 AND 49) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 <= 3 | what are the three most common drugs prescribed until 1 year ago for patients of 40s? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom 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 d_labitems (
row_id number,
itemid number,
label 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 diagnoses_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 d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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
) |
SELECT MIN(opponents) FROM table_24560733_1 | What was the minimum number for opponents? | CREATE TABLE table_24560733_1 (opponents INTEGER) |
SELECT COUNT(season__number) FROM table_26804862_1 WHERE production_code = "3.89" | When 3.89 is the production code how many season numbers are there? | CREATE TABLE table_26804862_1 (season__number VARCHAR, production_code VARCHAR) |
SELECT AVG("Points") FROM table_13981 WHERE "Artist" = 'catcat' AND "Draw" > '2' | How many points does catcat have with more than 2 draws? | CREATE TABLE table_13981 (
"Draw" real,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Place" real,
"Points" real
) |
SELECT MIN(opponents) FROM table_24560733_1 WHERE opponent = "at Michigan State" | What is the minimum number of opponents' points for the game at Michigan State? | CREATE TABLE table_24560733_1 (opponents INTEGER, opponent VARCHAR) |
SELECT COUNT(title) FROM table_26808178_1 WHERE series__number = 4 | How many episodes is episode number 4 in the series? | CREATE TABLE table_26808178_1 (title VARCHAR, series__number VARCHAR) |
SELECT bowling FROM table_name_23 WHERE season = "1907" | What is the bowling score of season 1907? | CREATE TABLE table_name_23 (
bowling VARCHAR,
season VARCHAR
) |
SELECT opponent FROM table_24560733_1 WHERE record = "5-2" | Which opponent led to a 5-2 record? | CREATE TABLE table_24560733_1 (opponent VARCHAR, record VARCHAR) |
SELECT us_viewers__millions_ FROM table_26808178_1 WHERE series__number = 3 | How many million viewers watched episode 3 in the series? | CREATE TABLE table_26808178_1 (us_viewers__millions_ VARCHAR, series__number VARCHAR) |
SELECT position FROM table_name_27 WHERE competition = "world championships" AND year > 1997 | Which Position has a Competition of world championships, and a Year larger than 1997? | CREATE TABLE table_name_27 (
position VARCHAR,
competition VARCHAR,
year VARCHAR
) |
SELECT COUNT(opponents) FROM table_24560733_1 WHERE opponent = "at Ole Miss" | How many opponents' points numbers are associated with the game at Ole Miss? | CREATE TABLE table_24560733_1 (opponents VARCHAR, opponent VARCHAR) |
SELECT MAX(home_att) FROM table_26816495_26 WHERE avg = "11,322" | What is the maximum home attendance if the average is 11,322? | CREATE TABLE table_26816495_26 (home_att INTEGER, avg VARCHAR) |
SELECT SALARY, MANAGER_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | For those employees who did not have any job in the past, what is the relationship between salary and manager_id ? | 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) |
SELECT COUNT(period) FROM table_24565004_13 WHERE name = "Yvon Le Roux" | Name the total number of period for yvon le roux | CREATE TABLE table_24565004_13 (period VARCHAR, name VARCHAR) |
SELECT weekly_rank_sky1 FROM table_26826304_2 WHERE _number = 103 | What is title numer 103's rank for weekly rank sky1? | CREATE TABLE table_26826304_2 (weekly_rank_sky1 VARCHAR, _number VARCHAR) |
SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT_RECORDalias0.student_id = 1) AND COURSE_1.course_id = course_prerequisite.course_id AND COURSE_1.department = 'LATINOAM' AND COURSE_1.number = 204 | What courses are required as a prerequisite to LATINOAM 204 ? | CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname 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
)
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 course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
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_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE area (
course_id int,
area 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 comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
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 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
) |
SELECT period FROM table_24565004_13 WHERE name = "Michel Llodra" | Name the period for michel llodra | CREATE TABLE table_24565004_13 (period VARCHAR, name VARCHAR) |
SELECT MIN(weekly_rank_sky1) FROM table_26826304_2 WHERE _number = 97 | What was the rank by Weekly Rank Sky1 for title number 97? | CREATE TABLE table_26826304_2 (weekly_rank_sky1 INTEGER, _number VARCHAR) |
SELECT COUNT(height__cm_) FROM table_name_19 WHERE jersey__number < 16 AND name = "mark fusco" | How many different Heights (cm) did Mark Fusco have, when his Jersey # was less than 16? | CREATE TABLE table_name_19 (
height__cm_ VARCHAR,
jersey__number VARCHAR,
name VARCHAR
) |
SELECT COUNT(position) FROM table_24565004_13 WHERE nationality² = "Democratic Republic of the Congo" | Name the number of position for democratic republic of the congo | CREATE TABLE table_24565004_13 (position VARCHAR, nationality² VARCHAR) |
SELECT MIN(weekly_rank_virgin_media) FROM table_26826304_2 WHERE air_date = "May 20, 2010" | What was the weekly rank by Virgin media for the title aired on May 20, 2010? | CREATE TABLE table_26826304_2 (weekly_rank_virgin_media INTEGER, air_date VARCHAR) |
SELECT MAX("Super G") FROM table_7716 WHERE "Season" > '1996' | What is the highest Super G, when Season is later than 1996? | CREATE TABLE table_7716 (
"Season" real,
"Overall" real,
"Slalom" text,
"Super G" real,
"Downhill" text,
"Combined" text
) |
SELECT COUNT(name) FROM table_24565004_14 WHERE appearances¹ = 101 | How many names correspond to the value 101 for appearances? | CREATE TABLE table_24565004_14 (name VARCHAR, appearances¹ VARCHAR) |
SELECT timeslot FROM table_26826304_2 WHERE air_date = "October 22, 2009" | A what time was the title aired in October 22, 2009 | CREATE TABLE table_26826304_2 (timeslot VARCHAR, air_date VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.