instruction stringlengths 11 303 | input stringlengths 38 5.51k | output stringlengths 25 1.92k | text stringlengths 321 6.52k |
|---|---|---|---|
What is Ivan Ciernik's average points with less than 11 goals? | CREATE TABLE table_name_29 (
points INTEGER,
player VARCHAR,
goals VARCHAR
) | SELECT AVG(points) FROM table_name_29 WHERE player = "ivan ciernik" AND goals < 11 | Below are sql tables 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 Ivan Ciernik's average points with less than 11 goals? ### Input: CREATE TABLE table_name_29 (
points INTEGER,
... |
Find the name and credit score of the customers who have some loans. | CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
)
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
)
CREATE TABLE customer (
cust_ID varchar(3),... | SELECT cust_name, credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_ID = T2.cust_ID | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Find the name and credit score of the customers who have some loans. ### Input: CREATE TABLE loan (
loan_ID varchar(3),
... |
Who had the high points dated march 13? | CREATE TABLE table_13812785_8 (
high_points VARCHAR,
date VARCHAR
) | SELECT high_points FROM table_13812785_8 WHERE date = "March 13" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who had the high points dated march 13? ### Input: CREATE TABLE table_13812785_8 (
high_points VARCHAR,
date VARCHAR... |
when was the last respiration of patient 004-64091 measured during yesterday? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
... | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-64091')) AND NOT vitalperiodic.respiration IS N... | Below are sql tables 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 last respiration of patient 004-64091 measured during yesterday? ### Input: CREATE TABLE lab (
labid number... |
count the number of patients whose diagnoses icd9 code is v667 and lab test fluid is cerebrospinal fluid (csf)? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "V667" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: count the number of patients whose diagnoses icd9 code is v667 and lab test fluid is cerebrospinal fluid (csf)? ### Input: C... |
did patient 30228 get his diagnosis this year? | CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE labevents (
row... | SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30228) AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | Below are sql tables 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 patient 30228 get his diagnosis this year? ### Input: CREATE TABLE inputevents_cv (
row_id number,
subject_id nu... |
show nonstop flights from NEW YORK to MIAMI on a TUESDAY which cost less than 466 dollars one way | CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE fare (
fare... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE (((DAYS_0.day_name = 'TUESDAY' AND DAYS_1.day_name = 'TUESDAY' AND fare_basis.basis_days = DAYS_1.... | Below are sql tables 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 nonstop flights from NEW YORK to MIAMI on a TUESDAY which cost less than 466 dollars one way ### Input: CREATE TABLE du... |
could you please show me all flights from MILWAUKEE to MONTREAL | CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE days (
days_code varchar,
... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'MILWAUKEE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MONT... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: could you please show me all flights from MILWAUKEE to MONTREAL ### Input: CREATE TABLE date_day (
month_number int,
... |
What is the most recent year founded that has a nickname of bruins? | CREATE TABLE table_46241 (
"School" text,
"Location" text,
"Founded" real,
"Enrollment" real,
"Nickname" text
) | SELECT MAX("Founded") FROM table_46241 WHERE "Nickname" = 'bruins' | Below are sql tables 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 most recent year founded that has a nickname of bruins? ### Input: CREATE TABLE table_46241 (
"School" text,... |
In next term is 511 offered ? | CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varch... | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 511 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | Below are sql tables 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 next term is 511 offered ? ### Input: CREATE TABLE student (
student_id int,
lastname varchar,
firstname varc... |
what were the four most frequent microbiology tests ordered for a patient within 2 months after receiving paracentesis in this year? | 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 t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'paracentesis' AND DATETIME(treatment.treatme... | Below are sql tables 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 frequent microbiology tests ordered for a patient within 2 months after receiving paracentesis in th... |
On what date did the Brisbane Lions (1) win? | CREATE TABLE table_name_44 (
cup_finaldate VARCHAR,
winningteam VARCHAR
) | SELECT cup_finaldate FROM table_name_44 WHERE winningteam = "brisbane lions (1)" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: On what date did the Brisbane Lions (1) win? ### Input: CREATE TABLE table_name_44 (
cup_finaldate VARCHAR,
winningt... |
Name the opponent for record 10-13-3 | CREATE TABLE table_74125 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Opponent" FROM table_74125 WHERE "Record" = '10-13-3' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the opponent for record 10-13-3 ### Input: CREATE TABLE table_74125 (
"Game" real,
"December" real,
"Oppone... |
Give me a histogram for how old is each gender, on average?, and sort X in descending order please. | CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
) | SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY gender DESC | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Give me a histogram for how old is each gender, on average?, and sort X in descending order please. ### Input: CREATE TABLE ... |
Search Malaysia Users by Reputation. | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
Rejecti... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE (LOWER(Location) LIKE '%malaysia%') ORDER BY Reputation DESC | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Search Malaysia Users by Reputation. ### Input: CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHi... |
What was the result when the San Francisco 49ers were the opponents? | CREATE TABLE table_47753 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Result" FROM table_47753 WHERE "Opponent" = 'san francisco 49ers' | Below are sql tables 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 when the San Francisco 49ers were the opponents? ### Input: CREATE TABLE table_47753 (
"Week" real,
... |
calculate the number of patients who received a lab test of magnesium, urine in this year. | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'magnesium, urine') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(),... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: calculate the number of patients who received a lab test of magnesium, urine in this year. ### Input: CREATE TABLE d_icd_pro... |
Who was the opponent when Raphael was 4-0? | CREATE TABLE table_name_11 (
opponent VARCHAR,
record VARCHAR
) | SELECT opponent FROM table_name_11 WHERE record = "4-0" | Below are sql tables 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 opponent when Raphael was 4-0? ### Input: CREATE TABLE table_name_11 (
opponent VARCHAR,
record VARCHAR
... |
Bar graph to show the number of investor from different investor, and display Y-axis in descending order please. | CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
) | SELECT Investor, COUNT(Investor) FROM entrepreneur GROUP BY Investor ORDER BY COUNT(Investor) DESC | Below are sql tables 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 graph to show the number of investor from different investor, and display Y-axis in descending order please. ### Input: ... |
Top users from Uruguay by rep. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId nu... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%uruguay%' ORDER BY Reputation DESC | Below are sql tables 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 from Uruguay by rep. ### Input: CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId numbe... |
give me the number of patients whose insurance is government and diagnoses icd9 code is 20280? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Government" AND diagnoses.icd9_code = "20280" | Below are sql tables 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 insurance is government and diagnoses icd9 code is 20280? ### Input: CREATE TABLE proce... |
Which Away team has a Home score of 9.15 (69)? | CREATE TABLE table_32362 (
"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_32362 WHERE "Home team score" = '9.15 (69)' | Below are sql tables 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 score of 9.15 (69)? ### Input: CREATE TABLE table_32362 (
"Home team" text,
"Home team sc... |
Where was game 41 held, and how many people attended? | CREATE TABLE table_22883210_7 (
location_attendance VARCHAR,
game VARCHAR
) | SELECT location_attendance FROM table_22883210_7 WHERE game = 41 | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Where was game 41 held, and how many people attended? ### Input: CREATE TABLE table_22883210_7 (
location_attendance VAR... |
Top SO Users from New Zealand. | 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 ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(AboutMe) LIKE '%data engineer%' AND Reputation >= 1000 ORDER BY Reputation DESC | Below are sql tables 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 SO Users from New Zealand. ### Input: CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
U... |
how many times was patient 9964 in 2105 in the hospital? | CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
... | SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 9964 AND STRFTIME('%y', admissions.admittime) = '2105' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many times was patient 9964 in 2105 in the hospital? ### Input: CREATE TABLE prescriptions (
row_id number,
subj... |
Can you tell me the lowest Crowd that has the Away team of melbourne tigers? | CREATE TABLE table_43490 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
) | SELECT MIN("Crowd") FROM table_43490 WHERE "Away team" = 'melbourne tigers' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Can you tell me the lowest Crowd that has the Away team of melbourne tigers? ### Input: CREATE TABLE table_43490 (
"Date... |
A bar chart showing the number of publication dates of books, sort Y from high to low order. | CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
)
CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
) | SELECT Publication_Date, COUNT(Publication_Date) FROM publication GROUP BY Publication_Date ORDER BY COUNT(Publication_Date) DESC | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: A bar chart showing the number of publication dates of books, sort Y from high to low order. ### Input: CREATE TABLE publica... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the average of price , and group by attribute name, display total number in descending order. | 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 T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Price DESC | Below are sql tables 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, return a bar chart about the distribution of name and t... |
what are the four most commonly given laboratory tests for patients who had previously received insert intercostal cath during the same month, since 2 years ago? | CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE procedures_icd (
r... | 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, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what are the four most commonly given laboratory tests for patients who had previously received insert intercostal cath duri... |
Give me the comparison about the sum of ID over the meter_200 , and group by attribute meter_200 by a bar chart, order Y in descending order please. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text... | SELECT meter_200, SUM(ID) FROM swimmer GROUP BY meter_200 ORDER BY SUM(ID) DESC | Below are sql tables 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 comparison about the sum of ID over the meter_200 , and group by attribute meter_200 by a bar chart, order Y in ... |
What team has Windy Hill as their home venue | CREATE TABLE table_name_47 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_47 WHERE venue = "windy hill" | Below are sql tables 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 team has Windy Hill as their home venue ### Input: CREATE TABLE table_name_47 (
home_team VARCHAR,
venue VARCHA... |
Name the partner for mark woodforde martina navratilova | CREATE TABLE table_20110 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Partner" FROM table_20110 WHERE "Opponents" = 'Mark Woodforde Martina Navratilova' | Below are sql tables 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 partner for mark woodforde martina navratilova ### Input: CREATE TABLE table_20110 (
"Outcome" text,
"Year"... |
Find the total amount of loans offered by each bank branch, order from low to high by the sum amount please. | CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
)
CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
)
CREATE TABLE customer (
cust_ID varchar(3),... | SELECT bname, SUM(amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_ID = T2.branch_ID GROUP BY T1.bname ORDER BY SUM(amount) | Below are sql tables 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 total amount of loans offered by each bank branch, order from low to high by the sum amount please. ### Input: CREA... |
Draw a bar chart for what are the different ship flags, and how many ships have each?, show names in ascending order please. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) | SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY Flag | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Draw a bar chart for what are the different ship flags, and how many ships have each?, show names in ascending order please.... |
What are the statuses and average populations of each city Plot them as bar chart, and list by the y-axis in asc. | CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pigs real,
Sheep_and_Goats real
)
CREATE TABLE competition_record (
Competition_ID int,
Farm_ID int,
Rank int
)
CREATE TABLE city ... | SELECT Status, AVG(Population) FROM city GROUP BY Status ORDER BY AVG(Population) | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the statuses and average populations of each city Plot them as bar chart, and list by the y-axis in asc. ### Input:... |
what is the number of patients whose gender is m and lab test name is nonsquamous epithelial cell? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.label = "NonSquamous Epithelial Cell" | Below are sql tables 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 gender is m and lab test name is nonsquamous epithelial cell? ### Input: CREATE TABLE p... |
when was patient 016-38131 first given a sodium test in 12/2105? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
... | SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131')) AND lab.labname = 'sodium' AND STRFTIME('%y-%m', lab.labresulttime) = ... | Below are sql tables 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 patient 016-38131 first given a sodium test in 12/2105? ### Input: CREATE TABLE lab (
labid number,
patient... |
Who was the opponent when the attendance was exactly 16642? | CREATE TABLE table_20745685_1 (
opponent VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_20745685_1 WHERE attendance = 16642 | Below are sql tables 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 opponent when the attendance was exactly 16642? ### Input: CREATE TABLE table_20745685_1 (
opponent VARCHAR,... |
i need information on flights from KANSAS CITY MISSOURI to SALT LAKE CITY UTAH i am interested in only those flights on DL | CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE month (
month_number int,
... | 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, state AS STATE_0, state AS STATE_1 WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'KANSAS CITY' AND CITY_1.city_code = AIRPORT_SERVICE_1... | Below are sql tables 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 need information on flights from KANSAS CITY MISSOURI to SALT LAKE CITY UTAH i am interested in only those flights on DL #... |
find the number of patients who are protestant quaker by religion and the lab test name is ferritin. | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "PROTESTANT QUAKER" AND lab.label = "Ferritin" | Below are sql tables 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 patients who are protestant quaker by religion and the lab test name is ferritin. ### Input: CREATE TABLE... |
Return a bar chart on what are the different card types, and how many transactions have been made with each?, sort Y-axis in asc order please. | CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(... | SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code ORDER BY COUNT(*) | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Return a bar chart on what are the different card types, and how many transactions have been made with each?, sort Y-axis in... |
What are the names of parties with at least 2 events? | CREATE TABLE party (
party_name VARCHAR,
party_id VARCHAR
)
CREATE TABLE party_events (
party_id VARCHAR
) | SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING COUNT(*) >= 2 | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the names of parties with at least 2 events? ### Input: CREATE TABLE party (
party_name VARCHAR,
party_id V... |
What is the lowest attendance for week 2? | CREATE TABLE table_78263 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT MIN("Attendance") FROM table_78263 WHERE "Week" = '2' | Below are sql tables 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 attendance for week 2? ### Input: CREATE TABLE table_78263 (
"Week" real,
"Date" text,
"Oppon... |
what's patient 76327's average value of osmolality, measured in 12/this year? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid nu... | SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 76327) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'osmolality, measured') AND DATETIME(labevents.charttime, 'start of year') =... | Below are sql tables 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 patient 76327's average value of osmolality, measured in 12/this year? ### Input: CREATE TABLE d_labitems (
row_i... |
count the number of times that patient 006-66039 had had an po po intake until 08/11/2103. | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
... | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-66039')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.ce... | Below are sql tables 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 times that patient 006-66039 had had an po po intake until 08/11/2103. ### Input: CREATE TABLE lab (
... |
What's the 2008 of the US Open when 2010 was 2R and 2011 was 1R? | CREATE TABLE table_65896 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2008" FROM table_65896 WHERE "2011" = '1r' AND "2010" = '2r' AND "Tournament" = 'us open' | Below are sql tables 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 2008 of the US Open when 2010 was 2R and 2011 was 1R? ### Input: CREATE TABLE table_65896 (
"Tournament" text... |
What are the different role codes for users, and how many users have each. | CREATE TABLE Document_Sections_Images (
section_id INTEGER,
image_id INTEGER
)
CREATE TABLE Documents (
document_code VARCHAR(15),
document_structure_code VARCHAR(15),
document_type_code VARCHAR(15),
access_count INTEGER,
document_name VARCHAR(80)
)
CREATE TABLE Document_Functional_Areas (... | SELECT role_code, COUNT(*) FROM Users GROUP BY role_code | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the different role codes for users, and how many users have each. ### Input: CREATE TABLE Document_Sections_Images ... |
For those records from the products and each product's manufacturer, find founder and the sum of price , and group by attribute founder, and visualize them by a bar chart. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Founder, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | Below are sql tables 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 founder and the sum of price , and group by attrib... |
count the number of drugs that have been prescribed since 03/2105 to patient 002-27661. | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
... | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-27661')) AND STRFTIME('%y-%m', medication.drugstarttime) >= '2105-03' | Below are sql tables 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 drugs that have been prescribed since 03/2105 to patient 002-27661. ### Input: CREATE TABLE diagnosis (
... |
Which Draws has Goals against smaller than 47, and a Position smaller than 13, and Goals for of 52? | CREATE TABLE table_12774 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MIN("Draws") FROM table_12774 WHERE "Goals against" < '47' AND "Position" < '13' AND "Goals for" = '52' | Below are sql tables 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 Draws has Goals against smaller than 47, and a Position smaller than 13, and Goals for of 52? ### Input: CREATE TABLE ... |
Display a bar chart for how many rooms in each building have a capacity of over 50?, could you list from low to high by the X? | CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
se... | SELECT building, COUNT(*) FROM classroom WHERE capacity > 50 GROUP BY building ORDER BY building | Below are sql tables 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 a bar chart for how many rooms in each building have a capacity of over 50?, could you list from low to high by the ... |
What season number in the season has production code 210? | CREATE TABLE table_28697 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) | SELECT MIN("No. in season") FROM table_28697 WHERE "Production code" = '210' | Below are sql tables 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 season number in the season has production code 210? ### Input: CREATE TABLE table_28697 (
"No. in series" real,
... |
Which Other has a Green of 0, and an Independent of 1, and a Labour smaller than 45, and a Control of labour lose to no overall control? | CREATE TABLE table_name_90 (
other VARCHAR,
control VARCHAR,
labour VARCHAR,
green VARCHAR,
independent VARCHAR
) | SELECT other FROM table_name_90 WHERE green = 0 AND independent = 1 AND labour < 45 AND control = "labour lose to no overall control" | Below are sql tables 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 Other has a Green of 0, and an Independent of 1, and a Labour smaller than 45, and a Control of labour lose to no over... |
In 2015 , can I take PHYSICS 452 in the Spring ? | CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jo... | SELECT COUNT(*) > 0 FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND NOT COURSEalias0.course_id IN... | Below are sql tables 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 2015 , can I take PHYSICS 452 in the Spring ? ### Input: CREATE TABLE requirement (
requirement_id int,
requireme... |
In the Fall of 2017 how many professors will teach MICRBIOL 995 ? | CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE offering_instructor (
offering_ins... | SELECT COUNT(DISTINCT instructor.instructor_id) FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'MICRBIOL' AND course.number = 995 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.o... | Below are sql tables 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 Fall of 2017 how many professors will teach MICRBIOL 995 ? ### Input: CREATE TABLE program_requirement (
program_... |
Most popular Tags May 2020. | CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswe... | SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS MayRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInMay, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AN... | Below are sql tables 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 popular Tags May 2020. ### Input: CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
... |
what is the number of black/haitian ethnic background patients who take drug via po/ng route? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND prescriptions.route = "PO/NG" | Below are sql tables 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 black/haitian ethnic background patients who take drug via po/ng route? ### Input: CREATE TABLE demogr... |
Name the lowest frequency for brand of radio manantial | CREATE TABLE table_68583 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"Format" text,
"City of License" text,
"Website" text,
"Webcast" text
) | SELECT MIN("Frequency") FROM table_68583 WHERE "Brand" = 'radio manantial' | Below are sql tables 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 lowest frequency for brand of radio manantial ### Input: CREATE TABLE table_68583 (
"Frequency" real,
"Call... |
What team has a score of w 110 87 (ot)? | CREATE TABLE table_27734577_8 (
team VARCHAR,
score VARCHAR
) | SELECT team FROM table_27734577_8 WHERE score = "W 110–87 (OT)" | Below are sql tables 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 team has a score of w 110 87 (ot)? ### Input: CREATE TABLE table_27734577_8 (
team VARCHAR,
score VARCHAR
) ###... |
what is the name of the title after number 9 ? | CREATE TABLE table_204_238 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"performer (s)" text,
"time" text
) | SELECT "title" FROM table_204_238 WHERE "#" = 9 + 1 | Below are sql tables 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 title after number 9 ? ### Input: CREATE TABLE table_204_238 (
id number,
"#" number,
"t... |
how many female patients are diagnosed with icd9 code 2948? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.icd9_code = "2948" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many female patients are diagnosed with icd9 code 2948? ### Input: CREATE TABLE demographic (
subject_id text,
h... |
What is the score for set 2 when the time is 18:00 and the score of set 1 is 18 25? | CREATE TABLE table_49825 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
) | SELECT "Set 2" FROM table_49825 WHERE "Time" = '18:00' AND "Set 1" = '18–25' | Below are sql tables 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 for set 2 when the time is 18:00 and the score of set 1 is 18 25? ### Input: CREATE TABLE table_49825 (
... |
Top 300 SO Users from Pune. | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE R... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%pune%' OR UPPER(Location) LIKE '%PUNE%' OR Location LIKE '%Pune%' AND Reputation >= 1000 ORDER BY Reputation DESC LIMIT 300 | Below are sql tables 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 300 SO Users from Pune. ### Input: CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PendingFlags (
... |
Show me population by county name in a histogram, sort by the y-axis in desc please. | CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
A... | SELECT County_name, Population FROM county ORDER BY Population DESC | Below are sql tables 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 population by county name in a histogram, sort by the y-axis in desc please. ### Input: CREATE TABLE election (
... |
What is the number of patients whose diagnosis icd9 code is 2720 and have lab test category hematology? | CREATE TABLE diagnoses (
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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "2720" AND lab."CATEGORY" = "Hematology" | Below are sql tables 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 diagnosis icd9 code is 2720 and have lab test category hematology? ### Input: CREATE TA... |
What is the code name when the Southbridge shows as amd-766, via-vt82c686b? | CREATE TABLE table_80013 (
"Model" text,
"Code name" text,
"CPU support" text,
"FSB / HT (MHz)" text,
"Southbridge" text
) | SELECT "Code name" FROM table_80013 WHERE "Southbridge" = 'amd-766, via-vt82c686b' | Below are sql tables 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 code name when the Southbridge shows as amd-766, via-vt82c686b? ### Input: CREATE TABLE table_80013 (
"Model... |
Who has a rank below 125 and time of 00: 56.30? | CREATE TABLE table_4613 (
"Rank" real,
"Heat (Lane)" text,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Name" FROM table_4613 WHERE "Rank" < '125' AND "Time" = '00: 56.30' | Below are sql tables 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 has a rank below 125 and time of 00: 56.30? ### Input: CREATE TABLE table_4613 (
"Rank" real,
"Heat (Lane)" text... |
how many hours have gone since patient 021-80293 was admitted to the hospital for? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugsto... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '021-80293' AND patient.hospitaldischargetime IS NULL | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many hours have gone since patient 021-80293 was admitted to the hospital for? ### Input: CREATE TABLE microlab (
mi... |
TOP golang users in Denver. | 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... | WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id =... | Below are sql tables 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 golang users in Denver. ### Input: CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDa... |
Who was their Opponent on April 26? | CREATE TABLE table_14526 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Opponent" FROM table_14526 WHERE "Date" = 'april 26' | Below are sql tables 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 their Opponent on April 26? ### Input: CREATE TABLE table_14526 (
"Date" text,
"Opponent" text,
"Score" ... |
tell me what patient 25733's total output is on the current icu visit? | CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE procedures_icd (
... | SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25733) AND icustays.outtime IS NULL) | Below are sql tables 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 what patient 25733's total output is on the current icu visit? ### Input: CREATE TABLE d_icd_diagnoses (
row_id ... |
If the date is 7-21-2006, who was the opponent? | CREATE TABLE table_25957 (
"Edition" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"Result" text,
"Outcome" text
) | SELECT "Opponent" FROM table_25957 WHERE "Date" = '7-21-2006' | Below are sql tables 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 date is 7-21-2006, who was the opponent? ### Input: CREATE TABLE table_25957 (
"Edition" text,
"Round" text,
... |
since 2105, what are the four common diagnoses for patients with age 60 or above? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergy... | SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age >= 60) AND STRFTIME('%y', diagnosis.diagnosistime) >= '2105' GROUP BY diagnosis.diagnosisnam... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: since 2105, what are the four common diagnoses for patients with age 60 or above? ### Input: CREATE TABLE vitalperiodic (
... |
What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9? | CREATE TABLE table_45937 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Total") FROM table_45937 WHERE "Nation" = 'soviet union' AND "Gold" > '9' | Below are sql tables 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 Total, when Nation is Soviet Union, and when Gold is greater than 9? ### Input: CREATE TABLE table_45937... |
Show the county name and population of all counties with a bar chart, and list by the Y in descending. | CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
... | SELECT County_name, Population FROM county ORDER BY Population DESC | Below are sql tables 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 county name and population of all counties with a bar chart, and list by the Y in descending. ### Input: CREATE TAB... |
What is the home team score with Away team Richmond? | CREATE TABLE table_name_20 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team AS score FROM table_name_20 WHERE away_team = "richmond" | Below are sql tables 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 home team score with Away team Richmond? ### Input: CREATE TABLE table_name_20 (
home_team VARCHAR,
away... |
What is the minimum number of members Europe had at the time Africa had 7375139? | CREATE TABLE table_1914090_2 (
europe INTEGER,
africa VARCHAR
) | SELECT MIN(europe) FROM table_1914090_2 WHERE africa = 7375139 | Below are sql tables 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 minimum number of members Europe had at the time Africa had 7375139? ### Input: CREATE TABLE table_1914090_2 (
... |
What song has a length of 3:05? | CREATE TABLE table_108 (
"Track #" real,
"Song" text,
"Singers" text,
"Picturization" text,
"Length" text,
"Lyricist" text
) | SELECT "Song" FROM table_108 WHERE "Length" = '3:05' | Below are sql tables 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 song has a length of 3:05? ### Input: CREATE TABLE table_108 (
"Track #" real,
"Song" text,
"Singers" text,... |
Name the b winning car for #88 team mitsubishi 88 mitsubishi starion | CREATE TABLE table_27965906_2 (
b_winning_car VARCHAR,
a_winning_car VARCHAR
) | SELECT b_winning_car FROM table_27965906_2 WHERE a_winning_car = "#88 Team Mitsubishi 88 Mitsubishi Starion" | Below are sql tables 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 b winning car for #88 team mitsubishi 88 mitsubishi starion ### Input: CREATE TABLE table_27965906_2 (
b_winnin... |
Who has a Rank larger than 3 with a speed of 119.838mph? | CREATE TABLE table_5891 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | SELECT "Rider" FROM table_5891 WHERE "Rank" > '3' AND "Speed" = '119.838mph' | Below are sql tables 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 has a Rank larger than 3 with a speed of 119.838mph? ### Input: CREATE TABLE table_5891 (
"Rank" real,
"Rider" t... |
what is the number of patients with diagnoses icd9 code 41031 who had ascitic lab fluid test? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "41031" AND lab.fluid = "Ascites" | Below are sql tables 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 with diagnoses icd9 code 41031 who had ascitic lab fluid test? ### Input: CREATE TABLE diagno... |
the first date is ? | CREATE TABLE table_204_539 (
id number,
"date" text,
"name" text,
"moving from" text,
"moving to" text,
"fee" text
) | SELECT "date" FROM table_204_539 ORDER BY "date" LIMIT 1 | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: the first date is ? ### Input: CREATE TABLE table_204_539 (
id number,
"date" text,
"name" text,
"moving fro... |
specify the procedural and diagnosis icd9 codes for patient id 16438 | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT diagnoses.short_title, procedures.short_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "16438" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: specify the procedural and diagnosis icd9 codes for patient id 16438 ### Input: CREATE TABLE procedures (
subject_id tex... |
how many hours are passed since the last time patient 60136 stayed in ward 14 in this hospital visit? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id numbe... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 60136 AND admissions.dischtime IS NULL)) AND transfers... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many hours are passed since the last time patient 60136 stayed in ward 14 in this hospital visit? ### Input: CREATE TABL... |
count the number of patients whose year of death is less than or equal to 2126? | 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 WHERE demographic.dod_year <= "2126.0" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: count the number of patients whose year of death is less than or equal to 2126? ### Input: CREATE TABLE demographic (
su... |
Name the surface on june 11, 1995 | CREATE TABLE table_52579 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Surface" FROM table_52579 WHERE "Date" = 'june 11, 1995' | Below are sql tables 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 surface on june 11, 1995 ### Input: CREATE TABLE table_52579 (
"Date" text,
"Tournament" text,
"Surface... |
list flights from SAN FRANCISCO to DENVER on friday | CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND date_day.day_number = 25 AND date_day.month_number = 6 AND da... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: list flights from SAN FRANCISCO to DENVER on friday ### Input: CREATE TABLE class_of_service (
booking_class varchar,
... |
Who is the opponent on September 9, 1979? | CREATE TABLE table_70613 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Opponent" FROM table_70613 WHERE "Date" = 'september 9, 1979' | Below are sql tables 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 opponent on September 9, 1979? ### Input: CREATE TABLE table_70613 (
"Week" real,
"Date" text,
"Oppon... |
What is the km2 area for the population of 311? | CREATE TABLE table_name_46 (
area__km_2__ INTEGER,
population VARCHAR
) | SELECT AVG(area__km_2__) FROM table_name_46 WHERE population = 311 | Below are sql tables 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 km2 area for the population of 311? ### Input: CREATE TABLE table_name_46 (
area__km_2__ INTEGER,
popula... |
What was the score of the game played on January 19? | CREATE TABLE table_1330 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_1330 WHERE "Date" = 'January 19' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the score of the game played on January 19? ### Input: CREATE TABLE table_1330 (
"Game" real,
"Date" text,
... |
what was the three most frequent specimen test performed until 2102? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number... | SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE STRFTIME('%y', microbiologyevents.charttime) <= '2102' GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 3 | Below are sql tables 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 three most frequent specimen test performed until 2102? ### Input: CREATE TABLE d_icd_procedures (
row_id n... |
What was the record on 12 march 2008? | CREATE TABLE table_name_63 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_63 WHERE date = "12 march 2008" | Below are sql tables 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 on 12 march 2008? ### Input: CREATE TABLE table_name_63 (
record VARCHAR,
date VARCHAR
) ### Res... |
Which player is 6-2? | CREATE TABLE table_name_9 (
player VARCHAR,
height VARCHAR
) | SELECT player FROM table_name_9 WHERE height = "6-2" | Below are sql tables 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 player is 6-2? ### Input: CREATE TABLE table_name_9 (
player VARCHAR,
height VARCHAR
) ### Response: SELECT pl... |
What county has an IHSAA Football Class of A, and a Mascot of royals? | CREATE TABLE table_name_36 (
county VARCHAR,
ihsaa_football_class VARCHAR,
mascot VARCHAR
) | SELECT county FROM table_name_36 WHERE ihsaa_football_class = "a" AND mascot = "royals" | Below are sql tables 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 county has an IHSAA Football Class of A, and a Mascot of royals? ### Input: CREATE TABLE table_name_36 (
county VAR... |
What is the highest amount of points? | CREATE TABLE table_74132 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
) | SELECT MAX("Points") FROM table_74132 | Below are sql tables 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 points? ### Input: CREATE TABLE table_74132 (
"Game" real,
"November" real,
"Oppon... |
What's the total with silver being less than 0, less than 1 gold, and 3 bronze? | CREATE TABLE table_63750 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Total") FROM table_63750 WHERE "Bronze" = '3' AND "Gold" < '1' AND "Silver" < '0' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What's the total with silver being less than 0, less than 1 gold, and 3 bronze? ### Input: CREATE TABLE table_63750 (
"R... |
count the number of patients who left the hospital against medical advice. | 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 WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" | Below are sql tables 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 left the hospital against medical advice. ### Input: CREATE TABLE demographic (
subject... |
What is Stadium, when Stadium Capacity is '10,000', and when Team is 'KF Drita'? | CREATE TABLE table_60891 (
"Team" text,
"Club home city" text,
"2006\u201307 Season" text,
"Stadium" text,
"Stadium capacity" text
) | SELECT "Stadium" FROM table_60891 WHERE "Stadium capacity" = '10,000' AND "Team" = 'kf drita' | Below are sql tables 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 Stadium, when Stadium Capacity is '10,000', and when Team is 'KF Drita'? ### Input: CREATE TABLE table_60891 (
"... |
Which team 2 has a 2nd leg of 0-2? | CREATE TABLE table_15428 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team 2" FROM table_15428 WHERE "2nd leg" = '0-2' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which team 2 has a 2nd leg of 0-2? ### Input: CREATE TABLE table_15428 (
"Team 1" text,
"Agg." text,
"Team 2" te... |
Who had a Run 1 smaller than 51.96, a Run 2 larger than 51.13, and a Run 3 of 52.53? | CREATE TABLE table_36314 (
"Athlete" text,
"Country" text,
"Run 1" real,
"Run 2" real,
"Run 3" real
) | SELECT "Athlete" FROM table_36314 WHERE "Run 1" < '51.96' AND "Run 2" > '51.13' AND "Run 3" = '52.53' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who had a Run 1 smaller than 51.96, a Run 2 larger than 51.13, and a Run 3 of 52.53? ### Input: CREATE TABLE table_36314 (
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.