answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT COUNT(points_difference) FROM table_20396710_1 WHERE points_for = "139"
when the points for is 139 is points difference?
CREATE TABLE table_20396710_1 (points_difference VARCHAR, points_for VARCHAR)
SELECT AVG("Byes") FROM table_75807 WHERE "Against" = '1247' AND "Draws" < '0'
What is the average number of Byes when there were less than 0 losses and were against 1247?
CREATE TABLE table_75807 ( "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real )
SELECT class FROM table_name_18 WHERE behind = "+44.780"
What is the class of the team that has a behind of +44.780?
CREATE TABLE table_name_18 (class VARCHAR, behind VARCHAR)
SELECT drawn FROM table_20396710_1 WHERE "points_against" = "points_against"
when points against is points again, which are the drawn?
CREATE TABLE table_20396710_1 (drawn VARCHAR)
SELECT "Transfer window" FROM table_70767 WHERE "Country" = 'esp' AND "Type" = 'promoted' AND "Ends" > '2010'
What is the transfer window in esp with promoted type and more than 2010 ends?
CREATE TABLE table_70767 ( "Name" text, "Country" text, "Type" text, "Moving from" text, "Transfer window" text, "Ends" real, "Transfer fee" text, "Source" text )
SELECT behind FROM table_name_72 WHERE day_2 = "3:42.162"
For the team with 3:42.162 on day 2, what was the behind?
CREATE TABLE table_name_72 (behind VARCHAR, day_2 VARCHAR)
SELECT drawn FROM table_20396710_1 WHERE points_for = "39"
when points for is 39 what is the total number of drawn
CREATE TABLE table_20396710_1 (drawn VARCHAR, points_for VARCHAR)
SELECT MIN(season) FROM table_1004033_1 WHERE team = "MetroStars"
When did the Metrostars have their first Rookie of the Year winner?
CREATE TABLE table_1004033_1 ( season INTEGER, team VARCHAR )
SELECT tournament FROM table_name_42 WHERE 1996 = "qf"
Which one of the tournaments had a QF in 1996?
CREATE TABLE table_name_42 (tournament VARCHAR)
SELECT mccain__percentage FROM table_20424014_1 WHERE obama__percentage = "19.3%"
what is the mccain % where obama got 19.3%
CREATE TABLE table_20424014_1 (mccain__percentage VARCHAR, obama__percentage VARCHAR)
SELECT date FROM table_name_23 WHERE visitor = "detroit"
What is the date of the game with Detroit as the visitor team?
CREATE TABLE table_name_23 ( date VARCHAR, visitor VARCHAR )
SELECT 1996 FROM table_name_92 WHERE tournament = "wimbledon"
What is the value for the Wimbledon tournament in 1996?
CREATE TABLE table_name_92 (tournament VARCHAR)
SELECT MAX(mccain__number) FROM table_20424014_1 WHERE obama__percentage = "33.7%"
what is the highest mccain # where obama got 33.7%
CREATE TABLE table_20424014_1 (mccain__number INTEGER, obama__percentage VARCHAR)
SELECT "Crowd" FROM table_54824 WHERE "Date" = '4 july 1981' AND "Away team" = 'essendon'
What was the crowd size on 4 july 1981, and a Away team of essendon?
CREATE TABLE table_54824 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT SUM(year) FROM table_name_26 WHERE position = "center" AND player = "ann wauters"
What year is center Ann Wauters?
CREATE TABLE table_name_26 (year INTEGER, position VARCHAR, player VARCHAR)
SELECT county FROM table_20424014_1 WHERE obama__percentage = "39.8%"
where did obama get 39.8%
CREATE TABLE table_20424014_1 (county VARCHAR, obama__percentage VARCHAR)
SELECT "Coach" FROM table_23656 WHERE "Conference Record" = '6-1'
Who coached the team in the season with a 6-1 conference record?
CREATE TABLE table_23656 ( "Season" real, "Division" text, "Coach" text, "Overall Record" text, "Conference Record" text, "Result" text, "Attendance" real )
SELECT MIN(year) FROM table_name_54 WHERE position = "guard" AND wnba_team = "seattle storm"
What is the earliest year that includes a Seattle Storm guard?
CREATE TABLE table_name_54 (year INTEGER, position VARCHAR, wnba_team VARCHAR)
SELECT obama__number FROM table_20424014_1 WHERE county = "Carson City"
what is the obama # in carson city
CREATE TABLE table_20424014_1 (obama__number VARCHAR, county VARCHAR)
SELECT AVG(fastest_laps) FROM table_name_5 WHERE poles < 0
What was the average number of fastest laps with less than 0 poles?
CREATE TABLE table_name_5 ( fastest_laps INTEGER, poles INTEGER )
SELECT position FROM table_name_31 WHERE year < 2000 AND college_country = "usc"
Regarding players before 2000, what is the USC player's position?
CREATE TABLE table_name_31 (position VARCHAR, year VARCHAR, college_country VARCHAR)
SELECT county FROM table_20424014_1 WHERE obama__percentage = "41.3%"
where did obama get 41.3%
CREATE TABLE table_20424014_1 (county VARCHAR, obama__percentage VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "45" AND procedures.long_title = "Open biopsy of liver"
count the number of patients less than 45 years of age who had open biopsy of liver.
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT MIN(year) FROM table_name_79 WHERE college_country = "baylor"
What is the earliest year a Baylor player made the list?
CREATE TABLE table_name_79 (year INTEGER, college_country VARCHAR)
SELECT COUNT(season) FROM table_20398823_1 WHERE team = "team Bruichladdich"
Name the number of season for team bruichladdich
CREATE TABLE table_20398823_1 (season VARCHAR, team VARCHAR)
SELECT MAX("Number of seats") FROM table_38676 WHERE "Make" = 'mci' AND "Quantity" > '32'
What is the largest number of seats with more than 32 of a MCI make?
CREATE TABLE table_38676 ( "Make" text, "Year placed in service" text, "Quantity" real, "Number of seats" real, "Wheelchair accessible? ()" text, "Current status" text )
SELECT position FROM table_name_93 WHERE player = "sue bird"
What is Sue Bird's position?
CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR)
SELECT MIN(podiums) FROM table_20398823_1 WHERE points = "49"
Name the least podiums for 49 points
CREATE TABLE table_20398823_1 (podiums INTEGER, points VARCHAR)
SELECT date FROM table_1140103_6 WHERE _number = 13
What date is listed at place 13
CREATE TABLE table_1140103_6 ( date VARCHAR, _number VARCHAR )
SELECT builder FROM table_name_52 WHERE class = "terrier"
Which Builder has a Class of Terrier?
CREATE TABLE table_name_52 (builder VARCHAR, class VARCHAR)
SELECT MIN(f_laps) FROM table_20398823_1
Name the least f/laps
CREATE TABLE table_20398823_1 (f_laps INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2108" AND procedures.long_title = "Continuous invasive mechanical ventilation for less than 96 consecutive hours"
what is the number of patients whose admission year is less than 2108 and procedure long title is continuous invasive mechanical ventilation for less than 96 consecutive hours?
CREATE TABLE diagnoses ( 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 ) C...
SELECT constructor FROM table_name_62 WHERE laps < 68 AND grid > 20 AND driver = "thierry boutsen"
who is the constructor when the laps is less than 68, the grid is more than 20 and the driver is thierry boutsen?
CREATE TABLE table_name_62 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT season FROM table_20398823_1 WHERE wins = 0 AND races = 20
Namet he season for wins being 0 and 20 races
CREATE TABLE table_20398823_1 (season VARCHAR, wins VARCHAR, races VARCHAR)
SELECT MIN(demographic.age) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE"
calculate the minimum age of patients with brain mass; intracranial hemorrhage primary disease who had psychiatric facility-partial hospitalization discharge.
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 laps FROM table_name_29 WHERE time_retired = "turbo" AND grid < 14
what is the laps when the time/retired is turbo and the grid is less than 14?
CREATE TABLE table_name_29 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT MIN(podiums) FROM table_20398823_1 WHERE wins = 0 AND season = 2005 AND points = "321"
Name the least podiums for 0 wins and 2005 season for 321 points
CREATE TABLE table_20398823_1 (podiums INTEGER, points VARCHAR, wins VARCHAR, season VARCHAR)
SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations GROUP BY Location_Code
Show the number of documents in different starting date. Bin starting date by weekday and group by location code with a stacked bar chart.
CREATE TABLE Ref_Calendar ( Calendar_Date DATETIME, Day_Number INTEGER ) CREATE TABLE All_Documents ( Document_ID INTEGER, Date_Stored DATETIME, Document_Type_Code CHAR(15), Document_Name CHAR(255), Document_Description CHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Documents_to_...
SELECT time_retired FROM table_name_23 WHERE laps < 4
what is the time/retired when the laps is less than 4?
CREATE TABLE table_name_23 (time_retired VARCHAR, laps INTEGER)
SELECT spanish_title FROM table_20404716_1 WHERE film_title_used_in_nomination = "Ogu and Mampato in Rapa Nui"
What is the Spanish title of the film whose title used in nomination was Ogu and Mampato in Rapa Nui?
CREATE TABLE table_20404716_1 (spanish_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.admityear < "2135"
provide the number of patients whose admission type is elective and admission year is less than 2135?
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, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ...
SELECT MAX(goals) FROM table_name_34 WHERE club = "total" AND apps < 120
Name the most goals for total club and apps less than 120
CREATE TABLE table_name_34 (goals INTEGER, club VARCHAR, apps VARCHAR)
SELECT director FROM table_20404716_1 WHERE result = "Not Nominated" AND spanish_title = "Play"
Who was the director of the film that was not nominated and had the Spanish title of play?
CREATE TABLE table_20404716_1 (director VARCHAR, result VARCHAR, spanish_title VARCHAR)
SELECT COUNT("Avg/G") FROM table_77060 WHERE "Gain" < '1571' AND "Long" < '46'
How much Avg/G has a Gain smaller than 1571, and a Long smaller than 46?
CREATE TABLE table_77060 ( "Name" text, "Gain" real, "Loss" real, "Long" real, "Avg/G" real )
SELECT MAX(goals) FROM table_name_51 WHERE games = 75
How many goals are associated with 75 games?
CREATE TABLE table_name_51 (goals INTEGER, games VARCHAR)
SELECT COUNT(couple) FROM table_20424140_3 WHERE average = "25.3"
How many couples have an average of 25.3?
CREATE TABLE table_20424140_3 (couple VARCHAR, average VARCHAR)
SELECT drawn FROM table_name_95 WHERE tries_for = "42"
Name the drawn for tries for of 42
CREATE TABLE table_name_95 ( drawn VARCHAR, tries_for VARCHAR )
SELECT position FROM table_name_75 WHERE years_for_rockets = "2004-05"
What is the position for the Rockets years of 2004-05?
CREATE TABLE table_name_75 (position VARCHAR, years_for_rockets VARCHAR)
SELECT COUNT(number_of_dances) FROM table_20424140_3 WHERE place = 6
How many different numbers of total dances are there for the couple ranked at number 6?
CREATE TABLE table_20424140_3 (number_of_dances VARCHAR, place VARCHAR)
SELECT MAX(rank) FROM table_name_24 WHERE points < 32
What is the highest rank of the player with less than 32 points?
CREATE TABLE table_name_24 ( rank INTEGER, points INTEGER )
SELECT AVG(no_s_) FROM table_name_14 WHERE years_for_rockets = "2004-05"
What is the average number of years for the Houston Rockets 2004-05?
CREATE TABLE table_name_14 (no_s_ INTEGER, years_for_rockets VARCHAR)
SELECT couple FROM table_20424140_3 WHERE average = "17.2"
What couple has an average of 17.2?
CREATE TABLE table_20424140_3 (couple VARCHAR, average VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.drug = "Paroxetine HCl"
count the number of patients who had urgent hospital admission and are prescribed paroxetine hcl medication.
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 position FROM table_name_4 WHERE years_for_rockets = "1992-93"
For the years 1992-93, what position did he play for the Houston Rockets?
CREATE TABLE table_name_4 (position VARCHAR, years_for_rockets VARCHAR)
SELECT MIN(number_of_dances) FROM table_20424140_3
What's the minimal number of dances a couple has danced?
CREATE TABLE table_20424140_3 (number_of_dances INTEGER)
SELECT job, AVG(age) FROM Person WHERE gender = 'male' GROUP BY job
what is average age of male for different job title?
CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER )
SELECT SUM(no_s_) FROM table_name_92 WHERE position = "forward" AND school_club_team_country = "oregon state"
What is the total number of years did he play the forward position and what school/club/team/country of Oregon State did he play?
CREATE TABLE table_name_92 (no_s_ INTEGER, position VARCHAR, school_club_team_country VARCHAR)
SELECT MAX(place) FROM table_20424140_3
What's the highest number a couple has ranked at?
CREATE TABLE table_20424140_3 (place INTEGER)
SELECT "I/O bus" FROM table_13615 WHERE "Socket" = 'socket g1bga-1288'
What is I/O bus when socket is socket g1bga-1288?
CREATE TABLE table_13615 ( "Model number" text, "sSpec number" text, "Frequency" text, "Turbo" text, "GPU frequency" text, "Cores" text, "L2 cache" text, "L3 cache" text, "I/O bus" text, "Mult." text, "Memory" text, "Voltage" text, "Socket" text, "Release date" te...
SELECT AVG(wins) FROM table_name_16 WHERE player = "bruce fleisher" AND events > 31
How many wins for bruce fleisher with over 31 events?
CREATE TABLE table_name_16 (wins INTEGER, player VARCHAR, events VARCHAR)
SELECT crop_damaged__in_lakh_inr__ FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60"
How many crops were damaged when the public property damage was 1,03,049.60?
CREATE TABLE table_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR)
SELECT DISTINCT paper.paperid FROM dataset, paper, paperdataset WHERE dataset.datasetname IN ('WordNet', 'Dbpedia') AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid GROUP BY paper.paperid
papers using WordNet or Dbpedia
CREATE TABLE field ( fieldid int ) CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE cite ( ...
SELECT AVG(rank) FROM table_name_74 WHERE events < 26 AND wins < 2
What is the average rank for players with under 26 events and less than 2 wins?
CREATE TABLE table_name_74 (rank INTEGER, events VARCHAR, wins VARCHAR)
SELECT MAX(panchayat) FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60"
What is the panchayat when the public property damage was 1,03,049.60
CREATE TABLE table_20403667_2 (panchayat INTEGER, public_property_damaged__in_lakh_inr__ VARCHAR)
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'labevents' AND cost.event_id IN (SELECT labevents.row_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'magnesium, urine'))
how much do the magnesium, urine actually cost?
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_icd_diag...
SELECT MAX(earnings___) AS $__ FROM table_name_90 WHERE events = 34 AND wins > 2
What is the high earnings for players with 34 events and over 2 wins?
CREATE TABLE table_name_90 (earnings___ INTEGER, events VARCHAR, wins VARCHAR)
SELECT MAX(village) FROM table_20403667_2 WHERE house_affected = 103279
What is the largest village that had 103279 houses affected?
CREATE TABLE table_20403667_2 (village INTEGER, house_affected VARCHAR)
SELECT Id AS "post_link", Body, Score FROM Posts WHERE LENGTH(Body) < 256 AND Score > 5 AND PostTypeId = 2
Very short answers with high score.
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CR...
SELECT tournament FROM table_name_83 WHERE 2009 = "2r" AND 2010 = "sf"
Which tournament had a 2R categorization in 2009 and SF in 2010?
CREATE TABLE table_name_83 (tournament VARCHAR)
SELECT MIN(district) FROM table_20403667_2 WHERE animal__in_lakh__ = "33.25"
What is the smallest district that had 33.25 in animals
CREATE TABLE table_20403667_2 (district INTEGER, animal__in_lakh__ VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.admityear < "2167"
give me the number of patients with private health insurance admitted before 2167.
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 2009 FROM table_name_14 WHERE 2008 = "2r" AND 2011 = "2r"
What is the categorization in 2009 when it was 2R in 2008 and 2011?
CREATE TABLE table_name_14 (Id VARCHAR)
SELECT COUNT(district) FROM table_20403667_2 WHERE crop_damaged__in_lakh_inr__ = "1,164.50"
How many districts had crib damage of 1,164.50?
CREATE TABLE table_20403667_2 (district VARCHAR, crop_damaged__in_lakh_inr__ VARCHAR)
SELECT partner FROM table_name_26 WHERE outcome = "runner-up" AND date = "april 6, 1992"
Who is the partner with a runner-up outcome on April 6, 1992?
CREATE TABLE table_name_26 ( partner VARCHAR, outcome VARCHAR, date VARCHAR )
SELECT 2012 FROM table_name_13 WHERE 2008 = "a" AND 2011 = "1r"
What is the categorization in 2012 when it was A in 2008 and 1R in 2011?
CREATE TABLE table_name_13 (Id VARCHAR)
SELECT county FROM table_20453681_1 WHERE obama_percentage = "37.1%"
Where did Obama get 37.1%?
CREATE TABLE table_20453681_1 (county VARCHAR, obama_percentage VARCHAR)
SELECT date_of_birth FROM guests WHERE gender_code = "Male"
What are dates of birth of all the guests whose gender is 'Male'?
CREATE TABLE apartment_buildings ( building_id number, building_short_name text, building_full_name text, building_description text, building_address text, building_manager text, building_phone text ) CREATE TABLE apartment_facilities ( apt_id number, facility_code text ) CREATE TA...
SELECT 2010 FROM table_name_10 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "qf"
What is the categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012?
CREATE TABLE table_name_10 (Id VARCHAR)
SELECT county FROM table_20453681_1 WHERE mccain_percentage = "60.6%" AND obama_percentage = "37.3%"
What's the county where McCain got 60.6% and Obama got 37.3%?
CREATE TABLE table_20453681_1 (county VARCHAR, mccain_percentage VARCHAR, obama_percentage VARCHAR)
SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-1 year') GR...
retrieve the top five most commonly prescribed drugs until 1 year ago for patients of age 40s.
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE treatment ( treat...
SELECT away_team AS score FROM table_name_28 WHERE home_team = "richmond"
What was the score against home team, Richmond?
CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR)
SELECT MIN(mccain_number) FROM table_20453681_1 WHERE obama_percentage = "35.7%" AND others_percentage = "1.9%"
What's the number of McCain votes in the county where Obama got 35.7% and others got 1.9% of the votes?
CREATE TABLE table_20453681_1 (mccain_number INTEGER, obama_percentage VARCHAR, others_percentage VARCHAR)
SELECT written_by FROM table_12419515_4 WHERE total_viewers__in_millions_ = "1.211"
Who wrote the title that received 1.211 million total viewers?
CREATE TABLE table_12419515_4 ( written_by VARCHAR, total_viewers__in_millions_ VARCHAR )
SELECT MIN(crowd) FROM table_name_3 WHERE home_team = "fitzroy"
What is Fitzroy's smallest crowd size?
CREATE TABLE table_name_3 (crowd INTEGER, home_team VARCHAR)
SELECT obama_number FROM table_20453681_1 WHERE county = "Geauga"
How many votes did Obama get in Geauga?
CREATE TABLE table_20453681_1 (obama_number VARCHAR, county VARCHAR)
SELECT "Winners" FROM table_17606 WHERE "Nation" = 'Vietnam'
how many winners from vietnam
CREATE TABLE table_17606 ( "#" real, "Nation" text, "Winners" real, "Runners-up" real, "3rd Place" real, "4th Place" real )
SELECT date FROM table_name_19 WHERE opponent = "naomi cavaday"
When was naomi cavaday the opponent?
CREATE TABLE table_name_19 (date VARCHAR, opponent VARCHAR)
SELECT others FROM table_20453681_1 WHERE mccain_percentage = "65.5%"
How many people voted for others in the county where McCain got 65.5% of the votes?
CREATE TABLE table_20453681_1 (others VARCHAR, mccain_percentage VARCHAR)
SELECT Posts.Id AS "post_link", Posts.OwnerUserId AS "user_link", COUNT(DISTINCT PostHistory.RevisionGUID) AS Edits, MIN(PostHistory.CreationDate) AS Earliest, MAX(PostHistory.CreationDate) AS Latest FROM Posts JOIN PostHistory ON PostHistory.PostId = Posts.Id WHERE PostHistory.UserId = '##UserId##' AND PostHistory.Pos...
Posts most edited by user.
CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, ...
SELECT date FROM table_name_97 WHERE opponent = "andrea gámiz"
When was andrea gámiz the opponent?
CREATE TABLE table_name_97 (date VARCHAR, opponent VARCHAR)
SELECT 3 AS _dart_average FROM table_20463779_22 WHERE player = "Phil Taylor"
What is Phil Taylor's 3-dart average?
CREATE TABLE table_20463779_22 (player VARCHAR)
SELECT colors FROM table_1221089_1 WHERE institution = "University of New Hampshire"
What are the school colors of the University of New Hampshire?
CREATE TABLE table_1221089_1 ( colors VARCHAR, institution VARCHAR )
SELECT opponent FROM table_name_94 WHERE score = "6–4, 6–2" AND surface = "clay"
Who is the opponent when the score was 6–4, 6–2 and the surface was clay?
CREATE TABLE table_name_94 (opponent VARCHAR, score VARCHAR, surface VARCHAR)
SELECT guest_3 FROM table_20466963_4 WHERE guest_4 = "Jill Douglas"
Who is the guest 3 in the show where guest 4 is Jill Douglas?
CREATE TABLE table_20466963_4 (guest_3 VARCHAR, guest_4 VARCHAR)
SELECT launch_date FROM table_1906515_1 WHERE duration__days_ = "174.14"
Name the launch date for duration days 174.14
CREATE TABLE table_1906515_1 ( launch_date VARCHAR, duration__days_ VARCHAR )
SELECT MIN(crowd) FROM table_name_97 WHERE home_team = "essendon"
What was the smallest crowd at a home game for essendon?
CREATE TABLE table_name_97 (crowd INTEGER, home_team VARCHAR)
SELECT guest_2 FROM table_20466963_4 WHERE guest_4 = "Iyare Igiehon" AND guest_3 = "John Oliver"
Who is the guest 2 in the episode where guest 4 is Iyare Igiehon and guest 3 is John Oliver?
CREATE TABLE table_20466963_4 (guest_2 VARCHAR, guest_4 VARCHAR, guest_3 VARCHAR)
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title =...
what number of patients who received a insert endotracheal tube procedure in the same hospital visit after having been diagnosed with alcohol abuse-unspec during this year?
CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number...
SELECT time_retired FROM table_name_70 WHERE driver = "riccardo patrese"
Tell me the time/retired for riccardo patrese
CREATE TABLE table_name_70 (time_retired VARCHAR, driver VARCHAR)
SELECT guest_1 FROM table_20466963_4 WHERE guest_4 = "Jill Douglas"
Who is the guest 1 in the episode where guest 4 is Jill Douglas?
CREATE TABLE table_20466963_4 (guest_1 VARCHAR, guest_4 VARCHAR)