instruction
stringlengths
11
303
input
stringlengths
38
5.51k
output
stringlengths
25
1.92k
text
stringlengths
321
6.52k
What was the score of the Chiefs pre-Week 16 game that 69,362 people attended?
CREATE TABLE table_name_1 ( result VARCHAR, week VARCHAR, attendance VARCHAR )
SELECT result FROM table_name_1 WHERE week < 16 AND attendance = "69,362"
Below are sql tables 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 Chiefs pre-Week 16 game that 69,362 people attended? ### Input: CREATE TABLE table_name_1 ( re...
Name the tournament for march 25, 2012
CREATE TABLE table_name_24 ( tournament VARCHAR, date VARCHAR )
SELECT tournament FROM table_name_24 WHERE date = "march 25, 2012"
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the tournament for march 25, 2012 ### Input: CREATE TABLE table_name_24 ( tournament VARCHAR, date VARCHAR ) ##...
what were the three most frequently given specimen tests for patients who have previously been diagnosed with cardiac dysrhythmias nec within 2 months,?
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title te...
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_...
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what were the three most frequently given specimen tests for patients who have previously been diagnosed with cardiac dysrhy...
What is the earliest day that had a game against the Boston Bruins?
CREATE TABLE table_name_90 ( february INTEGER, opponent VARCHAR )
SELECT MIN(february) FROM table_name_90 WHERE opponent = "boston 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 earliest day that had a game against the Boston Bruins? ### Input: CREATE TABLE table_name_90 ( february INT...
when is the last time patient 015-52724 has had a heartrate measurement since 2 days ago?
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime...
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 = '015-52724')) AND NOT vitalperiodic.heartrate IS NUL...
Below are sql tables 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 last time patient 015-52724 has had a heartrate measurement since 2 days ago? ### Input: CREATE TABLE intakeoutp...
For those employees who did not have any job in the past, return a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, and order by the X in asc.
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), CO...
SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_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: For those employees who did not have any job in the past, return a bar chart about the distribution of job_id and the sum of...
Show the trend about salary change over hire date using a line chart, and I want to order x axis in ascending order.
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) 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 varc...
SELECT HIRE_DATE, SALARY FROM employees ORDER BY HIRE_DATE
Below are sql tables 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 trend about salary change over hire date using a line chart, and I want to order x axis in ascending order. ### Inp...
On what date was Stauffer Chemical Company (Lemoyne Plant), which was listed on 09/21/1984, deleted?
CREATE TABLE table_name_35 ( deleted VARCHAR, listed VARCHAR, name VARCHAR )
SELECT deleted FROM table_name_35 WHERE listed = "09/21/1984" AND name = "stauffer chemical company (lemoyne plant)"
Below are sql tables 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 was Stauffer Chemical Company (Lemoyne Plant), which was listed on 09/21/1984, deleted? ### Input: CREATE TABLE...
in what date was aired the first broacast of the episode 1x02
CREATE TABLE table_1684 ( "Episode" text, "First broadcast" text, "Graemes guest" text, "Jeremys guest" text, "Votes (%)" text )
SELECT "First broadcast" FROM table_1684 WHERE "Episode" = '1x02'
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: in what date was aired the first broacast of the episode 1x02 ### Input: CREATE TABLE table_1684 ( "Episode" text, "...
Show times of elimination of wrestlers with days held more than 50.
CREATE TABLE elimination ( Time VARCHAR, Wrestler_ID VARCHAR ) CREATE TABLE wrestler ( Wrestler_ID VARCHAR, Days_held INTEGER )
SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50
Below are sql tables 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 times of elimination of wrestlers with days held more than 50. ### Input: CREATE TABLE elimination ( Time VARCHAR, ...
count the number of patients whose discharge location is disc-tran cancer/chldrn h and procedure icd9 code is 8604?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" AND procedures.icd9_code = "8604"
Below are sql tables 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 discharge location is disc-tran cancer/chldrn h and procedure icd9 code is 8604? ### Inpu...
How many users have answered a question for a tag?.
CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostHistory ( Id number, ...
SELECT COUNT(DISTINCT p1.OwnerUserId) FROM Posts AS p1 INNER JOIN PostTags AS pt ON pt.TagId = @TagId INNER JOIN Posts AS p2 ON p1.ParentId = p2.Id WHERE p1.PostTypeId = 2 AND pt.PostId = p2.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: How many users have answered a question for a tag?. ### Input: CREATE TABLE Badges ( Id number, UserId number, N...
hhow many patients diagnosed with metabolic encephalopathy and id route of drug administration?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Metabolic encephalopathy" AND prescriptions.route = "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: hhow many patients diagnosed with metabolic encephalopathy and id route of drug administration? ### Input: CREATE TABLE lab ...
What shows for thurs 25 aug when fri 26 aug is 19' 30.70 116.023mph?
CREATE TABLE table_31468 ( "Rank" real, "Rider" text, "Sat 20 Aug" text, "Mon 22 Aug" text, "Tues 23 Aug" text, "Wed 24 Aug" text, "Thurs 25 Aug" text, "Fri 26 Aug" text )
SELECT "Thurs 25 Aug" FROM table_31468 WHERE "Fri 26 Aug" = '19'' 30.70 116.023mph'
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What shows for thurs 25 aug when fri 26 aug is 19' 30.70 116.023mph? ### Input: CREATE TABLE table_31468 ( "Rank" real, ...
Top 150 users from China. Top 150 SO users from China
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CRE...
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%sweden%' OR UPPER(Location) LIKE '%SWEDEN%' OR Location LIKE '%SWEDEN%' AND Reputation >= 0 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 China. Top 150 SO users from China ### Input: CREATE TABLE Users ( Id number, Reputation number, ...
how many patients are married and diagnosed with acute or chronic diastolic heart failure?
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.marital_status = "MARRIED" AND diagnoses.long_title = "Acute on chronic diastolic heart failure"
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many patients are married and diagnosed with acute or chronic diastolic heart failure? ### Input: CREATE TABLE demograph...
did patient 007-2065 undergo a laboratory test until 2 years ago?
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 treatment ( treatmentid number...
SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-2065')) AND DATETIME(lab.labresulttime) <= DATETIME(CURRENT_TIME(), '-2 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 007-2065 undergo a laboratory test until 2 years ago? ### Input: CREATE TABLE allergy ( allergyid number, ...
Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis?
CREATE TABLE table_68738 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Pts." real )
SELECT "Entrant" FROM table_68738 WHERE "Pts." < '12' AND "Engine" = 'climax' AND "Chassis" = 'lotus 24'
Below are sql tables 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 entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis? ### Input: CREATE TABLE table_68738 ( "...
when did patient 28447 have the first maximum calculated total co2 value since 11/2105?
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE admissions ( row_id numb...
SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28447) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'calculated total co2') AND STRFTIME('%y-%m', labevents.charttime) >= '2105-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: when did patient 28447 have the first maximum calculated total co2 value since 11/2105? ### Input: CREATE TABLE d_icd_diagno...
show me flights with FIRST class reservations from SAN FRANCISCO to PITTSBURGH for monday
CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service...
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 AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, flight, flight_fare WHERE ((DATE...
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: show me flights with FIRST class reservations from SAN FRANCISCO to PITTSBURGH for monday ### Input: CREATE TABLE state ( ...
What was the date of the game when St. Louis was the visiting team?
CREATE TABLE table_5862 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
SELECT "Date" FROM table_5862 WHERE "Visitor" = 'st. louis'
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the date of the game when St. Louis was the visiting team? ### Input: CREATE TABLE table_5862 ( "Date" text, ...
On Friday does REES 395 have class ?
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 instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE course...
SELECT DISTINCT course_offering.friday 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.department = 'REES' AND course.number = 395 AND semester.semester = 'WN' 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: On Friday does REES 395 have class ? ### Input: CREATE TABLE program_requirement ( program_id int, category varchar,...
How many courses for each subject? Plot a bar chart, and order by the x axis in ascending.
CREATE TABLE Student_Course_Enrolment ( registration_id INTEGER, student_id INTEGER, course_id INTEGER, date_of_enrolment DATETIME, date_of_completion DATETIME ) CREATE TABLE Courses ( course_id INTEGER, author_id INTEGER, subject_id INTEGER, course_name VARCHAR(120), course_des...
SELECT subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY subject_name
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many courses for each subject? Plot a bar chart, and order by the x axis in ascending. ### Input: CREATE TABLE Student_C...
What was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total?
CREATE TABLE table_name_38 ( extra_points INTEGER, player VARCHAR, points VARCHAR )
SELECT MAX(extra_points) FROM table_name_38 WHERE player = "albert herrnstein" AND points > 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 was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total? ### Input...
which competition is listed the most in this chart ?
CREATE TABLE table_203_370 ( id number, "year" number, "competition" text, "venue" text, "position" text, "event" text, "notes" text )
SELECT "competition" FROM table_203_370 GROUP BY "competition" ORDER BY COUNT(*) DESC 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: which competition is listed the most in this chart ? ### Input: CREATE TABLE table_203_370 ( id number, "year" numbe...
What is the total number of weeks where games were on November 5, 1973 and the attendance was larger than 49,220?
CREATE TABLE table_name_81 ( week VARCHAR, date VARCHAR, attendance VARCHAR )
SELECT COUNT(week) FROM table_name_81 WHERE date = "november 5, 1973" AND attendance > 49 OFFSET 220
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the total number of weeks where games were on November 5, 1973 and the attendance was larger than 49,220? ### Input:...
how many hours ago was the last time patient 12927 prescribed ns in this hospital visit?
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 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', prescriptions.startdate)) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12927 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'ns' ORDER BY prescriptions.startdate DESC LI...
Below are sql tables 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 ago was the last time patient 12927 prescribed ns in this hospital visit? ### Input: CREATE TABLE admissions ...
What is the finish of Australia?
CREATE TABLE table_name_52 ( finish VARCHAR, country VARCHAR )
SELECT finish FROM table_name_52 WHERE country = "australia"
Below are sql tables 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 finish of Australia? ### Input: CREATE TABLE table_name_52 ( finish VARCHAR, country VARCHAR ) ### Respo...
What is the total number of goals that the Partizan team from the country of serbia had that was larger than 1?
CREATE TABLE table_70490 ( "Season" text, "Team" text, "Country" text, "Division" real, "Apps" real, "Goals" real )
SELECT SUM("Goals") FROM table_70490 WHERE "Team" = 'partizan' AND "Country" = 'serbia' AND "Division" > '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 total number of goals that the Partizan team from the country of serbia had that was larger than 1? ### Input: C...
Revival badge candidates for a certain tag.
CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, Parent...
SELECT a.Id AS "post_link", a.Score, a.CreationDate FROM Posts AS a WHERE a.PostTypeId = 2 AND EXISTS(SELECT * FROM Posts AS q WHERE q.Id = a.ParentId AND q.PostTypeId = 1 AND a.CreationDate > q.CreationDate + 30 AND Tags LIKE '%<' + LOWER(@tag) + '>%') ORDER BY a.Score DESC, a.CreationDate LIMIT 1000
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Revival badge candidates for a certain tag. ### Input: CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREAT...
Are there any RESTORA upper-level courses being offered this Spring-Summer ?
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 DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'RESTORA' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spr...
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Are there any RESTORA upper-level courses being offered this Spring-Summer ? ### Input: CREATE TABLE requirement ( requi...
What are the details of the shops that can be accessed by walk?
CREATE TABLE SHOPS ( Shop_Details VARCHAR, Shop_ID VARCHAR ) CREATE TABLE TOURIST_ATTRACTIONS ( Tourist_Attraction_ID VARCHAR, How_to_Get_There VARCHAR )
SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk"
Below are sql tables 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 details of the shops that can be accessed by walk? ### Input: CREATE TABLE SHOPS ( Shop_Details VARCHAR, ...
Which Label has a Region of canada?
CREATE TABLE table_35224 ( "Date" text, "Label" text, "Region" text, "Format" text, "Catalog" text )
SELECT "Label" FROM table_35224 WHERE "Region" = 'canada'
Below are sql tables 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 Label has a Region of canada? ### Input: CREATE TABLE table_35224 ( "Date" text, "Label" text, "Region" te...
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, and I want to sort in ascending by the x-axis please.
CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE T...
SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_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: For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id an...
Plot the total number by grouped by industry as a bar graph, and rank from high to low by the bars.
CREATE TABLE Companies ( id int, name text, Headquarters text, Industry text, Sales_billion real, Profits_billion real, Assets_billion real, Market_Value_billion text ) CREATE TABLE Office_locations ( building_id int, company_id int, move_in_year int ) CREATE TABLE building...
SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry ORDER BY Industry 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: Plot the total number by grouped by industry as a bar graph, and rank from high to low by the bars. ### Input: CREATE TABLE ...
Who was the 1999-2002 Years for Grizzlies small forward Player who was from the United States?
CREATE TABLE table_44821 ( "Player" text, "Nationality" text, "Position" text, "Years for Grizzlies" text, "School/Club Team" text )
SELECT "Player" FROM table_44821 WHERE "Nationality" = 'united states' AND "Position" = 'small forward' AND "Years for Grizzlies" = '1999-2002'
Below are sql tables 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 1999-2002 Years for Grizzlies small forward Player who was from the United States? ### Input: CREATE TABLE table...
Return a bar chart showing how many customers whose contact channel code is email for each weekday.
CREATE TABLE Customer_Contact_Channels ( customer_id INTEGER, channel_code VARCHAR(15), active_from_date DATETIME, active_to_date DATETIME, contact_number VARCHAR(50) ) CREATE TABLE Addresses ( address_id INTEGER, address_content VARCHAR(80), city VARCHAR(50), zip_postcode VARCHAR(2...
SELECT active_from_date, COUNT(active_from_date) FROM Customers AS t1 JOIN Customer_Contact_Channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'
Below are sql tables 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 showing how many customers whose contact channel code is email for each weekday. ### Input: CREATE TABLE ...
when's patient 73693's birthday?
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 patients.dob FROM patients WHERE patients.subject_id = 73693
Below are sql tables 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's patient 73693's birthday? ### Input: CREATE TABLE microbiologyevents ( row_id number, subject_id number, ...
How did Johnnie Parsons finish when his qualifying time was 135.328?
CREATE TABLE table_name_51 ( rank VARCHAR, qual VARCHAR )
SELECT rank FROM table_name_51 WHERE qual = "135.328"
Below are sql tables 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 did Johnnie Parsons finish when his qualifying time was 135.328? ### Input: CREATE TABLE table_name_51 ( rank VARCHA...
what's the name of the first test patient 1205 has received since 22 months ago?
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 d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1205) AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-22 month') ORDER BY labevents.charttime LIM...
Below are sql tables 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 name of the first test patient 1205 has received since 22 months ago? ### Input: CREATE TABLE d_icd_diagnoses ( ...
What is the Opponent of the game with more than 13,567 in Attendance with more than 5 Points?
CREATE TABLE table_48834 ( "Game" text, "Date" text, "Score" text, "Opponent" text, "Attendance" real, "Record" text, "Points" real )
SELECT "Opponent" FROM table_48834 WHERE "Points" > '5' AND "Attendance" > '13,567'
Below are sql tables 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 Opponent of the game with more than 13,567 in Attendance with more than 5 Points? ### Input: CREATE TABLE table_...
what was the number of patients that were discharged from hospital in this year?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, ...
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND DATETIME(patient.hospitaldischargetime, '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: what was the number of patients that were discharged from hospital in this year? ### Input: CREATE TABLE diagnosis ( dia...
when did patient 83062 receive a microbiology test in this hospital visit for the last time?
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, ...
SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 83062 AND admissions.dischtime IS NULL) ORDER BY microbiologyevents.charttime DESC 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: when did patient 83062 receive a microbiology test in this hospital visit for the last time? ### Input: CREATE TABLE diagnos...
Who was the centerfold model when a pictorial was done on marilyn monroe?
CREATE TABLE table_1566850_8 ( centerfold_model VARCHAR, pictorials VARCHAR )
SELECT centerfold_model FROM table_1566850_8 WHERE pictorials = "Marilyn Monroe"
Below are sql tables 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 centerfold model when a pictorial was done on marilyn monroe? ### Input: CREATE TABLE table_1566850_8 ( cent...
flights from LGA or JFK to CLEVELAND
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 flight.flight_id FROM airport AS AIRPORT_0, airport AS AIRPORT_1, airport_service, city, flight WHERE ((flight.from_airport = AIRPORT_0.airport_code AND AIRPORT_0.airport_code = 'JFK') OR (flight.from_airport = AIRPORT_1.airport_code AND AIRPORT_1.airport_code = 'LGA')) AND city.city_code = airport_serv...
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: flights from LGA or JFK to CLEVELAND ### Input: CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description ...
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the sum of revenue , and group by attribute name, and sort X-axis 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, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.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: For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the...
What are the number of rooms for each bed type Show bar chart, could you list by the y axis from high to low?
CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEGER, basePrice INTEGER, decor TEXT ) CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adul...
SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType ORDER BY COUNT(*) 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 number of rooms for each bed type Show bar chart, could you list by the y axis from high to low? ### Input: CRE...
What's the season number of the episode with series number 84?
CREATE TABLE table_2226817_6 ( no_in_season INTEGER, no_in_series VARCHAR )
SELECT MIN(no_in_season) FROM table_2226817_6 WHERE no_in_series = 84
Below are sql tables 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 season number of the episode with series number 84? ### Input: CREATE TABLE table_2226817_6 ( no_in_season IN...
What was the Score on March 1?
CREATE TABLE table_name_18 ( score VARCHAR, date VARCHAR )
SELECT score FROM table_name_18 WHERE date = "march 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 was the Score on March 1? ### Input: CREATE TABLE table_name_18 ( score VARCHAR, date VARCHAR ) ### Response: S...
Give the advisor with the most students.
CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE has_allergy ( stuid number, allergy text )
SELECT advisor FROM student GROUP BY advisor ORDER BY COUNT(*) DESC 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: Give the advisor with the most students. ### Input: CREATE TABLE allergy_type ( allergy text, allergytype text ) CR...
count the number of patients whose death status is 1 and diagnoses short title is dmii hprosmlr uncontrold?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.short_title = "DMII hprosmlr uncontrold"
Below are sql tables 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 death status is 1 and diagnoses short title is dmii hprosmlr uncontrold? ### Input: CREAT...
get me the number of patients on base type drug prescription who have diagnoses icd9 code 78321.
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "78321" AND prescriptions.drug_type = "BASE"
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: get me the number of patients on base type drug prescription who have diagnoses icd9 code 78321. ### Input: CREATE TABLE pro...
Show the times used by climbers to climb mountains in Country Uganda.
CREATE TABLE climber ( climber_id number, name text, country text, time text, points number, mountain_id number ) CREATE TABLE mountain ( mountain_id number, name text, height number, prominence number, range text, country text )
SELECT T1.time FROM climber AS T1 JOIN mountain AS T2 ON T1.mountain_id = T2.mountain_id WHERE T2.country = "Uganda"
Below are sql tables 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 times used by climbers to climb mountains in Country Uganda. ### Input: CREATE TABLE climber ( climber_id numbe...
what is minimum days of hospital stay of patients who were born after year 2066?
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 MIN(demographic.days_stay) FROM demographic WHERE demographic.dob_year > "2066"
Below are sql tables 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 days of hospital stay of patients who were born after year 2066? ### Input: CREATE TABLE prescriptions ( ...
How many bronze medals for Romania when the silver count is more than 1?
CREATE TABLE table_name_96 ( bronze INTEGER, nation VARCHAR, silver VARCHAR )
SELECT AVG(bronze) FROM table_name_96 WHERE nation = "romania" AND silver > 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: How many bronze medals for Romania when the silver count is more than 1? ### Input: CREATE TABLE table_name_96 ( bronze ...
How many patients died in or before the year 2132 with a lab test neutrophils?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2131.0" AND lab.label = "Neutrophils"
Below are sql tables 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 died in or before the year 2132 with a lab test neutrophils? ### Input: CREATE TABLE lab ( subject_id ...
what is the unabbreviated version of the tachypnea?
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 admissions ( row_id number, subject_id number, hadm_id number, admittime time, ...
SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'tachypnea' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'tachypnea'
Below are sql tables 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 unabbreviated version of the tachypnea? ### Input: CREATE TABLE d_items ( row_id number, itemid number, ...
What was the circuit had a race on September 20.
CREATE TABLE table_name_46 ( circuit VARCHAR, date VARCHAR )
SELECT circuit FROM table_name_46 WHERE date = "september 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 was the circuit had a race on September 20. ### Input: CREATE TABLE table_name_46 ( circuit VARCHAR, date VARCH...
What was the record on April 10?
CREATE TABLE table_name_75 ( record VARCHAR, date VARCHAR )
SELECT record FROM table_name_75 WHERE date = "april 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 was the record on April 10? ### Input: CREATE TABLE table_name_75 ( record VARCHAR, date VARCHAR ) ### Response...
What team lost on May 1?
CREATE TABLE table_name_62 ( loss VARCHAR, date VARCHAR )
SELECT loss FROM table_name_62 WHERE date = "may 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 team lost on May 1? ### Input: CREATE TABLE table_name_62 ( loss VARCHAR, date VARCHAR ) ### Response: SELECT l...
what was the last time patient 54825 received a prescription for aspirin ec, in 12/last year?
CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, ...
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 54825) AND prescriptions.drug = 'aspirin ec' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIM...
Below are sql tables 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 time patient 54825 received a prescription for aspirin ec, in 12/last year? ### Input: CREATE TABLE output...
Return a bar chart about the distribution of meter_500 and ID .
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_400 text, meter_500 text, meter_600 text, meter_700 text, Time text ) ...
SELECT meter_500, ID FROM swimmer
Below are sql tables 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_500 and ID . ### Input: CREATE TABLE record ( ID int, Result text...
Labs are in what number of upper level courses ?
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 COUNT(DISTINCT course.course_id) FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_lab = 'Y' AND program_course.category LIKE '%ULCS%'
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Labs are in what number of upper level courses ? ### Input: CREATE TABLE course_tags_count ( course_id int, clear_gr...
A line chart shows how many churches open each year?, I want to sort by the X-axis from low to high.
CREATE TABLE people ( People_ID int, Name text, Country text, Is_Male text, Age int ) CREATE TABLE wedding ( Church_ID int, Male_ID int, Female_ID int, Year int ) CREATE TABLE church ( Church_ID int, Name text, Organized_by text, Open_Date int, Continuation_of t...
SELECT Open_Date, COUNT(Open_Date) FROM church GROUP BY Open_Date ORDER BY Open_Date
Below are sql tables 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 line chart shows how many churches open each year?, I want to sort by the X-axis from low to high. ### Input: CREATE TABLE...
calculate patient 027-107035's length of stay of the first hospital stay.
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREA...
SELECT STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', patient.hospitaladmittime) FROM patient WHERE patient.uniquepid = '027-107035' AND NOT patient.hospitaladmittime IS NULL ORDER BY patient.hospitaladmittime 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: calculate patient 027-107035's length of stay of the first hospital stay. ### Input: CREATE TABLE treatment ( treatmenti...
Amazon web service thread volume, page views, unique OPs by month.
CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversa...
SELECT COUNT(*) AS Volume, SUM(ViewCount) AS PageViews, COUNT(DISTINCT OwnerUserId) AS UniqueOPs, TIME_TO_STR(P.CreationDate, '%Y') AS "year", TIME_TO_STR(P.CreationDate, '%m') AS Month FROM Posts AS P WHERE (Tags LIKE '%<amazon-web-services>%') AND PostTypeId = 1 AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL G...
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Amazon web service thread volume, page views, unique OPs by month. ### Input: CREATE TABLE PendingFlags ( Id number, ...
Show the number of documents created in each day and bin document date by weekday with a bar chart.
CREATE TABLE Documents_with_Expenses ( Document_ID INTEGER, Budget_Type_Code CHAR(15), Document_Details VARCHAR(255) ) CREATE TABLE Projects ( Project_ID INTEGER, Project_Details VARCHAR(255) ) CREATE TABLE Accounts ( Account_ID INTEGER, Statement_ID INTEGER, Account_Details VARCHAR(25...
SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_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: Show the number of documents created in each day and bin document date by weekday with a bar chart. ### Input: CREATE TABLE ...
What is the earliest year a Baylor player made the list?
CREATE TABLE table_55462 ( "Year" real, "Player" text, "Position" text, "College/Country" text, "WNBA Team" text )
SELECT MIN("Year") FROM table_55462 WHERE "College/Country" = 'baylor'
Below are sql tables 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 earliest year a Baylor player made the list? ### Input: CREATE TABLE table_55462 ( "Year" real, "Player"...
What was the result of Game 3 of this searson?
CREATE TABLE table_name_95 ( result VARCHAR, game VARCHAR )
SELECT result FROM table_name_95 WHERE game = "game 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 result of Game 3 of this searson? ### Input: CREATE TABLE table_name_95 ( result VARCHAR, game VARCHAR ...
Which record has a score of 7 6 (12)?
CREATE TABLE table_53206 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text )
SELECT "Record" FROM table_53206 WHERE "Score" = '7–6 (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 record has a score of 7 6 (12)? ### Input: CREATE TABLE table_53206 ( "Date" text, "Opponent" text, "Score...
how much cost is it to perform methemoglobin lab tests?
CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, ...
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'labevents' AND cost.event_id IN (SELECT labevents.row_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'methemoglobin'))
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how much cost is it to perform methemoglobin lab tests? ### Input: CREATE TABLE transfers ( row_id number, subject_i...
What event did he have a 2-0 record?
CREATE TABLE table_6120 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT "Event" FROM table_6120 WHERE "Record" = '2-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 event did he have a 2-0 record? ### Input: CREATE TABLE table_6120 ( "Res." text, "Record" text, "Opponent"...
What day did St Kilda play as the away team?
CREATE TABLE table_name_53 ( date VARCHAR, away_team VARCHAR )
SELECT date FROM table_name_53 WHERE away_team = "st kilda"
Below are sql tables 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 did St Kilda play as the away team? ### Input: CREATE TABLE table_name_53 ( date VARCHAR, away_team VARCHAR...
Search my comments by text.
CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text ...
SELECT PostId AS "post_link", Text, Score FROM Comments WHERE UserId = '##UserId##' AND Text LIKE '%##Search##%' ORDER BY CreationDate 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 my comments by text. ### Input: CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean...
how many patients have received venous cath nec within 2 months after the first procedure of insert spinal canal cath this year?
CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE procedures_icd ( ...
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'insert spin...
Below are sql tables 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 have received venous cath nec within 2 months after the first procedure of insert spinal canal cath this y...
Who was the opponent of the game on August 8?
CREATE TABLE table_70969 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT "Opponent" FROM table_70969 WHERE "Date" = 'august 8'
Below are sql tables 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 of the game on August 8? ### Input: CREATE TABLE table_70969 ( "Date" text, "Opponent" text, ...
What was the venue that featured the Melbourne Tigers as the away team?
CREATE TABLE table_44267 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text )
SELECT "Venue" FROM table_44267 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: What was the venue that featured the Melbourne Tigers as the away team? ### Input: CREATE TABLE table_44267 ( "Date" tex...
what was the total output patient 2238 had received on 04/12/2104?
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, ...
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 = 2238)) AND STRFTIME('%y-%m-%d', outputevents.charttime) = '2104-04-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: what was the total output patient 2238 had received on 04/12/2104? ### Input: CREATE TABLE d_icd_diagnoses ( row_id numb...
What year was the team named the Raiders established?
CREATE TABLE table_16078390_2 ( founded INTEGER, team_nickname VARCHAR )
SELECT MAX(founded) FROM table_16078390_2 WHERE team_nickname = "Raiders"
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What year was the team named the Raiders established? ### Input: CREATE TABLE table_16078390_2 ( founded INTEGER, te...
Which Red Cards has a Season of 1998/1999, and a Games larger than 41?
CREATE TABLE table_name_55 ( red_cards INTEGER, season VARCHAR, games VARCHAR )
SELECT MIN(red_cards) FROM table_name_55 WHERE season = "1998/1999" AND games > 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: Which Red Cards has a Season of 1998/1999, and a Games larger than 41? ### Input: CREATE TABLE table_name_55 ( red_cards...
What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze?
CREATE TABLE table_69558 ( "Games" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real, "Rank" real )
SELECT MIN("Rank") FROM table_69558 WHERE "Bronze" = '3' AND "Total" > '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 is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze? ### Input: CREATE TABLE table_6...
For how many days did patient with id 18112 stay in the hospital?
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 demographic.days_stay FROM demographic WHERE demographic.subject_id = "18112"
Below are sql tables 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 how many days did patient with id 18112 stay in the hospital? ### Input: CREATE TABLE prescriptions ( subject_id tex...
among patients who were prescribed methadone pca after they had been diagnosed with cerebral edema show me the four year survival rate.
CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE transfers ( row_id number,...
SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 4 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd...
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: among patients who were prescribed methadone pca after they had been diagnosed with cerebral edema show me the four year sur...
OAKLAND to SAN FRANCISCO please BREAKFAST flight
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 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, food_service WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND f...
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: OAKLAND to SAN FRANCISCO please BREAKFAST flight ### Input: CREATE TABLE aircraft ( aircraft_code varchar, aircraft_...
what is the venue when the home team is melbourne?
CREATE TABLE table_52259 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Date" text )
SELECT "Venue" FROM table_52259 WHERE "Home team" = 'melbourne'
Below are sql tables 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 venue when the home team is melbourne? ### Input: CREATE TABLE table_52259 ( "Home team" text, "Home tea...
Visualize the total smallest rating of different movie title using a bar chart, rank by the x-axis in desc.
CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Reviewer ( rID int, name text )
SELECT T2.title, SUM(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title ORDER BY T2.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: Visualize the total smallest rating of different movie title using a bar chart, rank by the x-axis in desc. ### Input: CREAT...
What's the total against when the draws are more than 0?
CREATE TABLE table_64363 ( "Club" text, "Wins" real, "Losses" real, "Draws" real, "Against" real )
SELECT COUNT("Against") FROM table_64363 WHERE "Draws" > '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 against when the draws are more than 0? ### Input: CREATE TABLE table_64363 ( "Club" text, "Wins" r...
what are the five year survival rate of fetal/neonatal jaund nos patients who were prescribed with morphine sulfate?
CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, s...
SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 5 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd...
Below are sql tables 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 five year survival rate of fetal/neonatal jaund nos patients who were prescribed with morphine sulfate? ### Inp...
Show all the planned delivery dates and bin by year in a line chart, could you rank by the x-axis in ascending please?
CREATE TABLE Drama_Workshop_Groups ( Workshop_Group_ID INTEGER, Address_ID INTEGER, Currency_Code CHAR(15), Marketing_Region_Code CHAR(15), Store_Name VARCHAR(255), Store_Phone VARCHAR(255), Store_Email_Address VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Customers ( Cust...
SELECT Planned_Delivery_Date, COUNT(Planned_Delivery_Date) FROM Bookings ORDER BY Planned_Delivery_Date
Below are sql tables 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 all the planned delivery dates and bin by year in a line chart, could you rank by the x-axis in ascending please? ### I...
What is the total number of spectators on week 4?
CREATE TABLE table_44622 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT COUNT("Attendance") FROM table_44622 WHERE "Week" = '4'
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the total number of spectators on week 4? ### Input: CREATE TABLE table_44622 ( "Week" real, "Date" text, ...
TOP 200 - Brazilian Users.
CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConce...
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%brazil%' OR UPPER(Location) LIKE '%BRA' ORDER BY Reputation DESC LIMIT 200
Below are sql tables 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 200 - Brazilian Users. ### Input: CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description tex...
How many companies that have ever operated a flight for each type? Draw a bar chart.
CREATE TABLE flight ( id int, Vehicle_Flight_number text, Date text, Pilot text, Velocity real, Altitude real, airport_id int, company_id int ) CREATE TABLE operate_company ( id int, name text, Type text, Principal_activities text, Incorporated_in text, Group_Equ...
SELECT Type, COUNT(Type) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY Type
Below are sql tables 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 that have ever operated a flight for each type? Draw a bar chart. ### Input: CREATE TABLE flight ( id...
how many patients whose gender is f and procedure icd9 code is 12?
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 INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.icd9_code = "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: how many patients whose gender is f and procedure icd9 code is 12? ### Input: CREATE TABLE prescriptions ( subject_id te...
Which Blagojevich (D) has a Source of zogby/wsj, and a Topinka (R) of 33.2%?
CREATE TABLE table_75303 ( "Source" text, "Date" text, "Blagojevich (D)" text, "Topinka (R)" text, "Remainder" text )
SELECT "Blagojevich (D)" FROM table_75303 WHERE "Source" = 'zogby/wsj' AND "Topinka (R)" = '33.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 Blagojevich (D) has a Source of zogby/wsj, and a Topinka (R) of 33.2%? ### Input: CREATE TABLE table_75303 ( "Sour...
What is the On-air ID of the broadcaster at frequency 0 801?
CREATE TABLE table_name_13 ( on_air_id VARCHAR, frequency VARCHAR )
SELECT on_air_id FROM table_name_13 WHERE frequency = "0 801"
Below are sql tables 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 On-air ID of the broadcaster at frequency 0 801? ### Input: CREATE TABLE table_name_13 ( on_air_id VARCHAR, ...
Give me the comparison about School_ID over the All_Home , and group by attribute ACC_Road, and display from low to high by the Y.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Per...
SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY School_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: Give me the comparison about School_ID over the All_Home , and group by attribute ACC_Road, and display from low to high by ...
in 2102 what was the four most frequent medications prescribed during the same month to the male patients with age 50s after they were diagnosed with late effect acute polio?
CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABL...
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ...
Below are sql tables 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 2102 what was the four most frequent medications prescribed during the same month to the male patients with age 50s after...
how many patients whose marital status is divorced and procedure long title is small-to-small intestinal anastomosis?
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 demographic (...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "DIVORCED" AND procedures.long_title = "Small-to-small intestinal anastomosis"
Below are sql tables 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 marital status is divorced and procedure long title is small-to-small intestinal anastomosis? ### In...
how many patients whose drug code is warf25 had elective admission type?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.formulary_drug_cd = "WARF25"
Below are sql tables 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 drug code is warf25 had elective admission type? ### Input: CREATE TABLE lab ( subject_id text, ...
what was the last output on 12/31/this year for patient 55360?
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 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 = 55360)) 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 was the last output on 12/31/this year for patient 55360? ### Input: CREATE TABLE labevents ( row_id number, su...