answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT("performer") FROM table_203_784 WHERE "air date" = '21 january 2011' | how many performers appeared on the air date 21 january 2011 ? | CREATE TABLE table_203_784 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"performer" text,
"appearance" text,
"air date" text
) |
SELECT original_air_date FROM table_24018430_3 WHERE production_code = 216 | what is the original air date for production code 216? | CREATE TABLE table_24018430_3 (original_air_date VARCHAR, production_code VARCHAR) |
SELECT MIN(pick__number) FROM table_2508633_8 WHERE player = "Mark Bortz" | What is the pick number minimum if the player is Mark Bortz? | CREATE TABLE table_2508633_8 (pick__number INTEGER, player VARCHAR) |
SELECT fri_26_aug FROM table_30058355_7 WHERE wed_24_aug = "23' 52.67 94.807mph" | What is every entry for Friday August 26 when the entry for Wednesday August 24 is 23' 52.67 94.807mph? | CREATE TABLE table_30058355_7 (
fri_26_aug VARCHAR,
wed_24_aug VARCHAR
) |
SELECT written_by FROM table_24018430_3 WHERE directed_by = "Shannon Flynn" | what is writtenand directed by shannon flynn? | CREATE TABLE table_24018430_3 (written_by VARCHAR, directed_by VARCHAR) |
SELECT MIN(pick__number) FROM table_2508633_8 WHERE nfl_team = "San Diego Chargers" | what is the pick number minimum if the NFL team is the San Diego Chargers? | CREATE TABLE table_2508633_8 (pick__number INTEGER, nfl_team VARCHAR) |
SELECT "Winning Constructor" FROM table_57166 WHERE "Winning Driver" = 'riccardo patrese' | Who is the winner constructor with driver riccardo patrese? | CREATE TABLE table_57166 (
"Round" real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) |
SELECT us_viewers__millions_ FROM table_24018430_3 WHERE no_in_season = 12 | what number is us viewers in season 12? | CREATE TABLE table_24018430_3 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR) |
SELECT MAX(season__number) FROM table_25131572_3 WHERE written_by = "Daegan Fryklind" | What is the highest season# for the writer Daegan Fryklind? | CREATE TABLE table_25131572_3 (season__number INTEGER, written_by VARCHAR) |
SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097 | What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097? | CREATE TABLE table_name_66 (
interview INTEGER,
swimsuit VARCHAR,
average VARCHAR
) |
SELECT population_density___km²_2011_ FROM table_24027047_1 WHERE area__km²__2011 * * = "684.37" | What was the population density in km2 for 2011 in the division where area in km2 was 684.37 in 2011? | CREATE TABLE table_24027047_1 (population_density___km²_2011_ VARCHAR, area__km²__2011 VARCHAR) |
SELECT english_version FROM table_25173505_15 WHERE character = "Drizella" | Who voiced Drizella in the English version? | CREATE TABLE table_25173505_15 (english_version VARCHAR, character VARCHAR) |
SELECT COUNT(DISTINCT OwnerUserId) FROM Posts | Number of users authored at least one post. | 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 Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE 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 PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId 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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
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
) |
SELECT administrative_division FROM table_24027047_1 WHERE population_density___km²_2011_ = "8,552.4" | What division had a population density of 8,552.4 km2 in 2011? | CREATE TABLE table_24027047_1 (administrative_division VARCHAR, population_density___km²_2011_ VARCHAR) |
SELECT COUNT(name_of_bowl) FROM table_2517159_1 WHERE last_appearance = "2006 Season" | Name the name of bowl for 2006 season | CREATE TABLE table_2517159_1 (name_of_bowl VARCHAR, last_appearance VARCHAR) |
SELECT AVG(ties) FROM table_name_21 WHERE wins < 5 AND goals_against > 37 AND games_played < 8 | For teams with fewer than 5 wins, goals against over 37, and fewer than 8 games played, what is the average number of ties? | CREATE TABLE table_name_21 (
ties INTEGER,
games_played VARCHAR,
wins VARCHAR,
goals_against VARCHAR
) |
SELECT area__km²__2011 * * FROM table_24027047_1 WHERE administrative_division = "Narsingdi District" | What was the area in km2 in 2011 for the Narsingdi District? | CREATE TABLE table_24027047_1 (area__km²__2011 VARCHAR, administrative_division VARCHAR) |
SELECT last_appearance FROM table_2517159_1 WHERE name_of_bowl = "Music City Bowl" | Name the last appearance for music city bowl | CREATE TABLE table_2517159_1 (last_appearance VARCHAR, name_of_bowl VARCHAR) |
SELECT "Team" FROM table_46722 WHERE "Record" = '50–28' | What team has a Record of 50 28? | CREATE TABLE table_46722 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT administrative_division FROM table_24027047_1 WHERE population_density___km²_2011_ = "1,604.3" | In what division was there a population density in km2 of 1,604.3 in 2011? | CREATE TABLE table_24027047_1 (administrative_division VARCHAR, population_density___km²_2011_ VARCHAR) |
SELECT record FROM table_2517159_1 WHERE name_of_bowl = "Cotton Bowl Classic" | Name the record for cotton bowl classic | CREATE TABLE table_2517159_1 (record VARCHAR, name_of_bowl VARCHAR) |
SELECT "Away team" FROM table_58810 WHERE "Home team" = 'everton' AND "Date" = '30 january 1988' | Who was the away team on 30 January 1988, when the home team was Everton? | CREATE TABLE table_58810 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT administrative_division FROM table_24027047_1 WHERE population_density___km²_2011_ = "4,491.8" | In what division was there a population density in km2 of 4,491.8 in 2011? | CREATE TABLE table_24027047_1 (administrative_division VARCHAR, population_density___km²_2011_ VARCHAR) |
SELECT COUNT(appearances) FROM table_2517159_1 WHERE name_of_bowl = "Independence Bowl" | Name the appearance for independence bowl | CREATE TABLE table_2517159_1 (appearances VARCHAR, name_of_bowl VARCHAR) |
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'uterine leiomyoma nos')) | what is the price of a diagnosis for uterine leiomyoma nos? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value 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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
) |
SELECT area_coordinator FROM table_2402209_1 WHERE population__2010_ = 1715 | What's the area coordinator for the municipality with 1715 people living in it in 2010? | CREATE TABLE table_2402209_1 (area_coordinator VARCHAR, population__2010_ VARCHAR) |
SELECT winning_team FROM table_25213146_2 WHERE circuit = "circuit Zolder" | On the Circuit Zolder who was the winning team? | CREATE TABLE table_25213146_2 (winning_team VARCHAR, circuit VARCHAR) |
SELECT COUNT(result) FROM table_12369913_1 WHERE original_title = "Ani Ohev Otach Roza (אני אוהב אותך רוזה)" | How many results are there with the original title of ani ohev otach roza ( )? | CREATE TABLE table_12369913_1 (
result VARCHAR,
original_title VARCHAR
) |
SELECT COUNT(no_of_barangays) FROM table_2402209_1 WHERE population__2010_ = 13824 | How many different counts of tue number of Barangays are there for the municipality with 13824 citizens in 2010? | CREATE TABLE table_2402209_1 (no_of_barangays VARCHAR, population__2010_ VARCHAR) |
SELECT circuit FROM table_25213146_2 WHERE winning_driver = "Bruno Spengler" | In what circuit was Bruno Spengler the winning driver? | CREATE TABLE table_25213146_2 (circuit VARCHAR, winning_driver VARCHAR) |
SELECT "1st leg" FROM table_63986 WHERE "2nd leg" = '80-70' | What was the first leg score of the matchup with a 2nd leg of 80-70? | CREATE TABLE table_63986 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
) |
SELECT no_of_barangays FROM table_2402209_1 WHERE area_coordinator = "110.95" | How many Barangays lived in the municipality with area coordinator of 110.95? | CREATE TABLE table_2402209_1 (no_of_barangays VARCHAR, area_coordinator VARCHAR) |
SELECT COUNT(pole_position) FROM table_25213146_2 WHERE date = "30 March" | How many Pole Positions were there on 30 March? | CREATE TABLE table_25213146_2 (pole_position VARCHAR, date VARCHAR) |
SELECT report FROM table_name_35 WHERE away_team = "townsville crocodiles" | What's the report about townsville crocodiles as an away team? | CREATE TABLE table_name_35 (
report VARCHAR,
away_team VARCHAR
) |
SELECT circuit FROM table_24037660_2 WHERE rnd = 3 | What circuit had rnd 3? | CREATE TABLE table_24037660_2 (circuit VARCHAR, rnd VARCHAR) |
SELECT circuit FROM table_25213146_2 WHERE round = 4 | Where was the circuit for round 4? | CREATE TABLE table_25213146_2 (circuit VARCHAR, round VARCHAR) |
SELECT COUNT(pick__number) FROM table_2897457_2 WHERE player = "Byron Dafoe" | How many draft picks is player byron dafoe? | CREATE TABLE table_2897457_2 (
pick__number VARCHAR,
player VARCHAR
) |
SELECT COUNT(circuit) FROM table_24037660_2 WHERE lmp_winning_team = "#1 Patrón Highcroft Racing" AND gtc_winning_team = "#81 Alex Job Racing" | How many circuits had a winning team of #1 patrón highcroft racing ang gtc winning team #81 alex job racing ? | CREATE TABLE table_24037660_2 (circuit VARCHAR, lmp_winning_team VARCHAR, gtc_winning_team VARCHAR) |
SELECT date FROM table_25213146_2 WHERE winning_team = "Prema Powerteam" | On what date(s) was the winning team Prema Powerteam? | CREATE TABLE table_25213146_2 (date VARCHAR, winning_team VARCHAR) |
SELECT T4.Name, COUNT(T4.Name) FROM swimmer AS t1 JOIN record AS t2 ON t1.ID = t2.Swimmer_ID JOIN event AS t3 ON t2.Event_ID = t3.ID JOIN stadium AS t4 ON t4.ID = t3.Stadium_ID WHERE t1.Nationality = 'Australia' GROUP BY T4.Name | Find the names of stadiums that some Australian swimmers have been to, and count them by a pie chart | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
) |
SELECT lmpc_winning_team FROM table_24037660_2 WHERE rnd = 3 | What was the winning team lmpc in rnd 3? | CREATE TABLE table_24037660_2 (lmpc_winning_team VARCHAR, rnd VARCHAR) |
SELECT february_2010 FROM table_25256368_1 WHERE june_2010 = "6.5%" | Name the bed 2010 for 6.5% | CREATE TABLE table_25256368_1 (february_2010 VARCHAR, june_2010 VARCHAR) |
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t4.icd9_code FROM (SELECT t3.icd9_code, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.icd9_code, 100 - SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.charttime) > 2 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) AS c1 FROM (SELECT t1.subject_id, t1.icd9_code, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id GROUP BY admissions.subject_id, diagnoses_icd.icd9_code HAVING MIN(diagnoses_icd.charttime) = diagnoses_icd.charttime) AS t1 WHERE STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', t1.charttime) > 2 * 365) AS t2 JOIN patients ON t2.subject_id = patients.subject_id GROUP BY t2.icd9_code) AS t3) AS t4 WHERE t4.c2 <= 3) | tell me the top three diagnosis that has the highest two year mortality rate? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE 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_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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE 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 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
) |
SELECT gtc_winning_team FROM table_24037660_2 WHERE lmp_winning_team = "#8 Drayson Racing" | What was the gtc winning team when lmp winning team was #8 drayson racing? | CREATE TABLE table_24037660_2 (gtc_winning_team VARCHAR, lmp_winning_team VARCHAR) |
SELECT february_2010 FROM table_25256368_1 WHERE january_2010 = "6.2%" | Name the feb 2010 for january 2010 for 6.2% | CREATE TABLE table_25256368_1 (february_2010 VARCHAR, january_2010 VARCHAR) |
SELECT tournament FROM table_name_5 WHERE location = "colorado" | What tournament was located in Colorado? | CREATE TABLE table_name_5 (
tournament VARCHAR,
location VARCHAR
) |
SELECT captain FROM table_24039173_1 WHERE location = "Chaguaramas" | Who is the captain in Chaguaramas? | CREATE TABLE table_24039173_1 (captain VARCHAR, location VARCHAR) |
SELECT COUNT(directed_by) FROM table_25277262_2 WHERE no_in_season = 3 | How many people directed episode 3 in the season? | CREATE TABLE table_25277262_2 (directed_by VARCHAR, no_in_season VARCHAR) |
SELECT MIN("Losses") FROM table_41898 WHERE "Wins" = '5' AND "Against" < '1852' | What is the smallest losses when the wins are 5 and the against less than 1852? | CREATE TABLE table_41898 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) |
SELECT MIN(capacity) FROM table_24039173_1 WHERE stadium = "Sangre Grande Ground" | What is the minimum capacity for Sangre Grande Ground? | CREATE TABLE table_24039173_1 (capacity INTEGER, stadium VARCHAR) |
SELECT directed_by FROM table_25277262_2 WHERE written_by = "Mark Fink" | If the writer is Mark Fink, who is the director? | CREATE TABLE table_25277262_2 (directed_by VARCHAR, written_by VARCHAR) |
SELECT "University students and Adults (18yrs+)" FROM table_5335 WHERE "Gender" = 'male' AND "Specification" = 'minimum weight' | What value for university students and adult goes with male gender for minimum weight? | CREATE TABLE table_5335 (
"Specification" text,
"Gender" text,
"Junior High School (12\u201315 yrs)" text,
"Senior High School (15\u201318 yrs)" text,
"University students and Adults (18yrs+)" text
) |
SELECT COUNT(capacity) FROM table_24039173_1 WHERE team = "North East Stars" | What is the capacity for Sangre Grande Ground, home of the North East Stars? | CREATE TABLE table_24039173_1 (capacity VARCHAR, team VARCHAR) |
SELECT title FROM table_25277262_2 WHERE no_in_season = 11 | What is the name of the episode # 11 in the season? | CREATE TABLE table_25277262_2 (title VARCHAR, no_in_season VARCHAR) |
SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'PEDDENT' AND course.number = 599 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id | Of all the teachers , which one teaches PEDDENT 599 ? | CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE area (
course_id int,
area 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 semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE student_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 ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction 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_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE 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 gsi (
course_offering_id int,
student_id int
) |
SELECT stadium FROM table_24039173_1 WHERE team = "San Juan Jabloteh" | San Juan Jabloteh calls which stadium home? | CREATE TABLE table_24039173_1 (stadium VARCHAR, team VARCHAR) |
SELECT directed_by FROM table_25277296_2 WHERE no_in_season = 11 | Who was the director of episode 11 based on season? | CREATE TABLE table_25277296_2 (directed_by VARCHAR, no_in_season VARCHAR) |
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'prescriptions' AND cost.event_id IN (SELECT prescriptions.row_id FROM prescriptions WHERE prescriptions.drug = 'dorzolamide 2% ophth. soln.') | how much is the cost of a drug called dorzolamide 2% ophth. soln.? | 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE 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 d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE 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 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 admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE d_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 innings FROM table_24039597_26 WHERE caught = 20 | What was the innings when caught was 20? | CREATE TABLE table_24039597_26 (innings VARCHAR, caught VARCHAR) |
SELECT reidsville FROM table_25330991_3 WHERE information = "Enrollment" | Name the reidsville for enrollment | CREATE TABLE table_25330991_3 (reidsville VARCHAR, information VARCHAR) |
SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 80119 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-6 year') | since 6 years ago, how many times patient 80119 had visited the hospital? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost 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 procedures_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 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 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 admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
) |
SELECT matches FROM table_24039597_26 WHERE player = "MS Dhoni" | What ist he matches where the player is ms dhoni? | CREATE TABLE table_24039597_26 (matches VARCHAR, player VARCHAR) |
SELECT james_e_holmes FROM table_25330991_3 WHERE reidsville = "Erselle Young" | Name the james e. holmes for erselle young | CREATE TABLE table_25330991_3 (james_e_holmes VARCHAR, reidsville VARCHAR) |
SELECT DISTINCT name, number FROM course WHERE credits = 3 AND department = 'EECS' | Name the 3 -credit courses . | CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE area (
course_id int,
area varchar
) |
SELECT stumped FROM table_24039597_26 WHERE innings = 143 | What is stumped when inning is 143? | CREATE TABLE table_24039597_26 (stumped VARCHAR, innings VARCHAR) |
SELECT james_e_holmes FROM table_25330991_3 WHERE western_rockingham_middle_school = "Duane Hensley" | Name the james e. holmes for duane hensley | CREATE TABLE table_25330991_3 (james_e_holmes VARCHAR, western_rockingham_middle_school VARCHAR) |
SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID | List the name of physicians who took some appointment. | CREATE TABLE appointment (
Physician VARCHAR
)
CREATE TABLE physician (
name VARCHAR,
EmployeeID VARCHAR
) |
SELECT COUNT(dismissals) FROM table_24039597_26 WHERE matches = 44 | How many matches were 44? | CREATE TABLE table_24039597_26 (dismissals VARCHAR, matches VARCHAR) |
SELECT james_e_holmes FROM table_25330991_3 WHERE rockingham_county = "Joe Baez" | Name the james e. holmes for joe baez | CREATE TABLE table_25330991_3 (james_e_holmes VARCHAR, rockingham_county VARCHAR) |
SELECT StuID FROM Student WHERE age > 20 | Show all student ids who are older than 20. | CREATE TABLE Student (
StuID VARCHAR,
age INTEGER
) |
SELECT MIN(stumped) FROM table_24039597_26 WHERE matches = 14 | What is stumped when matches is 14? | CREATE TABLE table_24039597_26 (stumped INTEGER, matches VARCHAR) |
SELECT time__et_ FROM table_2534387_10 WHERE entries = "907" | Name the time for entries being 907 | CREATE TABLE table_2534387_10 (time__et_ VARCHAR, entries VARCHAR) |
SELECT COUNT(*) > 0 FROM course, program, program_course WHERE course.department = 'HHCR' AND course.number = 710 AND program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id | Could I take class HHCR 710 as Core ? | CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname 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 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 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 (
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 program (
program_id int,
name varchar,
college varchar,
introduction 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 semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE 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
) |
SELECT COUNT(monarch) FROM table_24046134_1 WHERE crowned = "23 May 1059" | Name the total number of monarchs for 23 may 1059 crowned | CREATE TABLE table_24046134_1 (monarch VARCHAR, crowned VARCHAR) |
SELECT entries FROM table_2534387_10 WHERE elapsed_time = "6 h 23 min" | Name the entries for 6 h 23 min elapsed time | CREATE TABLE table_2534387_10 (entries VARCHAR, elapsed_time VARCHAR) |
SELECT EMAIL, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL | For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of email and salary in a bar chart, list in asc by the x-axis. | 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 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 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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) |
SELECT playoffs FROM table_2402864_1 WHERE open_cup = "Did not qualify" AND year = 1998 | What was the playoff result where the league did not qualify in the Open Cup in 1998? | CREATE TABLE table_2402864_1 (playoffs VARCHAR, open_cup VARCHAR, year VARCHAR) |
SELECT prize AS Pool FROM table_2534387_10 WHERE entries = "706 (481 R, 346 A)" | Name the prize pool for 706 (481 r, 346 a) | CREATE TABLE table_2534387_10 (prize VARCHAR, entries VARCHAR) |
SELECT body FROM table_name_43 WHERE year = "1973" | What body participated in 1973? | CREATE TABLE table_name_43 (
body VARCHAR,
year VARCHAR
) |
SELECT MIN(year) FROM table_2402864_1 WHERE regular_season = "3rd, Southeast" AND league = "USL PDL" | What was the earliest year where USL PDL played in 3rd, Southeast season? | CREATE TABLE table_2402864_1 (year INTEGER, regular_season VARCHAR, league VARCHAR) |
SELECT COUNT(date_of_death) FROM table_25345002_1 WHERE date_of_birth = "1938-08-30 30 August 1938" | What are the dates of death of those politicians whose date of birth 1938-08-30 30 august 1938? | CREATE TABLE table_25345002_1 (date_of_death VARCHAR, date_of_birth VARCHAR) |
SELECT country FROM table_name_3 WHERE iata = "jfk" | Which country has an IATA of JFK? | CREATE TABLE table_name_3 (
country VARCHAR,
iata VARCHAR
) |
SELECT open_cup FROM table_2402864_1 WHERE year = 2003 | What was the Open Cup results for the year 2003? | CREATE TABLE table_2402864_1 (open_cup VARCHAR, year VARCHAR) |
SELECT COUNT(winner) FROM table_2534387_11 WHERE event__number = 5 | If the event number is 5, what is the winner total number? | CREATE TABLE table_2534387_11 (winner VARCHAR, event__number VARCHAR) |
SELECT AVG(age), job FROM Person WHERE gender = 'male' GROUP BY job | What is average age of male for different job title? | CREATE TABLE Person (
job VARCHAR,
age INTEGER,
gender VARCHAR
) |
SELECT MAX(total_evm_votes) FROM table_24051013_3 | What is the highest total for evm votes | CREATE TABLE table_24051013_3 (total_evm_votes INTEGER) |
SELECT prize AS Pool FROM table_2534387_11 WHERE entries = "1,132" | What is the prize pool if the entries is 1,132? | CREATE TABLE table_2534387_11 (prize VARCHAR, entries VARCHAR) |
SELECT COUNT("year") FROM table_204_756 WHERE "games" < 16 | how many years did he play in less than 16 games ? | CREATE TABLE table_204_756 (
id number,
"year" number,
"team" text,
"games" number,
"combined tackles" number,
"tackles" number,
"assisted tackles" number,
"sacks" number,
"forced fumbles" number,
"fumble recoveries" number,
"fumble return yards" number,
"interceptions" number,
"interception return yards" number,
"yards per interception return" number,
"longest interception return" number,
"interceptions returned for touchdown" number,
"passes defended" number
) |
SELECT episode FROM table_24051050_1 WHERE contest = "Heat 1" | In what episode did heat 1 take place? | CREATE TABLE table_24051050_1 (episode VARCHAR, contest VARCHAR) |
SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = "The first time" | Name the least season # for the first time | CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR) |
SELECT DISTINCT advisory_requirement, enforced_requirement, name FROM course WHERE department = 'EECS' AND number = 510 | Is 510 taken by undergrads ? | CREATE TABLE ta (
campus_job_id int,
student_id int,
location 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 (
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 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 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 instructor (
instructor_id int,
name varchar,
uniqname varchar
)
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 requirement (
requirement_id int,
requirement varchar,
college 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 semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
) |
SELECT events FROM table_24051050_1 WHERE episode = 12 | What events took place in episode 12? | CREATE TABLE table_24051050_1 (events VARCHAR, episode VARCHAR) |
SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = "Two marriage proposals" | Name the least season number for two marriage proposals | CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR) |
SELECT score FROM table_name_63 WHERE partnering = "dmitry tursunov" | which Score has a Partnering of dmitry tursunov? | CREATE TABLE table_name_63 (
score VARCHAR,
partnering VARCHAR
) |
SELECT challengers__female_ FROM table_24051050_1 WHERE episode = 28 | Which female challengers featured in episode 28? | CREATE TABLE table_24051050_1 (challengers__female_ VARCHAR, episode VARCHAR) |
SELECT episode_number FROM table_25391981_20 WHERE episode = "Week 4, Part 1" | What number episode was Week 4, Part 1? | CREATE TABLE table_25391981_20 (episode_number VARCHAR, episode VARCHAR) |
SELECT AVG("Year") FROM table_15835 WHERE "Entrant" = 'elf team tyrrell' AND "Points" = '34' | What year did Elf Team Tyrrell have 34 points? | CREATE TABLE table_15835 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" text
) |
SELECT COUNT(name) FROM table_24055352_1 WHERE hometown = "Los Angeles" | How many players came from Los Angeles? | CREATE TABLE table_24055352_1 (name VARCHAR, hometown VARCHAR) |
SELECT episode FROM table_25391981_20 WHERE rating / SHARE(18 AS –49) = 2.8 / 8 | For what episode was the rating/share for 18-49 at 2.8/8 | CREATE TABLE table_25391981_20 (episode VARCHAR, rating VARCHAR) |
SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.diagnosis = "GANGRENE" | calculate the maximum age of unmarried patients who have gangrene primary disease. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
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 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
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.