answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT player FROM table_name_74 WHERE position = "forward" AND school_club_team = "southern methodist" | What Utah Jazz Forward played for Southern Methodist? | CREATE TABLE table_name_74 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) |
SELECT launch_date FROM table_1906515_1 WHERE duration__days_ = "174.14" | Name the launch date for duration days 174.14 | CREATE TABLE table_1906515_1 (launch_date VARCHAR, duration__days_ VARCHAR) |
SELECT SUM(silver) FROM table_name_88 WHERE gold = 2 AND total < 15 AND rank > 5 | What is the sum of sliver medals when there were 2 gold medals, less than 15 total medals, and the rank is greater than 5? | CREATE TABLE table_name_88 (
silver INTEGER,
rank VARCHAR,
gold VARCHAR,
total VARCHAR
) |
SELECT years_for_jazz FROM table_name_52 WHERE school_club_team = "southern methodist" | What years did the Utah Jazz Player from Southern Methodist, Play? | CREATE TABLE table_name_52 (years_for_jazz VARCHAR, school_club_team VARCHAR) |
SELECT COUNT(3 AS rd_place) FROM table_1906920_1 WHERE host = "University of Manitoba, Winnipeg, Manitoba" | What is the total number of 3rd placed teams when the host is University of Manitoba, Winnipeg, Manitoba? | CREATE TABLE table_1906920_1 (host VARCHAR) |
SELECT "1988" FROM table_34847 WHERE "1985" = '2r' | Which 1988 has a 1985 of 2r? | CREATE TABLE table_34847 (
"Tournament" text,
"1981" text,
"1982" text,
"1983" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text
) |
SELECT home_team FROM table_name_40 WHERE venue = "mcg" | Who was the home team at MCG? | CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR) |
SELECT progressive_total FROM table_19072602_3 WHERE team_usa = "Tim Mack" | When tim mack is on team usa what is the progressive total? | CREATE TABLE table_19072602_3 (progressive_total VARCHAR, team_usa VARCHAR) |
SELECT COUNT(*) > 0 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 = 19096)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [syst... | is patient 19096's arterial bp [systolic] ever less since 15 months ago than 164.0? | CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
h... |
SELECT away_team FROM table_name_16 WHERE home_team = "carlton" | Who was Carlton's away team opponents? | CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) |
SELECT COUNT(team_usa) FROM table_19072602_3 WHERE match_no = 14 | When 14 is the match number how many usa teams are there? | CREATE TABLE table_19072602_3 (team_usa VARCHAR, match_no VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.diagnosis = "HYPERGLYCEMIA;HYPONATREMIA" | tell me the number of inpatient hospital admission patients who have hyperglycemia; hyponatremia primary disease. | CREATE TABLE diagnoses (
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 away_team AS score FROM table_name_67 WHERE home_team = "south melbourne" | What was home team South Melbourne's opponents score? | CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR) |
SELECT COUNT(team_europe) FROM table_19072602_3 WHERE team_usa = "Chris Barnes" | When chris barnes is on team usa how many europe teams are there? | CREATE TABLE table_19072602_3 (team_europe VARCHAR, team_usa VARCHAR) |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'administration of electrolytes - phosphate' AND STRFTIME('%y', treatment.treatmenttime) <= '2104') AS t1 JOI... | how many patients received hypothermia after the first administration of electrolytes - phosphate procedure in the same month until 2104? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
... |
SELECT record FROM table_name_72 WHERE attendance = "4,516" | When the Attendance was 4,516, what was the Record? | CREATE TABLE table_name_72 (record VARCHAR, attendance VARCHAR) |
SELECT league FROM table_1908049_1 WHERE year = "1998/99" | in the year 1998/99 what was the league | CREATE TABLE table_1908049_1 (league VARCHAR, year VARCHAR) |
SELECT "District" FROM table_72371 WHERE "Incumbent" = 'Curt Weldon' | What districts does incumbent Curt Weldon hold? | CREATE TABLE table_72371 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
) |
SELECT attendance FROM table_name_13 WHERE score = "4-10" | When the Score was 4-10, what was the Attendance? | CREATE TABLE table_name_13 (attendance VARCHAR, score VARCHAR) |
SELECT reg_season FROM table_1908049_1 WHERE year = "1995/96" | in the year 1995/96 what was the reg. season | CREATE TABLE table_1908049_1 (reg_season VARCHAR, year VARCHAR) |
SELECT School_ID, All_Games_Percent FROM basketball_match GROUP BY All_Neutral | Draw a scatter chart about the correlation between School_ID and All_Games_Percent , and group by attribute All_Neutral. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... |
SELECT score FROM table_name_40 WHERE record = "9-24" | With a Record of 9-24, what was the Score? | CREATE TABLE table_name_40 (score VARCHAR, record VARCHAR) |
SELECT league FROM table_1908049_1 WHERE playoffs = "Semifinals" | in what playoffs the league was in the semifinals | CREATE TABLE table_1908049_1 (league VARCHAR, playoffs VARCHAR) |
SELECT MAX("Attendance") FROM table_9781 WHERE "Week" > '8' AND "Result" = 'w 42–0' | What is the Attendance after Week 8 with a Result of W 42 0? | CREATE TABLE table_9781 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) |
SELECT opponent FROM table_name_16 WHERE score = "6-2" | When the Score was 6-2, which Opponent was played? | CREATE TABLE table_name_16 (opponent VARCHAR, score VARCHAR) |
SELECT year FROM table_1908049_1 WHERE playoffs = "Champions" | what was the year where in the playoffs was champions | CREATE TABLE table_1908049_1 (year VARCHAR, playoffs VARCHAR) |
SELECT "PBA team" FROM table_65356 WHERE "College" = 'santo tomas' | What is the pba team for the player who went to santo tomas college? | CREATE TABLE table_65356 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
) |
SELECT date FROM table_name_82 WHERE attendance = "16,212" | On what Date was the Attendance 16,212? | CREATE TABLE table_name_82 (date VARCHAR, attendance VARCHAR) |
SELECT playoffs FROM table_1908049_1 WHERE avg_attendance = 3416 | what where the playoffs where the avg attendance of the team was 3416 | CREATE TABLE table_1908049_1 (playoffs VARCHAR, avg_attendance VARCHAR) |
SELECT COUNT(first_elected) FROM table_1342359_15 WHERE district = "Kansas 3" | how many first elected with district is kansas 3 | CREATE TABLE table_1342359_15 (
first_elected VARCHAR,
district VARCHAR
) |
SELECT attendance FROM table_name_71 WHERE opponent = "new york yankees" AND date = "may 12" | What was the Attendance on May 12, when the New York Yankees were the Opponent? | CREATE TABLE table_name_71 (attendance VARCHAR, opponent VARCHAR, date VARCHAR) |
SELECT last_top_division_title FROM table_1908877_2 WHERE club = "Citizen" | when did the club Citizen achieve its last top division title? | CREATE TABLE table_1908877_2 (last_top_division_title VARCHAR, club VARCHAR) |
SELECT COUNT(*) > 0 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 = 22782)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'l groin'... | since 1433 days ago, had patient 22782 had any l groin intake? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... |
SELECT date FROM table_name_39 WHERE venue = "junction oval" | Which Date has a Venue of junction oval? | CREATE TABLE table_name_39 (date VARCHAR, venue VARCHAR) |
SELECT COUNT(top_division_titles) FROM table_1908877_2 WHERE position_in_2012_13 = "5th" | How many clubs achieved the 5th position in 2012-13? | CREATE TABLE table_1908877_2 (top_division_titles VARCHAR, position_in_2012_13 VARCHAR) |
SELECT COUNT(title) FROM table_30030477_1 WHERE original_air_date = "August3,2010" | How many titles are there with the original air date of august3,2010? | CREATE TABLE table_30030477_1 (
title VARCHAR,
original_air_date VARCHAR
) |
SELECT COUNT(crowd) FROM table_name_79 WHERE home_team = "melbourne" | Which total number of Crowd has a Home team of melbourne? | CREATE TABLE table_name_79 (crowd VARCHAR, home_team VARCHAR) |
SELECT music_by FROM table_191105_3 WHERE episode_title = "Interplanet Janet" | When interplanet janet is the episode title who is the music by? | CREATE TABLE table_191105_3 (music_by VARCHAR, episode_title VARCHAR) |
SELECT athlete FROM table_name_15 WHERE time___sec__ > 11.22 AND rank < 5 | Which athlete is ranked less than 5 with time over 11.22? | CREATE TABLE table_name_15 (
athlete VARCHAR,
time___sec__ VARCHAR,
rank VARCHAR
) |
SELECT MIN(1 AS st_prize__) AS $__ FROM table_name_65 WHERE location = "florida" AND score = "200 (-16)" | What is the lowest 1st prize for florida tournaments and a Score of 200 (-16)? | CREATE TABLE table_name_65 (location VARCHAR, score VARCHAR) |
SELECT subject FROM table_191105_3 WHERE performed_by = "Jaime Aff and Christine Langner" | WHen jaime aff and christine langner are the performers what is the subject? | CREATE TABLE table_191105_3 (subject VARCHAR, performed_by VARCHAR) |
SELECT cable_rank FROM table_24399615_3 WHERE bbc_three_weekly_ranking = "N/A" | What is the cable rank for bbc three weekly ranking of n/a? | CREATE TABLE table_24399615_3 (
cable_rank VARCHAR,
bbc_three_weekly_ranking VARCHAR
) |
SELECT COUNT(grid) FROM table_name_24 WHERE time_retired = "+27.347" | Which grid has a time/retired of +27.347? | CREATE TABLE table_name_24 (grid VARCHAR, time_retired VARCHAR) |
SELECT first_aired FROM table_191105_3 WHERE subject = "Skeletal system" | If skeletal system is the subject when was it first aired? | CREATE TABLE table_191105_3 (first_aired VARCHAR, subject VARCHAR) |
SELECT authors FROM table_name_73 WHERE location = "mexico" | Which author is located in Mexico? | CREATE TABLE table_name_73 (
authors VARCHAR,
location VARCHAR
) |
SELECT singles_champions FROM table_name_9 WHERE country = "italy" AND city = "trieste" | Who was the Singles Champions in Trieste, Italy? | CREATE TABLE table_name_9 (singles_champions VARCHAR, country VARCHAR, city VARCHAR) |
SELECT MIN(first_aired) FROM table_191105_3 WHERE performed_by = "Zachary Sanders" | When zachary sanders is the performer what is the lowerst first aired? | CREATE TABLE table_191105_3 (first_aired INTEGER, performed_by VARCHAR) |
SELECT team FROM table_name_91 WHERE location = "lida" | Which team is located in Lida? | CREATE TABLE table_name_91 (
team VARCHAR,
location VARCHAR
) |
SELECT surface FROM table_name_30 WHERE city = "caracas" AND tournament = "venezuela f5 futures" | On what Surface will the Venezuela F5 Futures in Caracas be played? | CREATE TABLE table_name_30 (surface VARCHAR, city VARCHAR, tournament VARCHAR) |
SELECT winnings FROM table_1909647_2 WHERE wins = 2 | What's the amount of winnings (in $) in the year with 2 wins? | CREATE TABLE table_1909647_2 (winnings VARCHAR, wins VARCHAR) |
SELECT "City" FROM table_41287 WHERE "Capacity" = '41,311' | What is the name of the city with a capacity of 41,311? | CREATE TABLE table_41287 (
"Team" text,
"City" text,
"State" text,
"Home venue" text,
"Capacity" text
) |
SELECT surface FROM table_name_12 WHERE tournament = "new zealand f1 futures" | What is the type of Surface for the New Zealand F1 Futures Tournament? | CREATE TABLE table_name_12 (surface VARCHAR, tournament VARCHAR) |
SELECT MIN(starts) FROM table_1909647_2 WHERE avg_finish = "19.3" | What's the number of starts in the year with 19.3 average finish? | CREATE TABLE table_1909647_2 (starts INTEGER, avg_finish VARCHAR) |
SELECT microbiologyevents.org_name FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23070) AND microbiologyevents.spec_type_desc = 'pleural fluid' AND NOT microbiologyevents.org_name IS NULL AND DATETIME(microbiologyevents.charttime) >=... | what was the name of the organism found at the last pleural fluid test of patient 23070 since 20 months ago? | 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 inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttim... |
SELECT country FROM table_name_9 WHERE singles_champions = "dennis blömke" AND tournament = "germany f13 futures" | In what Country will Dennis Blömke play the Germany F13 Futures Tournament? | CREATE TABLE table_name_9 (country VARCHAR, singles_champions VARCHAR, tournament VARCHAR) |
SELECT year FROM table_1909647_2 WHERE team_s_ = "#14 FitzBradshaw Racing" | In what year did the #14 FitzBradshaw Racing compete? | CREATE TABLE table_1909647_2 (year VARCHAR, team_s_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "5771" AND prescriptions.drug_type = "ADDITIVE" | give me the number of patients whose procedure icd9 code is 5771 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... |
SELECT AVG(laps) FROM table_name_77 WHERE driver = "jackie stewart" | What are the average laps for jackie stewart? | CREATE TABLE table_name_77 (laps INTEGER, driver VARCHAR) |
SELECT avg_finish FROM table_1909647_2 WHERE year = 2008 | What's the average finish in 2008? | CREATE TABLE table_1909647_2 (avg_finish VARCHAR, year VARCHAR) |
SELECT ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY All_Neutral | Return a scatter chart about the correlation between ACC_Percent and All_Games_Percent , and group by attribute All_Neutral. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... |
SELECT result FROM table_name_19 WHERE venue = "fort lauderdale, florida" | What is the result in fort lauderdale, florida? | CREATE TABLE table_name_19 (result VARCHAR, venue VARCHAR) |
SELECT MAX(top_5) FROM table_1909647_2 WHERE team_s_ = "#14 FitzBradshaw Racing" | What's #14 FitzBradshaw Racing's top 5 result? | CREATE TABLE table_1909647_2 (top_5 INTEGER, team_s_ VARCHAR) |
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 81783 AND admissions.admission_location = 'clinic referral/premature' ORDER BY admissions.admittime LIMIT 1 | when was the first hospital admission time of patient 81783 that had been admitted on the clinic referral/premature? | 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 venue FROM table_name_80 WHERE goal < 2 | What venue had less than 2 goals? | CREATE TABLE table_name_80 (venue VARCHAR, goal INTEGER) |
SELECT first_aired FROM table_191105_4 WHERE performed_by = "Sue Manchester" | What is the date for the episode performed by Sue Manchester? | CREATE TABLE table_191105_4 (first_aired VARCHAR, performed_by VARCHAR) |
SELECT MAX("Points") FROM table_68991 WHERE "Chassis" = 'jaguar r3' AND "Year" > '2002' | What is the most points when the chassis was Jaguar R3 later than 2002? | CREATE TABLE table_68991 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) |
SELECT AVG(crowd) FROM table_name_8 WHERE away_team = "fitzroy" | What was the attendance when Fitzroy played as the away team? | CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR) |
SELECT music_by FROM table_191105_4 WHERE episode_title = "Elbow Room" | Who is the music by for episode the Elbow Room? | CREATE TABLE table_191105_4 (music_by VARCHAR, episode_title VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MILWAU... | i want a evening flight from DALLAS to MILWAUKEE | CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
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... |
SELECT trainer FROM table_name_8 WHERE owner = "robert courtney" | Who was the trainer with Robert Courtney was owner? | CREATE TABLE table_name_8 (trainer VARCHAR, owner VARCHAR) |
SELECT episode_title FROM table_191105_4 WHERE performed_by = "Essra Mohawk" | What is the name of the episode performed by Essra Mohawk | CREATE TABLE table_191105_4 (episode_title VARCHAR, performed_by VARCHAR) |
SELECT "Reason for change" FROM table_73403 WHERE "District" = 'Maryland 6th' | What is the reason for change when maryland 6th is the district? | CREATE TABLE table_73403 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) |
SELECT MIN(year) FROM table_name_36 WHERE trainer = "jeff mullins" | What year was Jeff Mullins? | CREATE TABLE table_name_36 (year INTEGER, trainer VARCHAR) |
SELECT date_s__of_original_removal FROM table_19114172_11 WHERE new_channel_s_ = "Five" | When five is the new channel what is the date of original removal? | CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, new_channel_s_ VARCHAR) |
SELECT Openning_year, SUM(Capacity) FROM cinema GROUP BY Openning_year ORDER BY Openning_year | A bar chart showing the sum of capacity of cinemas open for each year, rank by the X from low to high please. | CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule... |
SELECT SUM(grid) FROM table_name_48 WHERE driver = "richard robarts" AND laps < 36 | In what grid did Richard Robarts make 36 laps? | CREATE TABLE table_name_48 (grid INTEGER, driver VARCHAR, laps VARCHAR) |
SELECT date_s__of_original_removal FROM table_19114172_11 WHERE original_channel = "BBC Two" | When bbc two is the original channel what is the date of original removal? | CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, original_channel VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Unspecified hereditary and idiopathic peripheral neuropathy" AND prescriptions.drug_type = ... | give me the number of patients whose diagnoses long title is unspecified hereditary and idiopathic peripheral neuropathy and drug type is base? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... |
SELECT SUM(laps) FROM table_name_20 WHERE grid = 18 | How many laps were completed in grid 18? | CREATE TABLE table_name_20 (laps INTEGER, grid VARCHAR) |
SELECT date_of_return FROM table_19114172_11 WHERE new_channel_s_ = "BBC Two" | When bbc two is the new channel what is the date of return? | CREATE TABLE table_19114172_11 (date_of_return VARCHAR, new_channel_s_ VARCHAR) |
SELECT AVG(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 = '006-13677')) AND intakeoutput.celllabel = 'outpu... | show me patient 006-13677's monthly average output (ml)-urethral catheter dr wrenn output amount until 09/2105. | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT venue FROM table_name_73 WHERE result = "12th" | What was the venue where the result was 12th? | CREATE TABLE table_name_73 (venue VARCHAR, result VARCHAR) |
SELECT team__number2 FROM table_19130829_4 WHERE team__number1 = "Ilisiakos" | What's team #2 in the round where team $1 is Ilisiakos? | CREATE TABLE table_19130829_4 (team__number2 VARCHAR, team__number1 VARCHAR) |
SELECT "Television service" FROM table_41068 WHERE "HDTV" = 'no' AND "Language" = 'italian' | What is Television Service, when HDTV is No, and when Language is Italian? | CREATE TABLE table_41068 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
) |
SELECT species FROM table_name_22 WHERE genes > 2 OFFSET 030 | What species has more than 2,030 genes? | CREATE TABLE table_name_22 (species VARCHAR, genes INTEGER) |
SELECT team__number2 FROM table_19130829_4 WHERE team__number1 = "Iraklis" | What's the team #2 in the round where team #1 is Iraklis? | CREATE TABLE table_19130829_4 (team__number2 VARCHAR, team__number1 VARCHAR) |
SELECT Minister, COUNT(Minister) FROM party WHERE Party_name <> 'Progress Party' GROUP BY Minister ORDER BY Minister DESC | Show all ministers who do not belong to Progress Party, and count them by a bar chart, sort by the x-axis from high to low. | CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
P... |
SELECT genes FROM table_name_47 WHERE species = "rubrobacter xylanophilus" | How many genes in the species Rubrobacter Xylanophilus? | CREATE TABLE table_name_47 (genes VARCHAR, species VARCHAR) |
SELECT 1 AS st_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis" | What's the 1st leg result in the round where team #1 is Iraklis? | CREATE TABLE table_19130829_4 (team__number1 VARCHAR) |
SELECT COUNT(opponents) FROM table_name_16 WHERE raiders_points = 42 AND attendance < 52 OFFSET 505 | What is the total number of Opponents, when Raiders Points is '42', when Attendance is less than 52,505? | CREATE TABLE table_name_16 (
opponents VARCHAR,
raiders_points VARCHAR,
attendance VARCHAR
) |
SELECT MIN(genes) FROM table_name_66 WHERE species = "rubrobacter xylanophilus" | What is the lowest number of genes in Rubrobacter Xylanophilus? | CREATE TABLE table_name_66 (genes INTEGER, species VARCHAR) |
SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number2 = "Panionios" | What's the 2nd leg result in the round where Panionios is team #2? | CREATE TABLE table_19130829_4 (team__number2 VARCHAR) |
SELECT MAX("FLT Goals") FROM table_62699 WHERE "League Cup Goals" = '0' AND "Position" = 'gk' AND "League Cup Apps" = '2' | What is the highest FLT goals with 0 league cup goals, a GK position, and 2 league cup apps? | CREATE TABLE table_62699 (
"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 AVG(base_pairs) FROM table_name_53 WHERE genes = 784 | What is the average number of base pairs with 784 genes? | CREATE TABLE table_name_53 (base_pairs INTEGER, genes VARCHAR) |
SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis" | What's the 2nd leg result in the round where team #1 is Iraklis? | CREATE TABLE table_19130829_4 (team__number1 VARCHAR) |
SELECT dname FROM department ORDER BY mgr_start_date | List all department names ordered by their starting date. | CREATE TABLE department (
dname VARCHAR,
mgr_start_date VARCHAR
) |
SELECT COUNT(points) FROM table_name_25 WHERE standing_broad_jump__cm_ = "207-215" | How many points are obtained when a standing broad jump is 207-215 cm? | CREATE TABLE table_name_25 (points VARCHAR, standing_broad_jump__cm_ VARCHAR) |
SELECT MIN(dma) FROM table_19131921_1 WHERE format = "Rhythmic Contemporary" | What is the dma when the format is rhythmic contemporary? | CREATE TABLE table_19131921_1 (dma INTEGER, format VARCHAR) |
SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0 INNER JOIN course_prerequisite ON COURSE_0.course_id = course_prerequisite.course_id INNER JOIN course AS COURSE_1 ON COURSE_1.course_id = course_prerequisite.pre_course_id WHERE COURSE_0.department = 'EEB' AND COURSE_0.number =... | Does EEB 453 have any prereqs ? | CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
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_gradu... |
SELECT MAX(points) FROM table_name_92 WHERE grade = "a" | How many points are there, when the grade is A? | CREATE TABLE table_name_92 (points INTEGER, grade VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.