answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT MIN("Attempts") FROM table_22984 WHERE "Name" = 'Bobby Layne'
How many attempts for Bobby Layne?
CREATE TABLE table_22984 ( "Name" text, "Completions" real, "Attempts" real, "Completion %" text, "Yards" real, "Touchdowns" real, "Interceptions" real, "QB Rating" text )
SELECT venue FROM table_name_14 WHERE away_team = "geelong"
Where did Geelong play as the away team?
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR)
SELECT state__class_ FROM table_224840_3 WHERE vacator = "John Laurance (F)"
in which state where John Laurance (f) as a vacator?
CREATE TABLE table_224840_3 (state__class_ VARCHAR, vacator VARCHAR)
SELECT Location, COUNT(Location) FROM wrestler GROUP BY Location ORDER BY Location
What is the number of locations of the wrestlers? Visualize by a bar chart, I want to list by the bar from low to high.
CREATE TABLE wrestler ( Wrestler_ID int, Name text, Reign text, Days_held text, Location text, Event text ) CREATE TABLE Elimination ( Elimination_ID text, Wrestler_ID text, Team text, Eliminated_By text, Elimination_Move text, Time text )
SELECT date FROM table_name_66 WHERE race_name = "i dessau autobahnspinne"
On what date was the I Dessau Autobahnspinne race?
CREATE TABLE table_name_66 (date VARCHAR, race_name VARCHAR)
SELECT reason_for_change FROM table_224840_3 WHERE vacator = "Henry Latimer (F)"
when the vacator was Henry Latimer (f), what were the causes for modification?
CREATE TABLE table_224840_3 (reason_for_change VARCHAR, vacator VARCHAR)
SELECT "Runner(s)-up" FROM table_40277 WHERE "Margin of victory" = '2 strokes' AND "Tournament" = 'mazda senior tournament players championship'
Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes?
CREATE TABLE table_40277 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text )
SELECT winning_driver FROM table_name_8 WHERE circuit = "sachsenring"
Who was the winning driver in the Sachsenring circuit?
CREATE TABLE table_name_8 (winning_driver VARCHAR, circuit VARCHAR)
SELECT COUNT(date_of_successors_formal_installation) FROM table_224840_3 WHERE successor = "Aaron Ogden (F)"
how many times has Aaron Ogden (f), been a successor and has had a formal installation?
CREATE TABLE table_224840_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR)
SELECT "Locality" FROM table_8417 WHERE "Ages" = '8-16' AND "School" = 'penarth group school'
What is the Locality of the Penarth Group School for Ages 8-16?
CREATE TABLE table_8417 ( "School" text, "Locality" text, "Ages" text, "Report" text, "Website" text )
SELECT hometown FROM table_name_98 WHERE player = "terry mills"
Where is Terry Mills from?
CREATE TABLE table_name_98 (hometown VARCHAR, player VARCHAR)
SELECT COUNT(1 AS st_venue) FROM table_22482077_1 WHERE year = 2010
In 2010, how many 1st venue cities were there?
CREATE TABLE table_22482077_1 (year VARCHAR)
SELECT dept_name, building FROM department ORDER BY budget DESC
List the names and buildings of all departments sorted by the budget from large to small.
CREATE TABLE department ( dept_name VARCHAR, building VARCHAR, budget VARCHAR )
SELECT date FROM table_name_24 WHERE race = "mexican grand prix"
When is the Mexican grand prix?
CREATE TABLE table_name_24 (date VARCHAR, race VARCHAR)
SELECT COUNT(vacator) FROM table_224840_4 WHERE district = "Massachusetts 3rd"
How many seats became avaliable in Massachusetts 3rd district?
CREATE TABLE table_224840_4 (vacator VARCHAR, district VARCHAR)
SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'linda shapiro' AND paper.year = 2016 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid
papers by linda shapiro in 2016
CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE author ( authorid int, authorname varchar ...
SELECT school FROM table_name_67 WHERE height = "6-8"
The person with a Height of 6-8 went to which School?
CREATE TABLE table_name_67 (school VARCHAR, height VARCHAR)
SELECT vacator FROM table_224840_4 WHERE date_successor_seated = "November 26, 1800"
Who left office on November 26, 1800?
CREATE TABLE table_224840_4 (vacator VARCHAR, date_successor_seated VARCHAR)
SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_0.department = 'BIOSTAT' AND COURSE_0.number = 606 AND COURSE_1.course_id = course_prerequisite.course_id
Is BIOSTAT 606 a prerequisite for anything ?
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 college FROM table_name_68 WHERE player = "dorian finney-smith"
What College did Player Dorian Finney-Smith play for?
CREATE TABLE table_name_68 (college VARCHAR, player VARCHAR)
SELECT successor FROM table_224840_4 WHERE district = "Massachusetts 3rd"
Who was the latest to take office in Massachusetts 3rd district?
CREATE TABLE table_224840_4 (successor VARCHAR, district VARCHAR)
SELECT race_name FROM table_name_74 WHERE circuit = "hockenheim"
Which race was at Hockenheim circuit?
CREATE TABLE table_name_74 ( race_name VARCHAR, circuit VARCHAR )
SELECT player FROM table_name_66 WHERE height = "6-10" AND college = "lsu"
Which Player has a height of 6-10, and went to College at LSU?
CREATE TABLE table_name_66 (player VARCHAR, height VARCHAR, college VARCHAR)
SELECT builder FROM table_22481967_1 WHERE date = "1930"
List the builder from 1930.
CREATE TABLE table_22481967_1 (builder VARCHAR, date VARCHAR)
SELECT "Color" FROM table_61948 WHERE "Thai name" = 'วันพฤหัสบดี'
Show the Color which has a Thai name of ?
CREATE TABLE table_61948 ( "English name" text, "Thai name" text, "Transcription" text, "Color" text, "Sanskrit word" text, "Planet" text )
SELECT school FROM table_name_41 WHERE player = "tyrone johnson"
Which School did Player Tyrone Johnson attend?
CREATE TABLE table_name_41 (school VARCHAR, player VARCHAR)
SELECT COUNT(builder) FROM table_22481967_1 WHERE withdrawn = "1951" AND number = "42"
List the number of builders where the withdrawn is 1951 and number is 42.
CREATE TABLE table_22481967_1 (builder VARCHAR, withdrawn VARCHAR, number VARCHAR)
SELECT "Rowers" FROM table_66354 WHERE "Time" = '5:56.38'
Who are the Rowers with a Time of 5:56.38?
CREATE TABLE table_66354 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text )
SELECT school FROM table_name_42 WHERE player = "tyrone johnson"
Which School did Player Tyrone Johnson attend?
CREATE TABLE table_name_42 (school VARCHAR, player VARCHAR)
SELECT date FROM table_22481967_1 WHERE number = "1"
List the date for number 1.
CREATE TABLE table_22481967_1 (date VARCHAR, number VARCHAR)
SELECT "Airport" FROM table_38162 WHERE "ICAO" = 'rpvm'
What is the Airport when the ICAO shows rpvm?
CREATE TABLE table_38162 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text )
SELECT rider FROM table_name_17 WHERE time = "1:23.32.41"
Who had the time of 1:23.32.41?
CREATE TABLE table_name_17 (rider VARCHAR, time VARCHAR)
SELECT number FROM table_22481967_1 WHERE operator = "Melbourne and Metropolitan Tramways Board"
List the number for the operator melbourne and metropolitan tramways board.
CREATE TABLE table_22481967_1 (number VARCHAR, operator VARCHAR)
SELECT SUM(inputevents_cv.amount) 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 = 23061)) AND STRFTIME('%y-%m-%d', inputevents_cv.charttime) <= '2105-12-28'
what is the total amount of input until 12/28/2105 patient 23061 had received?
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 transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, ...
SELECT time FROM table_name_24 WHERE rank < 8 AND speed = "104.567mph"
What is the time of the rider who has a rank smaller than 8 and speed of 104.567mph?
CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, speed VARCHAR)
SELECT status FROM table_22481967_1 WHERE operator = "Toronto Transit Commission"
List the status for the operator Toronto transit commission.
CREATE TABLE table_22481967_1 (status VARCHAR, operator VARCHAR)
SELECT boxscore FROM table_name_82 WHERE loss = "capuano (5–5)"
Which box score has a Loss of capuano (5 5)?
CREATE TABLE table_name_82 ( boxscore VARCHAR, loss VARCHAR )
SELECT home_team FROM table_name_14 WHERE venue = "junction oval"
What is the home team at the Junction Oval venue?
CREATE TABLE table_name_14 (home_team VARCHAR, venue VARCHAR)
SELECT network FROM table_22485543_1 WHERE studio_host = "Bob Costas" AND ice_level_reporters = "Darren Pang"
Which network has bob costas as the studio host and darren pang as the ice level reporters?
CREATE TABLE table_22485543_1 (network VARCHAR, studio_host VARCHAR, ice_level_reporters VARCHAR)
SELECT DisplayName, COUNT(DisplayName) FROM Users GROUP BY DisplayName ORDER BY COUNT(DisplayName) DESC
All display names on StackOverflow sorted by frequency.
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGui...
SELECT date FROM table_name_30 WHERE away_team = "richmond"
What is the date where the away team is Richmond?
CREATE TABLE table_name_30 (date VARCHAR, away_team VARCHAR)
SELECT play_by_play FROM table_22485543_1 WHERE studio_analysts = "Mike Milbury" AND ice_level_reporters = "Darren Pang"
Which play-by-play has mike milbury as the studio analyst and darren pang as the ice level reporters?
CREATE TABLE table_22485543_1 (play_by_play VARCHAR, studio_analysts VARCHAR, ice_level_reporters VARCHAR)
SELECT DISTINCT district_name FROM district ORDER BY city_area DESC
What are the different district names in order of descending city area?
CREATE TABLE store ( store_id number, store_name text, type text, area_size number, number_of_product_category number, ranking number ) CREATE TABLE store_district ( store_id number, district_id number ) CREATE TABLE store_product ( store_id number, product_id number ) CREATE ...
SELECT circuit FROM table_name_53 WHERE fastest_lap = "john surtees" AND winning_driver = "john surtees"
Name the circuit when the fastest lap was john surtees and the winning driver was john surtees.
CREATE TABLE table_name_53 (circuit VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT color_commentator_s_ FROM table_22485543_1 WHERE ice_level_reporters = "Brian Engblom"
Who is the color commentator when brian engblom is ice level reporters?
CREATE TABLE table_22485543_1 (color_commentator_s_ VARCHAR, ice_level_reporters VARCHAR)
SELECT COUNT(DISTINCT eid) FROM Certificate
How many employees have certificate.
CREATE TABLE Certificate ( eid VARCHAR )
SELECT winning_driver FROM table_name_59 WHERE circuit = "monza"
Name the winning driver with circuit of monza
CREATE TABLE table_name_59 (winning_driver VARCHAR, circuit VARCHAR)
SELECT play_by_play FROM table_22485543_1 WHERE network = "NBC" AND ice_level_reporters = "Darren Pang"
Who is the play-by-play when nbc is the network and darren pang is the ice level reporters?
CREATE TABLE table_22485543_1 (play_by_play VARCHAR, network VARCHAR, ice_level_reporters VARCHAR)
SELECT name FROM mill WHERE name LIKE '%Moulin%'
Which of the mill names contains the french word 'Moulin'?
CREATE TABLE mill ( architect_id number, id number, location text, name text, type text, built_year number, notes text ) CREATE TABLE bridge ( architect_id number, id number, name text, location text, length_meters number, length_feet number ) CREATE TABLE architect...
SELECT pole_position FROM table_name_35 WHERE date = "8 september"
Name the pole position for 8 september
CREATE TABLE table_name_35 (pole_position VARCHAR, date VARCHAR)
SELECT studio_host FROM table_22485543_1 WHERE year = "2010"
Who is the studio host for the year 2010?
CREATE TABLE table_22485543_1 (studio_host VARCHAR, year VARCHAR)
SELECT "Home team score" FROM table_58231 WHERE "Away team score" = '21.11 (137)'
when the away team score was 21.11 (137) what was the home team score?
CREATE TABLE table_58231 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT winning_driver FROM table_name_45 WHERE race = "belgian grand prix"
Name the winning driver for belgian grand prix
CREATE TABLE table_name_45 (winning_driver VARCHAR, race VARCHAR)
SELECT vacator FROM table_224844_4 WHERE district = "Connecticut At-large"
Who left a seat open for the district of connecticut at-large
CREATE TABLE table_224844_4 (vacator VARCHAR, district 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 = "Laparoscopic lysis of peritoneal adhesions"
provide the number of patients whose admission type is urgent and procedure long title is laparoscopic lysis of peritoneal adhesions?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( ...
SELECT circuit FROM table_name_97 WHERE race = "italian grand prix"
Name the circuit for italian grand prix
CREATE TABLE table_name_97 (circuit VARCHAR, race VARCHAR)
SELECT reason_for_change FROM table_224844_4 WHERE district = "Connecticut At-large"
Why was a seat left open fo Connecticut at-large?
CREATE TABLE table_224844_4 (reason_for_change VARCHAR, district VARCHAR)
SELECT MIN("Live births") FROM table_11429 WHERE "Crude birth rate (per 1000)" > '22.1' AND "Crude death rate (per 1000)" < '5.5' AND "Average population (x 1000)" = '2,401' AND "Natural change" > '45,272'
what is the lowest number of live births when the crude birth rate (per 1000) is more than 22.1, the crude death rate (per 1000) is less than 5.5, the average population (x1000) is 2,401, and the natural change is more than 45,272?
CREATE TABLE table_11429 ( "Average population (x 1000)" real, "Live births" real, "Deaths" text, "Natural change" real, "Crude birth rate (per 1000)" real, "Crude death rate (per 1000)" real, "Natural change (per 1000)" real )
SELECT COUNT(grid) FROM table_name_3 WHERE driver = "giancarlo fisichella"
How many grid numbers were there for the driver Giancarlo Fisichella?
CREATE TABLE table_name_3 (grid VARCHAR, driver VARCHAR)
SELECT MIN(rank_asia) FROM table_2248784_4
What is the smallest Asian rank?
CREATE TABLE table_2248784_4 (rank_asia INTEGER)
SELECT COUNT("Height (m)") FROM table_79543 WHERE "Mountain" = 'jbel ghat'
How tall is the Mountain of jbel ghat?
CREATE TABLE table_79543 ( "Mountain" text, "Height (m)" real, "Prominence (m)" real, "Range" text, "Country" text )
SELECT AVG(laps) FROM table_name_93 WHERE constructor = "ferrari" AND time_retired = "fuel pressure"
What is the mean number of laps for the constructor Ferrari when the time/retired was fuel pressure?
CREATE TABLE table_name_93 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR)
SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_4 WHERE country = "Iraq"
What 2011 GDP (PPP) billions of USD does Iraq have?
CREATE TABLE table_2248784_4 (country VARCHAR)
SELECT visitor FROM table_name_7 WHERE home = "nets"
Who were the Visitor when the Nets were the Home team?
CREATE TABLE table_name_7 ( visitor VARCHAR, home VARCHAR )
SELECT grid FROM table_name_20 WHERE driver = "michael schumacher"
What is the grid when the driver was Michael Schumacher?
CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR)
SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_4 WHERE country = "Israel"
What 2011 GDP (PPP) billions of USD does Israel have?
CREATE TABLE table_2248784_4 (country VARCHAR)
SELECT score FROM table_name_50 WHERE date = "march 11"
What was the score on march 11?
CREATE TABLE table_name_50 ( score VARCHAR, date VARCHAR )
SELECT SUM(laps) FROM table_name_99 WHERE grid = 7
How many laps had a grid number of 7?
CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR)
SELECT COUNT(rank_asia) FROM table_2248784_4 WHERE rank_mideast = 1
How many asian rank have 1 as a mideast rank?
CREATE TABLE table_2248784_4 (rank_asia VARCHAR, rank_mideast VARCHAR)
SELECT series_ep FROM table_name_83 WHERE netflix = "s08e18"
Which Series Ep has a Netflix of s08e18?
CREATE TABLE table_name_83 ( series_ep VARCHAR, netflix VARCHAR )
SELECT COUNT(laps) FROM table_name_1 WHERE grid < 17 AND driver = "giancarlo fisichella"
Which lap number had a grid number of less than 17 when the driver was Giancarlo Fisichella?
CREATE TABLE table_name_1 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 15
Name the gdp world rank for asian rank being 15
CREATE TABLE table_2249029_1 (gdp_world_rank VARCHAR, asian_rank VARCHAR)
SELECT dept_name FROM department ORDER BY dept_name
What are the names of all departments in alphabetical order?
CREATE TABLE employee ( emp_num number, emp_lname text, emp_fname text, emp_initial text, emp_jobcode text, emp_hiredate time, emp_dob time ) CREATE TABLE professor ( emp_num number, dept_code text, prof_office text, prof_extension text, prof_high_degree text ) CREATE T...
SELECT winning_driver FROM table_name_36 WHERE circuit = "monza"
Name the winning driver for circuit of monza
CREATE TABLE table_name_36 (winning_driver VARCHAR, circuit VARCHAR)
SELECT gdp_per_capita FROM table_2249029_1 WHERE gdp_world_rank = "131"
Name the gdp per capita for world rank being 131
CREATE TABLE table_2249029_1 (gdp_per_capita VARCHAR, gdp_world_rank VARCHAR)
SELECT DISTINCT flight_id FROM flight WHERE ((from_airport IN (SELECT AIRPORT_SERVICEalias0.airport_code FROM airport_service AS AIRPORT_SERVICEalias0 WHERE AIRPORT_SERVICEalias0.city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'LOS ANGELES')) AND to_airport IN (SELECT AIRP...
i want a flight from LOS ANGELES to CHARLOTTE early in the morning
CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_s...
SELECT date FROM table_name_14 WHERE fastest_lap = "jody scheckter" AND race = "french grand prix"
Tell me the date for jody scheckter being the fastest lap at the french grand prix
CREATE TABLE table_name_14 (date VARCHAR, fastest_lap VARCHAR, race VARCHAR)
SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 20
Name the gdp world rank for asian rank being 20
CREATE TABLE table_2249029_1 (gdp_world_rank VARCHAR, asian_rank VARCHAR)
SELECT record FROM table_name_61 WHERE score = "9-4"
Name the record for 9-4 score
CREATE TABLE table_name_61 ( record VARCHAR, score VARCHAR )
SELECT date FROM table_name_50 WHERE circuit = "interlagos"
Name the date for circuit of interlagos
CREATE TABLE table_name_50 (date VARCHAR, circuit VARCHAR)
SELECT MAX(world_rank) FROM table_2249029_1 WHERE asian_rank = 31
Name the most world rank for asian rank being 31
CREATE TABLE table_2249029_1 (world_rank INTEGER, asian_rank VARCHAR)
SELECT "ICAO" FROM table_40826 WHERE "CALLSIGN" = 'air busan'
What is the ICAO for Air Busan?
CREATE TABLE table_40826 ( "AIRLINE" text, "ICAO" text, "IATA" text, "CALLSIGN" text, "COMMENCED OPERATIONS" text )
SELECT event FROM table_name_74 WHERE opponent = "vinny magalhães"
What was the event for vinny magalhães?
CREATE TABLE table_name_74 (event VARCHAR, opponent VARCHAR)
SELECT MIN(rank_subcontinent) FROM table_2248784_3 WHERE country = "Bangladesh"
Name the least rank subcontinent for bangladesh
CREATE TABLE table_2248784_3 (rank_subcontinent INTEGER, country VARCHAR)
SELECT AVG("Position") FROM table_35157 WHERE "Difference" = '- 5' AND "Played" > '14'
What position was played with a Difference of - 5, and a Played larger than 14?
CREATE TABLE table_35157 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text )
SELECT date FROM table_name_9 WHERE opponent = "renato ferreira"
What was the date for renato ferreira?
CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR)
SELECT rank_world FROM table_2248784_3 WHERE rank_subcontinent = 7
Name the rank world for 7 rank subcontinent
CREATE TABLE table_2248784_3 (rank_world VARCHAR, rank_subcontinent VARCHAR)
SELECT COUNT(genre) FROM table_26488540_1 WHERE artist = "The Jimi Hendrix Experience"
How many different genres appear for the Jimi Hendrix Experience?
CREATE TABLE table_26488540_1 ( genre VARCHAR, artist VARCHAR )
SELECT event FROM table_name_88 WHERE date = 2009 AND opponent = "leonardo chocolate"
What was the event with leonardo chocolate in 2009?
CREATE TABLE table_name_88 (event VARCHAR, date VARCHAR, opponent VARCHAR)
SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_3 WHERE country = "Pakistan"
Name the 2011 gdp for pakistan
CREATE TABLE table_2248784_3 (country VARCHAR)
SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'dextrose 50%' AND patient.uniquepid = '025-51835' AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURR...
when was the first time that patient 025-51835 was prescribed with dextrose 50% and lidocaine hcl 1% at the same time in 11/last year?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE microlab ( microlabid number, ...
SELECT result FROM table_name_14 WHERE date = 2009 AND opponent = "gerardi rinaldi"
What was the result for the opponent being gerardi rinaldi in 2009?
CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR, opponent VARCHAR)
SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_3 WHERE rank_world = 65
Name the 2011 gdp for 65 rank world
CREATE TABLE table_2248784_3 (rank_world VARCHAR)
SELECT AVG(grid) FROM table_name_45 WHERE bike = "honda cbr1000rr" AND laps = 18 AND time = "+1:12.884"
What is the average Grid for the honda cbr1000rr, with 18 laps and a time of +1:12.884?
CREATE TABLE table_name_45 ( grid INTEGER, time VARCHAR, bike VARCHAR, laps VARCHAR )
SELECT eastern__number1 FROM table_name_23 WHERE week = 5
Tell me the eastern #1 for week of 5
CREATE TABLE table_name_23 (eastern__number1 VARCHAR, week VARCHAR)
SELECT COUNT(rank_world) FROM table_2248784_3 WHERE country = "Bhutan"
Name the number of rank world for bhutan
CREATE TABLE table_2248784_3 (rank_world VARCHAR, country VARCHAR)
SELECT demographic.dob, prescriptions.route FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Jerry Deberry"
what is date of birth and drug route of subject name jerry deberry?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) ...
SELECT eastern__number2 FROM table_name_23 WHERE western__number2 = "oakland"
Tell me the eastern #2 for western #2 of oakland
CREATE TABLE table_name_23 (eastern__number2 VARCHAR, western__number2 VARCHAR)
SELECT COUNT(world_rank) FROM table_2248991_2 WHERE nation = "Nigeria"
How many items were listed under world rank under the nation of Nigeria?
CREATE TABLE table_2248991_2 (world_rank VARCHAR, nation VARCHAR)
SELECT COUNT("Nickname") FROM table_21032 WHERE "Institution" = 'Andrew College'
Name the total number of nicknames for andrew college
CREATE TABLE table_21032 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Enrollment" real, "Joined" real )