instruction stringlengths 0 1.06k | input stringlengths 33 7.14k | response stringlengths 2 4.44k | source stringclasses 25
values | text stringlengths 302 8.5k |
|---|---|---|---|---|
How many cities have an enrollment of 19082? | CREATE TABLE table_12896884_1 (
city VARCHAR,
enrollment VARCHAR
) | SELECT COUNT(city) FROM table_12896884_1 WHERE enrollment = 19082 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many cities have an enrollment of 19082? ### Input: CREATE TABLE table_12896884_1 (
city VARCHAR,
enrollment VAR... |
What Competition had a Score of 3 3? | CREATE TABLE table_name_27 (
competition VARCHAR,
score VARCHAR
) | SELECT competition FROM table_name_27 WHERE score = "3–3" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Competition had a Score of 3 3? ### Input: CREATE TABLE table_name_27 (
competition VARCHAR,
score VARCHAR
) ##... |
has any organism been observed in the first microbiological examination of patient 31325's bone marrow in their first hospital visit? | 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,
... | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31325 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND microbiologyevents.spec_type_desc = 'bone marrow' AND NOT microbiologyevents.org_... | mimic_iii | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: has any organism been observed in the first microbiological examination of patient 31325's bone marrow in their first hospit... |
What was the NFL Recap of the game held on December 24, 2005? | CREATE TABLE table_14549 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"NFL Recap" text,
"Record" text,
"Attendance" text
) | SELECT "NFL Recap" FROM table_14549 WHERE "Date" = 'december 24, 2005' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the NFL Recap of the game held on December 24, 2005? ### Input: CREATE TABLE table_14549 (
"Week" real,
"Da... |
What is the year for the genre of emo and artist is all-american rejects and song title is ' move along '? | CREATE TABLE table_26449 (
"Song title" text,
"Artist" text,
"Year" real,
"Genre" text,
"Single / Pack name" text,
"Release date" text,
"Family Friendly" text,
"Additional Rock Band 3 Features" text
) | SELECT MAX("Year") FROM table_26449 WHERE "Genre" = 'Emo' AND "Artist" = 'All-American Rejects' AND "Song title" = ' Move Along ' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the year for the genre of emo and artist is all-american rejects and song title is ' move along '? ### Input: CREATE... |
Which Bronze has a Nation of austria, and a Total larger than 6? | CREATE TABLE table_65988 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Bronze") FROM table_65988 WHERE "Nation" = 'austria' AND "Total" > '6' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Bronze has a Nation of austria, and a Total larger than 6? ### Input: CREATE TABLE table_65988 (
"Rank" text,
... |
Which Team has a Score of 89-123? | CREATE TABLE table_43011 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_43011 WHERE "Score" = '89-123' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Team has a Score of 89-123? ### Input: CREATE TABLE table_43011 (
"Game" real,
"Date" text,
"Team" text,
... |
What is the Region of the release on December 22, 2008? | CREATE TABLE table_name_2 (
region VARCHAR,
date VARCHAR
) | SELECT region FROM table_name_2 WHERE date = "december 22, 2008" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Region of the release on December 22, 2008? ### Input: CREATE TABLE table_name_2 (
region VARCHAR,
date ... |
What is the prize money amount after match 1, with 102 new entries to the round? | CREATE TABLE table_name_40 (
prize_money VARCHAR,
matches VARCHAR,
new_entries_this_round VARCHAR
) | SELECT prize_money FROM table_name_40 WHERE matches > 1 AND new_entries_this_round = "102" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the prize money amount after match 1, with 102 new entries to the round? ### Input: CREATE TABLE table_name_40 (
... |
What is the name of the station where the language is tamil malay? | CREATE TABLE table_1388 (
"Frequency" text,
"Station" text,
"Operator" text,
"Language" text,
"Genre" text,
"Coverage Area" text
) | SELECT "Station" FROM table_1388 WHERE "Language" = 'Tamil Malay' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the name of the station where the language is tamil malay? ### Input: CREATE TABLE table_1388 (
"Frequency" text... |
Which venue had an extra of Junior Race? | CREATE TABLE table_80318 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | SELECT "Venue" FROM table_80318 WHERE "Extra" = 'junior race' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which venue had an extra of Junior Race? ### Input: CREATE TABLE table_80318 (
"Year" real,
"Tournament" text,
"... |
Can you tell me the Position that has the Entrant of j ampt? | CREATE TABLE table_61236 (
"Position" text,
"Driver" text,
"Entrant" text,
"Class" text,
"Laps" real
) | SELECT "Position" FROM table_61236 WHERE "Entrant" = 'j ampt' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Can you tell me the Position that has the Entrant of j ampt? ### Input: CREATE TABLE table_61236 (
"Position" text,
... |
Was the constitution amended when the percentage of yes votes was 69.82%? | CREATE TABLE table_27950 (
"meas. num." real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
) | SELECT "Const. Amd.?" FROM table_27950 WHERE "% YES" = '69.82%' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Was the constitution amended when the percentage of yes votes was 69.82%? ### Input: CREATE TABLE table_27950 (
"meas. n... |
which parts have more than 2 faults? Show the part name and id, list Y-axis in ascending order. | CREATE TABLE Maintenance_Engineers (
engineer_id INTEGER,
company_id INTEGER,
first_name VARCHAR(50),
last_name VARCHAR(50),
other_details VARCHAR(255)
)
CREATE TABLE Third_Party_Companies (
company_id INTEGER,
company_type VARCHAR(5),
company_name VARCHAR(255),
company_address VARC... | SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id ORDER BY T1.part_id | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: which parts have more than 2 faults? Show the part name and id, list Y-axis in ascending order. ### Input: CREATE TABLE Main... |
What are the names of all the scientists in alphabetical order? | CREATE TABLE projects (
code text,
name text,
hours number
)
CREATE TABLE scientists (
ssn number,
name text
)
CREATE TABLE assignedto (
scientist number,
project text
) | SELECT name FROM scientists ORDER BY name | spider | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the names of all the scientists in alphabetical order? ### Input: CREATE TABLE projects (
code text,
name t... |
Bring me the number of patients less than 70 years who were diagnosed with acute myocardial infarction of inferolateral wall initial episode of care. | 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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "70" AND diagnoses.long_title = "Acute myocardial infarction of inferolateral wall, initial episode of care" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Bring me the number of patients less than 70 years who were diagnosed with acute myocardial infarction of inferolateral wall... |
What is the average year with a 1:42.85 time? | CREATE TABLE table_name_81 (
year INTEGER,
time VARCHAR
) | SELECT AVG(year) FROM table_name_81 WHERE time = "1:42.85" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the average year with a 1:42.85 time? ### Input: CREATE TABLE table_name_81 (
year INTEGER,
time VARCHAR
) #... |
Which Pick # has a Round larger than 5, and a Position of wide receiver, and a Name of gregory spann, and an Overall larger than 228? | CREATE TABLE table_name_67 (
pick__number INTEGER,
overall VARCHAR,
name VARCHAR,
round VARCHAR,
position VARCHAR
) | SELECT AVG(pick__number) FROM table_name_67 WHERE round > 5 AND position = "wide receiver" AND name = "gregory spann" AND overall > 228 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Pick # has a Round larger than 5, and a Position of wide receiver, and a Name of gregory spann, and an Overall larger ... |
What's the total losses when there are 8 wins and less than 2 byes? | CREATE TABLE table_name_91 (
losses INTEGER,
wins VARCHAR,
byes VARCHAR
) | SELECT SUM(losses) FROM table_name_91 WHERE wins = 8 AND byes < 2 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the total losses when there are 8 wins and less than 2 byes? ### Input: CREATE TABLE table_name_91 (
losses INTEG... |
WHAT ROUND HAS A GUARD POSITION AT OHIO COLLEGE? | CREATE TABLE table_name_18 (
round VARCHAR,
position VARCHAR,
college VARCHAR
) | SELECT round FROM table_name_18 WHERE position = "guard" AND college = "ohio" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: WHAT ROUND HAS A GUARD POSITION AT OHIO COLLEGE? ### Input: CREATE TABLE table_name_18 (
round VARCHAR,
position VAR... |
What is the venue for the match on 30/03/1985? | CREATE TABLE table_61134 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT "Venue" FROM table_61134 WHERE "Date" = '30/03/1985' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the venue for the match on 30/03/1985? ### Input: CREATE TABLE table_61134 (
"Opposing Teams" text,
"Against... |
What are all the AAA classes in the school years of 2004-05? | CREATE TABLE table_14603212_5 (
class_aAA VARCHAR,
school_year VARCHAR
) | SELECT class_aAA FROM table_14603212_5 WHERE school_year = "2004-05" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are all the AAA classes in the school years of 2004-05? ### Input: CREATE TABLE table_14603212_5 (
class_aAA VARCHA... |
calculate the five year survival rate of the patients diagnosed with hypernatremia - moderate (146 - 155 meq/dl). | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicatio... | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t2.diagnosistime) > 5 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOI... | eicu | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: calculate the five year survival rate of the patients diagnosed with hypernatremia - moderate (146 - 155 meq/dl). ### Input:... |
What was the result of the playoffs when the regular season was 7th, southeast | CREATE TABLE table_17474 (
"Year" real,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT "Playoffs" FROM table_17474 WHERE "Regular Season" = '7th, Southeast' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the result of the playoffs when the regular season was 7th, southeast ### Input: CREATE TABLE table_17474 (
"Ye... |
What award was Denis Lawson nominated for in the Best Actor in a Musical category? | CREATE TABLE table_55031 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
) | SELECT "Award" FROM table_55031 WHERE "Category" = 'best actor in a musical' AND "Nominee" = 'denis lawson' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What award was Denis Lawson nominated for in the Best Actor in a Musical category? ### Input: CREATE TABLE table_55031 (
... |
how many female patients are diagnosed with preterm nec250+g? | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Preterm NEC 2500+g" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many female patients are diagnosed with preterm nec250+g? ### Input: CREATE TABLE diagnoses (
subject_id text,
h... |
What is the sum of Artist Steve Hepburn's Mintage? | CREATE TABLE table_54944 (
"Year" real,
"Artist" text,
"Composition" text,
"Mintage" real,
"Issue Price" text
) | SELECT SUM("Mintage") FROM table_54944 WHERE "Artist" = 'steve hepburn' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the sum of Artist Steve Hepburn's Mintage? ### Input: CREATE TABLE table_54944 (
"Year" real,
"Artist" text,... |
in what date was aired the first broacast of the episode 1x02 | CREATE TABLE table_17413485_1 (
first_broadcast VARCHAR,
episode VARCHAR
) | SELECT first_broadcast FROM table_17413485_1 WHERE episode = "1x02" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: in what date was aired the first broacast of the episode 1x02 ### Input: CREATE TABLE table_17413485_1 (
first_broadcast... |
How much is the lowest glucose(mmol/L) with [Na +] under 0? | CREATE TABLE table_44695 (
"Solution" text,
"Other Name" text,
"[Na + ](mmol/L)" real,
"[Cl - ](mmol/L)" real,
"[Glucose](mmol/L)" real,
"[Glucose](mg/dl)" real
) | SELECT MIN("[Glucose](mmol/L)") FROM table_44695 WHERE "[Na + ](mmol/L)" < '0' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How much is the lowest glucose(mmol/L) with [Na +] under 0? ### Input: CREATE TABLE table_44695 (
"Solution" text,
"... |
Who wrote the episode that got 5.95 million U.S. viewers? | CREATE TABLE table_74320 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT "Written by" FROM table_74320 WHERE "U.S. viewers (million)" = '5.95' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who wrote the episode that got 5.95 million U.S. viewers? ### Input: CREATE TABLE table_74320 (
"No. in series" real,
... |
What Club team with a Round larger than 5 have a defense position? | CREATE TABLE table_name_9 (
club_team VARCHAR,
round VARCHAR,
position VARCHAR
) | SELECT club_team FROM table_name_9 WHERE round > 5 AND position = "defense" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Club team with a Round larger than 5 have a defense position? ### Input: CREATE TABLE table_name_9 (
club_team VARC... |
How many total points did Oisin McConville have from his 5 matches? | CREATE TABLE table_63037 (
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
) | SELECT COUNT("Total") FROM table_63037 WHERE "Player" = 'oisin mcconville' AND "Matches" < '5' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many total points did Oisin McConville have from his 5 matches? ### Input: CREATE TABLE table_63037 (
"Player" text,... |
What is the lowest value for 1990, when the Region is East Asia (10 Economies), and when 1960 has a value less than 12.6? | CREATE TABLE table_48980 (
"Region" text,
"1950" real,
"1960" real,
"1970" real,
"1980" real,
"1990" real,
"2000" real
) | SELECT MIN("1990") FROM table_48980 WHERE "Region" = 'east asia (10 economies)' AND "1960" < '12.6' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the lowest value for 1990, when the Region is East Asia (10 Economies), and when 1960 has a value less than 12.6? ##... |
What was the date of the game with a loss of Bush (1 5)? | CREATE TABLE table_name_18 (
date VARCHAR,
loss VARCHAR
) | SELECT date FROM table_name_18 WHERE loss = "bush (1–5)" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the date of the game with a loss of Bush (1 5)? ### Input: CREATE TABLE table_name_18 (
date VARCHAR,
loss ... |
Show the number of courses for each office in a stacked bar chart The x-axis is office name and group by course description, and rank x axis in descending order. | CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE... | SELECT PROF_OFFICE, COUNT(PROF_OFFICE) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY CRS_DESCRIPTION, PROF_OFFICE ORDER BY PROF_OFFICE DESC | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show the number of courses for each office in a stacked bar chart The x-axis is office name and group by course description,... |
Which To Par has Earnings ($) larger than 360,000, and a Year larger than 1998, and a Country of united states, and a Score of 69-68-66-64=267? | CREATE TABLE table_79648 (
"Year" real,
"Player" text,
"Country" text,
"Score" text,
"To Par" text,
"Margin" real,
"Earnings ($)" real
) | SELECT "To Par" FROM table_79648 WHERE "Earnings ($)" > '360,000' AND "Year" > '1998' AND "Country" = 'united states' AND "Score" = '69-68-66-64=267' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which To Par has Earnings ($) larger than 360,000, and a Year larger than 1998, and a Country of united states, and a Score ... |
tell me the maximum hospital cost if there is a male gen inflam dis nec since 2100? | 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 icustays (
row... | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT diagnoses_icd.hadm_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 = 'male gen inflam dis nec')) AND STRFTIME('%y', cost.chargetime) ... | mimic_iii | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: tell me the maximum hospital cost if there is a male gen inflam dis nec since 2100? ### Input: CREATE TABLE prescriptions (
... |
What is Case Suffix (Case), when Postposition is '-mde (drops d)'? | CREATE TABLE table_76304 (
"noun root (meaning)" text,
"case suffix (case)" text,
"postposition" text,
"full word" text,
"English meaning" text
) | SELECT "case suffix (case)" FROM table_76304 WHERE "postposition" = '-mde (drops d)' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Case Suffix (Case), when Postposition is '-mde (drops d)'? ### Input: CREATE TABLE table_76304 (
"noun root (mea... |
For those employees who was hired before 2002-06-21, visualize a scatter chart about the correlation between salary and commission_pct . | 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(... | SELECT SALARY, COMMISSION_PCT FROM employees WHERE HIRE_DATE < '2002-06-21' | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For those employees who was hired before 2002-06-21, visualize a scatter chart about the correlation between salary and comm... |
until 2104, what was the yearly minimum weight of patient 005-86645? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospit... | SELECT MIN(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-86645') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y', patient.unitadmittime) <= '2104' GROUP BY STRFTIME('%y', patient.unitadmitt... | eicu | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: until 2104, what was the yearly minimum weight of patient 005-86645? ### Input: CREATE TABLE diagnosis (
diagnosisid num... |
What is the f bolt for 11.35 p1 diameter (mm)? | CREATE TABLE table_26967904_2 (
f_bolt VARCHAR,
p1_diameter__mm_ VARCHAR
) | SELECT f_bolt FROM table_26967904_2 WHERE p1_diameter__mm_ = "11.35" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the f bolt for 11.35 p1 diameter (mm)? ### Input: CREATE TABLE table_26967904_2 (
f_bolt VARCHAR,
p1_diamete... |
What position did the sheffield eagles finish in? | CREATE TABLE table_17926 (
"Position" real,
"Club" text,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"Pts For" real,
"Pts Agst" real,
"B.P." real,
"Points" real
) | SELECT MAX("Position") FROM table_17926 WHERE "Club" = 'Sheffield Eagles' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What position did the sheffield eagles finish in? ### Input: CREATE TABLE table_17926 (
"Position" real,
"Club" text... |
What are the names of products with price at most 200? | CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
) | SELECT name FROM products WHERE price <= 200 | spider | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the names of products with price at most 200? ### Input: CREATE TABLE manufacturers (
code number,
name tex... |
What amount of senior high school where junior high school is 114cm? | CREATE TABLE table_18812 (
"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 "Senior High School (15\u201318 yrs)" FROM table_18812 WHERE "Junior High School (12\u201315 yrs)" = '114cm' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What amount of senior high school where junior high school is 114cm? ### Input: CREATE TABLE table_18812 (
"Specificatio... |
Who had a score of 69-70=139? | CREATE TABLE table_67528 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_67528 WHERE "Score" = '69-70=139' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who had a score of 69-70=139? ### Input: CREATE TABLE table_67528 (
"Place" text,
"Player" text,
"Country" text,... |
Who was the winner when the runner-up was Chemnitzer FC II? | CREATE TABLE table_name_86 (
winners VARCHAR,
runners_up VARCHAR
) | SELECT winners FROM table_name_86 WHERE runners_up = "chemnitzer fc ii" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the winner when the runner-up was Chemnitzer FC II? ### Input: CREATE TABLE table_name_86 (
winners VARCHAR,
... |
Team of honda 250cc, and a Time of 31 03.093 has what lowest rank? | CREATE TABLE table_5974 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | SELECT MIN("Rank") FROM table_5974 WHERE "Team" = 'honda 250cc' AND "Time" = '31’ 03.093' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Team of honda 250cc, and a Time of 31 03.093 has what lowest rank? ### Input: CREATE TABLE table_5974 (
"Rank" real,
... |
What is the total in the case where theere are 6 lecturers and fewer than 48 professors? | CREATE TABLE table_33071 (
"Lecturers" real,
"Associate professors" real,
"Assistant professors" real,
"Professors" real,
"Total" real
) | SELECT AVG("Total") FROM table_33071 WHERE "Lecturers" = '6' AND "Professors" < '48' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the total in the case where theere are 6 lecturers and fewer than 48 professors? ### Input: CREATE TABLE table_33071... |
what ground transportation is available in DENVER | CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
... | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'DENVER' AND ground_service.city_code = city.city_code | atis | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what ground transportation is available in DENVER ### Input: CREATE TABLE food_service (
meal_code text,
meal_number... |
How many games did they play on january 7? | CREATE TABLE table_29880 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("High points") FROM table_29880 WHERE "Date" = 'January 7' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many games did they play on january 7? ### Input: CREATE TABLE table_29880 (
"Game" real,
"Date" text,
"Team... |
what is average age of patients whose language is cape and primary disease is coronary artery disease? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.language = "CAPE" AND demographic.diagnosis = "CORONARY ARTERY DISEASE" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is average age of patients whose language is cape and primary disease is coronary artery disease? ### Input: CREATE TAB... |
how much is the change in sodium in patient 17462 second measured on the current hospital visit compared to the first value measured on the current hospital visit? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
... | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17462 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'sodium') ORDER BY labevents.charttime L... | mimic_iii | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how much is the change in sodium in patient 17462 second measured on the current hospital visit compared to the first value ... |
List the names of members who did not participate in any round. | CREATE TABLE college (
college_id number,
name text,
leader_name text,
college_location text
)
CREATE TABLE member (
member_id number,
name text,
country text,
college_id number
)
CREATE TABLE round (
round_id number,
member_id number,
decoration_theme text,
rank_in_rou... | SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM round) | spider | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: List the names of members who did not participate in any round. ### Input: CREATE TABLE college (
college_id number,
... |
What was the final score for the match where Hereford United was the home team? | CREATE TABLE table_name_57 (
score VARCHAR,
home_team VARCHAR
) | SELECT score FROM table_name_57 WHERE home_team = "hereford united" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the final score for the match where Hereford United was the home team? ### Input: CREATE TABLE table_name_57 (
... |
What's the name that had a moving to Anorthosis Famagusta and a transfer window of winter? | CREATE TABLE table_name_6 (
name VARCHAR,
transfer_window VARCHAR,
moving_to VARCHAR
) | SELECT name FROM table_name_6 WHERE transfer_window = "winter" AND moving_to = "anorthosis famagusta" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the name that had a moving to Anorthosis Famagusta and a transfer window of winter? ### Input: CREATE TABLE table_nam... |
Which AFC cup does Kenji Arai have? | CREATE TABLE table_44862 (
"Rank" real,
"Name" text,
"S-League" text,
"Singapore Cup" text,
"Singapore League Cup" text,
"AFC Cup" text,
"Total" text
) | SELECT "AFC Cup" FROM table_44862 WHERE "Name" = 'kenji arai' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which AFC cup does Kenji Arai have? ### Input: CREATE TABLE table_44862 (
"Rank" real,
"Name" text,
"S-League" t... |
give me the number of patients whose age is less than 80 and drug code is aztr1000fb? | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "80" AND prescriptions.formulary_drug_cd = "AZTR1000FB" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: give me the number of patients whose age is less than 80 and drug code is aztr1000fb? ### Input: CREATE TABLE demographic (
... |
count the number of patients whose days of hospital stay is greater than 1 and diagnoses short title is malnutrition mild degree? | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "1" AND diagnoses.short_title = "Malnutrition mild degree" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: count the number of patients whose days of hospital stay is greater than 1 and diagnoses short title is malnutrition mild de... |
Where did arturo segovia compete? | CREATE TABLE table_name_24 (
location VARCHAR,
opponent VARCHAR
) | SELECT location FROM table_name_24 WHERE opponent = "arturo segovia" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Where did arturo segovia compete? ### Input: CREATE TABLE table_name_24 (
location VARCHAR,
opponent VARCHAR
) ### R... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the average of department_id over the hire_date bin hire_date by time by a bar chart, I want to rank by the Y-axis in asc. | 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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID... | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(DEPARTMENT_ID) | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not ... |
Tell me the rider with 18.185 points round 1 | CREATE TABLE table_77539 (
"Rider" text,
"Horse" text,
"Faults" text,
"Round 1 Points" text,
"Total" real
) | SELECT "Rider" FROM table_77539 WHERE "Round 1 Points" = '18.185' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Tell me the rider with 18.185 points round 1 ### Input: CREATE TABLE table_77539 (
"Rider" text,
"Horse" text,
"... |
List the first names of people in alphabetical order? | CREATE TABLE people (
person_id number,
first_name text,
middle_name text,
last_name text,
cell_mobile_number text,
email_address text,
login_name text,
password text
)
CREATE TABLE courses (
course_id text,
course_name text,
course_description text,
other_details text
)... | SELECT first_name FROM people ORDER BY first_name | spider | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: List the first names of people in alphabetical order? ### Input: CREATE TABLE people (
person_id number,
first_name ... |
What's the voltage for the pentium dual-core e2140? | CREATE TABLE table_name_49 (
voltage VARCHAR,
model_number VARCHAR
) | SELECT voltage FROM table_name_49 WHERE model_number = "pentium dual-core e2140" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the voltage for the pentium dual-core e2140? ### Input: CREATE TABLE table_name_49 (
voltage VARCHAR,
model_n... |
What was the result of the game on week 11? | CREATE TABLE table_name_55 (
result VARCHAR,
week VARCHAR
) | SELECT result FROM table_name_55 WHERE week = 11 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the result of the game on week 11? ### Input: CREATE TABLE table_name_55 (
result VARCHAR,
week VARCHAR
) #... |
Name the date for clay surface and location of santos, brazil | CREATE TABLE table_36958 (
"Outcome" text,
"Date" text,
"Location" text,
"Surface" text,
"Opponent in final" text,
"Score" text
) | SELECT "Date" FROM table_36958 WHERE "Surface" = 'clay' AND "Location" = 'santos, brazil' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the date for clay surface and location of santos, brazil ### Input: CREATE TABLE table_36958 (
"Outcome" text,
... |
What is the 2010 result of a tournament that is A in 2006 and A in 2011? | CREATE TABLE table_67901 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2010" FROM table_67901 WHERE "2011" = 'a' AND "2006" = 'a' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the 2010 result of a tournament that is A in 2006 and A in 2011? ### Input: CREATE TABLE table_67901 (
"Tourname... |
What school is in Brookville? | CREATE TABLE table_37942 (
"School" text,
"City" text,
"Team Name" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
) | SELECT "School" FROM table_37942 WHERE "City" = 'brookville' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What school is in Brookville? ### Input: CREATE TABLE table_37942 (
"School" text,
"City" text,
"Team Name" text... |
what is the round when the pick # is less than 236 and the position is offensive guard? | CREATE TABLE table_name_64 (
round INTEGER,
pick__number VARCHAR,
position VARCHAR
) | SELECT AVG(round) FROM table_name_64 WHERE pick__number < 236 AND position = "offensive guard" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the round when the pick # is less than 236 and the position is offensive guard? ### Input: CREATE TABLE table_name_6... |
What day was the record 14-27? | CREATE TABLE table_23274514_6 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_23274514_6 WHERE record = "14-27" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What day was the record 14-27? ### Input: CREATE TABLE table_23274514_6 (
date VARCHAR,
record VARCHAR
) ### Respons... |
What is Team 1 Al-Hilal's Agg.? | CREATE TABLE table_name_81 (
agg VARCHAR,
team_1 VARCHAR
) | SELECT agg FROM table_name_81 WHERE team_1 = "al-hilal" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Team 1 Al-Hilal's Agg.? ### Input: CREATE TABLE table_name_81 (
agg VARCHAR,
team_1 VARCHAR
) ### Response: ... |
What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660? | CREATE TABLE table_name_22 (
grid INTEGER,
manufacturer VARCHAR,
time_retired VARCHAR
) | SELECT MAX(grid) FROM table_name_22 WHERE manufacturer = "aprilia" AND time_retired = "+1.660" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660? ### Input: CREATE TABLE table_na... |
What is the payment method code used by the most orders? | CREATE TABLE customer_orders (
order_id number,
customer_id number,
store_id number,
order_date time,
planned_delivery_date time,
actual_delivery_date time,
other_order_details text
)
CREATE TABLE customers (
customer_id text,
address_id number,
customer_name text,
customer_... | SELECT payment_method_code FROM invoices GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1 | spider | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the payment method code used by the most orders? ### Input: CREATE TABLE customer_orders (
order_id number,
... |
Daniela Ryf who competes in the women's even had what swim (1.5km)? | CREATE TABLE table_name_6 (
swim__15km_ VARCHAR,
event VARCHAR,
athlete VARCHAR
) | SELECT swim__15km_ FROM table_name_6 WHERE event = "women's" AND athlete = "daniela ryf" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Daniela Ryf who competes in the women's even had what swim (1.5km)? ### Input: CREATE TABLE table_name_6 (
swim__15km_ V... |
Is the ROMLING 450 course available in next semester ? | CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instruc... | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ROMLING' AND course.number = 450 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | advising | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Is the ROMLING 450 course available in next semester ? ### Input: CREATE TABLE course_prerequisite (
pre_course_id int,
... |
i would like to go from ATLANTA to DENVER on tuesday | CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND date_day.day_number = 22 AND date_day.month_number = 3 AND da... | atis | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: i would like to go from ATLANTA to DENVER on tuesday ### Input: CREATE TABLE aircraft (
aircraft_code varchar,
aircr... |
Which Population (2004) has a Moroccan population larger than 234506? | CREATE TABLE table_64315 (
"Name" text,
"Geographic code" text,
"Type" text,
"Households" real,
"Population (2004)" real,
"Foreign population" real,
"Moroccan population" real
) | SELECT AVG("Population (2004)") FROM table_64315 WHERE "Moroccan population" > '234506' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Population (2004) has a Moroccan population larger than 234506? ### Input: CREATE TABLE table_64315 (
"Name" text,... |
show me the cheapest flights from SAN FRANCISCO to BOSTON | CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND ... | atis | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: show me the cheapest flights from SAN FRANCISCO to BOSTON ### Input: CREATE TABLE equipment_sequence (
aircraft_code_seq... |
Who directed the film that Avie Luthra received an award for? | CREATE TABLE table_67766 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
) | SELECT "Director(s)" FROM table_67766 WHERE "Recipient" = 'avie luthra' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who directed the film that Avie Luthra received an award for? ### Input: CREATE TABLE table_67766 (
"Film" text,
"Di... |
Where was the game against the buffalo sabres? | CREATE TABLE table_name_27 (
location VARCHAR,
opponent VARCHAR
) | SELECT location FROM table_name_27 WHERE opponent = "buffalo sabres" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Where was the game against the buffalo sabres? ### Input: CREATE TABLE table_name_27 (
location VARCHAR,
opponent VA... |
What is the Length/Fuel of the bus built between 2000-2003 with a high Floor Styling? | CREATE TABLE table_name_91 (
length_fuel VARCHAR,
floor_styling VARCHAR,
year_built VARCHAR
) | SELECT length_fuel FROM table_name_91 WHERE floor_styling = "high" AND year_built = "2000-2003" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Length/Fuel of the bus built between 2000-2003 with a high Floor Styling? ### Input: CREATE TABLE table_name_91 ... |
Bar chart x axis event details y axis how many event details, sort Y-axis in desc order. | CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Eve... | SELECT Event_Details, COUNT(Event_Details) FROM Events GROUP BY Event_Details ORDER BY COUNT(Event_Details) DESC | nvbench | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Bar chart x axis event details y axis how many event details, sort Y-axis in desc order. ### Input: CREATE TABLE Participant... |
Which Assist/pass has a Score of 1-0, and a Goal of 5? | CREATE TABLE table_70074 (
"Goal" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Assist/pass" FROM table_70074 WHERE "Score" = '1-0' AND "Goal" = '5' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Assist/pass has a Score of 1-0, and a Goal of 5? ### Input: CREATE TABLE table_70074 (
"Goal" text,
"Location"... |
show me flights from NEW YORK to MIAMI | CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE aircraft (
aircraft_code varc... | 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 = 'NEW YORK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MIAMI... | atis | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: show me flights from NEW YORK to MIAMI ### Input: CREATE TABLE airport (
airport_code varchar,
airport_name text,
... |
At what venue was there a competition with a score reported as 7.14 (56) - 4.5 (29)? | CREATE TABLE table_74492 (
"Year" text,
"Competition" text,
"Opponent" text,
"Score" text,
"Venue" text
) | SELECT "Venue" FROM table_74492 WHERE "Score" = '7.14 (56) - 4.5 (29)' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: At what venue was there a competition with a score reported as 7.14 (56) - 4.5 (29)? ### Input: CREATE TABLE table_74492 (
... |
what is ethnicity of subject name stephanie suchan? | 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 demographic.ethnicity FROM demographic WHERE demographic.name = "Stephanie Suchan" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is ethnicity of subject name stephanie suchan? ### Input: CREATE TABLE lab (
subject_id text,
hadm_id text,
... |
has patient 41014 been admitted to a hospital er the last year? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
va... | SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 41014 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | mimic_iii | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: has patient 41014 been admitted to a hospital er the last year? ### Input: CREATE TABLE microbiologyevents (
row_id numb... |
how many patients whose days of hospital stay is greater than 15 and lab test name is calcium, urine? | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "15" AND lab.label = "Calcium, Urine" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many patients whose days of hospital stay is greater than 15 and lab test name is calcium, urine? ### Input: CREATE TABL... |
What is Attendance, when Week is 5? | CREATE TABLE table_name_95 (
attendance VARCHAR,
week VARCHAR
) | SELECT attendance FROM table_name_95 WHERE week = 5 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Attendance, when Week is 5? ### Input: CREATE TABLE table_name_95 (
attendance VARCHAR,
week VARCHAR
) ### R... |
What was the percentage in 2006 whose natives is Polish? | CREATE TABLE table_2328113_1 (
percentage__2006_ VARCHAR,
mother_tongue VARCHAR
) | SELECT percentage__2006_ FROM table_2328113_1 WHERE mother_tongue = "Polish" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the percentage in 2006 whose natives is Polish? ### Input: CREATE TABLE table_2328113_1 (
percentage__2006_ VAR... |
How many starts for an average finish greater than 43? | CREATE TABLE table_name_54 (
starts INTEGER,
avg_finish INTEGER
) | SELECT SUM(starts) FROM table_name_54 WHERE avg_finish > 43 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many starts for an average finish greater than 43? ### Input: CREATE TABLE table_name_54 (
starts INTEGER,
avg_f... |
What Winner had a Prize of z 2,153,999? | CREATE TABLE table_name_22 (
winner VARCHAR,
prize VARCHAR
) | SELECT winner FROM table_name_22 WHERE prize = "zł2,153,999" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Winner had a Prize of z 2,153,999? ### Input: CREATE TABLE table_name_22 (
winner VARCHAR,
prize VARCHAR
) ### ... |
Can you tell me the Record that has the Game larger than 15, and the Opponent of edmonton oilers? | CREATE TABLE table_47082 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Record" FROM table_47082 WHERE "Game" > '15' AND "Opponent" = 'edmonton oilers' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Can you tell me the Record that has the Game larger than 15, and the Opponent of edmonton oilers? ### Input: CREATE TABLE ta... |
return me the number of papers in PVLDB after 2000 in ' University of Michigan ' . | CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE domain_journal (
did int,
jid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE dom... | SELECT COUNT(DISTINCT (publication.title)) FROM author, journal, organization, publication, writes WHERE journal.name = 'PVLDB' AND organization.name = 'University of Michigan' AND organization.oid = author.oid AND publication.jid = journal.jid AND publication.year > 2000 AND writes.aid = author.aid AND writes.pid = pu... | academic | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: return me the number of papers in PVLDB after 2000 in ' University of Michigan ' . ### Input: CREATE TABLE publication (
... |
Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin. | CREATE TABLE manufacturers (
name VARCHAR,
revenue INTEGER,
headquarter VARCHAR
) | SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin') | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin. ### Input: CREATE TAB... |
What Tournament's Score was 6 2, 4 6, 6 4? | CREATE TABLE table_47432 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Tournament" FROM table_47432 WHERE "Score" = '6–2, 4–6, 6–4' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What Tournament's Score was 6 2, 4 6, 6 4? ### Input: CREATE TABLE table_47432 (
"Date" text,
"Tournament" text,
... |
What is the lowest Loss with Gain larger than 319 for derrick locke? | CREATE TABLE table_name_10 (
loss INTEGER,
name VARCHAR,
gain VARCHAR
) | SELECT MIN(loss) FROM table_name_10 WHERE name = "derrick locke" AND gain > 319 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the lowest Loss with Gain larger than 319 for derrick locke? ### Input: CREATE TABLE table_name_10 (
loss INTEGE... |
What are the countries of mountains with height bigger than 5000? | CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
) | SELECT country FROM mountain WHERE height > 5000 | spider | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the countries of mountains with height bigger than 5000? ### Input: CREATE TABLE mountain (
mountain_id number,... |
What is Equipment, when Points is less than 6, and when Position is 53? | CREATE TABLE table_50489 (
"Position" real,
"Equipment" text,
"Points" real,
"Wins" text,
"Second" text,
"Third" text
) | SELECT "Equipment" FROM table_50489 WHERE "Points" < '6' AND "Position" = '53' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Equipment, when Points is less than 6, and when Position is 53? ### Input: CREATE TABLE table_50489 (
"Position"... |
What is the sum of Number of fixtures when the rounds shows quarter-finals? | CREATE TABLE table_76049 (
"Round" text,
"Main date" text,
"Number of fixtures" real,
"Clubs" text,
"New entries this round" text
) | SELECT SUM("Number of fixtures") FROM table_76049 WHERE "Round" = 'quarter-finals' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the sum of Number of fixtures when the rounds shows quarter-finals? ### Input: CREATE TABLE table_76049 (
"Round... |
Name the written by for john trefor | CREATE TABLE table_26736 (
"Series No." real,
"Episode No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"UK Ratings (BBC2 Rank)" text,
"Original air date" text
) | SELECT "Written by" FROM table_26736 WHERE "Directed by" = 'John Trefor' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the written by for john trefor ### Input: CREATE TABLE table_26736 (
"Series No." real,
"Episode No." real,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.