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 partial failures of h ii flights were there ? | CREATE TABLE table_203_538 (
id number,
"flight" text,
"date" text,
"payload nickname" text,
"payload" text,
"orbit" text,
"result" text
) | SELECT COUNT(*) FROM table_203_538 WHERE "result" = 'partial failure' | squall | 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 partial failures of h ii flights were there ? ### Input: CREATE TABLE table_203_538 (
id number,
"flight" t... |
What is Pick #, when Round is '10'? | CREATE TABLE table_name_49 (
pick__number VARCHAR,
round VARCHAR
) | SELECT pick__number FROM table_name_49 WHERE round = 10 | 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 Pick #, when Round is '10'? ### Input: CREATE TABLE table_name_49 (
pick__number VARCHAR,
round VARCHAR
) ##... |
what was the total population of the five largest cities in the province of ontario in 2006 ? | CREATE TABLE table_203_834 (
id number,
"rank" number,
"census subdivision" text,
"province" text,
"type" text,
"land area\n(km2, 2011)" number,
"population 2011" number,
"population 2006" number,
"population 2001" number,
"population 1996" number,
"change in % 2006-2011" num... | SELECT SUM("population 2006") FROM table_203_834 WHERE id IN (SELECT id FROM table_203_834 WHERE "province" = 'ontario' ORDER BY "population 2006" DESC LIMIT 5) | squall | 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 total population of the five largest cities in the province of ontario in 2006 ? ### Input: CREATE TABLE table_... |
how many of the patients admitted to emergency had icd9 code 5185? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.icd9_code = "5185" | 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 of the patients admitted to emergency had icd9 code 5185? ### Input: CREATE TABLE procedures (
subject_id text,... |
Name the opponent with score of 1 6, 6 4, 6 4 | CREATE TABLE table_69265 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_69265 WHERE "Score" = '1–6, 6–4, 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: Name the opponent with score of 1 6, 6 4, 6 4 ### Input: CREATE TABLE table_69265 (
"Date" text,
"Tournament" text,
... |
How many elite eight teams came from the Atlantic 10? | CREATE TABLE table_31634 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" text,
"Round of 32" text,
"Elite Eight" text,
"Final Four" text,
"Championship Game" text
) | SELECT "Elite Eight" FROM table_31634 WHERE "Conference" = 'atlantic 10' | 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 elite eight teams came from the Atlantic 10? ### Input: CREATE TABLE table_31634 (
"Conference" text,
"# of... |
What was the startup year for the project with a nioc operator? | CREATE TABLE table_5930 (
"Country" text,
"Project Name" text,
"Year startup" text,
"Operator" text,
"Peak" text
) | SELECT "Year startup" FROM table_5930 WHERE "Operator" = 'nioc' | 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 startup year for the project with a nioc operator? ### Input: CREATE TABLE table_5930 (
"Country" text,
... |
Which Team Name has Poles of 0, and a Final Placing of 29th? | CREATE TABLE table_37155 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Final Placing" text
) | SELECT "Team Name" FROM table_37155 WHERE "Poles" = '0' AND "Final Placing" = '29th' | 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 Name has Poles of 0, and a Final Placing of 29th? ### Input: CREATE TABLE table_37155 (
"Season" real,
"S... |
what was the name of the drug patient 033-42758 was prescribed within 2 days after receiving a sedative agent - propofol in the first hospital encounter? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CRE... | SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-42758' AND NOT patient.hospit... | 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: what was the name of the drug patient 033-42758 was prescribed within 2 days after receiving a sedative agent - propofol in ... |
what was the total amount of output for patient 002-35416 on 05/06/last year? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE lab (
labid numbe... | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-35416')) AND intakeoutput.cellpath LIKE '%ou... | 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: what was the total amount of output for patient 002-35416 on 05/06/last year? ### Input: CREATE TABLE vitalperiodic (
vi... |
What was the result at dakar , senegal, on 3 september 2011, and with a Score of 2 0? | CREATE TABLE table_name_17 (
result VARCHAR,
score VARCHAR,
venue VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_17 WHERE venue = "dakar , senegal" AND date = "3 september 2011" AND score = "2–0" | 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 at dakar , senegal, on 3 september 2011, and with a Score of 2 0? ### Input: CREATE TABLE table_name_17 ... |
How many runs conceded for chaminda vaas? | CREATE TABLE table_20280 (
"Name" text,
"Overs Bowled" text,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." text
) | SELECT "Runs Conceded" FROM table_20280 WHERE "Name" = 'Chaminda Vaas' | 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 runs conceded for chaminda vaas? ### Input: CREATE TABLE table_20280 (
"Name" text,
"Overs Bowled" text,
... |
Group by the local authorities and count the number of local authorities, and then group by services, could you rank by the Y in desc? | CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CR... | SELECT services, COUNT(services) FROM station GROUP BY local_authority, services ORDER BY COUNT(services) 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: Group by the local authorities and count the number of local authorities, and then group by services, could you rank by the ... |
How many time is the theme rotary international : 100 years in canada? | CREATE TABLE table_25468520_1 (
printing_process VARCHAR,
theme VARCHAR
) | SELECT COUNT(printing_process) FROM table_25468520_1 WHERE theme = "Rotary International : 100 Years in Canada" | 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 time is the theme rotary international : 100 years in canada? ### Input: CREATE TABLE table_25468520_1 (
printi... |
What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people? | CREATE TABLE table_64198 (
"Province" text,
"Inhabitants" real,
"established" real,
"President" text,
"Party" text,
"Election" real
) | SELECT MIN("Election") FROM table_64198 WHERE "President" = 'leonardo marras' AND "Inhabitants" < '227,063' | 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 lowest election result for President Leonardo Marras with an area smaller than 227,063 people? ### Input: CREAT... |
What is the Depart de la main gauche of the do Mode? | CREATE TABLE table_name_26 (
départ_de_la_main_gauche VARCHAR,
mode VARCHAR
) | SELECT départ_de_la_main_gauche FROM table_name_26 WHERE mode = "do" | 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 Depart de la main gauche of the do Mode? ### Input: CREATE TABLE table_name_26 (
départ_de_la_main_gauche VA... |
what is the molecules when the percent mass is 1.0? | CREATE TABLE table_name_8 (
molecules VARCHAR,
percent_of_mass VARCHAR
) | SELECT molecules FROM table_name_8 WHERE percent_of_mass = "1.0" | 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 molecules when the percent mass is 1.0? ### Input: CREATE TABLE table_name_8 (
molecules VARCHAR,
percen... |
What is the score in the final of the tournament with a clay surface on 18 April 2011? | CREATE TABLE table_13705 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Score in the final" FROM table_13705 WHERE "Surface" = 'clay' AND "Date" = '18 april 2011' | 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 score in the final of the tournament with a clay surface on 18 April 2011? ### Input: CREATE TABLE table_13705 (... |
Which event has a distance of ft10in (m)? | CREATE TABLE table_51072 (
"Date" text,
"Distance" text,
"Handler" text,
"Event" text,
"Location" text
) | SELECT "Event" FROM table_51072 WHERE "Distance" = 'ft10in (m)' | 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 event has a distance of ft10in (m)? ### Input: CREATE TABLE table_51072 (
"Date" text,
"Distance" text,
"H... |
What language was spoken in Everlasting Moments? | CREATE TABLE table_18994724_1 (
language_s_ VARCHAR,
film_title_used_in_nomination VARCHAR
) | SELECT language_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = "Everlasting Moments" | 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 language was spoken in Everlasting Moments? ### Input: CREATE TABLE table_18994724_1 (
language_s_ VARCHAR,
fil... |
Which Country has a Rank of 5? | CREATE TABLE table_39261 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
) | SELECT "Country" FROM table_39261 WHERE "Rank" = '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 Country has a Rank of 5? ### Input: CREATE TABLE table_39261 (
"Rank" real,
"Player" text,
"Country" text,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of phone_number and commission_pct , sort in desc by the bars. | 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 PHONE_NUMBER, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER 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: For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the di... |
Which Position has a Played larger than 9? | CREATE TABLE table_name_32 (
position INTEGER,
played INTEGER
) | SELECT SUM(position) FROM table_name_32 WHERE played > 9 | 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 Position has a Played larger than 9? ### Input: CREATE TABLE table_name_32 (
position INTEGER,
played INTEGER
... |
what city was the race held before montreal on august 24 ? | CREATE TABLE table_204_845 (
id number,
"round" number,
"circuit" text,
"location" text,
"date" text,
"pole position" text,
"fastest lap" text,
"winning driver" text,
"headline event" text
) | SELECT "location" FROM table_204_845 WHERE "date" < (SELECT "date" FROM table_204_845 WHERE "location" = 'montreal' AND "date" = 'august 24') ORDER BY "date" DESC LIMIT 1 | squall | 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 city was the race held before montreal on august 24 ? ### Input: CREATE TABLE table_204_845 (
id number,
"round... |
What is the 2010 for the grand slam tournaments of 2007? | CREATE TABLE table_name_44 (
Id VARCHAR
) | SELECT 2010 FROM table_name_44 WHERE 2007 = "grand slam tournaments" | 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 2010 for the grand slam tournaments of 2007? ### Input: CREATE TABLE table_name_44 (
Id VARCHAR
) ### Respon... |
On what date did Dick Johnson with at Calder? | CREATE TABLE table_name_10 (
date VARCHAR,
winner VARCHAR,
race_title VARCHAR
) | SELECT date FROM table_name_10 WHERE winner = "dick johnson" AND race_title = "calder" | 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: On what date did Dick Johnson with at Calder? ### Input: CREATE TABLE table_name_10 (
date VARCHAR,
winner VARCHAR,
... |
HOw many no votes were there when there were 45.60% yes votes | CREATE TABLE table_73834 (
"meas. num" real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
) | SELECT MIN("NO votes") FROM table_73834 WHERE "% YES" = '45.60%' | 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 no votes were there when there were 45.60% yes votes ### Input: CREATE TABLE table_73834 (
"meas. num" real,
... |
what were the number of goals scored by team a.d.isidro metapan ? | CREATE TABLE table_203_30 (
id number,
"place" number,
"team" text,
"played" number,
"won" number,
"draw" number,
"lost" number,
"goals\nscored" number,
"goals\nconceded" number,
"+/-" number,
"points" number
) | SELECT "goals\nscored" FROM table_203_30 WHERE "team" = 'a.d. isidro metapan' | squall | 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 were the number of goals scored by team a.d.isidro metapan ? ### Input: CREATE TABLE table_203_30 (
id number,
... |
What driver has a ime/Retired of +1 lap, and a Constructor of bar - honda? | CREATE TABLE table_name_35 (
driver VARCHAR,
time_retired VARCHAR,
constructor VARCHAR
) | SELECT driver FROM table_name_35 WHERE time_retired = "+1 lap" AND constructor = "bar - honda" | 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 driver has a ime/Retired of +1 lap, and a Constructor of bar - honda? ### Input: CREATE TABLE table_name_35 (
drive... |
how many hours has it been since the last time patient 14154 stayed in careunit csru during their current hospital encounter? | CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE labevents (
r... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14154 AND admissions.dischtime IS NULL) AND transfers.careunit = 'csru' ORDER BY transfers.intime DESC LIMIT 1 | 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 many hours has it been since the last time patient 14154 stayed in careunit csru during their current hospital encounter... |
Bar chart of the number of hometown from each hometown, and I want to display total number in descending order. | CREATE TABLE member (
Member_ID int,
Card_Number text,
Name text,
Hometown text,
Level int
)
CREATE TABLE branch (
Branch_ID int,
Name text,
Open_year text,
Address_road text,
City text,
membership_amount text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,... | SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY COUNT(Hometown) 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 of the number of hometown from each hometown, and I want to display total number in descending order. ### Input: C... |
provide the number of patients whose year of birth is less than 2069 and lab test name is amylase? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2069" AND lab.label = "Amylase" | 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: provide the number of patients whose year of birth is less than 2069 and lab test name is amylase? ### Input: CREATE TABLE p... |
I want the sum of pages for thistle among roses | CREATE TABLE table_name_36 (
pages INTEGER,
translated_title VARCHAR
) | SELECT SUM(pages) FROM table_name_36 WHERE translated_title = "thistle among roses" | 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: I want the sum of pages for thistle among roses ### Input: CREATE TABLE table_name_36 (
pages INTEGER,
translated_ti... |
Tags used along with tag 'bigdata'. | CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)... | SELECT tag, COUNT(*) FROM Posts AS p JOIN LATERAL (SELECT tag = REPLACE(value, '<', '') FROM STRING_SPLIT(SUBSTRING(Tags, 2, LENGTH(Tags) - 2), '>')) AS tags WHERE PostTypeId = 1 AND Tags LIKE '%<bigdata>%' GROUP BY tag ORDER BY 2 DESC | sede | 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: Tags used along with tag 'bigdata'. ### Input: CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)... |
how many total games did the chicago bears win in the 1980s ? | CREATE TABLE table_204_855 (
id number,
"year" number,
"date" text,
"winner" text,
"result" text,
"loser" text,
"attendance" number,
"location" text
) | SELECT COUNT(*) FROM table_204_855 WHERE "winner" = 'chicago bears' | squall | 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 games did the chicago bears win in the 1980s ? ### Input: CREATE TABLE table_204_855 (
id number,
"ye... |
What is the timeslot for the episode that aired April 28, 2009? | CREATE TABLE table_name_26 (
timeslot VARCHAR,
air_date VARCHAR
) | SELECT timeslot FROM table_name_26 WHERE air_date = "april 28, 2009" | 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 timeslot for the episode that aired April 28, 2009? ### Input: CREATE TABLE table_name_26 (
timeslot VARCHAR... |
What is the benue house made of? | CREATE TABLE table_11464746_1 (
composition VARCHAR,
house_name VARCHAR
) | SELECT composition FROM table_11464746_1 WHERE house_name = "Benue" | 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 benue house made of? ### Input: CREATE TABLE table_11464746_1 (
composition VARCHAR,
house_name VARCHAR
... |
tell me the first value of lactate in patient 022-187132 in their current hospital visit? | 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 lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-187132' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'lactate' ORD... | 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: tell me the first value of lactate in patient 022-187132 in their current hospital visit? ### Input: CREATE TABLE diagnosis ... |
Which Venue is the one for the footscray Home team? | CREATE TABLE table_78357 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_78357 WHERE "Home team" = 'footscray' | 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 is the one for the footscray Home team? ### Input: CREATE TABLE table_78357 (
"Home team" text,
"Home te... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and manufacturer , and group by attribute founder, show from low to high by the Y-axis. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Manufacturer | 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 records from the products and each product's manufacturer, draw a bar chart about the distribution of name and man... |
What country placed t3 with a score of 70-65=135? | CREATE TABLE table_name_52 (
country VARCHAR,
place VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_52 WHERE place = "t3" AND score = 70 - 65 = 135 | 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 country placed t3 with a score of 70-65=135? ### Input: CREATE TABLE table_name_52 (
country VARCHAR,
place VAR... |
I want to know the proportion of the total number for each carrier. | CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stoc... | SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier | 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: I want to know the proportion of the total number for each carrier. ### Input: CREATE TABLE market (
Market_ID int,
... |
What authors wrote papers about semantic parsing in 2016 ? | CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby... | SELECT DISTINCT writes.authorid FROM author, keyphrase, paper, paperkeyphrase, writes WHERE keyphrase.keyphrasename = 'semantic parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2016 AND writes.authorid = author.authorid AND writes.paperid = pape... | scholar | 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 authors wrote papers about semantic parsing in 2016 ? ### Input: CREATE TABLE paperkeyphrase (
paperid int,
key... |
What away team played against Footscray as the home team? | CREATE TABLE table_name_50 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_50 WHERE home_team = "footscray" | 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 away team played against Footscray as the home team? ### Input: CREATE TABLE table_name_50 (
away_team VARCHAR,
... |
Which person is the teacher of PSYCH 359 ? | CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE offering_instructor (
... | SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'PSYCH' AND course.number = 359 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.... | 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: Which person is the teacher of PSYCH 359 ? ### Input: CREATE TABLE gsi (
course_offering_id int,
student_id int
)
C... |
since 5 years ago, how many patients were admitted to the hospital? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-5 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: since 5 years ago, how many patients were admitted to the hospital? ### Input: CREATE TABLE cost (
row_id number,
su... |
What candidates ran in the election that included john shelley? | CREATE TABLE table_742 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Candidates" FROM table_742 WHERE "Incumbent" = 'John Shelley' | 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 candidates ran in the election that included john shelley? ### Input: CREATE TABLE table_742 (
"District" text,
... |
what is drug type of drug name hydrocerin? | 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 prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Hydrocerin" | 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 drug type of drug name hydrocerin? ### Input: CREATE TABLE demographic (
subject_id text,
hadm_id text,
... |
how many total times has this team finished 1st in mid south ? | CREATE TABLE table_203_521 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
) | SELECT COUNT(*) FROM table_203_521 WHERE "regular season" = '1st, mid south' | squall | 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 times has this team finished 1st in mid south ? ### Input: CREATE TABLE table_203_521 (
id number,
"y... |
Give me a histogram, that simply displays the last name of the employee and the corresponding manager id, and display Y in desc order. | 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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25... | SELECT LAST_NAME, MANAGER_ID FROM employees ORDER BY MANAGER_ID 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: Give me a histogram, that simply displays the last name of the employee and the corresponding manager id, and display Y in d... |
Who is the instructor for Core Winter classes ? | CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE requirement (... | SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instr... | 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: Who is the instructor for Core Winter classes ? ### Input: CREATE TABLE gsi (
course_offering_id int,
student_id int... |
How man executions in effigie took place at the Lamego tribunal? | CREATE TABLE table_name_26 (
executions_in_effigie VARCHAR,
tribunal VARCHAR
) | SELECT executions_in_effigie FROM table_name_26 WHERE tribunal = "lamego" | 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 man executions in effigie took place at the Lamego tribunal? ### Input: CREATE TABLE table_name_26 (
executions_in_e... |
On June 29, who was the opponent? | CREATE TABLE table_name_96 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_96 WHERE date = "june 29" | 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: On June 29, who was the opponent? ### Input: CREATE TABLE table_name_96 (
opponent VARCHAR,
date VARCHAR
) ### Respo... |
What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73? | CREATE TABLE table_name_4 (
ends_won INTEGER,
ends_lost VARCHAR,
shot__percentage VARCHAR
) | SELECT MAX(ends_won) FROM table_name_4 WHERE ends_lost = 47 AND shot__percentage < 73 | 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 highest number of ends won of 47 Ends Lost and a Shot % less than 73? ### Input: CREATE TABLE table_name_4 (
... |
What's the number of the game in which Carlos Boozer (8) did the high rebounds? | CREATE TABLE table_73525 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Game" FROM table_73525 WHERE "High rebounds" = 'Carlos Boozer (8)' | 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's the number of the game in which Carlos Boozer (8) did the high rebounds? ### Input: CREATE TABLE table_73525 (
"G... |
what procedure was first taken to patient 005-77687 in the last hospital visit? | 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 lab (
la... | SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-77687' AND NOT patient.hospitaldischargetime IS NULL ORDER BY... | 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: what procedure was first taken to patient 005-77687 in the last hospital visit? ### Input: CREATE TABLE diagnosis (
diag... |
Which Format has a Region of united states, and a Catalog of kem 072? | CREATE TABLE table_name_61 (
format VARCHAR,
region VARCHAR,
catalog VARCHAR
) | SELECT format FROM table_name_61 WHERE region = "united states" AND catalog = "kem 072" | 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 Format has a Region of united states, and a Catalog of kem 072? ### Input: CREATE TABLE table_name_61 (
format VAR... |
In what Round was a player from College of Connecticut drafted? | CREATE TABLE table_name_1 (
round VARCHAR,
college VARCHAR
) | SELECT round FROM table_name_1 WHERE college = "connecticut" | 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 Round was a player from College of Connecticut drafted? ### Input: CREATE TABLE table_name_1 (
round VARCHAR,
... |
How many professors who are from either Accounting or Biology department? | CREATE TABLE professor (
dept_code VARCHAR
)
CREATE TABLE department (
dept_code VARCHAR,
dept_name VARCHAR
) | SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology' | 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 professors who are from either Accounting or Biology department? ### Input: CREATE TABLE professor (
dept_code ... |
What nationality is Erin Donohue? | CREATE TABLE table_14199 (
"Rank" real,
"Heat" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Nationality" FROM table_14199 WHERE "Name" = 'erin donohue' | 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 nationality is Erin Donohue? ### Input: CREATE TABLE table_14199 (
"Rank" real,
"Heat" real,
"Name" text,
... |
What is the lowest pick of player paul stasiuk from a round greater than 12? | CREATE TABLE table_12800 (
"Draft" real,
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text
) | SELECT MIN("Pick") FROM table_12800 WHERE "Player" = 'paul stasiuk' AND "Round" > '12' | 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 pick of player paul stasiuk from a round greater than 12? ### Input: CREATE TABLE table_12800 (
"Draf... |
what are the total number of tornado events that occurred in 1960 in the u.s. ? | CREATE TABLE table_204_899 (
id number,
"event" text,
"date" text,
"area" text,
"tornadoes" number,
"casualties" text,
"notes" text
) | SELECT SUM("tornadoes") FROM table_204_899 WHERE "date" = 1960 | squall | 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 total number of tornado events that occurred in 1960 in the u.s. ? ### Input: CREATE TABLE table_204_899 (
... |
count the number of patients that died during the same month after having been diagnosed with bronchitis until 1 year ago. | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsysto... | SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'bronchitis') AS t1 GROUP BY t1.uniquepid HAVING MIN(t1.diagnosis... | 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: count the number of patients that died during the same month after having been diagnosed with bronchitis until 1 year ago. #... |
Tags without excerpts ordered by use. Lists the most commonly used tags with empty/missing tag wikis (wiki or excerpt). | CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedb... | SELECT t.TagName AS "tagname", t.Count AS TagCount FROM Tags AS t LEFT JOIN Posts AS e ON t.ExcerptPostId = e.Id LEFT JOIN TagSynonyms AS ts ON ts.SourceTagName = t.TagName WHERE LENGTH(e.Body) < 10 GROUP BY t.TagName, t.Count ORDER BY t.Count DESC | sede | 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: Tags without excerpts ordered by use. Lists the most commonly used tags with empty/missing tag wikis (wiki or excerpt). ### ... |
is the glucose of patient 031-11804 second measured on the last hospital visit less than it was first measured on the last hospital visit? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
med... | SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-11804' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi... | 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: is the glucose of patient 031-11804 second measured on the last hospital visit less than it was first measured on the last h... |
how many times was it the district illinois 18? | CREATE TABLE table_1341718_14 (
candidates VARCHAR,
district VARCHAR
) | SELECT COUNT(candidates) FROM table_1341718_14 WHERE district = "Illinois 18" | 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 times was it the district illinois 18? ### Input: CREATE TABLE table_1341718_14 (
candidates VARCHAR,
distr... |
what was the team 's playoff result in the year after being champions ? | CREATE TABLE table_203_521 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
) | SELECT "playoffs" FROM table_203_521 WHERE "year" = (SELECT "year" FROM table_203_521 WHERE "playoffs" = 'champions') + 1 | squall | 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 team 's playoff result in the year after being champions ? ### Input: CREATE TABLE table_203_521 (
id numbe... |
When did the 55 kg participant race? | CREATE TABLE table_19759 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" text,
"Jockey" text,
"Winner/2nd" text
) | SELECT "Date" FROM table_19759 WHERE "Weight (kg)" = '55' | 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: When did the 55 kg participant race? ### Input: CREATE TABLE table_19759 (
"Result" text,
"Date" text,
"Race" te... |
Show the number of customer address history in each year and bin date from by year interval with a line chart. | CREATE TABLE Customers (
customer_id INTEGER,
payment_method_code VARCHAR(15),
customer_number VARCHAR(20),
customer_name VARCHAR(80),
customer_address VARCHAR(255),
customer_phone VARCHAR(80),
customer_email VARCHAR(80)
)
CREATE TABLE Products (
product_id INTEGER,
product_type_cod... | SELECT date_from, COUNT(date_from) FROM Customer_Address_History AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id JOIN Addresses AS T3 ON T1.address_id = T3.address_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: Show the number of customer address history in each year and bin date from by year interval with a line chart. ### Input: CR... |
How many apartment bookings for each weekday? Draw a bar chart binning booking start date by weekday interval, and rank by the y-axis from high to low please. | CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE View_Unit_Status (
apt_id INTEG... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id ORDER BY COUNT(booking_start_date) 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: How many apartment bookings for each weekday? Draw a bar chart binning booking start date by weekday interval, and rank by t... |
In the WCHL League, what is the last Assists with less than 65 Goals? | CREATE TABLE table_68525 (
"Season" text,
"League" text,
"Winner" text,
"Goals" real,
"Assists" real,
"Points" real
) | SELECT MIN("Assists") FROM table_68525 WHERE "League" = 'wchl' AND "Goals" < '65' | 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: In the WCHL League, what is the last Assists with less than 65 Goals? ### Input: CREATE TABLE table_68525 (
"Season" tex... |
What was the score when their record was 35 23 15? | CREATE TABLE table_name_58 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_58 WHERE record = "35–23–15" | 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 score when their record was 35 23 15? ### Input: CREATE TABLE table_name_58 (
score VARCHAR,
record VAR... |
What college team did Derek Fisher play for? | CREATE TABLE table_name_19 (
school_club_team VARCHAR,
player VARCHAR
) | SELECT school_club_team FROM table_name_19 WHERE player = "derek fisher" | 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 college team did Derek Fisher play for? ### Input: CREATE TABLE table_name_19 (
school_club_team VARCHAR,
playe... |
what is the 3-dart average of raymond van barneveld | CREATE TABLE table_23654 (
"Player" text,
"Played" real,
"Legs Won" real,
"Legs Lost" real,
"100+" real,
"140+" real,
"180s" real,
"High Checkout" real,
"3-dart Average" text
) | SELECT "3-dart Average" FROM table_23654 WHERE "Player" = 'Raymond van Barneveld' | 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 3-dart average of raymond van barneveld ### Input: CREATE TABLE table_23654 (
"Player" text,
"Played" re... |
What is the date of the circuit of n rburgring, which had Graham Hill as the winning driver? | CREATE TABLE table_77970 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
) | SELECT "Date" FROM table_77970 WHERE "Winning driver" = 'graham hill' AND "Circuit" = 'nürburgring' | 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 date of the circuit of n rburgring, which had Graham Hill as the winning driver? ### Input: CREATE TABLE table_7... |
What is the lowest of the athlete from sri lanka who has a lane greater than 8? | CREATE TABLE table_name_62 (
react INTEGER,
country VARCHAR,
lane VARCHAR
) | SELECT MIN(react) FROM table_name_62 WHERE country = "sri lanka" AND lane > 8 | 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 of the athlete from sri lanka who has a lane greater than 8? ### Input: CREATE TABLE table_name_62 (
... |
geno hayes and nick roach both played which position ? | CREATE TABLE table_204_783 (
id number,
"position" text,
"player" text,
"free agency\ntag" text,
"date signed" text,
"2013 team" text
) | SELECT "position" FROM table_204_783 WHERE "player" = 'geno hayes' | squall | 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: geno hayes and nick roach both played which position ? ### Input: CREATE TABLE table_204_783 (
id number,
"position"... |
what flights are there from DALLAS to HOUSTON | CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minu... | 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 = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'HOUSTON... | 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 flights are there from DALLAS to HOUSTON ### Input: CREATE TABLE ground_service (
city_code text,
airport_code ... |
what flights from WASHINGTON to TORONTO | CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airp... | 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 = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'TOR... | 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 flights from WASHINGTON to TORONTO ### Input: CREATE TABLE code_description (
code varchar,
description text
)
... |
A scatter chart shows the correlation between ACC_Percent and All_Games_Percent , and group by attribute All_Neutral. | 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 ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY All_Neutral | 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: A scatter chart shows the correlation between ACC_Percent and All_Games_Percent , and group by attribute All_Neutral. ### In... |
Top 5 StackOverflowers in Coimbatore. | CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%singapore%' OR UPPER(Location) LIKE '%SINGAPORE%' OR Location LIKE '%singapore%' AND Reputation >= 10000 ORDER BY Reputation DESC LIMIT 25 | sede | 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: Top 5 StackOverflowers in Coimbatore. ### Input: CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name ... |
Who were the runner(s)-up when the winning score was 10 (69-68-74-67=278)? | CREATE TABLE table_name_71 (
margin_of_victory VARCHAR,
winning_score VARCHAR
) | SELECT margin_of_victory FROM table_name_71 WHERE winning_score = –10(69 - 68 - 74 - 67 = 278) | 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 were the runner(s)-up when the winning score was 10 (69-68-74-67=278)? ### Input: CREATE TABLE table_name_71 (
margi... |
What is the lowest crowd with home team richmond? | CREATE TABLE table_58281 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_58281 WHERE "Home team" = 'richmond' | 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 crowd with home team richmond? ### Input: CREATE TABLE table_58281 (
"Home team" text,
"Home team... |
Opened prior to 1877 only 2.44km from Wellington, when did this station close? | CREATE TABLE table_59371 (
"Station" text,
"Distance from Wellington" text,
"Height above sea level (m)" text,
"Opened" real,
"Closed" text
) | SELECT "Closed" FROM table_59371 WHERE "Opened" < '1877' AND "Distance from Wellington" = '2.44km' | 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: Opened prior to 1877 only 2.44km from Wellington, when did this station close? ### Input: CREATE TABLE table_59371 (
"St... |
Find the distinct names of all races held between 2014 and 2017? | CREATE TABLE results (
resultid number,
raceid number,
driverid number,
constructorid number,
number number,
grid number,
position number,
positiontext text,
positionorder number,
points number,
laps number,
time text,
milliseconds number,
fastestlap number,
r... | SELECT DISTINCT name FROM races WHERE year BETWEEN 2014 AND 2017 | 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: Find the distinct names of all races held between 2014 and 2017? ### Input: CREATE TABLE results (
resultid number,
... |
What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826? | CREATE TABLE table_name_80 (
percentage INTEGER,
points_for VARCHAR,
losses VARCHAR,
wins VARCHAR,
points_against VARCHAR
) | SELECT AVG(percentage) FROM table_name_80 WHERE wins > 0 AND points_against > 481 AND losses = 8 AND points_for > 826 | 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 Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points F... |
count the number of patients whose lab test name is alveolar-arterial gradient. | 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 lab.label = "Alveolar-arterial Gradient" | 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 lab test name is alveolar-arterial gradient. ### Input: CREATE TABLE demographic (
su... |
such as are entire the rating of closing where championship is moscow | CREATE TABLE table_23197088_4 (
score_in_final VARCHAR,
championship VARCHAR
) | SELECT score_in_final FROM table_23197088_4 WHERE championship = "Moscow" | 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: such as are entire the rating of closing where championship is moscow ### Input: CREATE TABLE table_23197088_4 (
score_i... |
What player has a score of 79? | CREATE TABLE table_name_53 (
player VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_53 WHERE score = "79" | 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 player has a score of 79? ### Input: CREATE TABLE table_name_53 (
player VARCHAR,
score VARCHAR
) ### Response:... |
How many millions of viewers watched episode 15? | CREATE TABLE table_11230937_2 (
us_viewers__millions_ VARCHAR,
no_in_season VARCHAR
) | SELECT us_viewers__millions_ FROM table_11230937_2 WHERE no_in_season = 15 | 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 millions of viewers watched episode 15? ### Input: CREATE TABLE table_11230937_2 (
us_viewers__millions_ VARCHA... |
What is the total number of Round(s), when Time is 'n/a', and when Location is 'Canton, Ohio, USA'? | CREATE TABLE table_9648 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT COUNT("Round") FROM table_9648 WHERE "Time" = 'n/a' AND "Location" = 'canton, ohio, usa' | 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 number of Round(s), when Time is 'n/a', and when Location is 'Canton, Ohio, USA'? ### Input: CREATE TABLE ... |
What is the Call sign of the Frequency 106.9 the X? | CREATE TABLE table_8648 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) | SELECT "Call sign" FROM table_8648 WHERE "Branding" = '106.9 the x' | 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 Call sign of the Frequency 106.9 the X? ### Input: CREATE TABLE table_8648 (
"Frequency" text,
"Call sig... |
Who are all the players from the united states? | CREATE TABLE table_24302700_6 (
name VARCHAR,
nationality VARCHAR
) | SELECT name FROM table_24302700_6 WHERE nationality = "United States" | 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 are all the players from the united states? ### Input: CREATE TABLE table_24302700_6 (
name VARCHAR,
nationality... |
What is the largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1? | CREATE TABLE table_7056 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Gold") FROM table_7056 WHERE "Total" < '3' AND "Rank" = '5' AND "Silver" > '1' | 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 largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1? ### Input: CREA... |
For each year, bin the year into day of the week interval, and return the total number of times the team Boston Red Stockings won in the postseasons using a line chart, order X-axis from high to low order. | CREATE TABLE player (
player_id TEXT,
birth_year NUMERIC,
birth_month NUMERIC,
birth_day NUMERIC,
birth_country TEXT,
birth_state TEXT,
birth_city TEXT,
death_year NUMERIC,
death_month NUMERIC,
death_day NUMERIC,
death_country TEXT,
death_state TEXT,
death_city TEXT,
... | SELECT year, SUM(COUNT(*)) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' ORDER BY year 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: For each year, bin the year into day of the week interval, and return the total number of times the team Boston Red Stocking... |
For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the sum of salary bin hire_date by weekday, and could you display from high to low by the y-axis? | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decima... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(SALARY) 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: For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the sum o... |
Find the names of Japanese constructors that have once earned more than 5 points, and count them by a bar chart, I want to rank by the x-axis in ascending. | CREATE TABLE drivers (
driverId INTEGER,
driverRef TEXT,
number TEXT,
code TEXT,
forename TEXT,
surname TEXT,
dob TEXT,
nationality TEXT,
url TEXT
)
CREATE TABLE results (
resultId INTEGER,
raceId INTEGER,
driverId INTEGER,
constructorId INTEGER,
number INTEGER,
... | SELECT name, COUNT(name) FROM constructors AS T1 JOIN constructorStandings AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality = "Japanese" AND T2.points > 5 GROUP BY name ORDER BY name | 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: Find the names of Japanese constructors that have once earned more than 5 points, and count them by a bar chart, I want to r... |
When temperley is the home (2nd leg) what is the home (1st leg)? | CREATE TABLE table_19178 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
) | SELECT "Home (1st leg)" FROM table_19178 WHERE "Home (2nd leg)" = 'Temperley' | 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: When temperley is the home (2nd leg) what is the home (1st leg)? ### Input: CREATE TABLE table_19178 (
"Home (1st leg)" ... |
What was the overall score when set 1 was 23 25? | CREATE TABLE table_40721 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text,
"Report" text
) | SELECT "Score" FROM table_40721 WHERE "Set 1" = '23–25' | 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 overall score when set 1 was 23 25? ### Input: CREATE TABLE table_40721 (
"Date" text,
"Time" text,
... |
had patient 5364 been diagnosed this year with ac posthemorrhag anemia? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
... | SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'ac posthemorrhag anemia') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 5364) AND DATETIME(diagnoses_... | 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: had patient 5364 been diagnosed this year with ac posthemorrhag anemia? ### Input: CREATE TABLE diagnoses_icd (
row_id n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.