instruction stringlengths 11 303 | input stringlengths 38 5.51k | output stringlengths 25 1.92k | text stringlengths 321 6.52k |
|---|---|---|---|
Top 20 Users from bangalore. | CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Tags (
Id number,
TagName text,
C... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%bengaluru%' OR LOWER(Location) LIKE '%bengalore%' ORDER BY Reputation DESC LIMIT 20 | Below are sql tables 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 20 Users from bangalore. ### Input: CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
Us... |
since 08/30/2100 when was the last urine, void: output time for patient 005-4471? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TA... | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4471')) AND intakeoutput.cellpath LIKE '%output%'... | Below are sql tables 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 08/30/2100 when was the last urine, void: output time for patient 005-4471? ### Input: CREATE TABLE intakeoutput (
... |
Find the names of the top 10 airlines that operate the most number of routes. | CREATE TABLE airlines (
name VARCHAR,
alid VARCHAR
)
CREATE TABLE routes (
alid VARCHAR
) | SELECT T1.name, T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY COUNT(*) DESC LIMIT 10 | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Find the names of the top 10 airlines that operate the most number of routes. ### Input: CREATE TABLE airlines (
name VA... |
what's the record on july 10? | CREATE TABLE table_80405 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Record" FROM table_80405 WHERE "Date" = 'july 10' | Below are sql tables 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 record on july 10? ### Input: CREATE TABLE table_80405 (
"Date" text,
"Opponent" text,
"Score" text,
... |
What is the lowest draws that have losses less than 0, an against greater than 1353, 2 as the wins, and ballarat as ballarat fl? | CREATE TABLE table_42495 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MIN("Draws") FROM table_42495 WHERE "Losses" > '0' AND "Against" > '1353' AND "Wins" = '2' AND "Ballarat FL" = 'ballarat' | Below are sql tables 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 draws that have losses less than 0, an against greater than 1353, 2 as the wins, and ballarat as ballarat... |
please list the WEDNESDAY AA flights from MILWAUKEE to SAN JOSE | CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flig... | 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, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN JOSE' AND days.day_name = 'WEDNESDAY' AND flight.flight_days = days.days_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: please list the WEDNESDAY AA flights from MILWAUKEE to SAN JOSE ### Input: CREATE TABLE city (
city_code varchar,
ci... |
Who were the Runner(s)-up with the winning score of 16 (66-68-70-68=272)? | CREATE TABLE table_42633 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Runner(s)-up" FROM table_42633 WHERE "Winning score" = '−16 (66-68-70-68=272)' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who were the Runner(s)-up with the winning score of 16 (66-68-70-68=272)? ### Input: CREATE TABLE table_42633 (
"Date" t... |
Show the different nationalities and the number of journalists of each nationality. Visualize by bar chart. | CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type ... | SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality | Below are sql tables 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 different nationalities and the number of journalists of each nationality. Visualize by bar chart. ### Input: CREAT... |
How many laps for a grid of over 18 and retired due to electrical failure? | CREATE TABLE table_name_31 (
laps INTEGER,
grid VARCHAR,
time_retired VARCHAR
) | SELECT SUM(laps) FROM table_name_31 WHERE grid > 18 AND time_retired = "electrical" | Below are sql tables 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 laps for a grid of over 18 and retired due to electrical failure? ### Input: CREATE TABLE table_name_31 (
laps ... |
For games on December 20, how many points did the scoring leaders get? | CREATE TABLE table_10812293_4 (
high_points VARCHAR,
date VARCHAR
) | SELECT high_points FROM table_10812293_4 WHERE date = "December 20" | Below are sql tables 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 games on December 20, how many points did the scoring leaders get? ### Input: CREATE TABLE table_10812293_4 (
high_p... |
What scores happened to be on February 9? | CREATE TABLE table_73552 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Score" FROM table_73552 WHERE "Date" = 'February 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 scores happened to be on February 9? ### Input: CREATE TABLE table_73552 (
"Game" real,
"Date" text,
"Oppon... |
How many people were in the crowd on the day the home team scored 7.10 (52)? | CREATE TABLE table_52965 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_52965 WHERE "Home team score" = '7.10 (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: How many people were in the crowd on the day the home team scored 7.10 (52)? ### Input: CREATE TABLE table_52965 (
"Home... |
Who was the home team on April 13, 2008 when Itabuna was the away team? | CREATE TABLE table_name_80 (
home_team VARCHAR,
date VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_80 WHERE date = "april 13, 2008" AND away_team = "itabuna" | Below are sql tables 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 home team on April 13, 2008 when Itabuna was the away team? ### Input: CREATE TABLE table_name_80 (
home_tea... |
provide the number of patients whose diagnoses icd9 code is 7454 and lab test category is chemistry? | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "7454" AND lab."CATEGORY" = "Chemistry" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: provide the number of patients whose diagnoses icd9 code is 7454 and lab test category is chemistry? ### Input: CREATE TABLE... |
What day is their record 13-15? | CREATE TABLE table_37347 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Date" FROM table_37347 WHERE "Record" = '13-15' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What day is their record 13-15? ### Input: CREATE TABLE table_37347 (
"Date" text,
"Opponent" text,
"Score" text... |
count the number of patients whose language is engl? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "ENGL" | Below are sql tables 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 language is engl? ### Input: CREATE TABLE lab (
subject_id text,
hadm_id text,
... |
What is the tie no when scunthorpe united was the away team? | CREATE TABLE table_name_6 (
tie_no VARCHAR,
away_team VARCHAR
) | SELECT tie_no FROM table_name_6 WHERE away_team = "scunthorpe united" | Below are sql tables 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 tie no when scunthorpe united was the away team? ### Input: CREATE TABLE table_name_6 (
tie_no VARCHAR,
... |
what is the smallest aircraft available to fly on from PITTSBURGH to BALTIMORE | CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... | SELECT DISTINCT aircraft.aircraft_code FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE aircraft.capacity = (SELECT MIN(AIRCRAFTalias1.capacity) FROM aircraft AS AIRCRAFTalias1, airport_service AS AIRPORT_SERVICEa... | Below are sql tables 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 smallest aircraft available to fly on from PITTSBURGH to BALTIMORE ### Input: CREATE TABLE aircraft (
aircra... |
what was the last value of patient 022-44805's bun laboratory test since 12/2101? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeri... | SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-44805')) AND lab.labname = 'bun' AND STRFTIME('%y-%m', lab.labresulttime) >= '2101-... | Below are sql tables 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 last value of patient 022-44805's bun laboratory test since 12/2101? ### Input: CREATE TABLE cost (
costid ... |
Who is the home team at the Punt Road Oval? | CREATE TABLE table_name_99 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_99 WHERE venue = "punt road oval" | Below are sql tables 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 home team at the Punt Road Oval? ### Input: CREATE TABLE table_name_99 (
home_team VARCHAR,
venue VARCHAR... |
tell me the name of the specimen test that patient 73362 had first received since 124 months ago? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE cost (
row_id number... | SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 73362) AND DATETIME(microbiologyevents.charttime) >= DATETIME(CURRENT_TIME(), '-124 month') ORDER BY microbiologyevents.charttime 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: tell me the name of the specimen test that patient 73362 had first received since 124 months ago? ### Input: CREATE TABLE la... |
provide the number of patients whose year of birth is less than 2200 and drug name is aluminum hydroxide suspension? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2200" AND prescriptions.drug = "Aluminum Hydroxide Suspension" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: provide the number of patients whose year of birth is less than 2200 and drug name is aluminum hydroxide suspension? ### Inp... |
What's the loss for September 16? | CREATE TABLE table_79725 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Loss" FROM table_79725 WHERE "Date" = 'september 16' | Below are sql tables 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 loss for September 16? ### Input: CREATE TABLE table_79725 (
"Date" text,
"Opponent" text,
"Score" te... |
Which Home Team is on june 12? | CREATE TABLE table_58700 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Home Team" FROM table_58700 WHERE "Date" = 'june 12' | Below are sql tables 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 Home Team is on june 12? ### Input: CREATE TABLE table_58700 (
"Game" text,
"Date" text,
"Home Team" text,... |
Give me the comparison about Team_ID over the All_Road by a bar chart, and list by the Y-axis from high to low. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Road, Team_ID FROM basketball_match ORDER BY Team_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 Team_ID over the All_Road by a bar chart, and list by the Y-axis from high to low. ### Input: C... |
List the plats that attended Wilfrid Laurier University. | CREATE TABLE table_18042409_1 (
player VARCHAR,
alma_mater VARCHAR
) | SELECT player FROM table_18042409_1 WHERE alma_mater = "Wilfrid Laurier University" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: List the plats that attended Wilfrid Laurier University. ### Input: CREATE TABLE table_18042409_1 (
player VARCHAR,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a scatter chart about the correlation between commission_pct and department_id . | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(2... | SELECT COMMISSION_PCT, DEPARTMENT_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not ... |
Will the course BIOMEDE 481 be offered next semester ? | CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE comment_instructor (
instructor_id int... | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'BIOMEDE' AND course.number = 481 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: Will the course BIOMEDE 481 be offered next semester ? ### Input: CREATE TABLE course_prerequisite (
pre_course_id int,
... |
What was the percentage of votes for coakley when kennedy won 1.6% | CREATE TABLE table_24115349_4 (
coakley__percentage VARCHAR,
kennedy__percentage VARCHAR
) | SELECT coakley__percentage FROM table_24115349_4 WHERE kennedy__percentage = "1.6%" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the percentage of votes for coakley when kennedy won 1.6% ### Input: CREATE TABLE table_24115349_4 (
coakley__p... |
what is the daily maximum of the weight of patient 012-35670 until 2 years ago? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
... | SELECT MAX(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-35670') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY STRFTIME('... | Below are sql tables 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 daily maximum of the weight of patient 012-35670 until 2 years ago? ### Input: CREATE TABLE lab (
labid numb... |
What season was there a 2nd place finish? | CREATE TABLE table_58428 (
"Season" real,
"Level" text,
"Division" text,
"Administration" text,
"Position" text
) | SELECT "Season" FROM table_58428 WHERE "Position" = '2nd' | Below are sql tables 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 was there a 2nd place finish? ### Input: CREATE TABLE table_58428 (
"Season" real,
"Level" text,
"Di... |
what is diagnoses short title of subject id 9258? | 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 diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "9258" | Below are sql tables 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 diagnoses short title of subject id 9258? ### Input: CREATE TABLE demographic (
subject_id text,
hadm_id tex... |
who directed the episode that have 14.59 million viewers | CREATE TABLE table_19417244_2 (
directed_by VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT directed_by FROM table_19417244_2 WHERE us_viewers__millions_ = "14.59" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: who directed the episode that have 14.59 million viewers ### Input: CREATE TABLE table_19417244_2 (
directed_by VARCHAR,... |
What is the highest track for the song Rip it Up? | CREATE TABLE table_name_87 (
track INTEGER,
song_title VARCHAR
) | SELECT MAX(track) FROM table_name_87 WHERE song_title = "rip it up" | Below are sql tables 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 track for the song Rip it Up? ### Input: CREATE TABLE table_name_87 (
track INTEGER,
song_title ... |
which patients have lab test item id 50915? | 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 lab.itemid = "50915" | Below are sql tables 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 patients have lab test item id 50915? ### Input: CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
... |
What two players had the highest rebounds for the October 14 game? | CREATE TABLE table_27733258_2 (
high_rebounds VARCHAR,
date VARCHAR
) | SELECT high_rebounds FROM table_27733258_2 WHERE date = "October 14" | Below are sql tables 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 two players had the highest rebounds for the October 14 game? ### Input: CREATE TABLE table_27733258_2 (
high_rebou... |
what was the total amount of po oral intake that patient 029-27704 had on 05/27/2105? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-27704')) AND intakeoutput.celllabel = 'po or... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what was the total amount of po oral intake that patient 029-27704 had on 05/27/2105? ### Input: CREATE TABLE allergy (
... |
show me papers by stephen boyd . | CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TAB... | SELECT DISTINCT writes.paperid FROM author, writes WHERE author.authorname = 'stephen boyd' AND writes.authorid = author.authorid | Below are sql tables 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 papers by stephen boyd . ### Input: CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE f... |
For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade. | CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
) | SELECT grade, COUNT(DISTINCT classroom), COUNT(*) FROM list GROUP BY grade | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrol... |
Which Venue has a Home team score of 17.16 (118)? | CREATE TABLE table_56137 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_56137 WHERE "Home team score" = '17.16 (118)' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Venue has a Home team score of 17.16 (118)? ### Input: CREATE TABLE table_56137 (
"Home team" text,
"Home team... |
What are the average ages for male and female students Plot them as bar chart, and list Y in asc order. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGE... | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY AVG(Age) | Below are sql tables 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 average ages for male and female students Plot them as bar chart, and list Y in asc order. ### Input: CREATE TA... |
on 08/21/this year, when was the first time that patient 19144 had the minimum arterial bp [diastolic]? | CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19144)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial... | Below are sql tables 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 08/21/this year, when was the first time that patient 19144 had the minimum arterial bp [diastolic]? ### Input: CREATE TA... |
What are the special topics classes options for next Winter ? | 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 DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE (course.number = 398 OR course.number = 498 OR course.number = 598) AND course.department = 'E... | Below are sql tables 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 special topics classes options for next Winter ? ### Input: CREATE TABLE student (
student_id int,
last... |
A bar chart about what are the main indstries and total market value for each industry?, rank in ascending by the names please. | CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
Manager_Name text,
Vice_Manager_Name text,
Representative_Name text
)
CREATE TABLE company (
Company_ID int,
Rank i... | SELECT Main_Industry, SUM(Market_Value) FROM company GROUP BY Main_Industry ORDER BY Main_Industry | Below are sql tables 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 about what are the main indstries and total market value for each industry?, rank in ascending by the names plea... |
What date did the Green-Communists receive 5.7%? | CREATE TABLE table_1881642_1 (
date_released VARCHAR,
green_communist VARCHAR
) | SELECT date_released FROM table_1881642_1 WHERE green_communist = "5.7%" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What date did the Green-Communists receive 5.7%? ### Input: CREATE TABLE table_1881642_1 (
date_released VARCHAR,
gr... |
How long has the longest song spent in the top 10? | CREATE TABLE table_27813010_2 (
weeks_in_top_10 INTEGER
) | SELECT MAX(weeks_in_top_10) FROM table_27813010_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: How long has the longest song spent in the top 10? ### Input: CREATE TABLE table_27813010_2 (
weeks_in_top_10 INTEGER
) ... |
How many of the patients with an unspecified death status were born before the year 2121? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.dob_year < "2121" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many of the patients with an unspecified death status were born before the year 2121? ### Input: CREATE TABLE prescripti... |
Where is the director Dariush Mehrjui from? | CREATE TABLE table_80038 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original name" text,
"Director" text
) | SELECT "Country" FROM table_80038 WHERE "Director" = 'dariush mehrjui' | Below are sql tables 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 is the director Dariush Mehrjui from? ### Input: CREATE TABLE table_80038 (
"Country" text,
"Film title used i... |
Week that has a Date of december 5, 1959 had what week? | CREATE TABLE table_37531 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
) | SELECT "Week" FROM table_37531 WHERE "Date" = 'december 5, 1959' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Week that has a Date of december 5, 1959 had what week? ### Input: CREATE TABLE table_37531 (
"Week" real,
"Date" te... |
For all employees who have the letters D or S in their first name, give me the comparison about the sum of employee_id over the job_id , and group by attribute job_id by a bar chart, I want to show X in desc order. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
... | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_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: For all employees who have the letters D or S in their first name, give me the comparison about the sum of employee_id over ... |
How many u.s. viewers (million) have 6 as the #? | CREATE TABLE table_2866456_1 (
us_viewers__million_ VARCHAR,
_number VARCHAR
) | SELECT us_viewers__million_ FROM table_2866456_1 WHERE _number = 6 | Below are sql tables 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 u.s. viewers (million) have 6 as the #? ### Input: CREATE TABLE table_2866456_1 (
us_viewers__million_ VARCHAR,... |
Name the total number of rank for percentage change yoy 13.1% | CREATE TABLE table_27956_3 (
national_rank VARCHAR,
percentage_change_yoy VARCHAR
) | SELECT COUNT(national_rank) FROM table_27956_3 WHERE percentage_change_yoy = "13.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: Name the total number of rank for percentage change yoy 13.1% ### Input: CREATE TABLE table_27956_3 (
national_rank VARC... |
Return a bar chart about the distribution of meter_400 and meter_100 , display meter_100 in ascending order. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
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 swimme... | SELECT meter_400, meter_100 FROM swimmer ORDER BY meter_100 | Below are sql tables 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 about the distribution of meter_400 and meter_100 , display meter_100 in ascending order. ### Input: CREA... |
what is the highest rank when the bronze is less than 1 and the total is less than 1? | CREATE TABLE table_name_83 (
rank INTEGER,
bronze VARCHAR,
total VARCHAR
) | SELECT MAX(rank) FROM table_name_83 WHERE bronze < 1 AND total < 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 highest rank when the bronze is less than 1 and the total is less than 1? ### Input: CREATE TABLE table_name_83 ... |
give me the number of patients whose marital status is married and lab test name is bilirubin, indirect? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.label = "Bilirubin, Indirect" | Below are sql tables 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 marital status is married and lab test name is bilirubin, indirect? ### Input: CREATE T... |
what were the names of the output that patient 27172 had first on 09/12/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 d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id... | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT outputevents.itemid 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 = 27172)) AND DATETIME(outputevents.charttim... | Below are sql tables 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 names of the output that patient 27172 had first on 09/12/this year? ### Input: CREATE TABLE inputevents_cv (
... |
Which Points have a Position larger than 6, and a Lost smaller than 13? | CREATE TABLE table_76751 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | SELECT AVG("Points") FROM table_76751 WHERE "Position" > '6' AND "Lost" < '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: Which Points have a Position larger than 6, and a Lost smaller than 13? ### Input: CREATE TABLE table_76751 (
"Position"... |
Who will be teaching computing infrastructure courses ? | CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semest... | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN area ON course_offering.course_id = area.course_id WHERE area.area LIKE '%... | Below are sql tables 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 will be teaching computing infrastructure courses ? ### Input: CREATE TABLE jobs (
job_id int,
job_title varchar... |
While Duncan Thompson played, how many points did he have where there were 0 field goals, 0 extra points, and more than 9 touchdowns? | CREATE TABLE table_5011 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT AVG("Points") FROM table_5011 WHERE "Field goals" = '0' AND "Touchdowns" > '9' AND "Extra points" = '0' AND "Player" = 'duncan thompson' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: While Duncan Thompson played, how many points did he have where there were 0 field goals, 0 extra points, and more than 9 to... |
Top 150 users from Rajkot. | CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId numb... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%ahmedabad%' OR UPPER(Location) LIKE '%AHMEDABAD' ORDER BY Reputation DESC LIMIT 150 | Below are sql tables 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 150 users from Rajkot. ### Input: CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
B... |
Name the position for pick number 39 | CREATE TABLE table_27364 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Position" FROM table_27364 WHERE "Pick #" = '39' | Below are sql tables 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 position for pick number 39 ### Input: CREATE TABLE table_27364 (
"Pick #" real,
"NFL Team" text,
"Play... |
Top Android Users in Barcelona. | CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | 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 Android Users in Barcelona. ### Input: CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId n... |
Show me about the distribution of meter_200 and the amount of meter_200 , and group by attribute meter_200 in a bar chart, I want to show Y-axis in descending order. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_40... | SELECT meter_200, COUNT(meter_200) FROM swimmer GROUP BY meter_200 ORDER BY COUNT(meter_200) 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 about the distribution of meter_200 and the amount of meter_200 , and group by attribute meter_200 in a bar chart, I... |
How many companies in each headquarter? Plot a bar chart, I want to order in descending by the Headquarters please. | CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
)
... | SELECT Headquarters, COUNT(Headquarters) FROM company GROUP BY Headquarters ORDER BY Headquarters 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: How many companies in each headquarter? Plot a bar chart, I want to order in descending by the Headquarters please. ### Inpu... |
How many courses each teacher taught? Show me a bar chart grouping by course code, list in desc by the total number. | CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME... | SELECT CRS_CODE, COUNT(CRS_CODE) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM GROUP BY CRS_CODE ORDER BY COUNT(CRS_CODE) 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: How many courses each teacher taught? Show me a bar chart grouping by course code, list in desc by the total number. ### Inp... |
What is the Attendance of the game on November 6, 1966? | CREATE TABLE table_62914 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Attendance" FROM table_62914 WHERE "Date" = 'november 6, 1966' | Below are sql tables 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 Attendance of the game on November 6, 1966? ### Input: CREATE TABLE table_62914 (
"Week" real,
"Date" te... |
Visualize a bar chart for what are the names of different tracks, and how many races has each had?, and could you rank by the x-axis in descending? | CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
) | SELECT T2.Name, COUNT(*) FROM race AS T1 JOIN track AS T2 ON T1.Track_ID = T2.Track_ID GROUP BY T1.Track_ID ORDER BY T2.Name 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: Visualize a bar chart for what are the names of different tracks, and how many races has each had?, and could you rank by th... |
what are the cities that AA serves | CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
... | SELECT DISTINCT city.city_code FROM airport_service, city, flight WHERE city.city_code = airport_service.city_code AND flight.airline_code = 'AA' AND flight.from_airport = airport_service.airport_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 cities that AA serves ### Input: CREATE TABLE airport (
airport_code varchar,
airport_name text,
ai... |
What is the Home team of the event on Thursday, December 11 with Visitor Modo Hockey? | CREATE TABLE table_name_44 (
home VARCHAR,
visitor VARCHAR,
date VARCHAR
) | SELECT home FROM table_name_44 WHERE visitor = "modo hockey" AND date = "thursday, december 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 the Home team of the event on Thursday, December 11 with Visitor Modo Hockey? ### Input: CREATE TABLE table_name_44 ... |
when was the first time patient 51200 was tested for ptt during the previous month? | 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 labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'ptt') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51200) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TI... | Below are sql tables 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 first time patient 51200 was tested for ptt during the previous month? ### Input: CREATE TABLE labevents (
... |
what is minimum age of patients whose marital status is widowed and age is greater than or equal to 43? | 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 MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.age >= "43" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is minimum age of patients whose marital status is widowed and age is greater than or equal to 43? ### Input: CREATE TA... |
Next Winter , who 's teaching Sponsorship Linked Marketing ? | CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE cour... | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN cou... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Next Winter , who 's teaching Sponsorship Linked Marketing ? ### Input: CREATE TABLE requirement (
requirement_id int,
... |
tell me the time of hospital admission of patient 51577 until 2104? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiolo... | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 51577 AND STRFTIME('%y', admissions.admittime) <= '2104' | Below are sql tables 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 time of hospital admission of patient 51577 until 2104? ### Input: CREATE TABLE cost (
row_id number,
su... |
history of chronic alcohol or drug abuse / dependence within the past 5 years. | CREATE TABLE table_train_140 (
"id" int,
"gender" string,
"mini_mental_state_examination_mmse" int,
"allergy_to_quinidine" bool,
"systolic_blood_pressure_sbp" int,
"postural_syncope" bool,
"hypotension" bool,
"unexplained_syncope" bool,
"allergy_to_dextromethorphan" bool,
"allerg... | SELECT * FROM table_train_140 WHERE alcohol_abuse = 1 OR drug_abuse = 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: history of chronic alcohol or drug abuse / dependence within the past 5 years. ### Input: CREATE TABLE table_train_140 (
... |
what were the first drugs that were prescribed to patient 64185 since 137 months ago? | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto 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 text,
insuranc... | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 64185) AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-137 month') ORDER BY prescriptions.startdate 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: what were the first drugs that were prescribed to patient 64185 since 137 months ago? ### Input: CREATE TABLE d_items (
... |
how many patients whose primary disease is sepsis and admission year is less than 2203? | 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 WHERE demographic.diagnosis = "SEPSIS" AND demographic.admityear < "2203" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many patients whose primary disease is sepsis and admission year is less than 2203? ### Input: CREATE TABLE diagnoses (
... |
when was the last time that patient 1902 has the minimum bicarbonate since 47 months ago? | CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1902) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bicarbonate') AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-47... | Below are sql tables 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 time that patient 1902 has the minimum bicarbonate since 47 months ago? ### Input: CREATE TABLE admissions... |
Return the number of the completion date for all the tests that have 'Fail' result, and rank total number from high to low order please. | CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATE... | SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" ORDER BY COUNT(date_of_completion) 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: Return the number of the completion date for all the tests that have 'Fail' result, and rank total number from high to low o... |
What grades have I received in courses that Prof. Papagerakis has taught ? | CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments ... | SELECT DISTINCT student_record.grade FROM student_record INNER JOIN offering_instructor ON student_record.offering_id = offering_instructor.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE LOWER(instructor.name) LIKE '%Papagerakis%' AND student_record.student_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: What grades have I received in courses that Prof. Papagerakis has taught ? ### Input: CREATE TABLE course_tags_count (
c... |
when is the first time patient 30307 received a umbilical vein cath treatment during their last hospital visit? | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto 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,
icd9_code tex... | SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'umbilical vein cath') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30307 AND NOT a... | Below are sql tables 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 is the first time patient 30307 received a umbilical vein cath treatment during their last hospital visit? ### Input: C... |
How many assists per game in the tournament 2010 fiba world championship? | CREATE TABLE table_2387461_1 (
assists_per_game VARCHAR,
tournament VARCHAR
) | SELECT assists_per_game FROM table_2387461_1 WHERE tournament = "2010 FIBA World Championship" | Below are sql tables 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 assists per game in the tournament 2010 fiba world championship? ### Input: CREATE TABLE table_2387461_1 (
assi... |
What is the lowest number of FA cups associated with 0 malaysia cups? | CREATE TABLE table_37340 (
"Player" text,
"League" real,
"Malaysia Cup" real,
"FA Cup" real,
"Total" real
) | SELECT MIN("FA Cup") FROM table_37340 WHERE "Malaysia Cup" < '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 is the lowest number of FA cups associated with 0 malaysia cups? ### Input: CREATE TABLE table_37340 (
"Player" tex... |
What are the titles of all movies that have rating star is between 3 and 5, and count them by a bar chart, and could you display by the y axis in descending? | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | SELECT title, COUNT(title) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5 GROUP BY title ORDER BY COUNT(title) 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: What are the titles of all movies that have rating star is between 3 and 5, and count them by a bar chart, and could you dis... |
what are the top five most frequent diagnoses that patients were given within 2 months after being diagnosed with esophageal reflux during a year before? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, 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... | Below are sql tables 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 top five most frequent diagnoses that patients were given within 2 months after being diagnosed with esophageal... |
what are the three most frequently given procedures for patients with age 60 or above? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
va... | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >... | Below are sql tables 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 three most frequently given procedures for patients with age 60 or above? ### Input: CREATE TABLE microbiologye... |
NERS 421 has how many lectures per week ? | CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TA... | SELECT (SELECT SUM(CASE WHEN DERIVED_TABLEalias0.FRIDAY = 'Y' THEN 1 ELSE 0 END) + SUM(CASE WHEN DERIVED_TABLEalias0.MONDAY = 'Y' THEN 1 ELSE 0 END) + SUM(CASE WHEN DERIVED_TABLEalias0.SATURDAY = 'Y' THEN 1 ELSE 0 END) + SUM(CASE WHEN DERIVED_TABLEalias0.SUNDAY = 'Y' THEN 1 ELSE 0 END) + SUM(CASE WHEN DERIVED_TABLEalia... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: NERS 421 has how many lectures per week ? ### Input: CREATE TABLE requirement (
requirement_id int,
requirement varc... |
Most popular StackOverflow tags in 2013. | CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBase... | 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 QuestionsIn2013, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId A... | Below are sql tables 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 StackOverflow tags in 2013. ### Input: CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
D... |
NATIVEAM 333 will be taught by which instructor this Fall ? | CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
star... | SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN semester... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: NATIVEAM 333 will be taught by which instructor this Fall ? ### Input: CREATE TABLE comment_instructor (
instructor_id i... |
How many people were in attendance for the game week 15? | CREATE TABLE table_name_9 (
attendance VARCHAR,
week VARCHAR
) | SELECT COUNT(attendance) FROM table_name_9 WHERE week = 15 | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many people were in attendance for the game week 15? ### Input: CREATE TABLE table_name_9 (
attendance VARCHAR,
... |
On May 13, what was the team's record? | CREATE TABLE table_15607 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Record" FROM table_15607 WHERE "Date" = 'may 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: On May 13, what was the team's record? ### Input: CREATE TABLE table_15607 (
"Date" text,
"Opponent" text,
"Scor... |
what is the party where the incumbent is edward boland? | CREATE TABLE table_18352 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Party" FROM table_18352 WHERE "Incumbent" = 'Edward Boland' | Below are sql tables 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 party where the incumbent is edward boland? ### Input: CREATE TABLE table_18352 (
"District" text,
"Incu... |
What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure? | CREATE TABLE table_42447 (
"Year" real,
"Title" text,
"Producer" text,
"Actor" text,
"Role" text
) | SELECT AVG("Year") FROM table_42447 WHERE "Role" = 'alvin seville simon seville david ''dave'' seville' AND "Title" = 'the chipmunk adventure' | Below are sql tables 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 average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk advent... |
Name the attendance with date of june 11 | CREATE TABLE table_name_92 (
attendance VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_92 WHERE date = "june 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: Name the attendance with date of june 11 ### Input: CREATE TABLE table_name_92 (
attendance VARCHAR,
date VARCHAR
) ... |
what is the number of times patient 007-15837 has had a chest tube a amount during a day before? | 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 COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-15837')) AND intakeoutput.cellpath LIKE '%output%' 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: what is the number of times patient 007-15837 has had a chest tube a amount during a day before? ### Input: CREATE TABLE vit... |
List the snatch score and clean jerk score of body builders in ascending order of snatch score. Plot them as scatter chart. | CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
) | SELECT Snatch, Clean_Jerk FROM body_builder | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: List the snatch score and clean jerk score of body builders in ascending order of snatch score. Plot them as scatter chart. ... |
What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20? | CREATE TABLE table_name_4 (
laps INTEGER,
grid VARCHAR,
manufacturer VARCHAR,
time_retired VARCHAR
) | SELECT MIN(laps) FROM table_name_4 WHERE manufacturer = "yamaha" AND time_retired = "+1:08.312" AND grid < 20 | Below are sql tables 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 laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20? ### Inp... |
Show different teams of technicians and the number of technicians in each team with a bar chart. | CREATE TABLE technician (
technician_id real,
Name text,
Team text,
Starting_Year real,
Age int
)
CREATE TABLE repair (
repair_ID int,
name text,
Launch_Date text,
Notes text
)
CREATE TABLE machine (
Machine_ID int,
Making_Year int,
Class text,
Team text,
Machin... | SELECT Team, COUNT(*) FROM technician GROUP BY Team | Below are sql tables 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 different teams of technicians and the number of technicians in each team with a bar chart. ### Input: CREATE TABLE tec... |
What country scored 71-69=140? | CREATE TABLE table_name_97 (
country VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_97 WHERE score = 71 - 69 = 140 | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What country scored 71-69=140? ### Input: CREATE TABLE table_name_97 (
country VARCHAR,
score VARCHAR
) ### Response... |
get me the number of married patients who are less than 70 years of age. | 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 WHERE demographic.marital_status = "MARRIED" AND demographic.age < "70" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: get me the number of married patients who are less than 70 years of age. ### Input: CREATE TABLE diagnoses (
subject_id ... |
Top 100 User of Bhubaneswar. | CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name tex... | SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Bhubaneswar%' ORDER BY Reputation DESC LIMIT 100 | Below are sql tables 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 100 User of Bhubaneswar. ### Input: CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.