answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "Date" FROM table_69647 WHERE "Opponent" = 'chris evert' AND "Surface" = 'carpet' | Name the date for chris evert opponent and carpet surface | CREATE TABLE table_69647 (
"Tournament" text,
"Date" text,
"Surface" text,
"Round" text,
"Opponent" text
) |
SELECT set_1 FROM table_name_6 WHERE set_2 = "15β5" AND set_3 = "15β3" | What is the Set 1 with a Set 2 of 15β5, and a Set 3 with 15β3? | CREATE TABLE table_name_6 (set_1 VARCHAR, set_2 VARCHAR, set_3 VARCHAR) |
SELECT char_cells FROM table_1701371_2 WHERE hardware_colours = 8 | If hardware colours is 8 what would the char cells be? | CREATE TABLE table_1701371_2 (char_cells VARCHAR, hardware_colours VARCHAR) |
SELECT product FROM product WHERE product LIKE "%Scanner%" | Find all the product whose name contains the word 'Scanner'. | CREATE TABLE product (
product VARCHAR
) |
SELECT date FROM table_name_79 WHERE set_1 = "15β1" | What is the Date with a Set 1 with 15β1? | CREATE TABLE table_name_79 (date VARCHAR, set_1 VARCHAR) |
SELECT year__ceremony_ FROM table_17025328_1 WHERE original_title = "Le Confessional" | Name the year for le confessional | CREATE TABLE table_17025328_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT AVG(total) FROM table_name_56 WHERE nation = "italy" AND bronze > 1 | What is the average total of Italy and has a bronze larger than 1? | CREATE TABLE table_name_56 (
total INTEGER,
nation VARCHAR,
bronze VARCHAR
) |
SELECT set_3 FROM table_name_33 WHERE date = "04 oct" AND set_2 = "15β5" | What is the Set 3 with a Date of 04 oct, and a Set 2 with 15β5? | CREATE TABLE table_name_33 (set_3 VARCHAR, date VARCHAR, set_2 VARCHAR) |
SELECT year__ceremony_ FROM table_17025328_1 WHERE original_title = "Les portes tournantes" | Name the year for les portes tournantes | CREATE TABLE table_17025328_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.icd9_code = "8968" | give me the number of patients whose marital status is single and procedure icd9 code is 8968? | 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 set_3 FROM table_name_58 WHERE set_2 = "15β6" | What is the Set 3 with a Set 2 with 15β6? | CREATE TABLE table_name_58 (set_3 VARCHAR, set_2 VARCHAR) |
SELECT MAX(w) FROM table_17012578_37 WHERE l = 5 | Of the teams that lost 5 games, what is the highest number of wins? | CREATE TABLE table_17012578_37 (w INTEGER, l VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.marital_status = "SINGLE" AND prescriptions.route = "LEFT EYE" | how many unmarried patients take medication via left eye? | 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 set_2 FROM table_name_6 WHERE total = "45β12" AND set_3 = "15β2" | What is the Set 2 with a Total of 45β12, and a Set 3 with 15β2? | CREATE TABLE table_name_6 (set_2 VARCHAR, total VARCHAR, set_3 VARCHAR) |
SELECT MAX(Ends) AS lost FROM table_17012578_37 | What is the highest number of ends lost? | CREATE TABLE table_17012578_37 (Ends INTEGER) |
SELECT "Date" FROM table_58981 WHERE "Score in the final" = '3β6, 2β6, 4β6' | What Date has a Score in the final of 3 6, 2 6, 4 6? | CREATE TABLE table_58981 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) |
SELECT AVG(grid) FROM table_name_5 WHERE time_retired = "+6.077" AND laps < 26 | What was the grid associated with under 26 laps and a Time/Retired of +6.077? | CREATE TABLE table_name_5 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) |
SELECT COUNT(Ends) AS won FROM table_17012578_37 WHERE pa = 39 | How many values are in the ends won cell corresponding to a PA of 39? | CREATE TABLE table_17012578_37 (Ends VARCHAR, pa VARCHAR) |
SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType | What is the average base price of rooms, for each bed type. Show a pie chart. | CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... |
SELECT lead FROM table_name_61 WHERE date_s__conducted = "5 may 2011" | On 5 May 2011, what was the lead percentage? | CREATE TABLE table_name_61 (lead VARCHAR, date_s__conducted VARCHAR) |
SELECT skip FROM table_17012578_6 WHERE shot_pct = 88 AND province = "Alberta" | Who was Alberta's skip when the shot pct was 88? | CREATE TABLE table_17012578_6 (skip VARCHAR, shot_pct VARCHAR, province VARCHAR) |
SELECT Year, COUNT(Year) FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID ORDER BY Year DESC | Show how many competitions are held in each year with a line chart, I want to list X in desc order. | CREATE TABLE farm_competition (
Competition_ID int,
Year int,
Theme text,
Host_city_ID int,
Hosts text
)
CREATE TABLE competition_record (
Competition_ID int,
Farm_ID int,
Rank int
)
CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
P... |
SELECT date_s__conducted FROM table_name_25 WHERE lead = "8.6%" | On what date was the lead 8.6%? | CREATE TABLE table_name_25 (date_s__conducted VARCHAR, lead VARCHAR) |
SELECT MAX(pa) FROM table_17012578_6 | What is the top Points Allowed? | CREATE TABLE table_17012578_6 (pa INTEGER) |
SELECT "Nickname(s)" FROM table_61830 WHERE "Location" = 'elkville, illinois' | What Nickname(s) has a Location of elkville, illinois? | CREATE TABLE table_61830 (
"School" text,
"Location" text,
"Nickname(s)" text,
"Colors" text,
"Years Member" text
) |
SELECT lifespan FROM table_name_56 WHERE imperial = "7ft 8 in" AND nationality = "fiji" | what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji? | CREATE TABLE table_name_56 (lifespan VARCHAR, imperial VARCHAR, nationality VARCHAR) |
SELECT COUNT(pa) FROM table_17012578_6 WHERE blank_ends = 1 | When the blank ends at 1, what is the PA? | CREATE TABLE table_17012578_6 (pa VARCHAR, blank_ends VARCHAR) |
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bilirubin, total, ascites') AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-6 ye... | calculate the number of patients who had received a bilirubin, total, ascites test since 6 years 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 nationality FROM table_name_21 WHERE metric = "2.36m" AND name = "sun ming-ming" | what is the nationality with the metric height of 2.36m named sun ming-ming? | CREATE TABLE table_name_21 (nationality VARCHAR, metric VARCHAR, name VARCHAR) |
SELECT COUNT(record) FROM table_17058116_6 WHERE team = "Charlotte" | How many times did the team play charlotte? | CREATE TABLE table_17058116_6 (record VARCHAR, team VARCHAR) |
SELECT Id AS "post_link", CreationDate, Tags FROM Posts WHERE PostTypeId = 1 AND UPPER(Body) = Body ORDER BY CreationDate | Show questions with a body containing capitals only. | CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE T... |
SELECT SUM(grid) FROM table_name_83 WHERE time_retired = "engine" AND driver = "teo fabi" AND laps < 39 | What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps? | CREATE TABLE table_name_83 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR) |
SELECT date FROM table_17058116_6 WHERE team = "Charlotte" | What day did the team play charlotte? | CREATE TABLE table_17058116_6 (date VARCHAR, team VARCHAR) |
SELECT SUM(laps) FROM table_name_45 WHERE time_retired = "2:54:23.8" | How many laps were driven in 2:54:23.8? | CREATE TABLE table_name_45 (
laps INTEGER,
time_retired VARCHAR
) |
SELECT AVG(grid) FROM table_name_26 WHERE driver = "johnny dumfries" AND laps < 8 | What is the average grid for johnny dumfries with less than 8 laps? | CREATE TABLE table_name_26 (grid INTEGER, driver VARCHAR, laps VARCHAR) |
SELECT date FROM table_17058116_7 WHERE score = "L 99β107 (OT)" | When was the game with score l 99β107 (ot) | CREATE TABLE table_17058116_7 (date VARCHAR, score VARCHAR) |
SELECT high_assists FROM table_name_73 WHERE team = "milwaukee" | Who had the most high assists from Milwaukee? | CREATE TABLE table_name_73 (
high_assists VARCHAR,
team VARCHAR
) |
SELECT MIN(laps) FROM table_name_44 WHERE constructor = "minardi - motori moderni" AND grid < 18 | What is the low lap total for minardi - motori moderni, and a Grid smaller than 18? | CREATE TABLE table_name_44 (laps INTEGER, constructor VARCHAR, grid VARCHAR) |
SELECT location_attendance FROM table_17058116_7 WHERE record = "20β23" | Where was the game with record 20β23 and how many people attended it | CREATE TABLE table_17058116_7 (location_attendance VARCHAR, record VARCHAR) |
SELECT * FROM table_train_201 WHERE creatinine_clearance_cl >= 2 | creatinine greater than 2 mg / dl | CREATE TABLE table_train_201 (
"id" int,
"blood_pressure_bilaterally" bool,
"creatinine_clearance_cl" float,
"total_cholesterol" int,
"smoking" bool,
"triglyceride_tg" float,
"NOUSE" float
) |
SELECT constructor FROM table_name_61 WHERE grid = 12 | What constructor has a 12 grid? | CREATE TABLE table_name_61 (constructor VARCHAR, grid VARCHAR) |
SELECT high_rebounds FROM table_17058116_7 WHERE high_points = "Charlie Villanueva (32)" | Who scored highest rebounds high points is charlie villanueva (32) | CREATE TABLE table_17058116_7 (high_rebounds VARCHAR, high_points VARCHAR) |
SELECT "Class" FROM table_66622 WHERE "Frequency" = '90.1 fm' | What Class has a Frequency of 90.1 FM? | CREATE TABLE table_66622 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
) |
SELECT MAX(average) FROM table_name_24 WHERE swimsuit > 9.437 | What is the average where the swimsuit is larger than 9.437? | CREATE TABLE table_name_24 (average INTEGER, swimsuit INTEGER) |
SELECT score FROM table_17058116_7 WHERE game = 46 | What is the score of game 46 | CREATE TABLE table_17058116_7 (score VARCHAR, game VARCHAR) |
SELECT 2007 AS _2008 FROM table_22591910_4 WHERE position = 3 | who was position 3 in 2007-2008? | CREATE TABLE table_22591910_4 (
position VARCHAR
) |
SELECT SUM(evening_gown) FROM table_name_84 WHERE interview = 9.22 AND preliminaries > 9.057 | What is the evening gown score where the interview score is 9.22 and the preliminaries are larger than 9.057? | CREATE TABLE table_name_84 (evening_gown INTEGER, interview VARCHAR, preliminaries VARCHAR) |
SELECT high_points FROM table_17058116_5 WHERE date = "November 2" | Who scored the high points on the date November 2? | CREATE TABLE table_17058116_5 (high_points VARCHAR, date VARCHAR) |
SELECT "Week" FROM table_35418 WHERE "Result" = 'w 23β6' | Which week has a Result of w 23 6? | CREATE TABLE table_35418 (
"Week" real,
"Date" text,
"Opponent" text,
"Time ( ET )" text,
"Result" text
) |
SELECT AVG(average) FROM table_name_88 WHERE swimsuit < 9.109 AND country = "pennsylvania" AND evening_gown < 9.163 | What is Pennsylvania's average where the swimsuit is smaller than 9.109 and the evening gown is smaller than 9.163? | CREATE TABLE table_name_88 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, country VARCHAR) |
SELECT COUNT(location_attendance) FROM table_17058116_5 WHERE game = 13 | In how many locations did Game 13 take place? | CREATE TABLE table_17058116_5 (location_attendance VARCHAR, game VARCHAR) |
SELECT MIN(population___2011_census__) FROM table_name_38 WHERE land_area__kmΒ²_ > 908 OFFSET 607.67 | What was the lowest 2011 Census population of an area with a land area larger than 908,607.67 km ? | CREATE TABLE table_name_38 (
population___2011_census__ INTEGER,
land_area__kmΒ²_ INTEGER
) |
SELECT AVG(preliminaries) FROM table_name_65 WHERE swimsuit < 9.297 AND evening_gown = 9.617 AND interview > 9.143 | What is the preliminaries score where the swimsuit is smaller than 9.297, the evening gown is 9.617, and the interview is larger than 9.143? | CREATE TABLE table_name_65 (preliminaries INTEGER, interview VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR) |
SELECT location_attendance FROM table_17058116_5 WHERE date = "November 21" | Where was the game that took place in November 21 located and how many attended? | CREATE TABLE table_17058116_5 (location_attendance VARCHAR, date VARCHAR) |
SELECT player FROM table_11677100_4 WHERE hometown = "Spring, TX" | What player is from Spring, Tx? | CREATE TABLE table_11677100_4 (
player VARCHAR,
hometown VARCHAR
) |
SELECT screen_pixels FROM table_name_66 WHERE maker = "amazon.com" AND weight = "221g (7.8oz)" | For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have? | CREATE TABLE table_name_66 (screen_pixels VARCHAR, maker VARCHAR, weight VARCHAR) |
SELECT high_rebounds FROM table_17058178_11 WHERE date = "April 7" | Name the high reobounds for april 7 | CREATE TABLE table_17058178_11 (high_rebounds VARCHAR, date VARCHAR) |
SELECT (SELECT COUNT(*) FROM Users) AS TotalUsuarios, (SELECT COUNT(*) FROM Users WHERE Reputation >= 15) AS PodemVotar, (SELECT COUNT(*) FROM Users WHERE UpVotes + DownVotes > 0) AS Votaram, (SELECT COUNT(*) FROM Users WHERE UpVotes + DownVotes > 9) AS VotaramDezVezes, (SELECT COUNT(*) FROM Users WHERE Reputation >= 2... | Usu rios vs. Votantes no SOpt. | CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostLinks (
Id number,
Crea... |
SELECT SUM(5 AS k_wins) FROM table_name_14 WHERE runner = "emily chebet" AND total > 2 | How many 5K wins did Emily Chebet, who had more than 2 total, have? | CREATE TABLE table_name_14 (runner VARCHAR, total VARCHAR) |
SELECT COUNT(record) FROM table_17058151_7 WHERE game = 43 | How many games was game 43? | CREATE TABLE table_17058151_7 (record VARCHAR, game VARCHAR) |
SELECT MIN("Top-25") FROM table_76034 WHERE "Wins" < '0' | What is the lowest Top-25 with Wins less than 0? | CREATE TABLE table_76034 (
"Tournament" text,
"Wins" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) |
SELECT COUNT(5 AS k_wins) FROM table_name_80 WHERE runner = "emily chebet" AND total > 2 | How many 5K wins did Emily Chebet, who had more than 2 total, have? | CREATE TABLE table_name_80 (runner VARCHAR, total VARCHAR) |
SELECT COUNT(high_rebounds) FROM table_17058151_8 WHERE date = "February 10" | Name the total number of high rebounds for february 10 | CREATE TABLE table_17058151_8 (high_rebounds VARCHAR, date VARCHAR) |
SELECT COUNT(network_station) FROM table_2879165_1 WHERE country = "Brunei" | What is listed in Network station when the country is Brunei? | CREATE TABLE table_2879165_1 (
network_station VARCHAR,
country VARCHAR
) |
SELECT MAX(peak_lessons_taught) FROM table_name_95 WHERE evaluation_average__before_april_2009_ = "4.4" | What is the largest number of Peak lessons taught when the Evaluation average (Before April 2009) was 4.4? | CREATE TABLE table_name_95 (peak_lessons_taught INTEGER, evaluation_average__before_april_2009_ VARCHAR) |
SELECT record FROM table_17058151_6 WHERE date = "December 6" | Name the record for december 6 | CREATE TABLE table_17058151_6 (record VARCHAR, date VARCHAR) |
SELECT role_code, COUNT(*) FROM Users GROUP BY role_code | Bar graph to show the total number from different role code | CREATE TABLE Images (
image_id INTEGER,
image_alt_text VARCHAR(80),
image_name VARCHAR(40),
image_url VARCHAR(255)
)
CREATE TABLE Roles (
role_code VARCHAR(15),
role_description VARCHAR(80)
)
CREATE TABLE Documents (
document_code VARCHAR(15),
document_structure_code VARCHAR(15),
d... |
SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = "0.8%" | What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%? | CREATE TABLE table_name_23 (evaluation_average__before_april_2009_ VARCHAR, peak_lessons_taught VARCHAR, _percentage_of_negative_evaluations VARCHAR) |
SELECT score FROM table_17058178_8 WHERE game = 38 | What was the final score in game 38? | CREATE TABLE table_17058178_8 (score VARCHAR, game VARCHAR) |
SELECT "Interview subject" FROM table_41519 WHERE "Centerfold model" = 'melissa deanne holliday' | Who was the Interview Subject when the Centerfold Model was Melissa Deanne Holliday? | CREATE TABLE table_41519 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text
) |
SELECT evaluation_average__before_april_2009_ FROM table_name_41 WHERE _percentage_of_negative_evaluations = "0.8%" AND evaluation_average__from_april_2009_ = "4.2" | What is the mean Evaluation number (Before April 2009) when the percentage of negative evaluations was 0.8% and the mean Evaluation number of April 2009 was 4.2? | CREATE TABLE table_name_41 (evaluation_average__before_april_2009_ VARCHAR, _percentage_of_negative_evaluations VARCHAR, evaluation_average__from_april_2009_ VARCHAR) |
SELECT team FROM table_17058178_8 WHERE date = "January 2" | Who did the Trail Blazers play on January 2? | CREATE TABLE table_17058178_8 (team VARCHAR, date VARCHAR) |
SELECT COUNT(year) FROM table_2511876_1 WHERE league = "USISL Pro league" | Name the total number of years for usisl pro league | CREATE TABLE table_2511876_1 (
year VARCHAR,
league VARCHAR
) |
SELECT away_team FROM table_name_11 WHERE venue = "moorabbin oval" | What is moorabbin oval's away team? | CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR) |
SELECT COUNT(date) FROM table_17058226_10 WHERE team = "Phoenix" | On how many dates did the Timberwolves play Phoenix? | CREATE TABLE table_17058226_10 (date VARCHAR, team VARCHAR) |
SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'antic... | for patients who took anticonvulsants , what are the top five most frequent procedures that followed in the same hospital visit? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodici... |
SELECT COUNT(grid) FROM table_name_57 WHERE driver = "karl wendlinger" | What is Karl Wendlinger's total grid #? | CREATE TABLE table_name_57 (grid VARCHAR, driver VARCHAR) |
SELECT record FROM table_17058226_10 WHERE date = "April 3" | What was the Timberwolves' record on April 3? | CREATE TABLE table_17058226_10 (record VARCHAR, date VARCHAR) |
SELECT SUM(population) FROM table_name_70 WHERE density = 50.09 AND rank > 30 | WHat is the number of Population has a Density of 50.09 and a Rank larger than 30? | CREATE TABLE table_name_70 (
population INTEGER,
density VARCHAR,
rank VARCHAR
) |
SELECT home_team AS score FROM table_name_13 WHERE home_team = "fitzroy" | Which Home team score had a Home team of Fitzroy? | CREATE TABLE table_name_13 (home_team VARCHAR) |
SELECT location_attendance FROM table_17058226_8 WHERE team = "Utah" | Where are all of Utah's games held and how many have attended? | CREATE TABLE table_17058226_8 (location_attendance VARCHAR, team VARCHAR) |
SELECT champions FROM table_name_95 WHERE runner_up = "tobol" AND coeff = "1.125" | Which Champions have a Runner-up of tobol, and a Coeff of 1.125? | CREATE TABLE table_name_95 (
champions VARCHAR,
runner_up VARCHAR,
coeff VARCHAR
) |
SELECT name FROM table_name_18 WHERE replacement = "lieve wierinck" | Who was replaced by Lieve Wierinck? | CREATE TABLE table_name_18 (name VARCHAR, replacement VARCHAR) |
SELECT high_rebounds FROM table_17058226_5 WHERE high_assists = "Craig Smith (4)" | Who performed all the high rebounds when craig smith (4) was the lead for high assists? | CREATE TABLE table_17058226_5 (high_rebounds VARCHAR, high_assists VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "85" AND prescriptions.route = "NEB" | count the number of patients whose age is less than 85 and drug route is neb? | 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 SUM(gross_tonnage) FROM table_name_75 WHERE material = "wood" AND date_commissioned > 1846 AND ship = "esk" | Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk | CREATE TABLE table_name_75 (gross_tonnage INTEGER, ship VARCHAR, material VARCHAR, date_commissioned VARCHAR) |
SELECT high_rebounds FROM table_17058226_5 WHERE high_points = "Kevin Love (20)" | Who had all the high rebounds when kevin love (20) scored the highest points? | CREATE TABLE table_17058226_5 (high_rebounds VARCHAR, high_points VARCHAR) |
SELECT MAX(league_cup) FROM table_name_27 WHERE championship > 3 AND fa_cup < 3 AND total < 6 | Championship larger than 3, and a FA Cup smaller than 3, and a Total smaller than 6 involves what highest league cup? | CREATE TABLE table_name_27 (
league_cup INTEGER,
total VARCHAR,
championship VARCHAR,
fa_cup VARCHAR
) |
SELECT SUM(gross_tonnage) FROM table_name_94 WHERE ship = "isis" AND date_commissioned < 1842 | Tell me the sum of Gross Tonnage for isis ship on date commisioned less than 1842 | CREATE TABLE table_name_94 (gross_tonnage INTEGER, ship VARCHAR, date_commissioned VARCHAR) |
SELECT team FROM table_17058226_5 WHERE high_assists = "Sebastian Telfair (7)" | What opposing team was playing when sebastian telfair (7) had the highest assists? | CREATE TABLE table_17058226_5 (team VARCHAR, high_assists VARCHAR) |
SELECT icao FROM table_name_96 WHERE fleet_size = 2 | Which ICAO has a Fleet size of 2? | CREATE TABLE table_name_96 (
icao VARCHAR,
fleet_size VARCHAR
) |
SELECT MIN(date_commissioned) FROM table_name_69 WHERE material = "iron" AND ship = "rmsrhone" AND gross_tonnage < 2 OFFSET 738 | Tell me the lowest date commissioned for iron rmsrhone and gross tonnage less than 2,738 | CREATE TABLE table_name_69 (date_commissioned INTEGER, gross_tonnage VARCHAR, material VARCHAR, ship VARCHAR) |
SELECT score FROM table_17058226_7 WHERE date = "January 26" | Name the score for january 26 | CREATE TABLE table_17058226_7 (score VARCHAR, date VARCHAR) |
SELECT score FROM table_name_24 WHERE decision = "joseph" AND record = "26β13β4β2" | What was the score of the game that had a record of 26 13 4 2 and a decision of Joseph? | CREATE TABLE table_name_24 (
score VARCHAR,
decision VARCHAR,
record VARCHAR
) |
SELECT constructor FROM table_name_21 WHERE time_retired = "+1.027" | What Constructor has a +1.027 Time/Retired? | CREATE TABLE table_name_21 (constructor VARCHAR, time_retired VARCHAR) |
SELECT high_points FROM table_17060277_10 WHERE date = "April 12" | Who did the high points in the game played on April 12? | CREATE TABLE table_17060277_10 (high_points VARCHAR, date VARCHAR) |
SELECT COUNT(*) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 56201)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'chest tubes right ... | how many times on 02/10/2105 has patient 56201 produced chest tubes right pleural 1 output. | 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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... |
SELECT constructor FROM table_name_13 WHERE laps = 56 | What Constructor has 56 Laps? | CREATE TABLE table_name_13 (constructor VARCHAR, laps VARCHAR) |
SELECT constructor FROM table_1706942_1 WHERE q1_order = 4 | What is the constructor when the Q1 order is 4? | CREATE TABLE table_1706942_1 (constructor VARCHAR, q1_order VARCHAR) |
SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE GROUP BY CRS_DESCRIPTION, EMP_FNAME ORDER BY COUNT(EMP_FNAME) | Show the number of courses each instructor taught in a stacked bar chart The x-axis is the instructor's first name and group by course description, could you order total number from low to high order please? | CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NU... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.