answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT part_3 FROM table_1745843_7 WHERE part_4 = "gelopen" | What's the part 3 of the verb with part 4 gelopen? | CREATE TABLE table_1745843_7 (part_3 VARCHAR, part_4 VARCHAR) |
SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 77676 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'diff c... | what is a name for a drug that patient 77676 was prescribed within 2 days after having been diagnosed with diff connect tis dis nos until 11/2101? | CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime t... |
SELECT SUM(population) FROM table_name_68 WHERE simplified = "上杭县" AND area < 2 OFFSET 879 | What's the sum of the population for the place simplified 上杭县 with an area smaller than 2,879? | CREATE TABLE table_name_68 (population INTEGER, simplified VARCHAR, area VARCHAR) |
SELECT COUNT(class) FROM table_1745843_6 WHERE part_3 = "lucon" | How many different classes of verbs are there whose part 3 is lucon? | CREATE TABLE table_1745843_6 (class VARCHAR, part_3 VARCHAR) |
SELECT "Date" FROM table_29898 WHERE "High assists" = 'Andre Miller (7)' | what is the date the high assists was andre miller (7)? | CREATE TABLE table_29898 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT COUNT(density) FROM table_name_57 WHERE population > 393 OFFSET 390 | What's the total number of density for the place with a population over 393,390? | CREATE TABLE table_name_57 (density VARCHAR, population INTEGER) |
SELECT class FROM table_1745843_6 WHERE part_1 = "lesan" | What's the class of the verb whose part 1 is lesan? | CREATE TABLE table_1745843_6 (class VARCHAR, part_1 VARCHAR) |
SELECT 1989 FROM table_name_22 WHERE 2002 = "4r" AND 2005 = "4r" | what 1989 has 2002 of 4r and 2005 of 4r? | CREATE TABLE table_name_22 (
Id VARCHAR
) |
SELECT AVG(area) FROM table_name_20 WHERE english_name = "xinluo district" | What's the average area for the xinluo district? | CREATE TABLE table_name_20 (area INTEGER, english_name VARCHAR) |
SELECT COUNT(part_3) FROM table_1745843_6 WHERE verb_meaning = "to freeze" | How many different part 3 verbs are there that mean to freeze? | CREATE TABLE table_1745843_6 (part_3 VARCHAR, verb_meaning VARCHAR) |
SELECT "Venue" FROM table_32617 WHERE "Away team" = 'st kilda' | Where did St Kilda play as the away team? | CREATE TABLE table_32617 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT AVG(attendance) FROM table_name_77 WHERE date = "july 30" | What was the attendance on July 30? | CREATE TABLE table_name_77 (attendance INTEGER, date VARCHAR) |
SELECT part_3 FROM table_1745843_6 WHERE class = "4" | What's the part 3 of the verb whose class is 4? | CREATE TABLE table_1745843_6 (part_3 VARCHAR, class VARCHAR) |
SELECT "Date" FROM table_77555 WHERE "Decision" = 'niittymaki' AND "Attendance" > '19,207' AND "Record" = '28–17–5' | What was the date that the decision was Niittymaki, the attendance larger than 19,207, and the record 28 17 5? | CREATE TABLE table_77555 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) |
SELECT AVG(goals) FROM table_name_26 WHERE result = "0 – 4" | How many Goals have a Result of 0 – 4? | CREATE TABLE table_name_26 (goals INTEGER, result VARCHAR) |
SELECT part_3 FROM table_1745843_6 WHERE class = "5" | What's the part 3 of the verb in class 5? | CREATE TABLE table_1745843_6 (part_3 VARCHAR, class VARCHAR) |
SELECT "Player" FROM table_15871 WHERE "School/Club Team" = 'Georgia' | which player is from georgia | CREATE TABLE table_15871 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
) |
SELECT goals FROM table_name_33 WHERE result = "12 – 0" | How many goals have a Result of 12 – 0? | CREATE TABLE table_name_33 (goals VARCHAR, result VARCHAR) |
SELECT class FROM table_1745843_5 WHERE part_2 = "laug" | What is the class of the word who's second participle is laug? | CREATE TABLE table_1745843_5 (class VARCHAR, part_2 VARCHAR) |
SELECT country FROM table_19001175_1 WHERE name = "Hideki Noda Category:Articles with hCards" | Name the country for hideki noda category:articles with hcards | CREATE TABLE table_19001175_1 (
country VARCHAR,
name VARCHAR
) |
SELECT result FROM table_name_77 WHERE date = "9 october 2009" | Which Result has a Date of 9 october 2009? | CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR) |
SELECT verb_meaning FROM table_1745843_5 WHERE class = "6" | What is the meaning of the class 6 verbs? | CREATE TABLE table_1745843_5 (verb_meaning VARCHAR, class VARCHAR) |
SELECT "Approximate sales" FROM table_27409 WHERE "Author" = 'Laura Ingalls Wilder' | What are all approximate sales for the author Laura Ingalls Wilder? | CREATE TABLE table_27409 (
"Book series" text,
"Author" text,
"Original language" text,
"No. of installments" text,
"First published" text,
"Approximate sales" text
) |
SELECT MAX(goals) FROM table_name_45 WHERE date = "7 february 2010" | Which Goals have a Date of 7 february 2010? | CREATE TABLE table_name_45 (goals INTEGER, date VARCHAR) |
SELECT part_3 FROM table_1745843_5 WHERE part_2 = "band" | What is the 3rd participle of the verb whose 2nd participle is band? | CREATE TABLE table_1745843_5 (part_3 VARCHAR, part_2 VARCHAR) |
SELECT "Result" FROM table_62839 WHERE "Score" = '5-1' | What was the result when the score was 5-1? | CREATE TABLE table_62839 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) |
SELECT MIN(year) FROM table_name_89 WHERE chassis = "jordan 193" | What was the first year to have a Chassis of Jordan 193? | CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR) |
SELECT part_1 FROM table_1745843_5 WHERE part_4 = "haitans" | What is the 1st participle of the verb whose 4th participle is haitans? | CREATE TABLE table_1745843_5 (part_1 VARCHAR, part_4 VARCHAR) |
SELECT südbayern FROM table_name_27 WHERE year = 1928 | What's the S dbayern in 1928? | CREATE TABLE table_name_27 (
südbayern VARCHAR,
year VARCHAR
) |
SELECT school FROM table_name_28 WHERE mascot = "raiders" | Which School's Mascot is Raiders? | CREATE TABLE table_name_28 (school VARCHAR, mascot VARCHAR) |
SELECT part_4 FROM table_1745843_2 WHERE part_2 = "*lauk" | For part 2 *lauk, what is listed for part 4? | CREATE TABLE table_1745843_2 (part_4 VARCHAR, part_2 VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2058" AND prescriptions.drug_type = "ADDITIVE" | count the number of patients whose year of birth is less than 2058 and drug type is additive? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... |
SELECT mascot FROM table_name_51 WHERE school = "north valleys" | What is North Valleys School Mascot? | CREATE TABLE table_name_51 (mascot VARCHAR, school VARCHAR) |
SELECT verb_meaning FROM table_1745843_2 WHERE part_3 = "*bundun" | What is the verb meaning for *bundun? | CREATE TABLE table_1745843_2 (verb_meaning VARCHAR, part_3 VARCHAR) |
SELECT demographic.marital_status FROM demographic WHERE demographic.name = "Paul Edwards" | What is the marital status of Paul Edwards? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... |
SELECT SUM(enrollment) FROM table_name_66 WHERE mascot = "cougars" | What is the Enrollment where Cougars is a Mascot? | CREATE TABLE table_name_66 (enrollment INTEGER, mascot VARCHAR) |
SELECT part_3 FROM table_1745843_2 WHERE part_2 = "*raid" | For part 2 *raid, what is listed for part 3? | CREATE TABLE table_1745843_2 (part_3 VARCHAR, part_2 VARCHAR) |
SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.days_stay = "29" | what is maximum age of patients whose marital status is widowed and days of hospital stay is 29? | 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 league FROM table_name_87 WHERE school = "reed" | In what League is the Reed School? | CREATE TABLE table_name_87 (league VARCHAR, school VARCHAR) |
SELECT part_2 FROM table_1745843_2 WHERE part_4 = "*ridanaz" | What word is listed under part 2 for part 4 *ridanaz? | CREATE TABLE table_1745843_2 (part_2 VARCHAR, part_4 VARCHAR) |
SELECT high_points FROM table_23285805_8 WHERE game = 69 | Who has the high points for the 69 game? | CREATE TABLE table_23285805_8 (
high_points VARCHAR,
game VARCHAR
) |
SELECT mascot FROM table_name_23 WHERE enrollment > 2 OFFSET 464 | What Mascot has an Enrollment greater than 2,464? | CREATE TABLE table_name_23 (mascot VARCHAR, enrollment INTEGER) |
SELECT part_1 FROM table_1745843_2 WHERE class = "3b" | What is listed under part 1 for class 3b? | CREATE TABLE table_1745843_2 (part_1 VARCHAR, class VARCHAR) |
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions... | show me the top three most frequent diagnoses that patients were given within the same month after being diagnosed with status cardiac pacemaker the last year. | 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 runner_up FROM table_name_60 WHERE third_place = "omar camporese" | Who was the runner-up in the tournament in which Omar Camporese held third place? | CREATE TABLE table_name_60 (runner_up VARCHAR, third_place VARCHAR) |
SELECT class FROM table_1745843_10 WHERE part_4 = "frosinn" | What class is the verb wich its part 4 is frosinn | CREATE TABLE table_1745843_10 (class VARCHAR, part_4 VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid ... | how many hours have elapsed since patient 007-15837 last received an intake of intake (ml)-gastrostomy/enterostomy gastrostomy 20 fr. luq on the current icu visit? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientuni... |
SELECT runner_up FROM table_name_86 WHERE tournament = "london" | Who was the runner-up in the tournament in London? | CREATE TABLE table_name_86 (runner_up VARCHAR, tournament VARCHAR) |
SELECT class FROM table_1745843_10 WHERE part_3 = "heldu" | What class is the verb wich its part 3 is heldu | CREATE TABLE table_1745843_10 (class VARCHAR, part_3 VARCHAR) |
SELECT "Party" FROM table_23282 WHERE "Candidates" = 'Mark Critz (D) 50.8% Tim Burns (R) 49.2%' | When mark critz (d) 50.8% tim burns (r) 49.2% are the candidates what is the party? | CREATE TABLE table_23282 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT score FROM table_name_32 WHERE third_place = "michael stich" | What was the score in the tournament in which Michael Stich took third place? | CREATE TABLE table_name_32 (score VARCHAR, third_place VARCHAR) |
SELECT part_1 FROM table_1745843_10 WHERE class = "7b" | What is part 1 of the verb in class 7b | CREATE TABLE table_1745843_10 (part_1 VARCHAR, class VARCHAR) |
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Bioinformatics Seminar%' OR name LIKE '%Bioinformatics Seminar%') AND credits = 2 | Let me see 2 -credit Bioinformatics Seminar classes . | CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester i... |
SELECT third_place FROM table_name_16 WHERE score = "2–6, 7–6(3), [10–5]" | Who holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]? | CREATE TABLE table_name_16 (third_place VARCHAR, score VARCHAR) |
SELECT part_3 FROM table_1745843_10 WHERE class = "4" | What is part 1 of the verb in class 4 | CREATE TABLE table_1745843_10 (part_3 VARCHAR, class VARCHAR) |
SELECT "Party" FROM table_59493 WHERE "Name" = 'jackie goldberg' | What is the political party of Jackie Goldberg? | CREATE TABLE table_59493 (
"Name" text,
"Residence" text,
"Party" text,
"Years in Assembly" text,
"Years in Senate" text
) |
SELECT MIN(goals_for) FROM table_name_32 WHERE goals_against = 70 AND ties < 0 | what is the least number of goals for when the goals against is 70 and the ties less than 0? | CREATE TABLE table_name_32 (goals_for INTEGER, goals_against VARCHAR, ties VARCHAR) |
SELECT COUNT(part_4) FROM table_1745843_10 WHERE verb_meaning = "to bear" | How many verbs mean to bear | CREATE TABLE table_1745843_10 (part_4 VARCHAR, verb_meaning VARCHAR) |
SELECT Name, SUM(T1.Show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.Cinema_ID = T2.Cinema_ID GROUP BY T1.Cinema_ID ORDER BY Name | Display a bar chart for what is total number of show times per dat for each cinema?, rank by the bars from low to high. | CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_seaso... |
SELECT AVG(losses) FROM table_name_10 WHERE wins = 9 AND ties > 0 | what is the average losses when the wins is 9 and ties more than 0? | CREATE TABLE table_name_10 (losses INTEGER, wins VARCHAR, ties VARCHAR) |
SELECT COUNT(part_1) FROM table_1745843_10 WHERE verb_meaning = "to grow, to produce" | How many verbs mean to grow, to produce | CREATE TABLE table_1745843_10 (part_1 VARCHAR, verb_meaning VARCHAR) |
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-25705')) AND intakeoutput.celllabel = 'volum... | tell me how many doses of volume (ml) milrinone patient 021-25705 had consumed on last month/29. | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9cod... |
SELECT MIN(ties) FROM table_name_10 WHERE losses = 7 AND games_played < 10 | what is the lowest number of ties when the losses is 7 and games played is less than 10? | CREATE TABLE table_name_10 (ties INTEGER, losses VARCHAR, games_played VARCHAR) |
SELECT written_by FROM table_17467578_1 WHERE us_viewers__million_ = "3.96" | Who wrote the episode "The Dream Lover", which was viewed by 3.96 million viewers? | CREATE TABLE table_17467578_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT COUNT(failures) FROM table_name_76 WHERE country = "russia" AND family = "r14 r-14" AND partial_failures < 0 | What is the number of failure for the country of Russia, and a Family of r14 r-14, and a Partial failures smaller than 0? | CREATE TABLE table_name_76 (
failures VARCHAR,
partial_failures VARCHAR,
country VARCHAR,
family VARCHAR
) |
SELECT SUM(games_played) FROM table_name_31 WHERE losses < 7 AND wins = 6 AND goals_for > 76 | what is the sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76? | CREATE TABLE table_name_31 (games_played INTEGER, goals_for VARCHAR, losses VARCHAR, wins VARCHAR) |
SELECT COUNT(original_airdate) FROM table_17467578_1 WHERE episode__number = 8 | What is the original air date of episode 8? Answer: Dec. 21, 2006 | CREATE TABLE table_17467578_1 (original_airdate VARCHAR, episode__number VARCHAR) |
SELECT FIRST_NAME, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME | For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of first_name and department_id , and I want to order X in asc order. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varcha... |
SELECT COUNT(games_played) FROM table_name_8 WHERE goals_for < 30 | what is the total number of games played when the goals for is less than 30? | CREATE TABLE table_name_8 (games_played VARCHAR, goals_for INTEGER) |
SELECT written_by FROM table_17467578_1 WHERE us_viewers__million_ = "3.73" | Who wrote the episode "The Cold Turkey", which was viewed by 3.73 million viewers? | CREATE TABLE table_17467578_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT customer_first_name, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) | How many accounts for each customer? Show a bar chart that groups by customer's first name, sort by the the total number in ascending. | CREATE TABLE Invoices (
invoice_number INTEGER,
order_id INTEGER,
invoice_date DATETIME
)
CREATE TABLE Orders (
order_id INTEGER,
customer_id INTEGER,
date_order_placed DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
date_... |
SELECT SUM(wins) FROM table_name_53 WHERE team = "ottawa hockey club" AND games_played < 10 | what is the sum of wins for the ottawa hockey club when the games played is less than 10? | CREATE TABLE table_name_53 (wins INTEGER, team VARCHAR, games_played VARCHAR) |
SELECT written_by FROM table_17467578_1 WHERE episode__number = 11 | Who wrote episode 11? | CREATE TABLE table_17467578_1 (written_by VARCHAR, episode__number VARCHAR) |
SELECT SUM("Points") FROM table_67323 WHERE "Team" = 'navy' AND "Lost" > '11' | How many points for the navy team that lost over 11? | CREATE TABLE table_67323 (
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) |
SELECT SUM(attendance) FROM table_name_34 WHERE date = "february 3, 2008" | How many people attended the game on February 3, 2008? | CREATE TABLE table_name_34 (attendance INTEGER, date VARCHAR) |
SELECT original_airdate FROM table_17467578_1 WHERE us_viewers__million_ = "3.73" | What was the original airdate of the episode "The Cold Turkey", which was viewed by 3.73 million viewers? | CREATE TABLE table_17467578_1 (original_airdate VARCHAR, us_viewers__million_ VARCHAR) |
SELECT "Games played" FROM table_73584 WHERE "Points per game" = '4.7' | How many games played have 4.7 as points per game? | CREATE TABLE table_73584 (
"Tournament" text,
"Games played" real,
"Points per game" text,
"Rebounds per game" text,
"Assists per game" text
) |
SELECT home_team FROM table_name_17 WHERE away_team = "collingwood" | What is the name of the home team that played against Collingwood? | CREATE TABLE table_name_17 (home_team VARCHAR, away_team VARCHAR) |
SELECT class FROM table_1745843_9 WHERE part_3 = "boten" | Name the class for boten | CREATE TABLE table_1745843_9 (class VARCHAR, part_3 VARCHAR) |
SELECT MIN(top_5) FROM table_name_82 WHERE events > 18 | What are the least Top-5 finish when the events are greater than 18? | CREATE TABLE table_name_82 (
top_5 INTEGER,
events INTEGER
) |
SELECT away_team FROM table_name_50 WHERE venue = "windy hill" | Which Away team played at the Windy Hill Venue? | CREATE TABLE table_name_50 (away_team VARCHAR, venue VARCHAR) |
SELECT part_3 FROM table_1745843_9 WHERE part_1 = "treffen" | Name the part 3 for treffen | CREATE TABLE table_1745843_9 (part_3 VARCHAR, part_1 VARCHAR) |
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.long_title = "Percutaneous aspiration of liver" | provide the number of patients whose admission type is elective and procedure long title is percutaneous aspiration of liver? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... |
SELECT crowd FROM table_name_9 WHERE venue = "glenferrie oval" | How large of a crowd can the Glenferrie oval hold? | CREATE TABLE table_name_9 (crowd VARCHAR, venue VARCHAR) |
SELECT part_1 FROM table_1745843_9 WHERE verb_meaning = "to give" | Name the part one for to give | CREATE TABLE table_1745843_9 (part_1 VARCHAR, verb_meaning VARCHAR) |
SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job ORDER BY AVG(age) DESC | What is the average age for a male in each job Visualize by bar chart, and rank by the y-axis in desc. | CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
) |
SELECT COUNT(crowd) FROM table_name_48 WHERE venue = "brunswick street oval" | How large of a crowd can the Brunswick Street Oval hold? | CREATE TABLE table_name_48 (crowd VARCHAR, venue VARCHAR) |
SELECT class FROM table_1745843_9 WHERE part_3 = "schliefen" | Name the class for schliefen | CREATE TABLE table_1745843_9 (class VARCHAR, part_3 VARCHAR) |
SELECT Service_Type_Description, COUNT(Service_Type_Description) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100 GROUP BY Service_Type_Description ORDER BY COUNT(Service_Type_Description) | What are the number of the descriptions of the service types with product price above 100?, and I want to list from low to high by the y-axis. | CREATE TABLE Bookings (
Booking_ID INTEGER,
Customer_ID INTEGER,
Workshop_Group_ID VARCHAR(100),
Status_Code CHAR(15),
Store_ID INTEGER,
Order_Date DATETIME,
Planned_Delivery_Date DATETIME,
Actual_Delivery_Date DATETIME,
Other_Order_Details VARCHAR(255)
)
CREATE TABLE Stores (
S... |
SELECT MIN(league) FROM table_name_67 WHERE total > 8 | What is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored? | CREATE TABLE table_name_67 (league INTEGER, total INTEGER) |
SELECT verb_meaning FROM table_1745843_9 WHERE part_2 = "half drosch" | Name the verb meaning for half drosch | CREATE TABLE table_1745843_9 (verb_meaning VARCHAR, part_2 VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.long_title = "Endoscopic insertion of stent (tube) into bile duct" | how many patients are admitted under urgent type and procedured with endoscopic insertion of stent (tube) into bile duct? | 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 AVG(fa_cup) FROM table_name_72 WHERE name = "whelan" AND total > 7 | What is the average number of goals scored in the FA Cup by Whelan where he had more than 7 total goals? | CREATE TABLE table_name_72 (fa_cup INTEGER, name VARCHAR, total VARCHAR) |
SELECT directed_by FROM table_17467447_1 WHERE production_code = "2T6267" | If the product code is 2t6267, who was the director? | CREATE TABLE table_17467447_1 (directed_by VARCHAR, production_code VARCHAR) |
SELECT "Circuit" FROM table_11806 WHERE "Race" = 'german grand prix' | What circuit was for the german grand prix? | CREATE TABLE table_11806 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Report" text
) |
SELECT uyghur_latin___uly__ FROM table_name_14 WHERE population__2010_census_ = "69,361" | What is the Uyghur Latin with a population of 69,361? | CREATE TABLE table_name_14 (uyghur_latin___uly__ VARCHAR, population__2010_census_ VARCHAR) |
SELECT original_airdate FROM table_17467447_1 WHERE us_viewers__million_ = "5.50" | What is the air date when the U.S. viewers was 5.50 million? | CREATE TABLE table_17467447_1 (original_airdate VARCHAR, us_viewers__million_ VARCHAR) |
SELECT "Spouse" FROM table_56244 WHERE "Father" = 'ferdinand i of the two sicilies' | Who is the spouse of the queen who is the daughter of Ferdinand I of the two sicilies? | CREATE TABLE table_56244 (
"Name" text,
"Father" text,
"Birth" text,
"Marriage" text,
"Became Queen" text,
"Ceased to be Queen" text,
"Death" text,
"Spouse" text
) |
SELECT hanyu_pinyin FROM table_name_94 WHERE area__km²_ = "400" | What is the Hanyu Pinyin with an area of 400? | CREATE TABLE table_name_94 (hanyu_pinyin VARCHAR, area__km²_ VARCHAR) |
SELECT written_by FROM table_17467447_1 WHERE production_code = "2T6268" | Who were the writers for production code 2t6268? | CREATE TABLE table_17467447_1 (written_by VARCHAR, production_code VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.