answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT upstream FROM table_17304621_14 WHERE price_tl = "89 TL"
What is the upstream speed that you get for 89 tl?
CREATE TABLE table_17304621_14 (upstream VARCHAR, price_tl VARCHAR)
SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands" AND T1.StagePosition = "back"
Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name.
CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR, StagePosition VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "ACIDOSIS" AND procedures.short_title = "Skin & subq dx proc NEC"
Get me the number of patients with acidosis primary disease and have short title of procedure skin & subq dx proc nec.
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
SELECT bandwidth FROM table_17304621_14 WHERE downstream = "20 Mbit/s" AND price_tl = "69 TL"
What is the bandwidth for downstream of 20 mbit/s for 69 tl?
CREATE TABLE table_17304621_14 (bandwidth VARCHAR, downstream VARCHAR, price_tl VARCHAR)
SELECT COUNT(DISTINCT label) FROM albums
How many unique labels are there for albums?
CREATE TABLE albums (label VARCHAR)
SELECT "Modern equivalent" FROM table_7759 WHERE "Post-1009 province" = 'gyeongsang -do' AND "Administrative district" = 'jinju -mok' AND "Province of Silla" = 'gangju'
What kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and a Province of Silla of gangju?
CREATE TABLE table_7759 ( "Province of Silla" text, "Administrative district" text, "Pre-1009 province" text, "Post-1009 province" text, "Modern equivalent" text )
SELECT year FROM table_17302440_1 WHERE west_manila = "6.5"
What was the year when West Manila has a tariff increase of 6.5?
CREATE TABLE table_17302440_1 (year VARCHAR, west_manila VARCHAR)
SELECT label FROM albums GROUP BY label ORDER BY COUNT(*) DESC LIMIT 1
What is the label that has the most albums?
CREATE TABLE albums (label VARCHAR)
SELECT "Host" FROM table_7052 WHERE "Premiere" = 'november 10, 2007'
Who was the host of the premiere on November 10, 2007?
CREATE TABLE table_7052 ( "Country" text, "Host" text, "Channel" text, "Premiere" text, "Jackpot" text )
SELECT MAX(attendance) FROM table_17294353_1 WHERE opponent = "Cincinnati Bengals"
Of the times the Broncos played the Cincinnati Bengals, what was the highest attendance?
CREATE TABLE table_17294353_1 (attendance INTEGER, opponent VARCHAR)
SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1
What is the last name of the musician that have produced the most number of songs?
CREATE TABLE Songs (SongId VARCHAR); CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR)
SELECT "Replaced by" FROM table_2665 WHERE "Date of appointment" = '8 July 2009'
Name the replaced by for 8 july 2009
CREATE TABLE table_2665 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text, "Position in table" text )
SELECT date FROM table_17294353_1 WHERE opponent = "Miami Dolphins"
When did the Broncos play the Miami Dolphins?
CREATE TABLE table_17294353_1 (date VARCHAR, opponent VARCHAR)
SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = "back" GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1
What is the last name of the musician that has been at the back position the most?
CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR)
SELECT "Circuit" FROM table_61212 WHERE "Series" = 'atcc round 7'
Which circuit was the atcc round 7 at?
CREATE TABLE table_61212 ( "Date" text, "Series" text, "Circuit" text, "City / State" text, "Winner" text, "Team" text )
SELECT result FROM table_17294353_1 WHERE attendance = 18304
In the game with an attendance of 18304, what was the final score?
CREATE TABLE table_17294353_1 (result VARCHAR, attendance VARCHAR)
SELECT title FROM songs WHERE title LIKE '% the %'
Find all the songs whose name contains the word "the".
CREATE TABLE songs (title VARCHAR)
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-98345')) AND intakeoutput.cellpath LIKE '%intake%...
what was the last time that patient 022-98345 had volume (ml) propofol taken on 08/25/2102?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE vitalperiodi...
SELECT COUNT(max_pressure) FROM table_173103_1 WHERE cartridge = ".380 ACP"
How many pressure figures are given for the .380 acp cartridge?
CREATE TABLE table_173103_1 (max_pressure VARCHAR, cartridge VARCHAR)
SELECT DISTINCT instrument FROM Instruments
What are all the instruments used?
CREATE TABLE Instruments (instrument 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, date_day, days, flight WHERE ((date_day.day_number = 20 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time...
i would like a flight from WASHINGTON to BOSTON on 8 20 at 1524
CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer...
SELECT max_pressure FROM table_173103_1 WHERE muzzle_energy = "201ft•lbf (273 J)"
What is the max pressure of the cartridge where the muzzle energy is 201ft•lbf (273 j)?
CREATE TABLE table_173103_1 (max_pressure VARCHAR, muzzle_energy VARCHAR)
SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Le Pop"
What instrument did the musician with last name "Heilo" use in the song "Le Pop"?
CREATE TABLE Songs (SongId VARCHAR, songid VARCHAR, title VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR); CREATE TABLE Instruments (instrument VARCHAR, songid VARCHAR, bandmateid 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 = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALL...
show me flights from BALTIMORE to DALLAS
CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_lo...
SELECT max_pressure FROM table_173103_1 WHERE cartridge = ".38 Long Colt"
What is the max pressure of the .38 long colt cartridge?
CREATE TABLE table_173103_1 (max_pressure VARCHAR, cartridge VARCHAR)
SELECT instrument FROM instruments GROUP BY instrument ORDER BY COUNT(*) DESC LIMIT 1
What is the most used instrument?
CREATE TABLE instruments (instrument VARCHAR)
SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id...
In Spring or Summer what courses are on offer that meet the Other requirement ?
CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_test...
SELECT bullet_weight FROM table_173103_1 WHERE max_pressure = "12,000 CUP"
What is the bullet weight when the max pressure is 12,000 cup?
CREATE TABLE table_173103_1 (bullet_weight VARCHAR, max_pressure VARCHAR)
SELECT COUNT(*) FROM instruments WHERE instrument = "drums"
How many songs have used the instrument "drums"?
CREATE TABLE instruments (instrument VARCHAR)
SELECT "Score" FROM table_51039 WHERE "Tie no" = '21'
What was the score for a no. 21 tie?
CREATE TABLE table_51039 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT score FROM table_17311759_4 WHERE team = "Charlotte"
What are the scores made by Charlotte team
CREATE TABLE table_17311759_4 (score VARCHAR, team VARCHAR)
SELECT instrument FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
What instruments does the the song "Le Pop" use?
CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND diagnoses.icd9_code = "42741"
what is the number of patients with hispanic/latino ethnicity and with diagnosis icd9 code 42741?
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 ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
SELECT high_assists FROM table_17311759_4 WHERE high_rebounds = "Al Horford (17)"
Who made highest assists when high rebounds was Al Horford (17)
CREATE TABLE table_17311759_4 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
How many instruments does the song "Le Pop" use?
CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT ROW_NUMBER() OVER (ORDER BY u.Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, u.Location FROM Users AS u JOIN Badges AS b ON u.Id = b.UserId WHERE b.Name = 'javascript' AND b.Class = 3 AND u.Reputation >= 1000 AND (LOWER(u.Location) LIKE '%nyc%' OR UPPER(Location) LIKE '%NY, NY%' OR LOWER(Location) L...
Top SO users from NYC.
CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate ti...
SELECT score FROM table_17311759_4 WHERE high_rebounds = "Zaza Pachulia (8)"
Give the score when high rebounds was zaza pachulia (8)
CREATE TABLE table_17311759_4 (score VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"
How many instrument does the musician with last name "Heilo" use?
CREATE TABLE instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR)
SELECT "Home team" FROM table_32433 WHERE "Venue" = 'glenferrie oval'
Which team has a home field at Glenferrie Oval?
CREATE TABLE table_32433 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT gs FROM table_17309500_1 WHERE points = "12.1"
Name the gs for points being 12.1
CREATE TABLE table_17309500_1 (gs VARCHAR, points VARCHAR)
SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"
Find all the instruments ever used by the musician with last name "Heilo"?
CREATE TABLE instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR)
SELECT "Record" FROM table_8365 WHERE "Date" = 'march 1'
What is Record, when Date is 'March 1'?
CREATE TABLE table_8365 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text )
SELECT assists FROM table_17309500_1 WHERE games = 157
Name the assists for 157 games
CREATE TABLE table_17309500_1 (assists VARCHAR, games VARCHAR)
SELECT title FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid GROUP BY T1.songid ORDER BY COUNT(*) DESC LIMIT 1
Which song has the most vocals?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-82318')) AND lab.labname = 'cpk-mb index'
what is patient 027-82318's average value for cpk-mb index?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetake...
SELECT steals FROM table_17309500_1 WHERE season = "2007/2008"
Name the steals for season 2007/2008
CREATE TABLE table_17309500_1 (steals VARCHAR, season VARCHAR)
SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Which vocal type is the most frequently appearring type?
CREATE TABLE vocals (TYPE VARCHAR)
SELECT "Title" FROM table_20317 WHERE "Original air date" = 'February 27, 1954'
What is the title of the first episode of the season that begin on february 27, 1954?
CREATE TABLE table_20317 ( "Series #" real, "Season #" real, "Title" text, "Directed by:" text, "Written by:" text, "Original air date" text )
SELECT COUNT(assists) FROM table_17309500_1 WHERE blocks = "77"
Name the total number of assists for 77 blocks
CREATE TABLE table_17309500_1 (assists VARCHAR, blocks VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = "Heilo" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Which vocal type has the band mate with last name "Heilo" played the most?
CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)
SELECT "Finale" FROM table_30849 WHERE "Runners-up" = 'Miranda Gore Browne'
What is the date when Miranda Gore Browne was runner-up?
CREATE TABLE table_30849 ( "Series" real, "Premiere" text, "Finale" text, "Runners-up" text, "Winner" text )
SELECT record FROM table_17311759_9 WHERE high_assists = "Mike Bibby (8)"
When mike bibby (8) had the highest amount of assists what is the record?
CREATE TABLE table_17311759_9 (record VARCHAR, high_assists VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
What are the vocal types used in song "Le Pop"?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT "Director" FROM table_40914 WHERE "Producer" = 'river films'
Who was the director for the film produced by River Films?
CREATE TABLE table_40914 ( "Title" text, "Director" text, "Producer" text, "Production Cost" text, "Singapore Gross" text )
SELECT location_attendance FROM table_17311759_9 WHERE high_assists = "Mike Bibby (9)"
When mike bibby (9) has the highest amount of assists what is the location and attendance?
CREATE TABLE table_17311759_9 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Demon Kitty Rag"
Find the number of vocal types used in song "Demon Kitty Rag"?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "50" AND diagnoses.long_title = "Acute vascular insufficiency of intestine"
what is the number of patients with acute vascular insufficiency of intestine who are less than 50 years of age?
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 prescriptions ( subject_id text, hadm_id...
SELECT team FROM table_17311759_6 WHERE date = "January 23"
Who was the team played on January 23?
CREATE TABLE table_17311759_6 (team VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "lead"
How many songs have a lead vocal?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT COUNT("Pumpers") FROM table_8401 WHERE "Cars" = '1' AND "Staffing" = 'volunteer' AND "Brigade" = 'grovedale' AND "Tankers" < '1'
How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1?
CREATE TABLE table_8401 ( "Brigade" text, "Staffing" text, "Type" text, "Location" text, "Pumpers" real, "Tankers" real, "Telebooms" text, "Platforms" text, "Cars" text, "Hazmat" text )
SELECT location_attendance FROM table_17311759_6 WHERE team = "Orlando"
Where was the game held and what was the attendance when they played Orlando?
CREATE TABLE table_17311759_6 (location_attendance VARCHAR, team VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = "Solveig" AND T2.title = "A Bar In Amsterdam"
Which vocal type did the musician with first name "Solveig" played in the song with title "A Bar in Amsterdam"?
CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE band (id VARCHAR, firstname VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR)
SELECT MIN("Frequency MHz") FROM table_37040 WHERE "Call sign" = 'k202ag'
Name the least frequency Mhz with call sign of k202ag
CREATE TABLE table_37040 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "Class" text, "FCC info" text )
SELECT MAX(game) FROM table_17311783_8 WHERE team = "Charlotte"
In what game did Miami play Charlotte?
CREATE TABLE table_17311783_8 (game INTEGER, team VARCHAR)
SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "lead"
Find all the songs that do not have a lead vocal.
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR)
SELECT MAX("GNIS Feature ID # Link A[\u203a ] B[\u203a ]") FROM table_14299 WHERE "Name A[\u203a ]" = 'upper dewey lake dam'
what is the highest gnis feature id# link a[ ] b[ ] when the name a[ ] is upper dewey lake dam?
CREATE TABLE table_14299 ( "Name A[\u203a ]" text, "Dam or A[\u203a ] Reservoir" text, "GNIS Feature ID # Link A[\u203a ] B[\u203a ]" real, "Elevation A[\u203a ]" text, "Borough or A[\u203a ] Census area" text )
SELECT high_points FROM table_17311797_8 WHERE date = "February 6"
Who had the high points on February 6?
CREATE TABLE table_17311797_8 (high_points VARCHAR, date VARCHAR)
SELECT DISTINCT TYPE FROM vocals
Find all the vocal types.
CREATE TABLE vocals (TYPE 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, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1....
what are the cheapest round trip flights from DENVER to ATLANTA
CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, ...
SELECT MAX(laps) AS Led FROM table_17319931_1 WHERE points = "16"
What is the highest number of laps led with 16 points?
CREATE TABLE table_17319931_1 (laps INTEGER, points VARCHAR)
SELECT * FROM Albums WHERE YEAR = 2010
What are the albums produced in year 2010?
CREATE TABLE Albums (YEAR VARCHAR)
SELECT MAX("Lead Margin") FROM table_72802 WHERE "Dates administered" = 'August 5, 2008'
what is the maximum lead margin on august 5, 2008?
CREATE TABLE table_72802 ( "Poll Source" text, "Dates administered" text, "Democrat: John Kerry" text, "Republican: Jeff Beatty" text, "Lead Margin" real )
SELECT COUNT(driver) FROM table_17319931_1 WHERE team = "SAMAX Motorsport"
How many drivers were there for Samax Motorsport?
CREATE TABLE table_17319931_1 (driver VARCHAR, team VARCHAR)
SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Le Pop"
Who performed the song named "Le Pop"?
CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)
SELECT score FROM table_name_62 WHERE opponents = "misa eguchi eri hozumi"
Tell me the score of misa eguchi eri hozumi
CREATE TABLE table_name_62 ( score VARCHAR, opponents VARCHAR )
SELECT team FROM table_17319931_1 WHERE driver = "Jeff Simmons"
What is the team whose driver Jeff Simmons?
CREATE TABLE table_17319931_1 (team VARCHAR, driver VARCHAR)
SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands"
What instrument did the musician with last name "Heilo" use in the song "Badlands"?
CREATE TABLE Songs (SongId VARCHAR, songid VARCHAR, title VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR); CREATE TABLE Instruments (instrument VARCHAR, songid VARCHAR, bandmateid VARCHAR)
SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "S/P HANGING"
calculate the maximum days of hospitalization for patients with s/p hanging primary disease.
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( ...
SELECT COUNT(driver) FROM table_17319931_1 WHERE time_retired = "+3 laps" AND points = "24"
How many drivers where there when the time/retired +3 laps and points were 24?
CREATE TABLE table_17319931_1 (driver VARCHAR, time_retired VARCHAR, points VARCHAR)
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
How many instruments does the song "Badlands" use?
CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = "Gulf of Mexico" AND state = "Texas"
how many mean elevation with lowest point being gulf of mexico and state being texas
CREATE TABLE table_1416612_1 ( mean_elevation VARCHAR, lowest_point VARCHAR, state VARCHAR )
SELECT MAX(laps) FROM table_17319931_1 WHERE driver = "Darren Manning"
What is the highest number of laps for Darren Manning?
CREATE TABLE table_17319931_1 (laps INTEGER, driver VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
What are the vocal types used in song "Badlands"?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT "Tries for" FROM table_4940 WHERE "Losing bonus" = '5' AND "Club" = 'maesteg celtic rfc'
How many tries had a losing bonus of 5, and were part of the Maesteg Celtic RFC club?
CREATE TABLE table_4940 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text )
SELECT COUNT(car_no) FROM table_17319931_1 WHERE time_retired = "+4.0019"
How many car numbers were recorded when the time/retired is +4.0019?
CREATE TABLE table_17319931_1 (car_no VARCHAR, time_retired VARCHAR)
SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
Find the number of vocal types used in song "Le Pop"
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT * FROM table_train_258 WHERE gender = 'male' OR gender = 'female'
male and female subjects
CREATE TABLE table_train_258 ( "id" int, "gender" string, "autoimmune_disease" bool, "renal_disease" bool, "hepatic_disease" bool, "immune_deficiency_disorder" bool, "active_hepatitis" bool, "body_mass_index_bmi" float, "NOUSE" float )
SELECT game FROM table_17311812_7 WHERE date = "January 28"
What game number was played on January 28?
CREATE TABLE table_17311812_7 (game VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = "shared"
How many songs have a shared vocal?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT "2011" FROM table_12787 WHERE "Tournament" = 'australian open' AND "2010" = 'qf'
What is the 2011 Australian Open and a 2010 QF?
CREATE TABLE table_12787 ( "Tournament" text, "2009" text, "2010" text, "2011" text, "2012" text, "Win %" text )
SELECT high_points FROM table_17311812_8 WHERE date = "February 11"
What is the high amount of points on February 11?
CREATE TABLE table_17311812_8 (high_points VARCHAR, date VARCHAR)
SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "back"
Find all the songs that do not have a back vocal.
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE vocals (songid VARCHAR)
SELECT "D.O.B." FROM table_36220 WHERE "Surname" = 'dale' AND "First" = 'lachlan'
When was Lachlan Dale born?
CREATE TABLE table_36220 ( "Surname" text, "First" text, "D.O.B." text, "Bats" text, "Throws" text, "Position" text )
SELECT high_assists FROM table_17311812_8 WHERE team = "Denver"
Who has the most assists on Denver?
CREATE TABLE table_17311812_8 (high_assists VARCHAR, team VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Solveig" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Which vocal type has the band mate with first name "Solveig" played the most?
CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)
SELECT "Crowd" FROM table_32310 WHERE "Away team" = 'melbourne'
How large was the crowd when the away team was melbourne?
CREATE TABLE table_32310 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT location_attendance FROM table_17322817_10 WHERE date = "April 13"
Name the location attendance for april 13
CREATE TABLE table_17322817_10 (location_attendance VARCHAR, date VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = "Heilo" AND T2.title = "Der Kapitan"
Which vocal type did the musician with last name "Heilo" played in the song with title "Der Kapitan"?
CREATE TABLE band (id VARCHAR, lastname VARCHAR); CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR)
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9964 AND admissions.dischtime IS NULL)
had patient 9964 received any laboratory test during this hospital visit?
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE...
SELECT location_attendance FROM table_17322817_10 WHERE date = "April 5"
Name the location attendance for april 5
CREATE TABLE table_17322817_10 (location_attendance VARCHAR, date VARCHAR)