instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_73 (
school VARCHAR,
indoor_track VARCHAR,
soccer VARCHAR,
tennis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school has yes for soccer, tennis and indoor track.
| SELECT school FROM table_name_73 WHERE soccer = "yes" AND tennis = "yes" AND indoor_track = "yes" | sql_create_context |
CREATE TABLE table_7410 (
"Position" text,
"Name" text,
"Birthdate" text,
"Birthplace" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Birthdate of leon tuck?
| SELECT "Birthdate" FROM table_7410 WHERE "Name" = 'leon tuck' | wikisql |
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
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT Rank, COUNT(*) FROM captain WHERE age < 50 GROUP BY Rank ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_58799 (
"Song" text,
"International Jury" text,
"Lule\u00e5" text,
"Ume\u00e5" text,
"Sundsvall" text,
"Falun" text,
"Karlstad" text,
"\u00d6rebro" text,
"Norrk\u00f6ping" text,
"G\u00f6teborg" text,
"V\u00e4xj\u00f6" text,
"Malm\u00f6" text,
"Stock... | SELECT "V\u00e4xj\u00f6" FROM table_58799 WHERE "Karlstad" = '1' | wikisql |
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
YQBH text... | (SELECT jybgb.BBCJBW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '曹玉轩' AND j... | css |
CREATE TABLE table_44161 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What college has a pick greater than 4 and an overall of 21?
| SELECT "College" FROM table_44161 WHERE "Pick" > '4' AND "Overall" = '21' | wikisql |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title 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 numbe... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 72032 AND admissions.dischtime IS NULL | mimic_iii |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.diagnosis = "GASTROINTESTINAL BLEED" | mimicsql_data |
CREATE TABLE table_35377 (
"Previous season" text,
"Team" text,
"Town" text,
"Arena (capacity)" text,
"Website" text,
"Head Coach" text,
"Foreign Players (max. 2)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Arena o Kazan?
| SELECT "Arena (capacity)" FROM table_35377 WHERE "Town" = 'kazan' | wikisql |
CREATE TABLE table_name_71 (
nhl_team VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE NHL TEAM OF FINLAND?
| SELECT nhl_team FROM table_name_71 WHERE nationality = "finland" | sql_create_context |
CREATE TABLE table_5426 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest attendance rate at Milwaukee County Stadium?... | SELECT MAX("Attendance") FROM table_5426 WHERE "Game Site" = 'milwaukee county stadium' | wikisql |
CREATE TABLE table_59177 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Heather Christensen was featured in Week 2, who was the cyber girl for Week 3?
| SELECT "Week 3" FROM table_59177 WHERE "Week 2" = 'heather christensen' | wikisql |
CREATE TABLE table_2784232_1 (
approximate_translation VARCHAR,
morphological_category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the the approximate translations when the Morphological Category is 1st. plur. perfect?
| SELECT approximate_translation FROM table_2784232_1 WHERE morphological_category = "1st. plur. perfect" | sql_create_context |
CREATE TABLE table_name_96 (
year VARCHAR,
place VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did the 11th place play 26 games?
| SELECT year FROM table_name_96 WHERE place = "11th" AND played = 26 | sql_create_context |
CREATE TABLE table_5296 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of years when Mika Miyazato won the silver?
| SELECT COUNT("Year") FROM table_5296 WHERE "Silver" = 'mika miyazato' | wikisql |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostHistory (
Id num... | SELECT AVG(Users.Reputation) FROM Users | sede |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT COUNT(*) FROM jybgb WHERE jybgb.JZLSH = '75590344936' | css |
CREATE TABLE table_name_7 (
position VARCHAR,
first_team_appearances VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position has had 7 first-team appearances?
| SELECT position FROM table_name_7 WHERE first_team_appearances = "7" | sql_create_context |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 varc... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) | nvbench |
CREATE TABLE table_26265 (
"Local Government Area" text,
"Type" text,
"Major Town" text,
"Land Area (km\u00b2)" text,
"Pop. 2006" real,
"Density km \u22122" real,
"Towns" real,
"Est." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On wha... | SELECT "Est." FROM table_26265 WHERE "Land Area (km\u00b2)" = '4563' | wikisql |
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,... | SELECT DISTINCT flight_stop.stop_airport FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight, flight_stop WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND flight.flight_number = 281 AND flight.to_airport = AIR... | atis |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT SUM(t_kc22.AMOUNT) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '00614824' AND gwyjzb.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2016-10-30' AND '2018-03-13' AND t_kc22.MED_INV_ITEM_TYPE = '手术费' UNION SELECT SUM(t_kc22.AMOUNT) FROM fgwyjzb JOIN t_kc22 ON fg... | css |
CREATE TABLE table_7226 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average Against has Drawn of 2, and ... | SELECT AVG("Against") FROM table_7226 WHERE "Drawn" = '2' AND "Played" > '10' | wikisql |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT * FROM hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_i... | css |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.dob_year > "2095" | mimicsql_data |
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transa... | SELECT transaction_type, COUNT(*) FROM Financial_Transactions GROUP BY transaction_type ORDER BY transaction_type DESC | nvbench |
CREATE TABLE table_name_51 (
event VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event did he have a 2-0 record?
| SELECT event FROM table_name_51 WHERE record = "2-0" | sql_create_context |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE v... | SELECT (SELECT vitalperiodic.sao2 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-107035') AND NOT patient.unitdischargetime IS NULL... | eicu |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "55" AND lab.label = "Immunoglobulin G" | mimicsql_data |
CREATE TABLE table_17147 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Rockets height was 6-6 in feet, list the time fra... | SELECT "Years for Rockets" FROM table_17147 WHERE "Height in Ft." = '6-6' | wikisql |
CREATE TABLE table_33106 (
"Position" real,
"Club" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Points" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT AVG("Played") FROM table_33106 WHERE "Club" = 'botev plovdiv' AND "Wins" > '11' | wikisql |
CREATE TABLE table_5555 (
"Number" real,
"Builder" text,
"Type" text,
"Date" real,
"Works number" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Works number has a Number larger than 807, and a Type of 0-6-0, and a Date of 1920?
| SELECT AVG("Works number") FROM table_5555 WHERE "Number" > '807' AND "Type" = '0-6-0' AND "Date" = '1920' | wikisql |
CREATE TABLE table_78469 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team that played against Fitzr... | SELECT "Away team" FROM table_78469 WHERE "Home team" = 'fitzroy' | wikisql |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'neurosurgery consultation' AND DATETIME(... | eicu |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Private" AND lab.label = "C3" | mimicsql_data |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId n... | SELECT P.Id AS "post_link", P.Score, Text FROM Comments AS C, Posts AS P WHERE Text LIKE '%dup%' AND UserId = 235 AND P.Id = C.PostId AND P.PostTypeId = 1 AND P.ClosedDate IS NULL | sede |
CREATE TABLE table_12427 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Date has an Outcome of runner up, and a Partner of tyra ... | SELECT "Date" FROM table_12427 WHERE "Outcome" = 'runner up' AND "Partner" = 'tyra calderwood' | wikisql |
CREATE TABLE table_name_9 (
club VARCHAR,
not_winning_editions VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Club has a Not winning editions of 1992, 2003?
| SELECT club FROM table_name_9 WHERE not_winning_editions = "1992, 2003" | sql_create_context |
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 program_requirement (
program_id int,
category varchar,
min_credit int,
additio... | 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... | advising |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.itemid = "51300" | mimicsql_data |
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
Owne... | SELECT YEAR('date') AS "date", COUNT(*) AS "#_of_badges" FROM Badges WHERE UserId = '##UserID:int?22656##' GROUP BY YEAR('date'), UserId ORDER BY YEAR('date') | sede |
CREATE TABLE table_24285393_1 (
maximum_elevation VARCHAR,
country_or_region VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum elevation in netherlands?
| SELECT maximum_elevation FROM table_24285393_1 WHERE country_or_region = "Netherlands" | sql_create_context |
CREATE TABLE table_23799653_1 (
title VARCHAR,
directed_by VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the name of the episode seen by 9.63 millions of people in the US, whose director is Laura Innes?
| SELECT title FROM table_23799653_1 WHERE directed_by = "Laura Innes" AND us_viewers__millions_ = "9.63" | sql_create_context |
CREATE TABLE table_name_39 (
game VARCHAR,
platform_s_ VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Game that came out before the year 2009 for the Playstation 3?
| SELECT game FROM table_name_39 WHERE platform_s_ = "playstation 3" AND year < 2009 | sql_create_context |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartr... | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'glucagon 1 mg (1 unit) inj' AND DATETIME(medication... | eicu |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
... | SELECT Id AS "post_link", Body FROM Posts WHERE Body LIKE '%http://tr.im%' | sede |
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
other_details text
)
CREATE TABLE ref_budget_codes (
budget_type_code text,
budget_type_description text
)
CREATE TABLE projec... | SELECT document_id FROM documents EXCEPT SELECT document_id FROM documents_with_expenses | spider |
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE month (
... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN DIEGO' AND flight.departure_time > 1700 AND flight.to_airport = AIRPORT_SERVICE_1.air... | atis |
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
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag | nvbench |
CREATE TABLE table_38669 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the most wins in 1971 in 250cc class?
| SELECT MAX("Wins") FROM table_38669 WHERE "Class" = '250cc' AND "Year" = '1971' | wikisql |
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 te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.age < "27" | mimicsql_data |
CREATE TABLE table_16062 (
"Round" real,
"Choice" real,
"Overall" real,
"Player name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position is played by pick 255 overall?
| SELECT "Position" FROM table_16062 WHERE "Overall" = '255' | wikisql |
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... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 9 AND program_course.category LIKE 'ULCS' | advising |
CREATE TABLE table_name_60 (
highest_rank VARCHAR,
total VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank is Takat riki having less than 30 total?
| SELECT highest_rank FROM table_name_60 WHERE total < 30 AND name = "takatōriki" | sql_create_context |
CREATE TABLE table_55657 (
"Player" text,
"Pos." text,
"From" real,
"School/Country" text,
"Rebs" real,
"Asts" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest rebs for a pos of pg before 2004?
| SELECT MAX("Rebs") FROM table_55657 WHERE "Pos." = 'pg' AND "From" < '2004' | wikisql |
CREATE TABLE table_24478 (
"Season" text,
"Mens 1st XI" text,
"Mens 2nd XI" text,
"Mens 3rd XI" text,
"Ladies 1st XI" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 3rd, sedgemoor division 1 is the ladies 1st xi what is the mens 3rd xi?
| SELECT "Mens 3rd XI" FROM table_24478 WHERE "Ladies 1st XI" = '3rd, Sedgemoor Division 1' | wikisql |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... | SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-21820')) AND DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TIME(), '-170 mont... | eicu |
CREATE TABLE table_67785 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least attendance for opponent of new orleans saints an... | SELECT MIN("Attendance") FROM table_67785 WHERE "Week" > '2' AND "Opponent" = 'new orleans saints' | wikisql |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | SELECT mzjzjlb.JLSJ FROM mzjzjlb WHERE mzjzjlb.JZLSH = '67524339485' | css |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Hx-rectal & anal malign" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.days_stay = "4" | mimicsql_data |
CREATE TABLE table_name_58 (
series_1 VARCHAR,
series_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What series 1 has a Doug Richards in Series 2?
| SELECT series_1 FROM table_name_58 WHERE series_2 = "doug richards" | sql_create_context |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Badges (
Id... | SELECT rate.TagYear, rate.TagName, rate.TagedPerMonth FROM (SELECT TagName, COUNT(PostId) / MONTH(MAX(Posts.CreationDate)) AS TagedPerMonth, YEAR(Posts.CreationDate) AS TagYear FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND TagName IN ('angular2', 'angularjs', 'aurelia', 'backbone.j... | sede |
CREATE TABLE table_28561455_1 (
written_by VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episodes that were directed by Peter O'Fallon?
| SELECT written_by FROM table_28561455_1 WHERE directed_by = "Peter O'Fallon" | sql_create_context |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM FROM t_kc22 WHERE MED_CLINIC_ID = '49970646346' GROUP BY SOC_SRT_DIRE_CD ORDER BY SUM(SELF_PAY_AMO) DESC LIMIT 1 | css |
CREATE TABLE table_27544 (
"Authority" text,
"Rate or precept" text,
"Budget limit (\u00a3m)" text,
"Budget plans (\u00a3m)" text,
"Rate limit (p)" text,
"Rate change (%)" text,
"Desired rate (p)" text,
"Desired rate change (%)" text
)
-- Using valid SQLite, answer the following questi... | SELECT "Rate limit (p)" FROM table_27544 WHERE "Budget plans (\u00a3m)" = 'limit agreed' | wikisql |
CREATE TABLE table_name_16 (
first_elected VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is First Elected, when District is 'Minnesota 2'?
| SELECT first_elected FROM table_name_16 WHERE district = "minnesota 2" | sql_create_context |
CREATE TABLE zyb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc22 WHERE t_kc22.MED_CLINIC_ID IN (SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_ID = '37304370' AND qtb.MED_SER_ORG_NO = '8586775' AND qtb.IN_HOSP_DATE BETWEEN '2001-03-11' AND '2021-06-27' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_ID = ... | css |
CREATE TABLE table_16118 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what being the maximum year where regular season is 4th, northwest
| SELECT MAX("Year") FROM table_16118 WHERE "Regular Season" = '4th, Northwest' | wikisql |
CREATE TABLE table_65142 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College/Junior/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a Round larger than 8?
| SELECT "Player" FROM table_65142 WHERE "Round" > '8' | wikisql |
CREATE TABLE table_44054 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Date" FROM table_44054 WHERE "Opponent" = 'houston' | wikisql |
CREATE TABLE table_7369 (
"Position" text,
"Jersey #" real,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"1983\u20131984 Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the greate... | SELECT MAX("Height (cm)") FROM table_7369 WHERE "1983\u20131984 Team" = 'montreal canadiens' AND "Jersey #" < '21' | wikisql |
CREATE TABLE table_58587 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the time of the driver in grid 2?
| SELECT "Time/Retired" FROM table_58587 WHERE "Grid" < '2' | wikisql |
CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_ID = '75810879' AND gwyjzb.MED_SER_ORG_NO = '2045056' AND gwyjzb.OUT_DIAG_DIS_NM LIKE '%皮炎%' UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '75810879' AND fgwyjzb.MED_SER_ORG_NO = '2045056' AND fgwyjzb.OUT_DIAG_DIS_NM LIKE '%皮炎%' | css |
CREATE TABLE table_name_93 (
record VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record when Clayton Mckinney was the opponent?
| SELECT record FROM table_name_93 WHERE opponent = "clayton mckinney" | sql_create_context |
CREATE TABLE table_24856090_1 (
premiere INTEGER,
english_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the premiere number for the episode titled 'The Mysteries of Love' in English?
| SELECT MAX(premiere) FROM table_24856090_1 WHERE english_title = "The Mysteries of Love" | sql_create_context |
CREATE TABLE table_26016 (
"#" real,
"Title" text,
"Original airdate" text,
"Timeslot" text,
"Viewers (millions)" text,
"Nightly rank" real,
"Weekly rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did Episode 22 originally air... | SELECT COUNT("Original airdate") FROM table_26016 WHERE "#" = '22' | wikisql |
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
-- Using valid SQLite, answer the following que... | SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee | nvbench |
CREATE TABLE table_44474 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the game where the NY Islanders are the home team?
| SELECT "Score" FROM table_44474 WHERE "Home" = 'ny islanders' | wikisql |
CREATE TABLE table_71626 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of silver medals received by Austria when they receive more than 3... | SELECT MIN("Silver") FROM table_71626 WHERE "Total" > '3' AND "Bronze" > '22' AND "Gold" < '395' AND "Nation" = 'austria' | wikisql |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT jybgb.BBCJBW FROM jybgb WHERE jybgb.BGDH = '63570417818' | css |
CREATE TABLE table_train_248 (
"id" int,
"anemia" bool,
"prostate_specific_antigen_psa" float,
"hemoglobin_a1c_hba1c" float,
"body_weight" float,
"fasting_triglycerides" int,
"hyperlipidemia" bool,
"hgb" int,
"fasting_total_cholesterol" int,
"fasting_ldl_cholesterol" int,
"bo... | SELECT * FROM table_train_248 WHERE anemia = 1 OR hemoglobin_a1c_hba1c < 12 | criteria2sql |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE hz_info (
KH text,
KLX number... | SELECT zyjybgb.BBCJBW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE person_info.XM = '郑和璧... | css |
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_Per... | SELECT All_Road, ACC_Percent FROM basketball_match ORDER BY All_Road DESC | nvbench |
CREATE TABLE table_name_15 (
fate VARCHAR,
tonnage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Fate has a Tonnage of 7,217?
| SELECT fate FROM table_name_15 WHERE tonnage = "7,217" | sql_create_context |
CREATE TABLE table_name_84 (
against INTEGER,
wins VARCHAR,
draws VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest against that has less than 9 wins, and draws smaller than 0?
| SELECT MIN(against) FROM table_name_84 WHERE wins < 9 AND draws < 0 | sql_create_context |
CREATE TABLE Customers (
customer_id INTEGER,
payment_method VARCHAR(15),
customer_name VARCHAR(80),
date_became_customer DATETIME,
other_customer_details VARCHAR(255)
)
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_status VARCHAR(15),
order_date DATETI... | SELECT active_from_date, COUNT(active_from_date) FROM Customers AS t1 JOIN Customer_Contact_Channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' GROUP BY customer_name ORDER BY COUNT(active_from_date) | nvbench |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND lab.fluid = "Pleural" | mimicsql_data |
CREATE TABLE table_name_36 (
year VARCHAR,
notes VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the year when the notes is 5000 m and the competition is world junior championships in athletics?
| SELECT COUNT(year) FROM table_name_36 WHERE notes = "5000 m" AND competition = "world junior championships in athletics" | sql_create_context |
CREATE TABLE table_46515 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is moving with the nationality of Tri?
| SELECT "Moving to" FROM table_46515 WHERE "Nat." = 'tri' | wikisql |
CREATE TABLE table_name_69 (
score VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the game that holds a record of 80-61?
| SELECT score FROM table_name_69 WHERE record = "80-61" | sql_create_context |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
De... | SELECT PF.PostId AS "post_link", CASE P.PostTypeId WHEN 1 THEN 'Q' WHEN 2 THEN 'A' ELSE '?' END AS "Q/A", CASE PF.VoteTypeId WHEN 2 THEN '+' WHEN 3 THEN '-' ELSE '?' END AS "+/-/?", COUNT(1) AS votecount, COALESCE(P.ViewCount, PP.ViewCount) AS viewCount FROM PostFeedback AS PF LEFT JOIN Posts AS P ON (PF.PostId = P.Id)... | sede |
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 ... | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12775 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose') ORDER BY labevents.charttime ... | mimic_iii |
CREATE TABLE artist (
artist_name text,
country text,
gender text,
preferred_genre text
)
CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABL... | SELECT MIN(T1.duration), MIN(T2.rating), T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is | spider |
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 treatment (
... | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 30 AND 39) AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-1 year') GR... | eicu |
CREATE TABLE table_50453 (
"Country" text,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT AVG("2002") FROM table_50453 WHERE "Country" = 'peru' AND "2007" > '1,200' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "41" AND diagnoses.icd9_code = "34291" | mimicsql_data |
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restr... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CHICAGO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'INDIAN... | atis |
CREATE TABLE table_name_44 (
time__behind VARCHAR,
jockey VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Time/ Behind, when Jockey is 'Jose Lezcano'?
| SELECT time__behind FROM table_name_44 WHERE jockey = "jose lezcano" | sql_create_context |
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufac... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND days.day_name = 'SUNDAY' AND flight.flight_days = days.days_code AN... | atis |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.