answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT opponent FROM table_name_54 WHERE attendance = "65,537"
Who did the cowboys play when 65,537 attended?
CREATE TABLE table_name_54 (opponent VARCHAR, attendance VARCHAR)
SELECT first_broadcast FROM table_19930660_2 WHERE episode = "2x11"
When was episode 2x11 aired for the first time?
CREATE TABLE table_19930660_2 (first_broadcast VARCHAR, episode VARCHAR)
SELECT location FROM table_name_90 WHERE time = "1:54:21"
At what location was the time 1:54:21?
CREATE TABLE table_name_90 ( location VARCHAR, time VARCHAR )
SELECT tournament FROM table_name_13 WHERE opponents = "antonia xenia tout nataša zorić"
What is the name of the tournament when antonia xenia tout nataša zorić was the opponenet?
CREATE TABLE table_name_13 (tournament VARCHAR, opponents VARCHAR)
SELECT winner FROM table_19930660_2 WHERE rufus_guest = "Sean Lock"
Who won the episode in which Sean Lock was Rufus's guest?
CREATE TABLE table_19930660_2 (winner VARCHAR, rufus_guest VARCHAR)
SELECT SUM(wins) FROM table_name_77 WHERE top_5 < 1
Tell me the sum of wins for top 5 less than 1
CREATE TABLE table_name_77 ( wins INTEGER, top_5 INTEGER )
SELECT date FROM table_name_33 WHERE opponents = "georgie stoop emily webley-smith"
What date was georgie stoop emily webley-smith the opponent?
CREATE TABLE table_name_33 (date VARCHAR, opponents VARCHAR)
SELECT first_broadcast FROM table_19930660_2 WHERE episode = "2x10"
When was the episode 2x10 aired for the first time?
CREATE TABLE table_19930660_2 (first_broadcast VARCHAR, episode VARCHAR)
SELECT MIN(year) FROM table_name_37 WHERE manager = "bobby dews" AND playoffs = "lost in 1st round"
Which Year has a Manager of bobby dews, and Playoffs of lost in 1st round?
CREATE TABLE table_name_37 ( year INTEGER, manager VARCHAR, playoffs VARCHAR )
SELECT surface FROM table_name_44 WHERE opponents = "iryna bremond valeria savinykh"
What is the surface of the match when the opponent was iryna bremond valeria savinykh?
CREATE TABLE table_name_44 (surface VARCHAR, opponents VARCHAR)
SELECT marcus_guest FROM table_19930660_2 WHERE rufus_guest = "Rory McGrath"
Who was Marcus's guest in the episode when Rufus's guest was Rory McGrath?
CREATE TABLE table_19930660_2 (marcus_guest VARCHAR, rufus_guest VARCHAR)
SELECT MAX(points) FROM table_name_63 WHERE date = "december 13"
What were the Points on December 13?
CREATE TABLE table_name_63 ( points INTEGER, date VARCHAR )
SELECT opponents FROM table_name_19 WHERE tournament = "sutton"
What is the name of the opponent for the Sutton tournament?
CREATE TABLE table_name_19 (opponents VARCHAR, tournament VARCHAR)
SELECT COUNT(ranking_la__2_) FROM table_19948664_2 WHERE world_ranking__1_ = "21st"
How many items were under ranking l.a.(2) when the world ranking was 21st?
CREATE TABLE table_19948664_2 (ranking_la__2_ VARCHAR, world_ranking__1_ VARCHAR)
SELECT "Res." FROM table_5032 WHERE "Record" = '3-0'
Which res has a Record of 3-0?
CREATE TABLE table_5032 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT opponents FROM table_name_15 WHERE partner = "anastasia pivovarova"
What is the name of the opponent when anastasia pivovarova was the partner?
CREATE TABLE table_name_15 (opponents VARCHAR, partner VARCHAR)
SELECT author___editor___source FROM table_19948664_2 WHERE ranking_la__2_ = "1st"
What was the author/editor/source when the l.a. ranking was 1st?
CREATE TABLE table_19948664_2 (author___editor___source VARCHAR, ranking_la__2_ VARCHAR)
SELECT title FROM table_23916272_6 WHERE season__number = 8
List the title for the season episode number of 8.
CREATE TABLE table_23916272_6 ( title VARCHAR, season__number VARCHAR )
SELECT home_team AS score FROM table_name_53 WHERE home_team = "south melbourne"
What is south melbourne's home side score?
CREATE TABLE table_name_53 (home_team VARCHAR)
SELECT COUNT(index__year_) FROM table_19948664_2 WHERE countries_sampled = 157
How many years were listed under index when there were 157 countries sampled?
CREATE TABLE table_19948664_2 (index__year_ VARCHAR, countries_sampled VARCHAR)
SELECT SUM("points") FROM table_204_788
what is the total of points in all ?
CREATE TABLE table_204_788 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number, "points" number )
SELECT rounds FROM table_name_98 WHERE entrant = "david brown corporation" AND driver = "roy salvadori"
What rounds did Roy Salvadori drive for David Brown Corporation?
CREATE TABLE table_name_98 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)
SELECT year_of_publication FROM table_19948664_2 WHERE ranking_la__2_ = "1st"
What was the publication year ranking l.a. is 1st?
CREATE TABLE table_19948664_2 (year_of_publication VARCHAR, ranking_la__2_ VARCHAR)
SELECT competition FROM table_name_39 WHERE man_of_the_match = "rick plant"
Rick Plant was the man of the match in what competition?
CREATE TABLE table_name_39 ( competition VARCHAR, man_of_the_match VARCHAR )
SELECT result FROM table_name_17 WHERE year > 2007
What are the results for years after 2007?
CREATE TABLE table_name_17 (result VARCHAR, year INTEGER)
SELECT COUNT(index__year_) FROM table_19948664_2 WHERE world_ranking__1_ = "21st"
How many years were recorded when world ranking was 21st?
CREATE TABLE table_19948664_2 (index__year_ VARCHAR, world_ranking__1_ VARCHAR)
SELECT MAX("Silver") FROM table_39981 WHERE "Nation" = 'russia' AND "Bronze" > '5'
What is the highest silver medals for Russia with more than 5 bronze medals?
CREATE TABLE table_39981 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT character FROM table_name_1 WHERE result = "won" AND year > 2003
Which characters after 2003 won?
CREATE TABLE table_name_1 (character VARCHAR, result VARCHAR, year VARCHAR)
SELECT wireless_lan FROM table_199666_1 WHERE process_technology = "90nm" AND centrino = "Carmel"
What Wireless LAN had a process technology of 90nm and a Carmel centrino?
CREATE TABLE table_199666_1 (wireless_lan VARCHAR, process_technology VARCHAR, centrino VARCHAR)
SELECT MAX("Laps") FROM table_54114 WHERE "Driver" = 'ayrton senna'
What is the most laps for Ayrton Senna?
CREATE TABLE table_54114 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT category FROM table_name_54 WHERE for_the_show = "kasautii zindagii kay" AND year = 2006
For 2006 what category has the Show of kasautii zindagii kay?
CREATE TABLE table_name_54 (category VARCHAR, for_the_show VARCHAR, year VARCHAR)
SELECT chipset FROM table_199666_1 WHERE codename = "Arrandale" AND wireless_lan = "Intel centrino Ultimate-N 6300"
How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?
CREATE TABLE table_199666_1 (chipset VARCHAR, codename VARCHAR, wireless_lan VARCHAR)
SELECT home_team FROM table_26842217_12 WHERE broadcast = "Big East Network"
Who was the home team in the game broadcast on the Big East Network?
CREATE TABLE table_26842217_12 ( home_team VARCHAR, broadcast VARCHAR )
SELECT character FROM table_name_43 WHERE year = 2005
What is the character for 2005?
CREATE TABLE table_name_43 (character VARCHAR, year VARCHAR)
SELECT process_technology FROM table_199666_1 WHERE wireless_lan = "Intel WiFi Link 5100"
What's the process technology of the Intel WiFi Link 5100 wireless LAN?
CREATE TABLE table_199666_1 (process_technology VARCHAR, wireless_lan VARCHAR)
SELECT type FROM table_name_64 WHERE list_entry_number > 1356436 AND name = "albion congregational church"
Which type has a list entry number more than 1356436, named Albion Congregational Church?
CREATE TABLE table_name_64 ( type VARCHAR, list_entry_number VARCHAR, name VARCHAR )
SELECT category FROM table_name_21 WHERE year < 2012
What is a category before 2012?
CREATE TABLE table_name_21 (category VARCHAR, year INTEGER)
SELECT processor FROM table_199666_1 WHERE wireless_lan = "Intel centrino Wireless-N 105"
What type of processor does the Intel Centrino Wireless-N 105 wireless LAN have?
CREATE TABLE table_199666_1 (processor VARCHAR, wireless_lan VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND lab.fluid = "Ascites"
get the number of office admission patients who had ascitic fluid lab test.
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic (...
SELECT natural_change FROM table_name_74 WHERE crude_death_rate__per_1000_ = 8.7 AND live_births < 472
What is natural change with a crude death rate of 8.7 and less than 472 live births?
CREATE TABLE table_name_74 (natural_change VARCHAR, crude_death_rate__per_1000_ VARCHAR, live_births VARCHAR)
SELECT codename FROM table_199666_1 WHERE centrino = "Chief River"
What's the code name of the wireless LAN with Chief River Centrino?
CREATE TABLE table_199666_1 (codename VARCHAR, centrino VARCHAR)
SELECT COUNT("Poles") FROM table_2248 WHERE "Points" = '78'
How many poles had 78 points?
CREATE TABLE table_2248 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" text, "Position" text )
SELECT owner_s_ FROM table_name_34 WHERE description = "operational"
What owner or owners have an operational description?
CREATE TABLE table_name_34 (owner_s_ VARCHAR, description VARCHAR)
SELECT COUNT(number) FROM table_1997759_1 WHERE last_flew = "19 April 1985"
on 19 april 1985 how many of number last flew
CREATE TABLE table_1997759_1 (number VARCHAR, last_flew VARCHAR)
SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = "Karson"
List the dates of enrollment and completion of the student with personal name 'Karson'.
CREATE TABLE Students ( student_id VARCHAR, personal_name VARCHAR ) CREATE TABLE Student_Course_Enrolment ( date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR )
SELECT date FROM table_name_51 WHERE livery = "operational"
What is the date for the Operational Livery?
CREATE TABLE table_name_51 (date VARCHAR, livery VARCHAR)
SELECT registration FROM table_1997759_1 WHERE first_flew = "31 January 1975"
what is the registration located on 31 january 1975 where first flew?
CREATE TABLE table_1997759_1 (registration VARCHAR, first_flew VARCHAR)
SELECT gender, SUM(student_capacity) FROM Dorm GROUP BY gender ORDER BY gender
Find total capacity of dorms for each gender in a bar chart, and could you list by the x-axis from low to high?
CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Student ( StuID INTEGE...
SELECT date FROM table_name_62 WHERE description = "undergoing overhaul, restoration or repairs"
What is the date listed for the item that has undergoing overhaul, restoration or repairs listed under description?
CREATE TABLE table_name_62 (date VARCHAR, description VARCHAR)
SELECT location FROM table_1997759_1 WHERE last_flew = "11 June 2000"
at what location is the last flew on 11 june 2000
CREATE TABLE table_1997759_1 (location VARCHAR, last_flew VARCHAR)
SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations
Can you draw the trend of how many date in location from over the date in location from?
CREATE TABLE Documents_to_be_Destroyed ( Document_ID INTEGER, Destruction_Authorised_by_Employee_ID INTEGER, Destroyed_by_Employee_ID INTEGER, Planned_Destruction_Date DATETIME, Actual_Destruction_Date DATETIME, Other_Details VARCHAR(255) ) CREATE TABLE All_Documents ( Document_ID INTEGER, ...
SELECT home_team AS score FROM table_name_43 WHERE venue = "mcg"
Who is the home team that played at MCG?
CREATE TABLE table_name_43 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(number) FROM table_1997759_1 WHERE registration = "F-BVFF"
how many number is located at registration f-bvff?
CREATE TABLE table_1997759_1 (number VARCHAR, registration VARCHAR)
SELECT school_club_team FROM table_name_58 WHERE position = "guard" AND player = "juan dixon"
What School/Club Team has a Player named Juan Dixon and a Position of guard?
CREATE TABLE table_name_58 ( school_club_team VARCHAR, position VARCHAR, player VARCHAR )
SELECT MIN(crowd) FROM table_name_32 WHERE venue = "arden street oval"
What is the size of the smallest crowd that watched a game at Arden Street Oval?
CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR)
SELECT television_commentator FROM table_1998037_9 WHERE radio_commentator = "Galyna Babiy"
Who is the television commentator when the radio commentator is Galyna Babiy?
CREATE TABLE table_1998037_9 (television_commentator VARCHAR, radio_commentator VARCHAR)
SELECT year FROM table_28848697_4 WHERE tied = 11
What is the year listed when tied is listed as 11?
CREATE TABLE table_28848697_4 ( year VARCHAR, tied VARCHAR )
SELECT away_team AS score FROM table_name_21 WHERE home_team = "hawthorn"
What is the score of the away team who played home team Hawthorn?
CREATE TABLE table_name_21 (away_team VARCHAR, home_team VARCHAR)
SELECT television_commentator FROM table_1998037_9 WHERE spokesperson = "Kateryna Osadcha"
Who is the television commentator when the spokesperson is Kateryna Osadcha?
CREATE TABLE table_1998037_9 (television_commentator VARCHAR, spokesperson VARCHAR)
SELECT MIN("Game") FROM table_12892 WHERE "Opponent" = '@ houston rockets'
Which Game has an Opponent of @ houston rockets?
CREATE TABLE table_12892 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Streak" text )
SELECT away_team FROM table_name_67 WHERE home_team = "footscray"
Who is the away team that played home team Footscray?
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
SELECT MIN(year_s_) FROM table_1998037_9 WHERE spokesperson = "Ruslana"
What is the year when the spoksperson is Ruslana?
CREATE TABLE table_1998037_9 (year_s_ INTEGER, spokesperson VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "TRANSIENT ISCHEMIC ATTACK"
Calculate the total number of patients who had transient ischemic attack as their primary disease.
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text,...
SELECT COUNT(crowd) FROM table_name_44 WHERE away_team = "fitzroy"
How many people attended the game where Fitzroy was the away team?
CREATE TABLE table_name_44 (crowd VARCHAR, away_team VARCHAR)
SELECT television_commentator FROM table_1998037_9 WHERE year_s_ = 2006
Who is the television commentator for the year 2006?
CREATE TABLE table_1998037_9 (television_commentator VARCHAR, year_s_ VARCHAR)
SELECT "Method" FROM table_46256 WHERE "Opponent" = 'chris ade'
What is the method of the match with chris ade as the opponent?
CREATE TABLE table_46256 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text )
SELECT ngc_number FROM table_name_16 WHERE constellation = "leo" AND object_type = "irregular galaxy"
I want the NGC number for leo of irregular galaxy
CREATE TABLE table_name_16 (ngc_number VARCHAR, constellation VARCHAR, object_type VARCHAR)
SELECT no_in_season FROM table_19995378_1 WHERE us_viewers__millions_ = "10.11"
What is the season number of the episode seen by 10.11 million people in the US?
CREATE TABLE table_19995378_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT est FROM table_name_6 WHERE state_province = "alberta" AND league = "cfl" AND city = "edmonton"
In what year was the cfl team in edmonton, alberta established?
CREATE TABLE table_name_6 ( est VARCHAR, city VARCHAR, state_province VARCHAR, league VARCHAR )
SELECT MAX(ngc_number) FROM table_name_57 WHERE right_ascension___j2000__ = "09h40m28.5s"
Tell me the highest NGC number for right ascension of 09h40m28.5s
CREATE TABLE table_name_57 (ngc_number INTEGER, right_ascension___j2000__ VARCHAR)
SELECT COUNT(no_in_season) FROM table_19995378_1 WHERE us_viewers__millions_ = "8.69"
How many episodes with different series numbers were seen by 8.69 people in the US?
CREATE TABLE table_19995378_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT pick__number FROM table_name_70 WHERE name = "bill athey"
What number pick was Bill Athey?
CREATE TABLE table_name_70 ( pick__number VARCHAR, name VARCHAR )
SELECT constellation FROM table_name_37 WHERE object_type = "open cluster"
What is the constellation for open cluster?
CREATE TABLE table_name_37 (constellation VARCHAR, object_type VARCHAR)
SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE language = "Only native"
If the language is only native, what is the percentage of the San Antonio de Lomerio municipality?
CREATE TABLE table_19998428_3 (san_antonio_de_lomerío_municipality___percentage_ VARCHAR, language VARCHAR)
SELECT home_team AS score FROM table_name_77 WHERE away_team = "carlton"
What was the score of the home team when they played carlton?
CREATE TABLE table_name_77 ( home_team VARCHAR, away_team VARCHAR )
SELECT event FROM table_name_75 WHERE athlete = "tatyana lebedeva"
Which event was Tatyana Lebedeva in?
CREATE TABLE table_name_75 (event VARCHAR, athlete VARCHAR)
SELECT MAX(san_javier_municipality___percentage_) FROM table_19998428_3 WHERE language = "Aymara simi"
For language Aymara Simi, what was the maximum San Javier municipality percentage?
CREATE TABLE table_19998428_3 (san_javier_municipality___percentage_ INTEGER, language VARCHAR)
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'nicardipine hcl iv' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))
how many patients during this year were prescribed nicardipine hcl iv?
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 transfers ( row_id number, subject_id number, hadm_...
SELECT event FROM table_name_25 WHERE athlete = "fatima whitbread trine hattestad"
What event was Fatima Whitbread Trine Hattestad in?
CREATE TABLE table_name_25 (event VARCHAR, athlete VARCHAR)
SELECT COUNT(san_julián_municipality___percentage_) FROM table_19998428_3 WHERE san_antonio_de_lomerío_municipality___percentage_ = "5.480"
If the San Antonio de Lomerio municipality percentage is 5.480, what is the total percentage for the San Julian municipality?
CREATE TABLE table_19998428_3 (san_julián_municipality___percentage_ VARCHAR, san_antonio_de_lomerío_municipality___percentage_ VARCHAR)
SELECT name FROM table_name_1 WHERE avg_g = 13.7
what is the name when avg/g is 13.7?
CREATE TABLE table_name_1 ( name VARCHAR, avg_g VARCHAR )
SELECT record FROM table_name_80 WHERE athlete = "milcah chemos"
What is Milcah Chemos' record?
CREATE TABLE table_name_80 (record VARCHAR, athlete VARCHAR)
SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE san_javier_municipality___percentage_ = 31
What is the municipality percentage for San Antonio de Lomerio is San Javier municipality percentage is 31?
CREATE TABLE table_19998428_3 (san_antonio_de_lomerío_municipality___percentage_ VARCHAR, san_javier_municipality___percentage_ VARCHAR)
SELECT l2_cache FROM table_name_42 WHERE frequency = "1333 mhz" AND model_number = "c3 1.3a"
Which L2-Cache has a Frequency of 1333 mhz, and a Model Number of c3 1.3a?
CREATE TABLE table_name_42 ( l2_cache VARCHAR, frequency VARCHAR, model_number VARCHAR )
SELECT record FROM table_name_23 WHERE date = "4 september 2009" AND event = "400 m"
What is the record for the 400 m event on 4 september 2009?
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, event VARCHAR)
SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE cuatro_cañadas_municipality___percentage_ = "252"
If the Cuatro Cañadas municipality percentage is 252, what are all the San Antonio de Lomerío municipality percentage?
CREATE TABLE table_19998428_3 (san_antonio_de_lomerío_municipality___percentage_ VARCHAR, cuatro_cañadas_municipality___percentage_ VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2047" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
Among patients born before the year 2047, how many of them had a lab test for cerebrospinal fluid (csf)?
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 event FROM table_name_14 WHERE date = "26 august 2005"
What event was on 26 August 2005?
CREATE TABLE table_name_14 (event VARCHAR, date VARCHAR)
SELECT san_javier_municipality___percentage_ FROM table_19998428_3 WHERE cuatro_cañadas_municipality___percentage_ = "202"
What is the San Javier municipality percentage if the Cuatro Cañadas municipality percentage is 202?
CREATE TABLE table_19998428_3 (san_javier_municipality___percentage_ VARCHAR, cuatro_cañadas_municipality___percentage_ VARCHAR)
SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1784)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate...
what was the last value of heart rate of patient 1784?
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE cost ( row_id number...
SELECT date FROM table_name_40 WHERE nationality = "bulgaria" AND event = "discus throw"
What was the date of the discus throw for Bulgaria?
CREATE TABLE table_name_40 (date VARCHAR, nationality VARCHAR, event VARCHAR)
SELECT COUNT(_number) FROM table_19982699_1 WHERE director = "Robert Young"
How many total number have robert young as the director?
CREATE TABLE table_19982699_1 (_number VARCHAR, director VARCHAR)
SELECT MIN(no_in_season) FROM table_26168687_5
Name the most number in season
CREATE TABLE table_26168687_5 ( no_in_season INTEGER )
SELECT date FROM table_name_50 WHERE ground = "a" AND opponent = "cartagena"
What is the date ground A and Cartagena as an opponent?
CREATE TABLE table_name_50 (date VARCHAR, ground VARCHAR, opponent VARCHAR)
SELECT MIN(_number) FROM table_19982699_1 WHERE producer = "Charles Salmon" AND television_premiere = "January 27, 2007"
How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?
CREATE TABLE table_19982699_1 (_number INTEGER, producer VARCHAR, television_premiere VARCHAR)
SELECT DISTINCT total_credit FROM student WHERE student_id = 1
How many credits do I have ?
CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE student ( student_id int, lastname varchar, ...
SELECT ground FROM table_name_16 WHERE match < 2
What ground has a match smaller than 2?
CREATE TABLE table_name_16 (ground VARCHAR, match INTEGER)
SELECT COUNT(dvd_release) FROM table_19982699_1 WHERE director = "David DeCoteau"
How many dvd releases where directed by david decoteau?
CREATE TABLE table_19982699_1 (dvd_release VARCHAR, director VARCHAR)
SELECT (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 = '018-115975')) AND intakeoutput.cellpath ...
calculate the difference between the total amount of input and output of patient 018-115975 on 02/05/2105.
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemics...
SELECT score1 FROM table_name_53 WHERE competition_or_tour = "friendly" AND match = 7
What is the score of the competition of friendly, at match 7?
CREATE TABLE table_name_53 (score1 VARCHAR, competition_or_tour VARCHAR, match VARCHAR)