instruction stringlengths 0 1.06k | input stringlengths 33 7.14k | response stringlengths 2 4.44k | source stringclasses 25
values | text stringlengths 302 8.5k |
|---|---|---|---|---|
What is the description of the restaurant type Sandwich? | CREATE TABLE restaurant_type (
restypeid number,
restypename text,
restypedescription text
)
CREATE TABLE visits_restaurant (
stuid number,
resid number,
time time,
spent number
)
CREATE TABLE restaurant (
resid number,
resname text,
address text,
rating number
)
CREATE TA... | SELECT restypedescription FROM restaurant_type WHERE restypename = "Sandwich" | spider | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the description of the restaurant type Sandwich? ### Input: CREATE TABLE restaurant_type (
restypeid number,
... |
How many schools are in the basketball match? | CREATE TABLE university (
school_id number,
school text,
location text,
founded number,
affiliation text,
enrollment number,
nickname text,
primary_conference text
)
CREATE TABLE basketball_match (
team_id number,
school_id number,
team_name text,
acc_regular_season text... | SELECT COUNT(DISTINCT school_id) FROM basketball_match | 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: How many schools are in the basketball match? ### Input: CREATE TABLE university (
school_id number,
school text,
... |
How many points did Newport RFC get? | CREATE TABLE table_8595 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Points" text
) | SELECT "Points" FROM table_8595 WHERE "Club" = 'newport rfc' | 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 points did Newport RFC get? ### Input: CREATE TABLE table_8595 (
"Club" text,
"Played" text,
"Drawn" te... |
What is the Locality of the Penarth Group School for Ages 8-16? | CREATE TABLE table_name_90 (
locality VARCHAR,
ages VARCHAR,
school VARCHAR
) | SELECT locality FROM table_name_90 WHERE ages = "8-16" AND school = "penarth group school" | 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 Locality of the Penarth Group School for Ages 8-16? ### Input: CREATE TABLE table_name_90 (
locality VARCHAR... |
show me flights between NEW YORK and LAS VEGAS on sunday | CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
fligh... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LAS VEGAS' AND date_day.day_number = 27 AND date_day.month_number = 8 AND... | atis | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: show me flights between NEW YORK and LAS VEGAS on sunday ### Input: CREATE TABLE code_description (
code varchar,
de... |
What is listed for the Cores that has the L3 cache of 8 MB and Model number of Core i7-860? | CREATE TABLE table_name_76 (
cores VARCHAR,
l3_cache VARCHAR,
model_number VARCHAR
) | SELECT cores FROM table_name_76 WHERE l3_cache = "8 mb" AND model_number = "core i7-860" | 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 listed for the Cores that has the L3 cache of 8 MB and Model number of Core i7-860? ### Input: CREATE TABLE table_na... |
what were the four most commonly diagnosed diagnoses for patients who were previously diagnosed with s/p exploratory laparoscopy within 2 months since 2102? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtim... | SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 's/p exploratory laparoscopy' AND STRFTIM... | 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 were the four most commonly diagnosed diagnoses for patients who were previously diagnosed with s/p exploratory laparos... |
name a station that shows sports but is not televisa . | CREATE TABLE table_204_779 (
id number,
"network name" text,
"flagship" text,
"programming type" text,
"owner" text,
"affiliates" number
) | SELECT "network name" FROM table_204_779 WHERE "programming type" = 'sports' AND "owner" <> 'televisa' | 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: name a station that shows sports but is not televisa . ### Input: CREATE TABLE table_204_779 (
id number,
"network n... |
Which System has an Actual Version 9.0? | CREATE TABLE table_name_15 (
system VARCHAR,
actual_version VARCHAR
) | SELECT system FROM table_name_15 WHERE actual_version = "9.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: Which System has an Actual Version 9.0? ### Input: CREATE TABLE table_name_15 (
system VARCHAR,
actual_version VARCH... |
Out of the total number of patients admitted before 2168, how many of them had int insert lead in vent? | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2168" AND procedures.short_title = "Int insert lead in vent" | 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: Out of the total number of patients admitted before 2168, how many of them had int insert lead in vent? ### Input: CREATE TA... |
In the system where Sunday is ny yitru kizhamai, what is Saturday? | CREATE TABLE table_1277350_3 (
saturday_shani__saturn_ VARCHAR,
sunday_surya__the_sun_ VARCHAR
) | SELECT saturday_shani__saturn_ FROM table_1277350_3 WHERE sunday_surya__the_sun_ = "ஞாயிற்று கிழமை Nyāyitru kizhamai" | 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 the system where Sunday is ny yitru kizhamai, what is Saturday? ### Input: CREATE TABLE table_1277350_3 (
saturday_sh... |
what is gender and discharge time of subject id 55094? | 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 demographic.gender, demographic.dischtime FROM demographic WHERE demographic.subject_id = "55094" | 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 gender and discharge time of subject id 55094? ### Input: CREATE TABLE procedures (
subject_id text,
hadm_id... |
What is the name of episode # 10a? | CREATE TABLE table_2701851_2 (
title VARCHAR,
no_in_series VARCHAR
) | SELECT title FROM table_2701851_2 WHERE no_in_series = "10a" | 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 episode # 10a? ### Input: CREATE TABLE table_2701851_2 (
title VARCHAR,
no_in_series VARCHAR
) #... |
what is the number of patients whose admission year is less than 2154 and diagnoses short title is urinary incontinence nos? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2154" AND diagnoses.short_title = "Urinary incontinence NOS" | 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 admission year is less than 2154 and diagnoses short title is urinary incontinence nos?... |
What is the score on september 20? | CREATE TABLE table_name_6 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_6 WHERE date = "september 20" | 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 score on september 20? ### Input: CREATE TABLE table_name_6 (
score VARCHAR,
date VARCHAR
) ### Response... |
Which Res has a Method of decision (unanimous) and an Opponent of Wataru Sakata? | CREATE TABLE table_name_10 (
res VARCHAR,
method VARCHAR,
opponent VARCHAR
) | SELECT res FROM table_name_10 WHERE method = "decision (unanimous)" AND opponent = "wataru sakata" | 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 Res has a Method of decision (unanimous) and an Opponent of Wataru Sakata? ### Input: CREATE TABLE table_name_10 (
... |
For before noon classes , what upper level electives are offered ? | CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program (
program_id int,
name v... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.end_time <= '12:00:00' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semest... | 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: For before noon classes , what upper level electives are offered ? ### Input: CREATE TABLE offering_instructor (
offerin... |
What was the winning score on Jan 22, 1995 when the margin of victory was 1 stroke? | CREATE TABLE table_9802 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Winning score" FROM table_9802 WHERE "Margin of victory" = '1 stroke' AND "Date" = 'jan 22, 1995' | 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 winning score on Jan 22, 1995 when the margin of victory was 1 stroke? ### Input: CREATE TABLE table_9802 (
... |
What is the highest amount of uefa champion leagues? | CREATE TABLE table_18254488_2 (
uefa_champions_league INTEGER
) | SELECT MAX(uefa_champions_league) FROM table_18254488_2 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest amount of uefa champion leagues? ### Input: CREATE TABLE table_18254488_2 (
uefa_champions_league IN... |
what is the event when gold is darren kenny great britain (gbr)? | CREATE TABLE table_79469 (
"Event" text,
"Class" text,
"Gold" text,
"Silver" text,
"Bronze" text
) | SELECT "Event" FROM table_79469 WHERE "Gold" = 'darren kenny great britain (gbr)' | 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 event when gold is darren kenny great britain (gbr)? ### Input: CREATE TABLE table_79469 (
"Event" text,
... |
Find the average access count across all documents? | CREATE TABLE users (
user_id number,
role_code text,
user_name text,
user_login text,
password text
)
CREATE TABLE images (
image_id number,
image_alt_text text,
image_name text,
image_url text
)
CREATE TABLE roles (
role_code text,
role_description text
)
CREATE TABLE fun... | SELECT AVG(access_count) FROM documents | 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 average access count across all documents? ### Input: CREATE TABLE users (
user_id number,
role_code text,
... |
What is the population of the parish that has an area of 304.06? | CREATE TABLE table_61535 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
) | SELECT SUM("Population") FROM table_61535 WHERE "Area km 2" = '304.06' | 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 population of the parish that has an area of 304.06? ### Input: CREATE TABLE table_61535 (
"Official Name" t... |
was patient 2536 since 03/2104 prescribed furosemide, vial, or zolpidem tartrate? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_nam... | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2536) AND prescriptions.drug IN ('furosemide', 'vial', 'zolpidem tartrate') AND STRFTIME('%y-%m', prescriptions.startdate) >= '2104-03' | 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 patient 2536 since 03/2104 prescribed furosemide, vial, or zolpidem tartrate? ### Input: CREATE TABLE labevents (
ro... |
What is the number of people who attended the game later than game 6? | CREATE TABLE table_69087 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
) | SELECT COUNT("Attendance") FROM table_69087 WHERE "Game" > '6' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the number of people who attended the game later than game 6? ### Input: CREATE TABLE table_69087 (
"Game" real,... |
Who was the winner of Stage 12 with a Points Classification of Francesco Moser? | CREATE TABLE table_54226 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Trofeo Fast Team" text
) | SELECT "Winner" FROM table_54226 WHERE "Points classification" = 'francesco moser' AND "Stage" = '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: Who was the winner of Stage 12 with a Points Classification of Francesco Moser? ### Input: CREATE TABLE table_54226 (
"S... |
What is the Player from Dayton, Oh with a Pick of 15 or larger? | CREATE TABLE table_14233 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"Hometown/School" text
) | SELECT "Player" FROM table_14233 WHERE "Pick" > '15' AND "Hometown/School" = 'dayton, oh' | 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 Player from Dayton, Oh with a Pick of 15 or larger? ### Input: CREATE TABLE table_14233 (
"Pick" real,
"... |
most cited EMNLP 2010 papers | CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
... | SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM cite, paper, venue WHERE paper.paperid = cite.citedpaperid AND paper.year = 2010 AND venue.venueid = paper.venueid AND venue.venuename = 'EMNLP' GROUP BY cite.citedpaperid ORDER BY COUNT(cite.citedpaperid) DESC | 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: most cited EMNLP 2010 papers ### Input: CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperdat... |
Give me a bar chart for the total number of each payment method code, and show in descending by the Y-axis. | CREATE TABLE Ref_Payment_Methods (
payment_method_code CHAR(10),
payment_method_description VARCHAR(80)
)
CREATE TABLE Bookings_Services (
Order_ID INTEGER,
Product_ID INTEGER
)
CREATE TABLE Clients (
Client_ID INTEGER,
Address_ID INTEGER,
Customer_Email_Address VARCHAR(255),
Customer_... | SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code 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: Give me a bar chart for the total number of each payment method code, and show in descending by the Y-axis. ### Input: CREAT... |
what were the three most frequently taken lab tests in 2104 for patients 50s? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number... | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 50 AND 59) AND STRFTIME('%y', lab.labresulttime) = '2104' GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 3 | 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 were the three most frequently taken lab tests in 2104 for patients 50s? ### Input: CREATE TABLE allergy (
allergyi... |
Questions with specific tag below question/answer score. | CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id... | SELECT Q.Id FROM Posts AS Q WHERE Q.PostTypeId = 1 AND Q.Tags LIKE @Pattern AND (Q.Score < @QuestionScore OR (@Accepted = 1 AND Q.AcceptedAnswerId IS NULL) OR NOT EXISTS(SELECT * FROM Posts AS A WHERE A.ParentId = Q.Id AND A.Score >= @AnswerScore)) | 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: Questions with specific tag below question/answer score. ### Input: CREATE TABLE ReviewTasks (
Id number,
ReviewTask... |
What was the largest crowd at a game where Collingwood was the away team? | CREATE TABLE table_name_13 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MAX(crowd) FROM table_name_13 WHERE away_team = "collingwood" | 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 largest crowd at a game where Collingwood was the away team? ### Input: CREATE TABLE table_name_13 (
crowd ... |
What was the method used when the opponent was Tyson Griffin? | CREATE TABLE table_11808 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text,
"Time" text,
"Location" text
) | SELECT "Method" FROM table_11808 WHERE "Opponent" = 'tyson griffin' | 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 method used when the opponent was Tyson Griffin? ### Input: CREATE TABLE table_11808 (
"Res." text,
"Re... |
Name the losing bonus of 96 points | CREATE TABLE table_72330 (
"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 "Losing bonus" FROM table_72330 WHERE "Points" = '96' | 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 losing bonus of 96 points ### Input: CREATE TABLE table_72330 (
"Club" text,
"Played" text,
"Won" text,... |
What was the attendance at the week 2 game? | CREATE TABLE table_name_89 (
attendance VARCHAR,
week VARCHAR
) | SELECT attendance FROM table_name_89 WHERE week = 2 | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the attendance at the week 2 game? ### Input: CREATE TABLE table_name_89 (
attendance VARCHAR,
week VARCHAR... |
java developpers in nantes. | CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TAB... | SELECT u.Id, u.DisplayName, u.Location FROM Users AS u JOIN (SELECT DISTINCT UserId FROM Badges WHERE LOWER(Name) IN ('java') AND Class IN (2, 3) AND TagBased = 1) AS tag_badges ON tag_badges.UserId = u.Id WHERE LOWER(Location) LIKE '%paris%' | 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: java developpers in nantes. ### Input: CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
... |
Which Conference Semifinals has a Record of 55 27? | CREATE TABLE table_name_73 (
conference_semifinals VARCHAR,
record VARCHAR
) | SELECT conference_semifinals FROM table_name_73 WHERE record = "55–27" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Conference Semifinals has a Record of 55 27? ### Input: CREATE TABLE table_name_73 (
conference_semifinals VARCHAR... |
For those records from the products and each product's manufacturer, give me the comparison about the amount of name over the name , and group by attribute name, and rank bars in asc order please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, COUNT(T2.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.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: For those records from the products and each product's manufacturer, give me the comparison about the amount of name over th... |
What opponent has 32 as the round? | CREATE TABLE table_60378 (
"Date" text,
"Time" text,
"Round" text,
"Opponent" text,
"Ground" text,
"Score" text
) | SELECT "Opponent" FROM table_60378 WHERE "Round" = '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 opponent has 32 as the round? ### Input: CREATE TABLE table_60378 (
"Date" text,
"Time" text,
"Round" text,... |
What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230? | CREATE TABLE table_name_10 (
round INTEGER,
position VARCHAR,
overall VARCHAR
) | SELECT SUM(round) FROM table_name_10 WHERE position = "ls" AND overall > 230 | 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 sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230? ### Input:... |
Which Date has a Result of 2 2, and a Venue of H? | CREATE TABLE table_46145 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
) | SELECT "Date" FROM table_46145 WHERE "Result" = '2–2' AND "Venue" = 'h' | 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 Date has a Result of 2 2, and a Venue of H? ### Input: CREATE TABLE table_46145 (
"Date" text,
"Round" text,
... |
What is the region where Milan is located? | CREATE TABLE table_19387 (
"Region" text,
"Capital" text,
"Area (km\u00b2)" real,
"Area (sq mi)" real,
"Population" real
) | SELECT "Region" FROM table_19387 WHERE "Capital" = 'Milan' | 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 region where Milan is located? ### Input: CREATE TABLE table_19387 (
"Region" text,
"Capital" text,
... |
What is the score in the final with runner-up as the outcome and hard (i) as the surface? | CREATE TABLE table_71205 (
"Outcome" text,
"Date" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Score in the final" FROM table_71205 WHERE "Outcome" = 'runner-up' AND "Surface" = 'hard (i)' | 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 with runner-up as the outcome and hard (i) as the surface? ### Input: CREATE TABLE table_7120... |
What is the lowest number of draws of the NTFA Div 2 Lilydale? | CREATE TABLE table_75325 (
"NTFA Div 2" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MIN("Draws") FROM table_75325 WHERE "NTFA Div 2" = 'lilydale' | 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 number of draws of the NTFA Div 2 Lilydale? ### Input: CREATE TABLE table_75325 (
"NTFA Div 2" text,
... |
when did patient 031-16123 during the last hospital encounter last receive the blood, venipuncture microbiology test? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREAT... | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-16123' 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: when did patient 031-16123 during the last hospital encounter last receive the blood, venipuncture microbiology test? ### In... |
What is the cyrillic name when the settlement is a anja? | CREATE TABLE table_2562572_52 (
cyrillic_name VARCHAR,
settlement VARCHAR
) | SELECT cyrillic_name FROM table_2562572_52 WHERE settlement = "Ašanja" | 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 cyrillic name when the settlement is a anja? ### Input: CREATE TABLE table_2562572_52 (
cyrillic_name VARCHA... |
give me the number of patients whose year of birth is less than 2053 and drug route is ivpca? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2053" AND prescriptions.route = "IVPCA" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: give me the number of patients whose year of birth is less than 2053 and drug route is ivpca? ### Input: CREATE TABLE proced... |
Show the employee ids for all employees with role name 'Human Resource' or 'Manager'. | CREATE TABLE ROLES (
role_code VARCHAR,
role_name VARCHAR
)
CREATE TABLE Employees (
employee_id VARCHAR,
role_code VARCHAR
) | SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Human Resource" OR T2.role_name = "Manager" | 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 employee ids for all employees with role name 'Human Resource' or 'Manager'. ### Input: CREATE TABLE ROLES (
ro... |
What league does Delaware Military Academy belong to | CREATE TABLE table_15475116_1 (
league VARCHAR,
school VARCHAR
) | SELECT league FROM table_15475116_1 WHERE school = "Delaware Military Academy" | 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 league does Delaware Military Academy belong to ### Input: CREATE TABLE table_15475116_1 (
league VARCHAR,
scho... |
What shows for 2000 when 2013 shows 3rd? | CREATE TABLE table_name_19 (
Id VARCHAR
) | SELECT 2000 FROM table_name_19 WHERE 2013 = "3rd" | 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 shows for 2000 when 2013 shows 3rd? ### Input: CREATE TABLE table_name_19 (
Id VARCHAR
) ### Response: SELECT 2000 ... |
How many patients are diagnosed with a hemorrhage complicating procedure? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Hemorrhage complic proc" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many patients are diagnosed with a hemorrhage complicating procedure? ### Input: CREATE TABLE prescriptions (
subjec... |
how many patients had a microbiology fluid received in blood culture bottles test until 2101? | CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT microbiologyevents.hadm_id FROM microbiologyevents WHERE microbiologyevents.spec_type_desc = 'fluid received in blood culture bottles' AND STRFTIME('%y', microbiologyevents.charttime) <= '2101') | 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 patients had a microbiology fluid received in blood culture bottles test until 2101? ### Input: CREATE TABLE prescr... |
What is the name of the Loser when the winner was new england patriots, and a Location of giants stadium, and a Result of 30 28? | CREATE TABLE table_74995 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
) | SELECT "Loser" FROM table_74995 WHERE "Winner" = 'new england patriots' AND "Location" = 'giants stadium' AND "Result" = '30–28' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the name of the Loser when the winner was new england patriots, and a Location of giants stadium, and a Result of 30... |
What's the Score for the Game of 75? | CREATE TABLE table_name_74 (
score VARCHAR,
game VARCHAR
) | SELECT score FROM table_name_74 WHERE game = 75 | 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 Score for the Game of 75? ### Input: CREATE TABLE table_name_74 (
score VARCHAR,
game VARCHAR
) ### Respo... |
What is the day and date of game 2? | CREATE TABLE table_50616 (
"Game" text,
"Day, Date" text,
"Anand" text,
"Gelfand" text,
"Standing" text
) | SELECT "Day, Date" FROM table_50616 WHERE "Game" = '2' | 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 day and date of game 2? ### Input: CREATE TABLE table_50616 (
"Game" text,
"Day, Date" text,
"Anand"... |
What was the result of the election in which the incumbent was first elected in 1984? | CREATE TABLE table_682 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | SELECT "Results" FROM table_682 WHERE "First elected" = '1984' | 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 election in which the incumbent was first elected in 1984? ### Input: CREATE TABLE table_682 (
... |
What was the smallest crowd that Melbourne played for at home? | CREATE TABLE table_33227 (
"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_33227 WHERE "Home team" = 'melbourne' | 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 smallest crowd that Melbourne played for at home? ### Input: CREATE TABLE table_33227 (
"Home team" text,
... |
What is the highest heat for Ihor Bodrov when the mark is 6.76 and the lane is less than 1? | CREATE TABLE table_7519 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text
) | SELECT MAX("Heat") FROM table_7519 WHERE "Mark" = '6.76' AND "Name" = 'ihor bodrov' AND "Lane" < '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 highest heat for Ihor Bodrov when the mark is 6.76 and the lane is less than 1? ### Input: CREATE TABLE table_75... |
What is the district with the candidates leven powell (f) 63.8% roger west (dr) 36.4%? | CREATE TABLE table_28947 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_28947 WHERE "Candidates" = 'Leven Powell (F) 63.8% Roger West (DR) 36.4%' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the district with the candidates leven powell (f) 63.8% roger west (dr) 36.4%? ### Input: CREATE TABLE table_28947 (... |
give me the number of patients whose gender is f and diagnoses short title is paralytic ileus? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Paralytic ileus" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: give me the number of patients whose gender is f and diagnoses short title is paralytic ileus? ### Input: CREATE TABLE presc... |
Compute how many attributes in each name of the attribute definitions with attribute value 0 Show the result with a bar chart, sort in ascending by the x axis. | CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
)
CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
previous_en... | SELECT attribute_name, COUNT(attribute_name) FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0 GROUP BY attribute_name ORDER BY attribute_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: Compute how many attributes in each name of the attribute definitions with attribute value 0 Show the result with a bar char... |
What college did the defensive back attend? | CREATE TABLE table_19481 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_19481 WHERE "Position" = 'Defensive Back' | 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 college did the defensive back attend? ### Input: CREATE TABLE table_19481 (
"Pick #" real,
"NFL Team" text,
... |
What is the entry for weight in kilograms of jockey D. Nikolic? | CREATE TABLE table_20434 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" text,
"Time" text,
"Jockey" text,
"Winner/2nd" text
) | SELECT "Weight (kg)" FROM table_20434 WHERE "Jockey" = 'D. Nikolic' | 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 entry for weight in kilograms of jockey D. Nikolic? ### Input: CREATE TABLE table_20434 (
"Result" text,
... |
what title came directly after this morning ? | CREATE TABLE table_204_208 (
id number,
"year" text,
"title" text,
"role" text,
"episodes" text
) | SELECT "title" FROM table_204_208 WHERE id = (SELECT id FROM table_204_208 WHERE "title" = 'this morning') + 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 title came directly after this morning ? ### Input: CREATE TABLE table_204_208 (
id number,
"year" text,
"t... |
What is the number of losses for the team with a points difference of -25? | CREATE TABLE table_name_24 (
lost VARCHAR,
points_difference VARCHAR
) | SELECT lost FROM table_name_24 WHERE points_difference = "-25" | 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 number of losses for the team with a points difference of -25? ### Input: CREATE TABLE table_name_24 (
lost ... |
What is the Galician (reintegrationist) word of the Galician (Official) is bo d a / bos d as? | CREATE TABLE table_28803 (
"English" text,
"Galician ( Official )" text,
"Galician ( Reintegrationist )" text,
"Portuguese" text,
"Spanish" text
) | SELECT "Galician ( Reintegrationist )" FROM table_28803 WHERE "Galician ( Official )" = 'Bo día / Bos días' | 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 Galician (reintegrationist) word of the Galician (Official) is bo d a / bos d as? ### Input: CREATE TABLE table_... |
What was the placing when the jockey was Damien Oliver? | CREATE TABLE table_24915874_1 (
placing VARCHAR,
jockey VARCHAR
) | SELECT placing FROM table_24915874_1 WHERE jockey = "Damien Oliver" | 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 placing when the jockey was Damien Oliver? ### Input: CREATE TABLE table_24915874_1 (
placing VARCHAR,
... |
What is the score of the United States, which has a to par of +5? | CREATE TABLE table_8423 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Score" FROM table_8423 WHERE "Country" = 'united states' AND "To par" = '+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: What is the score of the United States, which has a to par of +5? ### Input: CREATE TABLE table_8423 (
"Place" text,
... |
Name the number of points for field goals being 1 | CREATE TABLE table_72529 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT COUNT("Points") FROM table_72529 WHERE "Field goals" = '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: Name the number of points for field goals being 1 ### Input: CREATE TABLE table_72529 (
"Player" text,
"Position" te... |
What's the 2012 during Wimbledon and had a Q3 in 2008? | CREATE TABLE table_name_83 (
tournament VARCHAR
) | SELECT 2012 FROM table_name_83 WHERE 2008 = "q3" AND tournament = "wimbledon" | 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 2012 during Wimbledon and had a Q3 in 2008? ### Input: CREATE TABLE table_name_83 (
tournament VARCHAR
) ### ... |
Is it possible to take 560 on Wednesdays and Mondays ? | CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_cred... | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.friday = 'N' AND course_offering.monday = 'Y' AND course_offering.thursday = 'N' AND course_offering.tuesday = 'N' AND course_offering.wednesday = 'Y' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND cour... | advising | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Is it possible to take 560 on Wednesdays and Mondays ? ### Input: CREATE TABLE program_course (
program_id int,
cour... |
Which Name has a Number of electorates (2009) greater than 188,799? | CREATE TABLE table_14189 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
) | SELECT "Name" FROM table_14189 WHERE "Number of electorates (2009)" > '188,799' | 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 Name has a Number of electorates (2009) greater than 188,799? ### Input: CREATE TABLE table_14189 (
"Constituency ... |
Top Users 25 And Under. | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS Rank, DisplayName, Age, CreationDate, Reputation, CONCAT('http://stackoverflow.com/users/', Id) AS Profile FROM Users WHERE Age <= 25 AND Reputation > 8000 ORDER BY Reputation 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: Top Users 25 And Under. ### Input: CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
... |
What was the record of the game for game 31? | CREATE TABLE table_name_78 (
record VARCHAR,
game VARCHAR
) | SELECT record FROM table_name_78 WHERE game = 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 was the record of the game for game 31? ### Input: CREATE TABLE table_name_78 (
record VARCHAR,
game VARCHAR
) ... |
Which county team has jimmy finn as the player? | CREATE TABLE table_67669 (
"Position" text,
"Player" text,
"County team" text,
"Club team(s)" text,
"Team Number" real
) | SELECT "County team" FROM table_67669 WHERE "Player" = 'jimmy finn' | 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 county team has jimmy finn as the player? ### Input: CREATE TABLE table_67669 (
"Position" text,
"Player" text... |
When the record is listed as 2-0-0, and the November date is less than 27, what is the sum of the game? | CREATE TABLE table_name_71 (
game INTEGER,
november VARCHAR,
record VARCHAR
) | SELECT SUM(game) FROM table_name_71 WHERE november < 27 AND record = "2-0-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: When the record is listed as 2-0-0, and the November date is less than 27, what is the sum of the game? ### Input: CREATE TA... |
what is the actual number of patients discharged from a hospital in 2102? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost numbe... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) = '2102' | 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 is the actual number of patients discharged from a hospital in 2102? ### Input: CREATE TABLE diagnosis (
diagnosisi... |
What is theW-L of the tournament listed as A for 1976? | CREATE TABLE table_51817 (
"Tournament" text,
"1968" text,
"1969" text,
"1970" text,
"1971" text,
"1972" text,
"1973" text,
"1974" text,
"1975" text,
"1976" text,
"1977" text,
"1978" text,
"1979" text,
"Career SR" text,
"Career W\u2013L" text,
"Career Win ... | SELECT "Career W\u2013L" FROM table_51817 WHERE "1976" = 'a' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is theW-L of the tournament listed as A for 1976? ### Input: CREATE TABLE table_51817 (
"Tournament" text,
"196... |
how much neo*iv*gentamicin is prescribed the last time the previous month to patient 40435? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name te... | SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 40435) AND prescriptions.drug = 'neo*iv*gentamicin' AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month')... | mimic_iii | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how much neo*iv*gentamicin is prescribed the last time the previous month to patient 40435? ### Input: CREATE TABLE cost (
... |
When was there a record of 13 17 3? | CREATE TABLE table_name_63 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_63 WHERE record = "13–17–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: When was there a record of 13 17 3? ### Input: CREATE TABLE table_name_63 (
date VARCHAR,
record VARCHAR
) ### Respo... |
until 2104, what are the top five most frequent lab tests ordered for patients in the same month after being diagnosed with tachycardia nos? | 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_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE admissions (
row_id num... | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.i... | 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: until 2104, what are the top five most frequent lab tests ordered for patients in the same month after being diagnosed with ... |
What is the name of the jockey for Pink Gin? | CREATE TABLE table_28750142_1 (
jockey VARCHAR,
name VARCHAR
) | SELECT jockey FROM table_28750142_1 WHERE name = "Pink Gin" | 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 jockey for Pink Gin? ### Input: CREATE TABLE table_28750142_1 (
jockey VARCHAR,
name VARCHAR... |
Show invoice dates and order id and details for all invoices. | CREATE TABLE customers (
customer_id number,
customer_first_name text,
customer_middle_initial text,
customer_last_name text,
gender text,
email_address text,
login_name text,
login_password text,
phone_number text,
town_city text,
state_county_province text,
country text... | SELECT T1.invoice_date, T1.order_id, T2.order_details FROM invoices AS T1 JOIN orders AS T2 ON T1.order_id = T2.order_id | 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: Show invoice dates and order id and details for all invoices. ### Input: CREATE TABLE customers (
customer_id number,
... |
Name the european tier for rick springfield | CREATE TABLE table_22457674_1 (
european_tier VARCHAR,
artist VARCHAR
) | SELECT european_tier FROM table_22457674_1 WHERE artist = "Rick Springfield" | 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 european tier for rick springfield ### Input: CREATE TABLE table_22457674_1 (
european_tier VARCHAR,
artist... |
What was the drawn when the tries against was 89? | CREATE TABLE table_12792876_3 (
drawn VARCHAR,
tries_against VARCHAR
) | SELECT drawn FROM table_12792876_3 WHERE tries_against = "89" | 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 drawn when the tries against was 89? ### Input: CREATE TABLE table_12792876_3 (
drawn VARCHAR,
tries_ag... |
Which Away team has a Home team score of 7.8 (50)? | CREATE TABLE table_10797 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_10797 WHERE "Home team score" = '7.8 (50)' | 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 Away team has a Home team score of 7.8 (50)? ### Input: CREATE TABLE table_10797 (
"Home team" text,
"Home tea... |
What is the round of player brad winton with a draft before 1983 and a pick less than 132? | CREATE TABLE table_12265 (
"Draft" real,
"Round" text,
"Pick" real,
"Player" text,
"Nationality" text
) | SELECT "Round" FROM table_12265 WHERE "Draft" < '1983' AND "Pick" < '132' AND "Player" = 'brad winton' | 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 of player brad winton with a draft before 1983 and a pick less than 132? ### Input: CREATE TABLE table_122... |
What is the protein name when the e-value is 2.50e-41? | CREATE TABLE table_28970 (
"Species" text,
"Common Name" text,
"Protein Name" text,
"Accession Number" text,
"NT Length" text,
"NT Identity" text,
"AA Length" text,
"AA Identity" text,
"E-Value" text
) | SELECT "Protein Name" FROM table_28970 WHERE "E-Value" = '2.50E-41' | 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 protein name when the e-value is 2.50e-41? ### Input: CREATE TABLE table_28970 (
"Species" text,
"Common... |
please give me flight schedules from BALTIMORE to PHILADELPHIA | CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE date_day (
... | SELECT DISTINCT FLIGHT_0.arrival_time, FLIGHT_0.departure_time FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight AS FLIGHT_0, flight AS FLIGHT_1, flight_leg WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND C... | 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: please give me flight schedules from BALTIMORE to PHILADELPHIA ### Input: CREATE TABLE flight_stop (
flight_id int,
... |
i would like to fly from BOSTON to SAN FRANCISCO | CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_... | 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRA... | atis | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: i would like to fly from BOSTON to SAN FRANCISCO ### Input: CREATE TABLE airport_service (
city_code varchar,
airpor... |
Name the maximum mum l is less than 6.0 | CREATE TABLE table_1346 (
"Num" real,
"Team" text,
"W" real,
"L" real,
"PCT" text,
"PF" real,
"PA" real,
"Last appearance" real,
"Last championship" real,
"HOME games" real,
"Home wins" real,
"Home losses" real,
"Home Win Pct." text,
"ROAD games" real,
"Road w... | SELECT MAX("Num") FROM table_1346 WHERE "L" < '6.0' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the maximum mum l is less than 6.0 ### Input: CREATE TABLE table_1346 (
"Num" real,
"Team" text,
"W" real,
... |
How many Points a February smaller than 1 have? | CREATE TABLE table_name_5 (
points INTEGER,
february INTEGER
) | SELECT MIN(points) FROM table_name_5 WHERE february < 1 | 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 Points a February smaller than 1 have? ### Input: CREATE TABLE table_name_5 (
points INTEGER,
february INTE... |
When did chatham complete the Hmsmedusa? | CREATE TABLE table_name_91 (
completed VARCHAR,
builder VARCHAR,
name VARCHAR
) | SELECT completed FROM table_name_91 WHERE builder = "chatham" AND name = "hmsmedusa" | 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: When did chatham complete the Hmsmedusa? ### Input: CREATE TABLE table_name_91 (
completed VARCHAR,
builder VARCHAR,... |
What is the nationality of the player whose college/junior/club team (league) is Seattle Thunderbirds (WHL)? | CREATE TABLE table_14209245_9 (
nationality VARCHAR,
college_junior_club_team__league_ VARCHAR
) | SELECT nationality FROM table_14209245_9 WHERE college_junior_club_team__league_ = "Seattle Thunderbirds (WHL)" | 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 nationality of the player whose college/junior/club team (league) is Seattle Thunderbirds (WHL)? ### Input: CREA... |
What is the type of video game Call of Destiny. | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE plays_games (
stuid number,
gameid number,
hours_played number
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
... | SELECT gtype FROM video_games WHERE gname = "Call of Destiny" | spider | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the type of video game Call of Destiny. ### Input: CREATE TABLE student (
stuid number,
lname text,
fnam... |
Count different addresses of each school. | CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension text
)
CREATE TABLE class (
class_code text,
crs_code text,
class_section text,
class_time text,
class_room text,
prof_num number
)
CREATE TABLE... | SELECT COUNT(DISTINCT dept_address), school_code FROM department GROUP BY school_code | 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: Count different addresses of each school. ### Input: CREATE TABLE department (
dept_code text,
dept_name text,
s... |
tell me the number of patients diagnosed with polymyalgia rheumatica who are less than 81 years. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "81" AND diagnoses.short_title = "Polymyalgia rheumatica" | 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: tell me the number of patients diagnosed with polymyalgia rheumatica who are less than 81 years. ### Input: CREATE TABLE lab... |
How many figures for 08 A points for the team with 1.1863 average? | CREATE TABLE table_25887826_17 (
avg VARCHAR
) | SELECT COUNT(08 AS _a_pts) FROM table_25887826_17 WHERE avg = "1.1863" | 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 figures for 08 A points for the team with 1.1863 average? ### Input: CREATE TABLE table_25887826_17 (
avg VARCH... |
Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6 4, 6 2? | CREATE TABLE table_name_95 (
tournament VARCHAR,
score VARCHAR,
outcome VARCHAR,
surface VARCHAR
) | SELECT tournament FROM table_name_95 WHERE outcome = "runner-up" AND surface = "hard" AND score = "6–4, 6–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: Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6 4, 6 2? ### Input: CREATE TABLE table_name... |
For those records from the products and each product's manufacturer, find name and the sum of code , and group by attribute name, and visualize them by a bar chart, and sort by the Y-axis from high to low. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code 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 records from the products and each product's manufacturer, find name and the sum of code , and group by attribute ... |
Give the number of patients who were admitted in the emergency room that had a procedure icd9 code of 9672. | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.icd9_code = "9672" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Give the number of patients who were admitted in the emergency room that had a procedure icd9 code of 9672. ### Input: CREAT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.