instruction stringlengths 11 303 | input stringlengths 38 5.51k | output stringlengths 25 1.92k | text stringlengths 321 6.52k |
|---|---|---|---|
What is the original air date for the season# 2? | CREATE TABLE table_31123 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT "Original air date" FROM table_31123 WHERE "Season #" = '2' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the original air date for the season# 2? ### Input: CREATE TABLE table_31123 (
"Series #" real,
"Season #" r... |
A bar chart for what are the number of the dates when customers with ids between 10 and 20 became customers?, list the number of date became customer in descending order. | 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 date_became_customer, COUNT(date_became_customer) FROM Customers WHERE customer_id BETWEEN 10 AND 20 ORDER BY COUNT(date_became_customer) DESC | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: A bar chart for what are the number of the dates when customers with ids between 10 and 20 became customers?, list the numbe... |
how many different teams did the broncos play against ? | CREATE TABLE table_203_371 (
id number,
"round" number,
"opponent" text,
"result" text,
"bro." number,
"opp." number,
"date" text,
"venue" text,
"crowd" number,
"position" text
) | SELECT COUNT(DISTINCT "opponent") FROM table_203_371 | Below are sql tables 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 different teams did the broncos play against ? ### Input: CREATE TABLE table_203_371 (
id number,
"round" n... |
Top Android Contributors in Spain && Germany. | CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE FlagTypes (
Id ... | WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", u.Location, 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... | Below are sql tables 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 Contributors in Spain && Germany. ### Input: CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
... |
what is the name of the diagnosis of patient 7073 last was received in the previous year? | CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT diagnoses_icd.icd9_code FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 7073) AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CU... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the name of the diagnosis of patient 7073 last was received in the previous year? ### Input: CREATE TABLE prescripti... |
What are the names of device shops, and what are the carriers that they carry devices in stock for?, could you sort in ascending by the x-axis? | CREATE TABLE device (
Device_ID int,
Device text,
Carrier text,
Package_Version text,
Applications text,
Software_Platform text
)
CREATE TABLE stock (
Shop_ID int,
Device_ID int,
Quantity int
)
CREATE TABLE shop (
Shop_ID int,
Shop_Name text,
Location text,
Open_Dat... | SELECT Carrier, COUNT(Carrier) FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID GROUP BY Carrier ORDER BY Carrier | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the names of device shops, and what are the carriers that they carry devices in stock for?, could you sort in ascen... |
Name the series for april 30 | CREATE TABLE table_53700 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "Series" FROM table_53700 WHERE "Date" = 'april 30' | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the series for april 30 ### Input: CREATE TABLE table_53700 (
"Game" real,
"Date" text,
"Team" text,
"S... |
since 2105 what are the three most frequent drugs prescribed within the same month to the patients aged 30s after they have been diagnosed with prim cardiomyopathy nec. | 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 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: since 2105 what are the three most frequent drugs prescribed within the same month to the patients aged 30s after they have ... |
elevated triglyceride level > 150 mg / dl | CREATE TABLE table_train_179 (
"id" int,
"systolic_blood_pressure_sbp" int,
"fasting_plasma_glucose_fpg" float,
"diastolic_blood_pressure_dbp" int,
"diabetes" bool,
"body_mass_index_bmi" float,
"triglyceride_tg" float,
"hypertension" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_179 WHERE triglyceride_tg > 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: elevated triglyceride level > 150 mg / dl ### Input: CREATE TABLE table_train_179 (
"id" int,
"systolic_blood_pressu... |
give me the number of patients whose diagnoses long title is other and unspecified coagulation defects? | 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 WHERE diagnoses.long_title = "Other and unspecified coagulation defects" | Below are sql tables 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 diagnoses long title is other and unspecified coagulation defects? ### Input: CREATE TA... |
What was the score on may 21? | CREATE TABLE table_name_43 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_43 WHERE date = "may 21" | Below are sql tables 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 may 21? ### Input: CREATE TABLE table_name_43 (
score VARCHAR,
date VARCHAR
) ### Response: SE... |
Where did Hawthorn play as the away team? | CREATE TABLE table_4684 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_4684 WHERE "Away team" = 'hawthorn' | Below are sql tables 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 did Hawthorn play as the away team? ### Input: CREATE TABLE table_4684 (
"Home team" text,
"Home team score" t... |
What is the top speed of a 5-speed manual transmission produced in 2006-2009? | CREATE TABLE table_73030 (
"Engine" text,
"Production" text,
"Transmission" text,
"Power" text,
"Torque" text,
"Acceleration 0\u2013100km/h (0\u201362mph)" text,
"Top Speed" text
) | SELECT "Top Speed" FROM table_73030 WHERE "Production" = '2006-2009' AND "Transmission" = '5-speed manual' | Below are sql tables 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 top speed of a 5-speed manual transmission produced in 2006-2009? ### Input: CREATE TABLE table_73030 (
"Eng... |
What party did the incumbent from the Arkansas 5 district belong to? | CREATE TABLE table_72413 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Party" FROM table_72413 WHERE "District" = 'Arkansas 5' | Below are sql tables 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 party did the incumbent from the Arkansas 5 district belong to? ### Input: CREATE TABLE table_72413 (
"District" te... |
How many patients stayed in the hospital for more than 11 days and have discharge location as home? | 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 WHERE demographic.discharge_location = "HOME" AND demographic.days_stay > "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: How many patients stayed in the hospital for more than 11 days and have discharge location as home? ### Input: CREATE TABLE ... |
When are the birthdays of customer who are classified as 'Good Customer' status, and count them by a bar chart, could you order y-axis in ascending order? | CREATE TABLE Addresses (
address_id INTEGER,
line_1_number_building VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50)
)
CREATE TABLE Vehicles (
vehicle_id INTEGER,
vehicle_details VARCHAR(255)
)
CREATE TABLE Lessons (
le... | SELECT date_of_birth, COUNT(date_of_birth) FROM Customers WHERE customer_status_code = 'Good Customer' ORDER BY COUNT(date_of_birth) | Below are sql tables 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 are the birthdays of customer who are classified as 'Good Customer' status, and count them by a bar chart, could you or... |
What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14? | CREATE TABLE table_name_11 (
round INTEGER,
pick VARCHAR,
college VARCHAR,
overall VARCHAR
) | SELECT SUM(round) FROM table_name_11 WHERE college = "tennessee" AND overall > 153 AND pick < 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 is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger ... |
count the number of patients that have been diagnosed with atrial fibrillation but did not return to the hospital during the same month since 3 years ago. | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TAB... | SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'atrial fibrillation' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-3 year')) 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: count the number of patients that have been diagnosed with atrial fibrillation but did not return to the hospital during the... |
For employees with first names that end with the letter m, give me a bar chart to show their average salary, could you sort by the y axis from low to high? | 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),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT FIRST_NAME, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%m' GROUP BY FIRST_NAME ORDER BY AVG(SALARY) | Below are sql tables 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 employees with first names that end with the letter m, give me a bar chart to show their average salary, could you sort ... |
what was the name of the intake that patient 17953 had a last on the first icu visit? | CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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
)
CR... | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17953) AND NOT icustays.outtime IS N... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what was the name of the intake that patient 17953 had a last on the first icu visit? ### Input: CREATE TABLE patients (
... |
At what venue was South Melbourne the home team? | CREATE TABLE table_33319 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_33319 WHERE "Home team" = 'south 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: At what venue was South Melbourne the home team? ### Input: CREATE TABLE table_33319 (
"Home team" text,
"Home team ... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of first_name and manager_id in a bar chart, and show by the x-axis in desc. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varc... | SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_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 employees who do not work in departments with managers that have ids between 100 and 200, show me about the distri... |
TOP C++ users in New York. | CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id numb... | 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 C++ users in New York. ### Input: CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text t... |
What is the City, when the Prize is 880,000? | CREATE TABLE table_67351 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
) | SELECT "City" FROM table_67351 WHERE "Prize" = '€880,000' | Below are sql tables 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 City, when the Prize is 880,000? ### Input: CREATE TABLE table_67351 (
"Date" text,
"City" text,
"Ev... |
what's the district with first elected being 1938 | CREATE TABLE table_18637 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_18637 WHERE "First elected" = '1938' | Below are sql tables 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 district with first elected being 1938 ### Input: CREATE TABLE table_18637 (
"District" text,
"Incumbent"... |
What is the fa cup apps with 0 league cup goals, and a total of 43 apps? | CREATE TABLE table_62698 (
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"FLT Apps" text,
"FLT Goals" real,
"Total Apps" text,
"Total Goals" real
) | SELECT "FA Cup Apps" FROM table_62698 WHERE "League Cup Goals" = '0' AND "Total Apps" = '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 the fa cup apps with 0 league cup goals, and a total of 43 apps? ### Input: CREATE TABLE table_62698 (
"Name" te... |
What are the number of the names of all products?, rank x-axis from low to high order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY 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: What are the number of the names of all products?, rank x-axis from low to high order. ### Input: CREATE TABLE Manufacturers... |
What did the home team score at MCG? | CREATE TABLE table_name_39 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_39 WHERE venue = "mcg" | Below are sql tables 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 did the home team score at MCG? ### Input: CREATE TABLE table_name_39 (
home_team VARCHAR,
venue VARCHAR
) ### ... |
What is the head of government for Don Stephen Senanayake? | CREATE TABLE table_name_77 (
head_s__of_government VARCHAR,
name VARCHAR
) | SELECT head_s__of_government FROM table_name_77 WHERE name = "don stephen senanayake" | Below are sql tables 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 head of government for Don Stephen Senanayake? ### Input: CREATE TABLE table_name_77 (
head_s__of_government... |
Show the card type codes and the number of transactions with a bar chart, could you order Y in ascending order? | CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHA... | SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code ORDER BY COUNT(*) | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show the card type codes and the number of transactions with a bar chart, could you order Y in ascending order? ### Input: C... |
Which average lost that has a match less than 14? | CREATE TABLE table_41175 (
"Team" text,
"Match" real,
"Points" real,
"Draw" real,
"Lost" real
) | SELECT AVG("Lost") FROM table_41175 WHERE "Match" < '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: Which average lost that has a match less than 14? ### Input: CREATE TABLE table_41175 (
"Team" text,
"Match" real,
... |
what difference in the weight of patient 030-56105 last measured on the first hospital visit compared to the value first measured on the first hospital visit? | 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 (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-56105' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL 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 difference in the weight of patient 030-56105 last measured on the first hospital visit compared to the value first mea... |
What is Place, when Score is '75-71-72-70=288'? | CREATE TABLE table_7943 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
) | SELECT "Place" FROM table_7943 WHERE "Score" = '75-71-72-70=288' | Below are sql tables 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 Place, when Score is '75-71-72-70=288'? ### Input: CREATE TABLE table_7943 (
"Place" text,
"Player" text,
... |
What is the place of player peter oosterhuis, who has $7,500? | CREATE TABLE table_50497 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" text
) | SELECT "Place" FROM table_50497 WHERE "Money ( $ )" = '7,500' AND "Player" = 'peter oosterhuis' | Below are sql tables 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 place of player peter oosterhuis, who has $7,500? ### Input: CREATE TABLE table_50497 (
"Place" text,
"P... |
What rider is on an aprilia that went under 18 laps with a grid total of 17? | CREATE TABLE table_71707 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Rider" FROM table_71707 WHERE "Manufacturer" = 'aprilia' AND "Laps" < '18' AND "Grid" = '17' | Below are sql tables 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 rider is on an aprilia that went under 18 laps with a grid total of 17? ### Input: CREATE TABLE table_71707 (
"Ride... |
Who was the Away team at Arden Street Oval? | CREATE TABLE table_name_98 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team FROM table_name_98 WHERE venue = "arden street 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 was the Away team at Arden Street Oval? ### Input: CREATE TABLE table_name_98 (
away_team VARCHAR,
venue VARCHAR... |
Top 1000 Users from India. | CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IND' ORDER BY Reputation DESC 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: Top 1000 Users from India. ### Input: CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnsw... |
For fulfilling the Core which EDCURINS classes are acceptable ? | CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE course.department LIKE '%EDCURINS%' AND program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_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 fulfilling the Core which EDCURINS classes are acceptable ? ### Input: CREATE TABLE course (
course_id int,
name... |
count the number of patients whose diagnoses icd9 code is 135 and lab test abnormal status is abnormal? | 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,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | 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 = "135" AND lab.flag = "abnormal" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: count the number of patients whose diagnoses icd9 code is 135 and lab test abnormal status is abnormal? ### Input: CREATE TA... |
Name the points for when points against is of 450 | CREATE TABLE table_68941 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Points for" FROM table_68941 WHERE "Points against" = '450' | Below are sql tables 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 points for when points against is of 450 ### Input: CREATE TABLE table_68941 (
"Club" text,
"Played" text,
... |
what is admission type and diagnoses icd9 code of subject name anna johnson? | 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 demographic.admission_type, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Anna Johnson" | Below are sql tables 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 admission type and diagnoses icd9 code of subject name anna johnson? ### Input: CREATE TABLE demographic (
subje... |
what is diagnoses long title of diagnoses icd9 code 40391? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "40391" | Below are sql tables 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 long title of diagnoses icd9 code 40391? ### Input: CREATE TABLE procedures (
subject_id text,
had... |
Just show the first name and the manager id with a bar chart, and list by the bar in asc please. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID... | SELECT T1.FIRST_NAME, T1.MANAGER_ID FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID WHERE T1.EMPLOYEE_ID = T2.MANAGER_ID ORDER BY T1.FIRST_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: Just show the first name and the manager id with a bar chart, and list by the bar in asc please. ### Input: CREATE TABLE reg... |
What was the high assists on April 7? | CREATE TABLE table_21453 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_21453 WHERE "Date" = 'April 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 was the high assists on April 7? ### Input: CREATE TABLE table_21453 (
"Game" real,
"Date" text,
"Team" tex... |
For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by weekday, I want to sort in descending by the total number. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 varchar(2)
)
CREATE T... | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(EMPLOYEE_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 those employees who was hired before 2002-06-21, draw a bar chart about the distribution of hire_date and the average of... |
how many wins did texas tech have in the regular season of 1993 ? | CREATE TABLE table_204_197 (
id number,
"date" text,
"time" text,
"opponent#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
) | SELECT COUNT(*) FROM table_204_197 WHERE "result" = 'w' | Below are sql tables 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 wins did texas tech have in the regular season of 1993 ? ### Input: CREATE TABLE table_204_197 (
id number,
... |
in december 7 who made the high points | CREATE TABLE table_30049462_5 (
high_points VARCHAR,
date VARCHAR
) | SELECT high_points FROM table_30049462_5 WHERE date = "December 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: in december 7 who made the high points ### Input: CREATE TABLE table_30049462_5 (
high_points VARCHAR,
date VARCHAR
... |
What is the attendance number for the record of 17-22? | CREATE TABLE table_6662 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Attendance" FROM table_6662 WHERE "Record" = '17-22' | Below are sql tables 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 number for the record of 17-22? ### Input: CREATE TABLE table_6662 (
"Date" text,
"Opponent" ... |
Who was the visitor when the lakers were at home with a Score of 85 106? | CREATE TABLE table_51615 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Visitor" FROM table_51615 WHERE "Home" = 'lakers' AND "Score" = '85–106' | Below are sql tables 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 visitor when the lakers were at home with a Score of 85 106? ### Input: CREATE TABLE table_51615 (
"Date" te... |
For those employees who did not have any job in the past, draw a scatter chart about the correlation between employee_id and salary . | 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),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT EMPLOYEE_ID, SALARY FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | Below are sql tables 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, draw a scatter chart about the correlation between employee_id and... |
Draw a bar chart about the distribution of Name and Height , I want to display by the X in ascending. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Name, Height FROM people ORDER BY 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: Draw a bar chart about the distribution of Name and Height , I want to display by the X in ascending. ### Input: CREATE TABL... |
who are the candidates where the incumbent is sam m. gibbons? | CREATE TABLE table_1341663_10 (
candidates VARCHAR,
incumbent VARCHAR
) | SELECT candidates FROM table_1341663_10 WHERE incumbent = "Sam M. Gibbons" | Below are sql tables 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 are the candidates where the incumbent is sam m. gibbons? ### Input: CREATE TABLE table_1341663_10 (
candidates VARC... |
what are the four most frequently prescribed drugs for patients who were also prescribed oxycodone-acetaminophen elixir previously during the same month until 2104? | CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_items (
row_id number,
... | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'oxycodone-acetaminophen elixir' AND STRFTIME('%y', prescriptions.... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what are the four most frequently prescribed drugs for patients who were also prescribed oxycodone-acetaminophen elixir prev... |
A bar chart about what are the destinations and number of flights to each one?, display by the X-axis in ascending please. | CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE employee (
ei... | SELECT destination, COUNT(*) FROM flight GROUP BY destination ORDER BY destination | Below are sql tables 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 destinations and number of flights to each one?, display by the X-axis in ascending please. #... |
Give me the comparison about the average of ID over the Nationality , and group by attribute Nationality by a bar chart, and list from low to high by the Y. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
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 swimme... | SELECT Nationality, AVG(ID) FROM swimmer GROUP BY Nationality ORDER BY AVG(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 the average of ID over the Nationality , and group by attribute Nationality by a bar chart, and... |
Scatter. how many students does one classroom have? | CREATE TABLE list (
LastName TEXT,
FirstName TEXT,
Grade INTEGER,
Classroom INTEGER
)
CREATE TABLE teachers (
LastName TEXT,
FirstName TEXT,
Classroom INTEGER
) | SELECT COUNT(*), Classroom FROM list GROUP BY Classroom | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Scatter. how many students does one classroom have? ### Input: CREATE TABLE list (
LastName TEXT,
FirstName TEXT,
... |
Show total number of id from each meter 200, and list by the x axis in ascending. | 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
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Coun... | SELECT meter_200, SUM(ID) FROM swimmer GROUP BY meter_200 ORDER BY meter_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: Show total number of id from each meter 200, and list by the x axis in ascending. ### Input: CREATE TABLE swimmer (
ID i... |
get the number of elective hospital admission patients who had closed biopsy of tongue. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.short_title = "Closed biopsy of tongue" | Below are sql tables 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 the number of elective hospital admission patients who had closed biopsy of tongue. ### Input: CREATE TABLE demographic ... |
What is the position of pick 32? | CREATE TABLE table_8052 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
) | SELECT "Position" FROM table_8052 WHERE "Pick" = '32' | Below are sql tables 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 position of pick 32? ### Input: CREATE TABLE table_8052 (
"Round" real,
"Pick" real,
"Player" text,
... |
What was the record on the date of december 1, 1968? | CREATE TABLE table_name_55 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_55 WHERE date = "december 1, 1968" | Below are sql tables 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 the date of december 1, 1968? ### Input: CREATE TABLE table_name_55 (
record VARCHAR,
date VA... |
What is the lowest population(2011)? | CREATE TABLE table_189893_1 (
population__2011_ INTEGER
) | SELECT MIN(population__2011_) FROM table_189893_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 lowest population(2011)? ### Input: CREATE TABLE table_189893_1 (
population__2011_ INTEGER
) ### Response: ... |
What was the team score when Tim Duncan (12) got the high rebounds? | CREATE TABLE table_27715173_10 (
score VARCHAR,
high_rebounds VARCHAR
) | SELECT score FROM table_27715173_10 WHERE high_rebounds = "Tim Duncan (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 team score when Tim Duncan (12) got the high rebounds? ### Input: CREATE TABLE table_27715173_10 (
score VA... |
Show all director names who have a movie in the year 1999 or 2000, and count them by a bar chart, order by the Y-axis in desc. | CREATE TABLE movie (
movie_id int,
Title text,
Year int,
Director text,
Budget_million real,
Gross_worldwide int
)
CREATE TABLE book_club (
book_club_id int,
Year int,
Author_or_Editor text,
Book_Title text,
Publisher text,
Category text,
Result text
)
CREATE TABLE ... | SELECT Director, COUNT(Director) FROM movie WHERE Year = 1999 OR Year = 2000 GROUP BY Director ORDER BY COUNT(Director) 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 all director names who have a movie in the year 1999 or 2000, and count them by a bar chart, order by the Y-axis in des... |
i would like a flight leaving from BOSTON arriving in SAN FRANCISCO with a stopover in ATLANTA | CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND CIT... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: i would like a flight leaving from BOSTON arriving in SAN FRANCISCO with a stopover in ATLANTA ### Input: CREATE TABLE fligh... |
What venue had less than 2 goals? | CREATE TABLE table_name_80 (
venue VARCHAR,
goal INTEGER
) | SELECT venue FROM table_name_80 WHERE goal < 2 | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What venue had less than 2 goals? ### Input: CREATE TABLE table_name_80 (
venue VARCHAR,
goal INTEGER
) ### Response... |
Which courses will be held in the next 6 semesters ? | 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.name, course.number, semester.semester, semester.year FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'FA' AND semester.year = 2017) OR (semester.semester = 'FA' AND semester.year = 2018) OR (semester.semester = 'WN' AND se... | Below are sql tables 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 courses will be held in the next 6 semesters ? ### Input: CREATE TABLE student (
student_id int,
lastname varc... |
Who was the home team at Junction Oval when attendance was over 16,000? | CREATE TABLE table_56124 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_56124 WHERE "Crowd" > '16,000' AND "Venue" = 'junction 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 was the home team at Junction Oval when attendance was over 16,000? ### Input: CREATE TABLE table_56124 (
"Home team... |
what is the attendance on december 14, 2003? | CREATE TABLE table_13818 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"TV Time" text,
"Attendance" text
) | SELECT "Attendance" FROM table_13818 WHERE "Date" = 'december 14, 2003' | Below are sql tables 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 on december 14, 2003? ### Input: CREATE TABLE table_13818 (
"Week" real,
"Date" text,
"Op... |
Get me the number of patients with elective hospital admission who are on propofol. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | 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.drug = "Propofol" | Below are sql tables 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 with elective hospital admission who are on propofol. ### Input: CREATE TABLE procedures (
... |
who was the opponent when the week was 9? | CREATE TABLE table_52514 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
) | SELECT "Opponent" FROM table_52514 WHERE "Week" = '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: who was the opponent when the week was 9? ### Input: CREATE TABLE table_52514 (
"Week" text,
"Date" text,
"Oppon... |
What is the latest week when the chicago bears are the opponent? | CREATE TABLE table_64034 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT MAX("Week") FROM table_64034 WHERE "Opponent" = 'chicago bears' | Below are sql tables 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 latest week when the chicago bears are the opponent? ### Input: CREATE TABLE table_64034 (
"Week" real,
... |
show me flights from DENVER to PHILADELPHIA | CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE T... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADE... | Below are sql tables 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 from DENVER to PHILADELPHIA ### Input: CREATE TABLE ground_service (
city_code text,
airport_code te... |
In Adv Material Struct , which courses meet the PreMajor need ? | CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE student (
student_id int,
lastname varchar,
... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%Adv Material Struct%' OR course.description LIKE '%Adv Material Struct%' OR course.name LIKE '%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: In Adv Material Struct , which courses meet the PreMajor need ? ### Input: CREATE TABLE course_prerequisite (
pre_course... |
What is the release date of production number 1327? | CREATE TABLE table_79457 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" real,
"Release date" text
) | SELECT "Release date" FROM table_79457 WHERE "Production Number" = '1327' | Below are sql tables 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 release date of production number 1327? ### Input: CREATE TABLE table_79457 (
"Title" text,
"Series" tex... |
For those employees who did not have any job in the past, give me the trend about department_id over hire_date . | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID... | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | Below are sql tables 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, give me the trend about department_id over hire_date . ### Input: ... |
how many patients are admitted before the year 2177? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admityear < "2177" | Below are sql tables 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 admitted before the year 2177? ### Input: CREATE TABLE procedures (
subject_id text,
hadm_id t... |
how much does patient 14982 change in heart rate last measured on the last icu visit compared to the first value measured on the last icu 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 (SELECT chartevents.valuenum 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 = 14982) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how much does patient 14982 change in heart rate last measured on the last icu visit compared to the first value measured on... |
What is the Total medals for the Nation ranking 33 with more than 1 Bronze? | CREATE TABLE table_76547 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Total") FROM table_76547 WHERE "Rank" = '33' AND "Bronze" > '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 medals for the Nation ranking 33 with more than 1 Bronze? ### Input: CREATE TABLE table_76547 (
"Rank"... |
what is patient 10624's change in heart rate from the second value measured on the first icu visit compared to the first value measured on the first icu visit? | CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,... | SELECT (SELECT chartevents.valuenum 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 = 10624) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.item... | Below are sql tables 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 patient 10624's change in heart rate from the second value measured on the first icu visit compared to the first val... |
Name the rank on channel mooning and crooning | CREATE TABLE table_26687 (
"Episode number Production number" text,
"Title" text,
"Original airdate" text,
"Time of airing" text,
"Total viewers on Hallmark" real,
"Total viewers on Hallmark+1" real,
"Total viewers" real,
"Rank on channel" text
) | SELECT "Rank on channel" FROM table_26687 WHERE "Title" = 'Mooning and Crooning' | Below are sql tables 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 rank on channel mooning and crooning ### Input: CREATE TABLE table_26687 (
"Episode number Production number" t... |
what is age and drug route of subject id 2560? | 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,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT demographic.age, prescriptions.route FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "2560" | Below are sql tables 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 age and drug route of subject id 2560? ### Input: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
... |
Which location has 140 stores? | CREATE TABLE table_57877 (
"Mall name" text,
"Location" text,
"Retail space Sq. feet/(m\u00b2)" text,
"Stores" text,
"Year opened" real
) | SELECT "Location" FROM table_57877 WHERE "Stores" = '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: Which location has 140 stores? ### Input: CREATE TABLE table_57877 (
"Mall name" text,
"Location" text,
"Retail ... |
What was the total attendance of the New York Giants? | CREATE TABLE table_28884858_2 (
total_attendance INTEGER,
team VARCHAR
) | SELECT MIN(total_attendance) FROM table_28884858_2 WHERE team = "New York Giants" | Below are sql tables 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 attendance of the New York Giants? ### Input: CREATE TABLE table_28884858_2 (
total_attendance INTEGE... |
what is the number of female patients with drug code d5lr1000? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "D5LR1000" | Below are sql tables 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 female patients with drug code d5lr1000? ### Input: CREATE TABLE prescriptions (
subject_id text,
... |
What is the number of start dates for incidents with incident type code 'NOISE'? Bin by year and return a bar chart, order Y-axis in asc order please. | CREATE TABLE Ref_Detention_Type (
detention_type_code VARCHAR(10),
detention_type_description VARCHAR(80)
)
CREATE TABLE Teachers (
teacher_id INTEGER,
address_id INTEGER,
first_name VARCHAR(80),
middle_name VARCHAR(80),
last_name VARCHAR(80),
gender VARCHAR(1),
cell_mobile_number V... | SELECT date_incident_start, COUNT(date_incident_start) FROM Behavior_Incident WHERE incident_type_code = "NOISE" ORDER BY COUNT(date_incident_start) | Below are sql tables 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 start dates for incidents with incident type code 'NOISE'? Bin by year and return a bar chart, order Y... |
What is Place, when Player is 'John Cook'? | CREATE TABLE table_60484 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_60484 WHERE "Player" = 'john cook' | Below are sql tables 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 Place, when Player is 'John Cook'? ### Input: CREATE TABLE table_60484 (
"Place" text,
"Player" text,
"C... |
What was the home team that had an opponent of footscray? | CREATE TABLE table_57219 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_57219 WHERE "Away team" = 'footscray' | Below are sql tables 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 home team that had an opponent of footscray? ### Input: CREATE TABLE table_57219 (
"Home team" text,
"H... |
What is the 2010/11 number when the 2007/08 is 772.6? | CREATE TABLE table_30617 (
"IME Exchange (Including spot, credit and forward transactions)" text,
"2007/08" text,
"2008/09" text,
"2009/10" text,
"2010/11" text
) | SELECT "2010/11" FROM table_30617 WHERE "2007/08" = '772.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 is the 2010/11 number when the 2007/08 is 772.6? ### Input: CREATE TABLE table_30617 (
"IME Exchange (Including spo... |
What is the incumbent for ohio 12? | CREATE TABLE table_1342249_35 (
incumbent VARCHAR,
district VARCHAR
) | SELECT incumbent FROM table_1342249_35 WHERE district = "Ohio 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 is the incumbent for ohio 12? ### Input: CREATE TABLE table_1342249_35 (
incumbent VARCHAR,
district VARCHAR
) ... |
when was the last time that patient 010-26737 has had the minimum respiration since 04/04/2105? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellv... | 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 = '010-26737')) AND NOT vitalperiodic.respiration IS N... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: when was the last time that patient 010-26737 has had the minimum respiration since 04/04/2105? ### Input: CREATE TABLE medi... |
What is the to par for the player who had a score of 70-72-70-69=281? | CREATE TABLE table_name_18 (
to_par VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_18 WHERE score = 70 - 72 - 70 - 69 = 281 | Below are sql tables 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 to par for the player who had a score of 70-72-70-69=281? ### Input: CREATE TABLE table_name_18 (
to_par VAR... |
i want to fly from DENVER to SAN FRANCISCO | 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 airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
dire... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRA... | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: i want to fly from DENVER to SAN FRANCISCO ### Input: CREATE TABLE airport (
airport_code varchar,
airport_name text... |
show me nonstop flights from TORONTO to ST. PETERSBURG | CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
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 in... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'TORONTO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ST. P... | Below are sql tables 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 nonstop flights from TORONTO to ST. PETERSBURG ### Input: CREATE TABLE airline (
airline_code varchar,
airli... |
A line chart for returning the number of the date of birth for all the guests with gender code 'Male'. | CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartment_Facilities (
apt_id I... | SELECT date_of_birth, COUNT(date_of_birth) FROM Guests WHERE gender_code = "Male" | Below are sql tables 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 for returning the number of the date of birth for all the guests with gender code 'Male'. ### Input: CREATE TAB... |
count the number of patients whose death status is 1 and diagnoses icd9 code is 2864. | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.icd9_code = "2864" | Below are sql tables 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 icd9 code is 2864. ### Input: CREATE TABLE prescriptions ... |
What is the Set 1 with a Set 2 that is 25-19? | CREATE TABLE table_name_12 (
set_1 VARCHAR,
set_2 VARCHAR
) | SELECT set_1 FROM table_name_12 WHERE set_2 = "25-19" | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Set 1 with a Set 2 that is 25-19? ### Input: CREATE TABLE table_name_12 (
set_1 VARCHAR,
set_2 VARCHAR
)... |
What Competition had a Score of 3 3? | CREATE TABLE table_name_27 (
competition VARCHAR,
score VARCHAR
) | SELECT competition FROM table_name_27 WHERE score = "3–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 Competition had a Score of 3 3? ### Input: CREATE TABLE table_name_27 (
competition VARCHAR,
score VARCHAR
) ##... |
TOP 250 users from The Netherlands. | 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 Votes (
Id number,
PostId number,
... | SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Turkey%' ORDER BY Reputation DESC LIMIT 250 | Below are sql tables 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 250 users from The Netherlands. ### Input: CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetT... |
what is the latest flight from SALT LAKE CITY to PHOENIX | CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SALT LAKE CITY' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_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: what is the latest flight from SALT LAKE CITY to PHOENIX ### Input: CREATE TABLE flight (
aircraft_code_sequence text,
... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of price , and group by attribute name, sort in desc by the x-axis. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name 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: For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.