answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT MAX(pick__number) FROM table_name_28 WHERE pl_gp > 55
Name the highest pick number for PI GP more than 55
CREATE TABLE table_name_28 (pick__number INTEGER, pl_gp INTEGER)
SELECT COUNT(result) FROM table_20319085_2 WHERE conference_record = "4-3"
How many different results are there for the season with a 4-3 conference record?
CREATE TABLE table_20319085_2 (result VARCHAR, conference_record VARCHAR)
SELECT "Result" FROM table_70317 WHERE "Home/Away" = 'home' AND "Opponent" = 'pride'
What is the result when you play at home against Pride
CREATE TABLE table_70317 ( "Date" text, "Opponent" text, "Home/Away" text, "Field" text, "Result" text )
SELECT MIN(rd__number) FROM table_name_13 WHERE pl_gp > 0 AND pick__number > 51
Name the least RD number that has PI GP more than 0 and pick # more than 51
CREATE TABLE table_name_13 (rd__number INTEGER, pl_gp VARCHAR, pick__number VARCHAR)
SELECT coach FROM table_20319085_2 WHERE conference_record = "6-1"
Who coached the team in the season with a 6-1 conference record?
CREATE TABLE table_20319085_2 (coach VARCHAR, conference_record VARCHAR)
SELECT eliminated_from_competition FROM table_28068063_3 WHERE proceed_to_quarter_final = "Pau"
Who was eliminated from the competition when pau proceed to the quarter final?
CREATE TABLE table_28068063_3 ( eliminated_from_competition VARCHAR, proceed_to_quarter_final VARCHAR )
SELECT date FROM table_name_34 WHERE away_team = "footscray"
What day did Footscray play as the away team?
CREATE TABLE table_name_34 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(conference_record) FROM table_20319085_2 WHERE season = 2006
How many different conference records are there for season 2006?
CREATE TABLE table_20319085_2 (conference_record VARCHAR, season VARCHAR)
SELECT 2008 FROM table_name_39 WHERE 2009 = "a" AND tournament = "cincinnati masters"
Which 2008 has a 2009 of A, and a Tournament of cincinnati masters?
CREATE TABLE table_name_39 ( tournament VARCHAR )
SELECT away_team AS score FROM table_name_40 WHERE home_team = "hawthorn"
What was Hawthorn's away teams opponents score?
CREATE TABLE table_name_40 (away_team VARCHAR, home_team VARCHAR)
SELECT result FROM table_20319085_2 WHERE conference_record = "7-2"
How did the season with 7-2 conference record ed?
CREATE TABLE table_20319085_2 (result VARCHAR, conference_record VARCHAR)
SELECT SUM(game) FROM table_name_30 WHERE series = "bruins lead 3–1"
Which Game has a Series of bruins lead 3 1?
CREATE TABLE table_name_30 ( game INTEGER, series VARCHAR )
SELECT SUM(attendance) FROM table_name_83 WHERE date = "april 17"
What was the attendance of april 17?
CREATE TABLE table_name_83 (attendance INTEGER, date VARCHAR)
SELECT MIN(season) FROM table_20319085_2 WHERE conference_record = "4-3"
In what season was the conference record 4-3?
CREATE TABLE table_20319085_2 (season INTEGER, conference_record VARCHAR)
SELECT "Stadium" FROM table_67701 WHERE "Date" = 'october 31'
What was the stadium for the game held on October 31?
CREATE TABLE table_67701 ( "Week" real, "Date" text, "Visiting Team" text, "Host Team" text, "Stadium" text )
SELECT loss FROM table_name_98 WHERE record = "21-34"
What was the loss of the Mariners game when they had a record of 21-34?
CREATE TABLE table_name_98 (loss VARCHAR, record VARCHAR)
SELECT MAX(3 AS rd_runner_up) FROM table_20325360_2
What is the highest number of third place runners up held by any of the countries competing in the Mr. International competition?.
CREATE TABLE table_20325360_2 (Id VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.fluid = "Urine"
what is the number of patients whose admission type is elective and lab test fluid is urine?
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 demographic ( subject_id text, hadm_id t...
SELECT opponent FROM table_name_30 WHERE record = "33-45"
Who did the Mariners play when they had a record of 33-45?
CREATE TABLE table_name_30 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(2 AS nd_runner_up) FROM table_20325360_2 WHERE rank = 3
The country, competing in the Mr. International competition, that holds a rank of 3, has how many 2nd runners up?
CREATE TABLE table_20325360_2 (rank VARCHAR)
SELECT Location, COUNT(*) AS number FROM Users WHERE Location LIKE '%South Africa%' OR Location LIKE '%Cape Town%' OR Location LIKE '%Capetown%' OR Location LIKE '%Joburg%' OR Location LIKE '%Johannesburg%' OR Location LIKE '%JHB%' OR Location LIKE '%Gauteng%' OR Location LIKE '%Pretoria%' OR Location LIKE '%Western Ca...
South African Users by Location.
CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Descr...
SELECT loss FROM table_name_96 WHERE record = "22-35"
What was the loss of the Mariners game when they had a record of 22-35?
CREATE TABLE table_name_96 (loss VARCHAR, record VARCHAR)
SELECT COUNT(2 AS nd_runner_up) FROM table_20325360_2 WHERE rank = 2
For the country that holds a rank of 2, in the Mr. International Competition, what is the total number of competitors listed as 2nd runner ups?
CREATE TABLE table_20325360_2 (rank VARCHAR)
SELECT MIN("Grid") FROM table_54111 WHERE "Driver" = 'ayrton senna'
What is the smallest grid for Ayrton Senna?
CREATE TABLE table_54111 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT record FROM table_name_65 WHERE attendance = "35,614"
What was the record for the game attended by 35,614 spectators?
CREATE TABLE table_name_65 (record VARCHAR, attendance VARCHAR)
SELECT MAX(total) FROM table_20325360_2 WHERE country_territory = "Brazil"
How many competitors in total, for the Mr. International competition, does Brazil have?
CREATE TABLE table_20325360_2 (total INTEGER, country_territory VARCHAR)
SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'uric acid, urine')) AND DATETIME(cost.chargetime) >= DATETIME(CURRENT_TIME(), '-5 year') GROUP BY cos...
what is the maximum total cost of a hospital involving a laboratory test for uric acid, urine since 5 years ago?
CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE ...
SELECT record FROM table_name_5 WHERE date = "april 8"
What is the record for April 8?
CREATE TABLE table_name_5 (record VARCHAR, date VARCHAR)
SELECT high_checkout FROM table_20351295_2 WHERE player = "Trina Gulliver"
What's Trina Gulliver's high checkout?
CREATE TABLE table_20351295_2 (high_checkout VARCHAR, player VARCHAR)
SELECT earnings___$__ FROM table_name_59 WHERE tournaments_played < 28 AND year = "2012"
What 2012 amount of earnings corresponds with less than 28 tournaments played?
CREATE TABLE table_name_59 ( earnings___$__ VARCHAR, tournaments_played VARCHAR, year VARCHAR )
SELECT attendance FROM table_name_53 WHERE record = "1-1"
What was the attendance for the game that has a record of 1-1?
CREATE TABLE table_name_53 (attendance VARCHAR, record VARCHAR)
SELECT legs_won FROM table_20351295_2 WHERE high_checkout = 80
How many legs has the player with high checkout of 80 won?
CREATE TABLE table_20351295_2 (legs_won VARCHAR, high_checkout VARCHAR)
SELECT AVG("Bask") FROM table_43521 WHERE "Soft" = '18' AND "Total" > '35'
Which Bask has Soft of 18, and a Total larger than 35?
CREATE TABLE table_43521 ( "School" text, "Bask" real, "Golf" text, "Soccer" text, "Soft" text, "Swimming" text, "Tennis" real, "Indoor track" text, "Outdoor track" text, "Volleyball" text, "Total" real )
SELECT record FROM table_name_79 WHERE attendance = "35,305"
What is the record for the game with an attendance of 35,305?
CREATE TABLE table_name_79 (record VARCHAR, attendance VARCHAR)
SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = "Aquarius"
Name the sanskrit word and meaning for aquarius
CREATE TABLE table_20354_7 (sanskrit_word_and_meaning VARCHAR, zodiac_sign VARCHAR)
SELECT AVG("Crowd") FROM table_51767 WHERE "Venue" = 'moorabbin oval'
What was the attendance at Moorabbin Oval?
CREATE TABLE table_51767 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT MIN(grid) FROM table_name_39 WHERE driver = "louis rosier" AND laps > 78
what is the grid when the driver is louis rosier and the laps is more than 78?
CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT zodiac_sign FROM table_20354_7 WHERE malayalam_name = "കന്നി"
Name the zodiac for കന്നി
CREATE TABLE table_20354_7 (zodiac_sign VARCHAR, malayalam_name VARCHAR)
SELECT date_of_appointment FROM table_27383390_4 WHERE position_in_table = 16
When is the date of appointment when the position in table is 16?
CREATE TABLE table_27383390_4 ( date_of_appointment VARCHAR, position_in_table VARCHAR )
SELECT time_retired FROM table_name_51 WHERE driver = "toulo de graffenried"
what is the time/retired when the driver is toulo de graffenried?
CREATE TABLE table_name_51 (time_retired VARCHAR, driver VARCHAR)
SELECT malayalam_name FROM table_20354_7 WHERE zodiac_sign = "Leo"
Name the malayalam name for leo
CREATE TABLE table_20354_7 (malayalam_name VARCHAR, zodiac_sign VARCHAR)
SELECT date, COUNT(date) FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 GROUP BY date ORDER BY date
What are the dates in which the mean sea level pressure was between 303 and 31, and count them by a line chart, list from low to high by the date.
CREATE TABLE weather ( date TEXT, max_temperature_f INTEGER, mean_temperature_f INTEGER, min_temperature_f INTEGER, max_dew_point_f INTEGER, mean_dew_point_f INTEGER, min_dew_point_f INTEGER, max_humidity INTEGER, mean_humidity INTEGER, min_humidity INTEGER, max_sea_level_pre...
SELECT SUM(laps) FROM table_name_99 WHERE driver = "tony rolt" AND grid < 10
what is the laps when the driver is tony rolt and the grid is less than 10?
CREATE TABLE table_name_99 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT transliteration FROM table_20354_7 WHERE malayalam_name = "ചിങ്ങം"
Name the transliteration for ചിങ്ങം
CREATE TABLE table_20354_7 (transliteration VARCHAR, malayalam_name VARCHAR)
SELECT PHONE_NUMBER, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of phone_number and salary in a bar chart, show SALARY in asc order.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0),...
SELECT time_retired FROM table_name_74 WHERE constructor = "maserati" AND laps = 90
what is the time/retired when the constructor is maserati and the laps is 90?
CREATE TABLE table_name_74 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT MAX(mccain_number) FROM table_20350118_1 WHERE obama_percentage = "50.7%"
How many votes did McCain get in the county where Obama got 50.7% of the votes?
CREATE TABLE table_20350118_1 (mccain_number INTEGER, obama_percentage VARCHAR)
SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-83061')) AND intakeoutput.cellpath LIKE '%intake%' AND D...
what was the name of the intake that patient 017-83061 until 943 days ago last had?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugst...
SELECT AVG(attendance) FROM table_name_57 WHERE venue = "a" AND date = "16 october 2004"
What is the average Attendance at Venue A on 16 October 2004?
CREATE TABLE table_name_57 (attendance INTEGER, venue VARCHAR, date VARCHAR)
SELECT county FROM table_20350118_1 WHERE mccain_number = 20226
Where did McCain get 20226 votes?
CREATE TABLE table_20350118_1 (county VARCHAR, mccain_number VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.dob_year < "1879"
calculate the number of patients born before 1879 ere tranferred within the facility.
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 MIN(attendance) FROM table_name_34 WHERE opponent = "middlesbrough" AND venue = "a"
What is the lowest Attendance when Middlesbrough played at Venue A?
CREATE TABLE table_name_34 (attendance INTEGER, opponent VARCHAR, venue VARCHAR)
SELECT MIN(total) FROM table_20350118_1 WHERE county = "Cabarrus"
How many people voted in Cabarrus county?
CREATE TABLE table_20350118_1 (total INTEGER, county VARCHAR)
SELECT "combined days" FROM table_202_45 WHERE "wrestler" = 'orville brown'
how long did orville brown remain nwa world heavyweight champion ?
CREATE TABLE table_202_45 ( id number, "rank" number, "wrestler" text, "no. of reigns" number, "combined days" number )
SELECT sponsor_s_ FROM table_name_18 WHERE _number_of_cosponsors < 200 AND date_introduced = "february 28, 2005"
Who was the sponsor for the bill introduced February 28, 2005 with cosponsors less than 200?
CREATE TABLE table_name_18 (sponsor_s_ VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR)
SELECT COUNT(obama_number) FROM table_20350118_1 WHERE obama_percentage = "27.8%"
How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes?
CREATE TABLE table_20350118_1 (obama_number VARCHAR, obama_percentage VARCHAR)
SELECT cast FROM table_2570269_2 WHERE episode__number = "2-03"
For episode number 2-03, what are the names of the cast?
CREATE TABLE table_2570269_2 ( cast VARCHAR, episode__number VARCHAR )
SELECT MAX(year) FROM table_name_68 WHERE nominated_work = "herself" AND event = "mtv movie awards"
What year was Herself nominated at the MTV Movie Awards?
CREATE TABLE table_name_68 (year INTEGER, nominated_work VARCHAR, event VARCHAR)
SELECT COUNT(no) FROM table_20360535_3 WHERE directed_by = "Ben Jones" AND written_by = "Paul Dini"
How many episodes directed by ben jones and written by paul dini?
CREATE TABLE table_20360535_3 (no VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT Type, COUNT(Type) FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id GROUP BY Type
How many companies that have ever operated a flight for each type? Draw a bar chart.
CREATE TABLE flight ( id int, Vehicle_Flight_number text, Date text, Pilot text, Velocity real, Altitude real, airport_id int, company_id int ) CREATE TABLE operate_company ( id int, name text, Type text, Principal_activities text, Incorporated_in text, Group_Equ...
SELECT AVG(crowd) FROM table_name_84 WHERE home_team = "essendon"
What is the average amount of spectators when Essendon played as the home team?
CREATE TABLE table_name_84 (crowd INTEGER, home_team VARCHAR)
SELECT title FROM table_20360535_3 WHERE television_order = "S02E01"
What is the title of S02E01?
CREATE TABLE table_20360535_3 (title VARCHAR, television_order VARCHAR)
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9038) AND prescriptions.route = 'right eye' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME...
when was last time patient 9038 was prescribed a medication via right eye route in 04/last year?
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 d_icd_diagnoses ( row_id number, icd9_code text, sh...
SELECT away_team AS score FROM table_name_96 WHERE venue = "mcg"
What did the away team score at MCG?
CREATE TABLE table_name_96 (away_team VARCHAR, venue VARCHAR)
SELECT television_order FROM table_20360535_3 WHERE written_by = "Gail Simone"
What TV order is written by gail simone?
CREATE TABLE table_20360535_3 (television_order VARCHAR, written_by VARCHAR)
SELECT no_of_athletes FROM table_26669939_1 WHERE host_city = "Nice"
What was the number of athletes in the host city of Nice?
CREATE TABLE table_26669939_1 ( no_of_athletes VARCHAR, host_city VARCHAR )
SELECT venue FROM table_name_28 WHERE away_team = "geelong"
Where was the game when Geelong was the away team?
CREATE TABLE table_name_28 (venue VARCHAR, away_team VARCHAR)
SELECT mens_doubles FROM table_20361783_1 WHERE womens_singles = "Zhou Mi"
who won mens doubles when zhou mi won womens singles
CREATE TABLE table_20361783_1 (mens_doubles VARCHAR, womens_singles VARCHAR)
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COUNT(HIRE_DATE)
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of hire_date and the amount of hire_date bin hire_date by weekday in a bar chart, and sort in ascending by the total number please.
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,...
SELECT away_team FROM table_name_72 WHERE venue = "arden street oval"
What team was the away team at Arden Street Oval?
CREATE TABLE table_name_72 (away_team VARCHAR, venue VARCHAR)
SELECT mixed_doubles FROM table_20361783_1 WHERE womens_singles = "Zhou Mi"
who won mixed doubles when zhou mi won womens singles
CREATE TABLE table_20361783_1 (mixed_doubles VARCHAR, womens_singles VARCHAR)
SELECT q.Score AS "q-score", a.Score AS "a-score" FROM Posts AS q INNER JOIN (SELECT DISTINCT a.ParentId, MAX(a.Score) AS "score" FROM Posts AS a WHERE a.PostTypeId = 2 GROUP BY a.ParentId) AS a ON q.Id = a.ParentId WHERE q.PostTypeId = 1 AND q.ClosedDate IS NULL
Question score vs. highest voted Answer score.
CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE TagSynonyms ( Id number...
SELECT COUNT(diameter__km_) FROM table_name_71 WHERE latitude < 14 AND name = "xenia" AND longitude > 249.4
What in Xenia's Diameter in km, with a latitude of 14 and a longitude of 249.4?
CREATE TABLE table_name_71 (diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR, name VARCHAR)
SELECT MIN(year) FROM table_20361783_1 WHERE womens_singles = "Li Xuerui"
state the earliest year li xuerui won womens singles
CREATE TABLE table_20361783_1 (year INTEGER, womens_singles VARCHAR)
SELECT "S.R." FROM table_42794 WHERE "Average" < '23.63' AND "Runs Scored" = '49'
Which S.R. has a Average smaller than 23.63 Runs Scored of 49?
CREATE TABLE table_42794 ( "Name" text, "Innings" real, "Runs Scored" real, "Balls Faced" real, "Average" real, "S.R." real )
SELECT AVG(latitude) FROM table_name_18 WHERE diameter__km_ < 12.8 AND longitude < 208
What is the latitude for a crater with a diameter of 12.8 km and a longitude of 208?
CREATE TABLE table_name_18 (latitude INTEGER, diameter__km_ VARCHAR, longitude VARCHAR)
SELECT womens_doubles FROM table_20361783_1 WHERE year = 2010
who won womens doubles in 2010
CREATE TABLE table_20361783_1 (womens_doubles VARCHAR, year VARCHAR)
SELECT results FROM table_13657749_2 WHERE gto_winning_team = "Peter Gregg Hurley Haywood"
What is Peter Gregg Hurley Haywood's results?
CREATE TABLE table_13657749_2 ( results VARCHAR, gto_winning_team VARCHAR )
SELECT runner_s__up FROM table_name_75 WHERE winning_score = 67 - 66 - 65 - 69 = 267
Who was the Runner(s)-up in the race with a winning score of 67-66-65-69=267?
CREATE TABLE table_name_75 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT mixed_doubles FROM table_20361783_1 WHERE womens_singles = "Wang Yihan"
who won mixed doubles when wang yihan won womens singles
CREATE TABLE table_20361783_1 (mixed_doubles VARCHAR, womens_singles VARCHAR)
SELECT category FROM table_name_52 WHERE work = "scream" AND award = "international horror guild"
What category was Scream nominated for at the International Horror Guild?
CREATE TABLE table_name_52 ( category VARCHAR, work VARCHAR, award VARCHAR )
SELECT date FROM table_name_9 WHERE tournament = "masters tournament"
When was the Masters Tournament?
CREATE TABLE table_name_9 (date VARCHAR, tournament VARCHAR)
SELECT MAX(county_councils___2011__) FROM table_203802_2 WHERE english_party_name = "Communist Party of Norway"
How many county councils for the communist party of norway
CREATE TABLE table_203802_2 (county_councils___2011__ INTEGER, english_party_name VARCHAR)
SELECT * FROM Posts WHERE OwnerUserId = @UserId AND PostTypeId = 1
List all questions by a user.
CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId numbe...
SELECT margin_of_victory FROM table_name_48 WHERE runner_s__up = "justin rose"
What is the margin of victory in the race where Justin Rose was the runner-up?
CREATE TABLE table_name_48 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT 2013 AS _parliamentary_election FROM table_203802_2 WHERE english_party_name = "Pensioners Party"
What percent of the parliamentary election did the pensioners party receive
CREATE TABLE table_203802_2 (english_party_name VARCHAR)
SELECT mwehl_team FROM table_name_49 WHERE round = "2" AND player = "nicolas kerdiles"
What is the MWEHL Team on Round 2, with player Nicolas Kerdiles?
CREATE TABLE table_name_49 ( mwehl_team VARCHAR, round VARCHAR, player VARCHAR )
SELECT tournament FROM table_name_87 WHERE date = "7 aug 2011"
What tournament took place on 7 Aug 2011?
CREATE TABLE table_name_87 (tournament VARCHAR, date VARCHAR)
SELECT COUNT(2013 AS _parliamentary_election) FROM table_203802_2 WHERE english_party_name = "Center Alliance"
How many parties are named the Center Alliance
CREATE TABLE table_203802_2 (english_party_name VARCHAR)
SELECT result FROM table_name_33 WHERE opponent = "new england patriots"
What was the result when the new england patriots played?
CREATE TABLE table_name_33 ( result VARCHAR, opponent VARCHAR )
SELECT day_2 FROM table_name_23 WHERE day_1 = "4:05.096"
For the team that had 4:05.096, what was their day 2?
CREATE TABLE table_name_23 (day_2 VARCHAR, day_1 VARCHAR)
SELECT MAX(withdrawn) FROM table_20391799_1 WHERE ltsr_no = 37
Name the most withdrawn for 37 lstr no.
CREATE TABLE table_20391799_1 (withdrawn INTEGER, ltsr_no VARCHAR)
SELECT "Location" FROM table_24605 WHERE "Opponent" = '@ Roughriders'
What was the location for when the opponent was @ roughriders?
CREATE TABLE table_24605 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Final Score" text, "Attendance" real, "Record" text )
SELECT team FROM table_name_34 WHERE day_1 = "3:18.513"
Which team had 3:18.513 on day 1?
CREATE TABLE table_name_34 (team VARCHAR, day_1 VARCHAR)
SELECT won FROM table_20396710_1 WHERE points_for = "83"
how many won 83 points for?
CREATE TABLE table_20396710_1 (won VARCHAR, points_for VARCHAR)
SELECT county FROM table_name_16 WHERE enrollment = 297
Which County has an Enrollment of 297?
CREATE TABLE table_name_16 ( county VARCHAR, enrollment VARCHAR )
SELECT behind FROM table_name_26 WHERE class = "gt2" AND day_2 = "3:59.820"
For the team with a class of gt2 and 3:59.820 on day 2, what was the behind?
CREATE TABLE table_name_26 (behind VARCHAR, class VARCHAR, day_2 VARCHAR)
SELECT club FROM table_20396710_1 WHERE "bonus_points" = "bonus_points"
which club is listed when bonus points is bonus points
CREATE TABLE table_20396710_1 (club VARCHAR)
SELECT "Episode #" FROM table_3917 WHERE "Viewers (millions)" = '5.46'
Wat episode number had 5.46 million viewers?
CREATE TABLE table_3917 ( "Episode #" real, "Series #" real, "Title" text, "Director" text, "Writer" text, "Original airdate" text, "Viewers (millions)" text )
SELECT team FROM table_name_78 WHERE day_2 = "3:47.761"
Which team was 3:47.761 on day 2?
CREATE TABLE table_name_78 (team VARCHAR, day_2 VARCHAR)