instruction stringlengths 20 309 | input stringlengths 45 7.14k | response stringlengths 24 2.22k | source stringclasses 15
values | text stringlengths 337 7.52k |
|---|---|---|---|---|
Name the market value for rhb capital | CREATE TABLE table_73087 (
"World Rank" real,
"Company" text,
"Industry" text,
"Revenue (billion $)" text,
"Profits (billion $)" text,
"Assets (billion $)" text,
"Market Value (billion $)" text
) | SELECT "Market Value (billion $)" FROM table_73087 WHERE "Company" = 'RHB Capital' | 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 market value for rhb capital ### Input: CREATE TABLE table_73087 (
"World Rank" real,
"Company" text,
"... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by time, could you list total number of employee id in ascending order? | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_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 who do not work in departments with managers that have ids between 100 and 200, return a bar chart about... |
who is the replacement when the team is milton keynes dons? | CREATE TABLE table_name_10 (
replaced_by VARCHAR,
team VARCHAR
) | SELECT replaced_by FROM table_name_10 WHERE team = "milton keynes dons" | 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 is the replacement when the team is milton keynes dons? ### Input: CREATE TABLE table_name_10 (
replaced_by VARCHAR,... |
What is Name, when Authors are Kammerer & Sidor? | CREATE TABLE table_name_51 (
name VARCHAR,
authors VARCHAR
) | SELECT name FROM table_name_51 WHERE authors = "kammerer & sidor" | 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 Name, when Authors are Kammerer & Sidor? ### Input: CREATE TABLE table_name_51 (
name VARCHAR,
authors VARCH... |
What is every value for Under-17 if Under-15 is Maria Elena Ubina? | CREATE TABLE table_26368963_2 (
under_17 VARCHAR,
under_15 VARCHAR
) | SELECT under_17 FROM table_26368963_2 WHERE under_15 = "Maria Elena Ubina" | 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 every value for Under-17 if Under-15 is Maria Elena Ubina? ### Input: CREATE TABLE table_26368963_2 (
under_17 V... |
What league has a value of 0 29 (152) for Europe? | CREATE TABLE table_15444 (
"Name" text,
"Years" text,
"League" text,
"FA Cup" text,
"League Cup" text,
"Europe" text,
"Other [C ]" text,
"Total" text
) | SELECT "League" FROM table_15444 WHERE "Europe" = '0 29 (152)' | 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 league has a value of 0 29 (152) for Europe? ### Input: CREATE TABLE table_15444 (
"Name" text,
"Years" text,
... |
Which Tally has a County of limerick, and a Rank larger than 1? | CREATE TABLE table_13261 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
) | SELECT "Tally" FROM table_13261 WHERE "County" = 'limerick' AND "Rank" > '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: Which Tally has a County of limerick, and a Rank larger than 1? ### Input: CREATE TABLE table_13261 (
"Rank" real,
"... |
count the number of patients who have received a coronar arteriogr-2 cath procedure in the same hospital visit after having received a partial ostectomy nec. | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id num... | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_... | 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: count the number of patients who have received a coronar arteriogr-2 cath procedure in the same hospital visit after having ... |
papers written by authors Richard Ladner and Linda Shapiro | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE ... | SELECT DISTINCT WRITES_0.paperid FROM author AS AUTHOR_0, author AS AUTHOR_1, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.authorname = 'Richard Ladner' AND AUTHOR_1.authorname = 'Linda Shapiro' AND WRITES_0.authorid = AUTHOR_0.authorid AND WRITES_1.authorid = AUTHOR_1.authorid AND WRITES_1.paperid = WRITES_0.... | 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: papers written by authors Richard Ladner and Linda Shapiro ### Input: CREATE TABLE paperdataset (
paperid int,
datas... |
Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77? | CREATE TABLE table_name_19 (
comp INTEGER,
rating VARCHAR,
yds_game VARCHAR,
name VARCHAR
) | SELECT MAX(comp) FROM table_name_19 WHERE yds_game > 0 AND name = "bostick" AND rating < 91.77 | 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: Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77? ### Input: CREATE TABLE ... |
What is year Built of the Moulin de Momalle Mill? | CREATE TABLE table_79591 (
"Location" text,
"Name of mill" text,
"Type" text,
"Built" real,
"Notes" text
) | SELECT MAX("Built") FROM table_79591 WHERE "Name of mill" = 'moulin de momalle' | 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 year Built of the Moulin de Momalle Mill? ### Input: CREATE TABLE table_79591 (
"Location" text,
"Name of mi... |
If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders? | CREATE TABLE table_25220821_3 (
rider VARCHAR,
thurs_3_june VARCHAR
) | SELECT rider FROM table_25220821_3 WHERE thurs_3_june = "20' 27.93 110.615mph" | 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: If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders? ### Input: CREATE TABLE table_25220821_3 (
... |
What is the total subframe count with Bits of 18 22? | CREATE TABLE table_name_48 (
subframe__number INTEGER,
bits VARCHAR
) | SELECT SUM(subframe__number) FROM table_name_48 WHERE bits = "18–22" | 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 total subframe count with Bits of 18 22? ### Input: CREATE TABLE table_name_48 (
subframe__number INTEGER,
... |
What is the total capacity of venues that opened in 1999? | CREATE TABLE table_name_15 (
capacity VARCHAR,
opened VARCHAR
) | SELECT COUNT(capacity) FROM table_name_15 WHERE opened = "1999" | 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 total capacity of venues that opened in 1999? ### Input: CREATE TABLE table_name_15 (
capacity VARCHAR,
... |
What date is week 3? | CREATE TABLE table_name_77 (
date VARCHAR,
week VARCHAR
) | SELECT date FROM table_name_77 WHERE week = 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 date is week 3? ### Input: CREATE TABLE table_name_77 (
date VARCHAR,
week VARCHAR
) ### Response: SELECT date ... |
Name the most middle schools for 2005-2006 | CREATE TABLE table_2367847_2 (
middle_schools INTEGER,
year VARCHAR
) | SELECT MAX(middle_schools) FROM table_2367847_2 WHERE year = "2005-2006" | 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: Name the most middle schools for 2005-2006 ### Input: CREATE TABLE table_2367847_2 (
middle_schools INTEGER,
year VA... |
What was the record set during the game played at Hubert H. Humphrey Metrodome? | CREATE TABLE table_13258851_2 (
record VARCHAR,
game_site VARCHAR
) | SELECT record FROM table_13258851_2 WHERE game_site = "Hubert H. Humphrey Metrodome" | 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 record set during the game played at Hubert H. Humphrey Metrodome? ### Input: CREATE TABLE table_13258851_2 (
... |
does air florida have more or less than four aircrafts scheduled ? | CREATE TABLE table_204_215 (
id number,
"airline" text,
"destination(s)" text,
"aircraft scheduled" text,
"service date(s)" text,
"comments" text
) | SELECT (SELECT "aircraft scheduled" FROM table_204_215 WHERE "airline" = 'air florida') > 4 | 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: does air florida have more or less than four aircrafts scheduled ? ### Input: CREATE TABLE table_204_215 (
id number,
... |
What year did Culver leave? | CREATE TABLE table_name_71 (
year_left INTEGER,
location VARCHAR
) | SELECT SUM(year_left) FROM table_name_71 WHERE location = "culver" | 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 year did Culver leave? ### Input: CREATE TABLE table_name_71 (
year_left INTEGER,
location VARCHAR
) ### Respon... |
My undeleted closed ID questions. | CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId ... | SELECT * FROM Votes AS v WHERE v.UserId = 52 | 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: My undeleted closed ID questions. ### Input: CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
... |
how much does it cost for dexamethasone 4 mg po tabs? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'dexamethasone 4 mg po tabs') | 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: how much does it cost for dexamethasone 4 mg po tabs? ### Input: CREATE TABLE cost (
costid number,
uniquepid text,
... |
What is the highest year named for the name Tie Fluctus? | CREATE TABLE table_21081 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" text,
"Year named" real,
"Name origin" text
) | SELECT MAX("Year named") FROM table_21081 WHERE "Name" = 'Tie Fluctus' | 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 highest year named for the name Tie Fluctus? ### Input: CREATE TABLE table_21081 (
"Name" text,
"Latitud... |
What is Country, when Score is '69-69=138', and when Player is 'Ian Poulter'? | CREATE TABLE table_name_20 (
country VARCHAR,
player VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_20 WHERE score = 69 - 69 = 138 AND player = "ian poulter" | 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 Country, when Score is '69-69=138', and when Player is 'Ian Poulter'? ### Input: CREATE TABLE table_name_20 (
co... |
Which rider was on the 600cc Yamaha team? | CREATE TABLE table_name_44 (
rider VARCHAR,
team VARCHAR
) | SELECT rider FROM table_name_44 WHERE team = "600cc yamaha" | 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 rider was on the 600cc Yamaha team? ### Input: CREATE TABLE table_name_44 (
rider VARCHAR,
team VARCHAR
) ### ... |
was the value of calculated total co2 of patient 14671 second measured on the current hospital visit less than its value first measured on the current 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 d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE diagn... | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14671 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'calculated total co2') ORDER BY labeven... | 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: was the value of calculated total co2 of patient 14671 second measured on the current hospital visit less than its value fir... |
Name the tournament for march 25, 2012 | CREATE TABLE table_name_24 (
tournament VARCHAR,
date VARCHAR
) | SELECT tournament FROM table_name_24 WHERE date = "march 25, 2012" | 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: Name the tournament for march 25, 2012 ### Input: CREATE TABLE table_name_24 (
tournament VARCHAR,
date VARCHAR
) ##... |
Will Prof. David Moon teach 597 next semester ? | CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE cours... | SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 597 AND instructor.name LIKE '%David Moon%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_inst... | 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: Will Prof. David Moon teach 597 next semester ? ### Input: CREATE TABLE offering_instructor (
offering_instructor_id int... |
what were the number of innings albert clapp had ? | CREATE TABLE table_204_154 (
id number,
"player" text,
"matches" number,
"innings" number,
"runs" number,
"average" number,
"100s" number,
"50s" number
) | SELECT "innings" FROM table_204_154 WHERE "player" = 'albert clapp' | 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 innings albert clapp had ? ### Input: CREATE TABLE table_204_154 (
id number,
"player" text,... |
Show aircraft names and number of flights for each aircraft. | CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
)
CREAT... | SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid | 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 aircraft names and number of flights for each aircraft. ### Input: CREATE TABLE flight (
flno number(4,0),
orig... |
what is the overall number of times when the calendar showed october 6 | CREATE TABLE table_27733909_1 (
record VARCHAR,
date VARCHAR
) | SELECT COUNT(record) FROM table_27733909_1 WHERE date = "October 6" | 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 overall number of times when the calendar showed october 6 ### Input: CREATE TABLE table_27733909_1 (
record... |
Name the tries against when tries for is 30 | CREATE TABLE table_22025 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Tries against" FROM table_22025 WHERE "Tries for" = '30' | 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 tries against when tries for is 30 ### Input: CREATE TABLE table_22025 (
"Club" text,
"Played" text,
"W... |
WHAT IS THE ROUND FOR ZACH BOYCHUK? | CREATE TABLE table_49926 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT COUNT("Round") FROM table_49926 WHERE "Player" = 'zach boychuk' | 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 ROUND FOR ZACH BOYCHUK? ### Input: CREATE TABLE table_49926 (
"Round" real,
"Player" text,
"Position... |
what is maximum age of patients whose gender is m and discharge location is short term hospital? | 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 demographic (
subject_id text,
hadm_id t... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.discharge_location = "SHORT TERM HOSPITAL" | 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 maximum age of patients whose gender is m and discharge location is short term hospital? ### Input: CREATE TABLE pro... |
How many people attended the game on week 3? | CREATE TABLE table_name_26 (
attendance INTEGER,
week VARCHAR
) | SELECT AVG(attendance) FROM table_name_26 WHERE week = 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: How many people attended the game on week 3? ### Input: CREATE TABLE table_name_26 (
attendance INTEGER,
week VARCHA... |
Please show different types of artworks with the corresponding number of artworks of each type. | CREATE TABLE festival_detail (
festival_id number,
festival_name text,
chair_name text,
location text,
year number,
num_of_audience number
)
CREATE TABLE nomination (
artwork_id number,
festival_id number,
result text
)
CREATE TABLE artwork (
artwork_id number,
type text,
... | SELECT type, COUNT(*) FROM artwork GROUP BY type | 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: Please show different types of artworks with the corresponding number of artworks of each type. ### Input: CREATE TABLE fest... |
what is the total number of priests that have held the job in resita ? | CREATE TABLE table_204_734 (
id number,
"first name" text,
"surname" text,
"death year" number,
"beginning of\nservice" text,
"end of\nservice" text,
"notes" text
) | SELECT COUNT("first name") FROM table_204_734 | 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 is the total number of priests that have held the job in resita ? ### Input: CREATE TABLE table_204_734 (
id number... |
Which school was Lawrence Roberts from ? | CREATE TABLE table_46045 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | SELECT "School/Club Team" FROM table_46045 WHERE "Player" = 'lawrence roberts' | 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 school was Lawrence Roberts from ? ### Input: CREATE TABLE table_46045 (
"Player" text,
"Nationality" text,
... |
What is the total number of Silver, when Gold is '1', and when Bronze is less than 0? | CREATE TABLE table_name_35 (
silver VARCHAR,
gold VARCHAR,
bronze VARCHAR
) | SELECT COUNT(silver) FROM table_name_35 WHERE gold = 1 AND bronze < 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 total number of Silver, when Gold is '1', and when Bronze is less than 0? ### Input: CREATE TABLE table_name_35 ... |
What is the col location with a col height (m) of 1107? | CREATE TABLE table_2731431_1 (
col_location VARCHAR,
col_height__m_ VARCHAR
) | SELECT col_location FROM table_2731431_1 WHERE col_height__m_ = 1107 | 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 col location with a col height (m) of 1107? ### Input: CREATE TABLE table_2731431_1 (
col_location VARCHAR,
... |
What is Venue, when Status is '2007 Rugby World Cup', when Against is less than 22, and when Date is '08/09/2007'? | CREATE TABLE table_name_22 (
venue VARCHAR,
date VARCHAR,
status VARCHAR,
against VARCHAR
) | SELECT venue FROM table_name_22 WHERE status = "2007 rugby world cup" AND against < 22 AND date = "08/09/2007" | 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 Venue, when Status is '2007 Rugby World Cup', when Against is less than 22, and when Date is '08/09/2007'? ### Input... |
What was the result of the match in Penrith that featured a score of 48-12? | CREATE TABLE table_4661 (
"Date" text,
"Result" text,
"Score" text,
"Stadium" text,
"City" text,
"Crowd" real
) | SELECT "Result" FROM table_4661 WHERE "Score" = '48-12' AND "City" = 'penrith' | 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 match in Penrith that featured a score of 48-12? ### Input: CREATE TABLE table_4661 (
"Date" ... |
Show the number of the countries that have managers of age above 50 or below 46. | CREATE TABLE train (
Train_ID int,
Train_Num text,
Name text,
From text,
Arrival text,
Railway_ID int
)
CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE railway_manage (
R... | SELECT Country, COUNT(Country) FROM manager WHERE Age > 50 OR Age < 46 GROUP BY Country | 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 the countries that have managers of age above 50 or below 46. ### Input: CREATE TABLE train (
Train_I... |
what is the number of patients whose marital status is widowed and procedure icd9 code is 4105? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "WIDOWED" AND procedures.icd9_code = "4105" | 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 the number of patients whose marital status is widowed and procedure icd9 code is 4105? ### Input: CREATE TABLE lab ... |
What was the date of the game that had a goal of 3? | CREATE TABLE table_71388 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_71388 WHERE "Goal" = '3' | 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 date of the game that had a goal of 3? ### Input: CREATE TABLE table_71388 (
"Goal" real,
"Date" text,
... |
DALLAS to SAN FRANCISCO leaving after 1600 in the afternoon please | CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
C... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.departure_time > 1600 AND flight.to_airport = AIRPORT_SERVICE_1... | 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: DALLAS to SAN FRANCISCO leaving after 1600 in the afternoon please ### Input: CREATE TABLE month (
month_number int,
... |
what is date of birth and diagnoses short title of subject id 66411? | 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 demographic.dob, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "66411" | 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 date of birth and diagnoses short title of subject id 66411? ### Input: CREATE TABLE diagnoses (
subject_id text... |
What's the abbreviation for libya? | CREATE TABLE table_name_88 (
abbreviation VARCHAR,
country VARCHAR
) | SELECT abbreviation FROM table_name_88 WHERE country = "libya" | 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 abbreviation for libya? ### Input: CREATE TABLE table_name_88 (
abbreviation VARCHAR,
country VARCHAR
) #... |
What is the total number of games for the opponent in Washington? | CREATE TABLE table_name_89 (
game VARCHAR,
opponent VARCHAR
) | SELECT COUNT(game) FROM table_name_89 WHERE opponent = "washington" | 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 total number of games for the opponent in Washington? ### Input: CREATE TABLE table_name_89 (
game VARCHAR,
... |
Which opponent's game was less than 76 when the march was 10? | CREATE TABLE table_name_45 (
opponent VARCHAR,
game VARCHAR,
march VARCHAR
) | SELECT opponent FROM table_name_45 WHERE game < 76 AND march = 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: Which opponent's game was less than 76 when the march was 10? ### Input: CREATE TABLE table_name_45 (
opponent VARCHAR,
... |
what is minimum age of patients whose gender is f and age is greater than or equal to 30? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.age >= "30" | 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 minimum age of patients whose gender is f and age is greater than or equal to 30? ### Input: CREATE TABLE procedures... |
What finish time started at 32? | CREATE TABLE table_58371 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | SELECT "Finish" FROM table_58371 WHERE "Start" = '32' | 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 finish time started at 32? ### Input: CREATE TABLE table_58371 (
"Year" text,
"Start" text,
"Qual" text,
... |
For those employees who did not have any job in the past, find hire_date and the amount of hire_date bin hire_date by time, and visualize them by a bar chart. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | 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, find hire_date and the amount of hire_date bin hire_date by time, ... |
What player that has a Position of df, and Loaned to is Stoke City? | CREATE TABLE table_name_89 (
player VARCHAR,
position VARCHAR,
loaned_to VARCHAR
) | SELECT player FROM table_name_89 WHERE position = "df" AND loaned_to = "stoke city" | 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 that has a Position of df, and Loaned to is Stoke City? ### Input: CREATE TABLE table_name_89 (
player VARCH... |
get me the number of patients suffering from celo-vessicle fistula primary disease. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CELO-VESSICLE FISTULA" | 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: get me the number of patients suffering from celo-vessicle fistula primary disease. ### Input: CREATE TABLE lab (
subjec... |
What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers? | CREATE TABLE table_28053 (
"Episode no." real,
"Airdate" text,
"Dave Viewers" real,
"Dave Rank" real,
"Rank (cable)" real,
"Dave ja vu Viewers" real,
"Total viewers" real
) | SELECT MAX("Dave Viewers") FROM table_28053 WHERE "Dave ja vu Viewers" = '119000' | 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 highest number of dave viewers of an episode with 119000 dave ja vu viewers? ### Input: CREATE TABLE table_28053... |
Bar chart of mean salary from each dept name, and rank by the X-axis in desc. | CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE course (
course_id varchar(8),
title v... | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY dept_name 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 mean salary from each dept name, and rank by the X-axis in desc. ### Input: CREATE TABLE student (
ID varch... |
has patient 015-59552 had any milrinone intake since 06/10/2105. | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid ... | SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-59552')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutpu... | 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: has patient 015-59552 had any milrinone intake since 06/10/2105. ### Input: CREATE TABLE treatment (
treatmentid number,... |
who is the champion where semi-finalist #2 is na and location is morrisville, nc | CREATE TABLE table_16524 (
"Year" text,
"Champion" text,
"Score" text,
"Runner-Up" text,
"Location" text,
"Semi-Finalist #1" text,
"Semi-Finalist #2" text
) | SELECT "Champion" FROM table_16524 WHERE "Semi-Finalist #2" = 'NA' AND "Location" = 'Morrisville, NC' | 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 is the champion where semi-finalist #2 is na and location is morrisville, nc ### Input: CREATE TABLE table_16524 (
"... |
mark skaife was the winnter of atcc round 1 , but what was the name of his team ? | CREATE TABLE table_203_271 (
id number,
"date" text,
"series" text,
"circuit" text,
"city / state" text,
"winner" text,
"team" text,
"car" text,
"report" text
) | SELECT "team" FROM table_203_271 WHERE "series" = 'atcc round 1' AND "winner" = 'mark skaife' | 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: mark skaife was the winnter of atcc round 1 , but what was the name of his team ? ### Input: CREATE TABLE table_203_271 (
... |
Who is the player in guard position from Stephen F. Austin in a round less than 8? | CREATE TABLE table_45213 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"School/Club Team" text
) | SELECT "Player" FROM table_45213 WHERE "Round" < '8' AND "Position" = 'guard' AND "School/Club Team" = 'stephen f. austin' | 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 is the player in guard position from Stephen F. Austin in a round less than 8? ### Input: CREATE TABLE table_45213 (
... |
What stadium was the game held in when the final score was 17-31? | CREATE TABLE table_name_88 (
stadium VARCHAR,
final_score VARCHAR
) | SELECT stadium FROM table_name_88 WHERE final_score = "17-31" | 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 stadium was the game held in when the final score was 17-31? ### Input: CREATE TABLE table_name_88 (
stadium VARCHA... |
What is the average Acquired when the Number shows as 7? | CREATE TABLE table_name_73 (
acquired INTEGER,
number VARCHAR
) | SELECT AVG(acquired) FROM table_name_73 WHERE number = 7 | 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 Acquired when the Number shows as 7? ### Input: CREATE TABLE table_name_73 (
acquired INTEGER,
n... |
How many viewers tuned in for season 2? | CREATE TABLE table_22347090_4 (
us_viewers__million_ VARCHAR,
no_in_season VARCHAR
) | SELECT us_viewers__million_ FROM table_22347090_4 WHERE no_in_season = 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: How many viewers tuned in for season 2? ### Input: CREATE TABLE table_22347090_4 (
us_viewers__million_ VARCHAR,
no_... |
When was the Masters Tournament? | CREATE TABLE table_55448 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Date" FROM table_55448 WHERE "Tournament" = 'masters tournament' | 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 was the Masters Tournament? ### Input: CREATE TABLE table_55448 (
"Date" text,
"Tournament" text,
"Winning ... |
Show the residences that have both a player of gender 'M' and a player of gender 'F'. | CREATE TABLE player (
Residence VARCHAR,
gender VARCHAR
) | SELECT Residence FROM player WHERE gender = "M" INTERSECT SELECT Residence FROM player WHERE gender = "F" | 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: Show the residences that have both a player of gender 'M' and a player of gender 'F'. ### Input: CREATE TABLE player (
R... |
How many Attendances on may 24? | CREATE TABLE table_36390 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
) | SELECT MIN("Attendance") FROM table_36390 WHERE "Date" = 'may 24' | 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 Attendances on may 24? ### Input: CREATE TABLE table_36390 (
"Date" text,
"Visitor" text,
"Score" text,... |
Are there sections of BIOMEDE 430 between the hours of 8:00 and 1:00 ? | CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)... | SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.end_time <= '1:00' AND course_offering.start_time >= '8:00' AND course.course_id = course_offering.course_id AND course.department = 'BIOMEDE' AND course.numb... | 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: Are there sections of BIOMEDE 430 between the hours of 8:00 and 1:00 ? ### Input: CREATE TABLE gsi (
course_offering_id ... |
In what episode was segment D ned Can Corn? | CREATE TABLE table_19894 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT MAX("Episode") FROM table_19894 WHERE "Segment D" = 'ned Can Corn' | 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 what episode was segment D ned Can Corn? ### Input: CREATE TABLE table_19894 (
"Series Ep." text,
"Episode" real,... |
Who directed 'running the gauntlet'? | CREATE TABLE table_3916 (
"Episode #" real,
"Series #" real,
"Title" text,
"Director" text,
"Writer" text,
"Original airdate" text,
"Viewers (millions)" text
) | SELECT "Director" FROM table_3916 WHERE "Title" = 'Running the Gauntlet' | 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 'running the gauntlet'? ### Input: CREATE TABLE table_3916 (
"Episode #" real,
"Series #" real,
"Ti... |
What is the class of the team that has a behind of +44.780? | CREATE TABLE table_name_18 (
class VARCHAR,
behind VARCHAR
) | SELECT class FROM table_name_18 WHERE behind = "+44.780" | 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 class of the team that has a behind of +44.780? ### Input: CREATE TABLE table_name_18 (
class VARCHAR,
b... |
Would you mind informing me what all of the ULCS classes are ? | CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number ... | SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id | 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: Would you mind informing me what all of the ULCS classes are ? ### Input: CREATE TABLE offering_instructor (
offering_in... |
display the employee number and name( first name and last name ) for all employees who work in a department with any employee whose name contains a T . | CREATE TABLE employees (
employee_id VARCHAR,
first_name VARCHAR,
last_name VARCHAR,
department_id VARCHAR
) | SELECT employee_id, first_name, last_name FROM employees WHERE department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%T%') | 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: display the employee number and name( first name and last name ) for all employees who work in a department with any employe... |
What Round against Aleksander Emelianenko had a time of 5:00? | CREATE TABLE table_40258 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Round" FROM table_40258 WHERE "Time" = '5:00' AND "Opponent" = 'aleksander emelianenko' | 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 Round against Aleksander Emelianenko had a time of 5:00? ### Input: CREATE TABLE table_40258 (
"Res." text,
"Re... |
which company has a person that can wear clothing in 33-23-36 | CREATE TABLE table_27515452_3 (
agency VARCHAR,
sizes VARCHAR
) | SELECT agency FROM table_27515452_3 WHERE sizes = "33-23-36" | 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 company has a person that can wear clothing in 33-23-36 ### Input: CREATE TABLE table_27515452_3 (
agency VARCHAR,... |
Which Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of 6? | CREATE TABLE table_48308 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT "Nation" FROM table_48308 WHERE "Gold" > '0' AND "Total" > '4' AND "Rank" = '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 Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of 6? ### Input: CREATE TABLE table_48308 (
... |
For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the amount of hire_date bin hire_date by weekday in a bar chart, and rank from high to low by the Y please. | 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, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_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: For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the amoun... |
If the record is 5-8, what is the team name? | CREATE TABLE table_73512 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_73512 WHERE "Record" = '5-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: If the record is 5-8, what is the team name? ### Input: CREATE TABLE table_73512 (
"Game" real,
"Date" text,
"Te... |
How many courses for each subject? Plot a bar chart, could you display bar in ascending order? | CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATET... | SELECT subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY subject_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: How many courses for each subject? Plot a bar chart, could you display bar in ascending order? ### Input: CREATE TABLE Subje... |
Are there any Teams after 1997? | CREATE TABLE table_69280 (
"Year" real,
"Class" text,
"Tyres" text,
"Team" text,
"Co-Drivers" text,
"Laps" real,
"Pos." text
) | SELECT "Team" FROM table_69280 WHERE "Year" > '1997' | 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: Are there any Teams after 1997? ### Input: CREATE TABLE table_69280 (
"Year" real,
"Class" text,
"Tyres" text,
... |
What skip has angela tuvaeva as the lead? | CREATE TABLE table_75427 (
"Country" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | SELECT "Skip" FROM table_75427 WHERE "Lead" = 'angela tuvaeva' | 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 skip has angela tuvaeva as the lead? ### Input: CREATE TABLE table_75427 (
"Country" text,
"Skip" text,
"Th... |
Create a pie chart showing the total number across outcome code. | CREATE TABLE Mailshot_Customers (
mailshot_id INTEGER,
customer_id INTEGER,
outcome_code VARCHAR(15),
mailshot_customer_date DATETIME
)
CREATE TABLE Products (
product_id INTEGER,
product_category VARCHAR(15),
product_name VARCHAR(80)
)
CREATE TABLE Mailshot_Campaigns (
mailshot_id INT... | SELECT outcome_code, COUNT(*) FROM Mailshot_Customers GROUP BY outcome_code | 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: Create a pie chart showing the total number across outcome code. ### Input: CREATE TABLE Mailshot_Customers (
mailshot_i... |
What is Home, when Score is 103-93? | CREATE TABLE table_name_95 (
home VARCHAR,
score VARCHAR
) | SELECT home FROM table_name_95 WHERE score = "103-93" | 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 Home, when Score is 103-93? ### Input: CREATE TABLE table_name_95 (
home VARCHAR,
score VARCHAR
) ### Respon... |
What is Television Service, when HDTV is No, and when Language is Italian? | CREATE TABLE table_name_11 (
television_service VARCHAR,
hdtv VARCHAR,
language VARCHAR
) | SELECT television_service FROM table_name_11 WHERE hdtv = "no" AND language = "italian" | 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 Television Service, when HDTV is No, and when Language is Italian? ### Input: CREATE TABLE table_name_11 (
telev... |
Bin all date of transactions into the YEAR interval, and give the average of the share count for each bin. What is the trend? | CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
... | SELECT date_of_transaction, AVG(share_count) FROM Transactions | 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: Bin all date of transactions into the YEAR interval, and give the average of the share count for each bin. What is the trend... |
Highest voted answers that have no competition. | CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskResults (
Id number,
Review... | SELECT Id AS "post_link", Score FROM Posts WHERE PostTypeId = 2 AND ParentId IN (SELECT Id FROM Posts WHERE AnswerCount = 1) ORDER BY Score 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: Highest voted answers that have no competition. ### Input: CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,... |
What is the maximum number of starts? | CREATE TABLE table_3005915_3 (
starts INTEGER
) | SELECT MAX(starts) FROM table_3005915_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 is the maximum number of starts? ### Input: CREATE TABLE table_3005915_3 (
starts INTEGER
) ### Response: SELECT MA... |
Margin of victory on no. 4 was? | CREATE TABLE table_24524 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Margin of victory" FROM table_24524 WHERE "No." = '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: Margin of victory on no. 4 was? ### Input: CREATE TABLE table_24524 (
"No." real,
"Date" text,
"Tournament" text... |
What is the name of the person who was in the Original Broadway Cast that was Original West End Cast of sheila hancock? | CREATE TABLE table_name_56 (
original_broadway_cast VARCHAR,
original_west_end_cast VARCHAR
) | SELECT original_broadway_cast FROM table_name_56 WHERE original_west_end_cast = "sheila hancock" | 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 name of the person who was in the Original Broadway Cast that was Original West End Cast of sheila hancock? ### ... |
did they place better in 1987/88 or 1993/94 ? | CREATE TABLE table_204_35 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
) | SELECT "season" FROM table_204_35 WHERE "season" IN ('1987/88', '1993/94') ORDER BY "place" 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: did they place better in 1987/88 or 1993/94 ? ### Input: CREATE TABLE table_204_35 (
id number,
"season" text,
"... |
Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes' Visualize by bar chart, list from high to low by the Y. | CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE management (
department_ID int,
head_ID int,
tempor... | SELECT Name, AVG(Num_Employees) FROM department AS T1 JOIN management AS T2 ON T1.department_ID = T2.department_ID WHERE T2.temporary_acting = 'Yes' GROUP BY Name ORDER BY AVG(Num_Employees) 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 name and number of employees for the departments managed by heads whose temporary acting value is 'Yes' Visualize b... |
Tell me the class with rank of 89th | CREATE TABLE table_name_12 (
class VARCHAR,
rank VARCHAR
) | SELECT class FROM table_name_12 WHERE rank = "89th" | 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: Tell me the class with rank of 89th ### Input: CREATE TABLE table_name_12 (
class VARCHAR,
rank VARCHAR
) ### Respon... |
What is the first year for Popgun? | CREATE TABLE table_55144 (
"Title" text,
"Publisher" text,
"First Year" text,
"Last Year" text,
"Genre" text
) | SELECT "First Year" FROM table_55144 WHERE "Title" = 'popgun' | 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 first year for Popgun? ### Input: CREATE TABLE table_55144 (
"Title" text,
"Publisher" text,
"First ... |
what character did Masaharu satou play | CREATE TABLE table_38210 (
"Character Name" text,
"Voice Actor (Japanese)" text,
"Voice Actor (English 1997 / Saban)" text,
"Voice Actor (English 1998 / Pioneer)" text,
"Voice Actor (English 2006 / FUNimation)" text
) | SELECT "Character Name" FROM table_38210 WHERE "Voice Actor (Japanese)" = 'masaharu satou' | 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 character did Masaharu satou play ### Input: CREATE TABLE table_38210 (
"Character Name" text,
"Voice Actor (Ja... |
What years did number 54 play for the jazz | CREATE TABLE table_16858 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "Years for Jazz" FROM table_16858 WHERE "No." = '54' | 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 years did number 54 play for the jazz ### Input: CREATE TABLE table_16858 (
"Player" text,
"No." real,
"Nat... |
For each director, how many reviews have they received Visualize by bar chart, and could you rank from high to low by the Y-axis? | CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) | SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY COUNT(*) 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 director, how many reviews have they received Visualize by bar chart, and could you rank from high to low by the Y-... |
Which lowest played has a Position of 2, and Goals against larger than 53? | CREATE TABLE table_name_6 (
played INTEGER,
position VARCHAR,
goals_against VARCHAR
) | SELECT MIN(played) FROM table_name_6 WHERE position = 2 AND goals_against > 53 | 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 lowest played has a Position of 2, and Goals against larger than 53? ### Input: CREATE TABLE table_name_6 (
played... |
What is the English title of the film directed by Fernando Meirelles? | CREATE TABLE table_name_53 (
english_title VARCHAR,
director_s_ VARCHAR
) | SELECT english_title FROM table_name_53 WHERE director_s_ = "fernando meirelles" | 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 English title of the film directed by Fernando Meirelles? ### Input: CREATE TABLE table_name_53 (
english_ti... |
Name the college/junior club team for pick number 63 | CREATE TABLE table_19548 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "College/junior/club team" FROM table_19548 WHERE "Pick #" = '63' | 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 college/junior club team for pick number 63 ### Input: CREATE TABLE table_19548 (
"Pick #" real,
"Player" t... |
what is the total number of silver medals won by russia , norway , and sweden combined ? | CREATE TABLE table_204_761 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT SUM("silver") FROM table_204_761 WHERE "nation" IN ('russia', 'norway', 'sweden') | 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 is the total number of silver medals won by russia , norway , and sweden combined ? ### Input: CREATE TABLE table_204_7... |
Find the number of members living in each address. | CREATE TABLE shop (
shop_id number,
address text,
num_of_staff text,
score number,
open_year text
)
CREATE TABLE happy_hour (
hh_id number,
shop_id number,
month text,
num_of_shaff_in_charge number
)
CREATE TABLE member (
member_id number,
name text,
membership_card tex... | SELECT COUNT(*), address FROM member GROUP BY address | 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 number of members living in each address. ### Input: CREATE TABLE shop (
shop_id number,
address text,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.