question
stringlengths
19
162
table_info
stringlengths
39
951
sql_query
stringlengths
24
181
What league has most wins as the record?
CREATE TABLE table_name_77 ( league VARCHAR, record VARCHAR )
SELECT league FROM table_name_77 WHERE record LIKE "%most wins%"
What country was the player from who placed t3 with a score of 70-68=138?
CREATE TABLE table_48692 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Country" FROM table_48692 WHERE "Place" LIKE '%t3%' AND "Score" LIKE '%70-68=138%'
What was the home score at the Princes Park game?
CREATE TABLE table_name_95 ( home_team VARCHAR, venue VARCHAR )
SELECT home_team AS score FROM table_name_95 WHERE venue LIKE "%princes park%"
What party does James Pleasants belong to?
CREATE TABLE table_2668352_19 ( party VARCHAR, incumbent VARCHAR )
SELECT party FROM table_2668352_19 WHERE incumbent LIKE "%james pleasants%"
which number lists the production code as 2j5809
CREATE TABLE table_27403436_1 ( no VARCHAR, production_code VARCHAR )
SELECT no FROM table_27403436_1 WHERE production_code LIKE '%2j5809%'
who is the the candidates with dbeingtrict being kansas 5
CREATE TABLE table_1342359_15 ( candidates VARCHAR, district VARCHAR )
SELECT candidates FROM table_1342359_15 WHERE district LIKE "%kansas 5%"
What is the length and duration of the race on April 19?
CREATE TABLE table_name_85 ( length_duration VARCHAR, date VARCHAR )
SELECT length_duration FROM table_name_85 WHERE date LIKE '%april 19%'
What number in the season was the episode with 12.23 million viewers?
CREATE TABLE table_24961421_1 ( season__number VARCHAR, us_viewers__millions_ VARCHAR )
SELECT season__number FROM table_24961421_1 WHERE us_viewers__millions_ LIKE "%12.23%"
Which Decision has a Series of 3 3?
CREATE TABLE table_46388 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Series" text )
SELECT "Decision" FROM table_46388 WHERE "Series" LIKE '%3 – 3%'
How many home games are listed when the average attendance is 79475?
CREATE TABLE table_74331 ( "Team" text, "Stadium" text, "Home Games" real, "Average Attendance" real, "Total Attendance" real, "Capacity Percentage" text )
SELECT COUNT("Home Games") FROM table_74331 WHERE "Average Attendance" LIKE '%79475%'
What committees do the district 46 members serve on?
CREATE TABLE table_27050981_7 ( committee VARCHAR, district VARCHAR )
SELECT committee FROM table_27050981_7 WHERE district LIKE "%46%"
What is the highest grid when the race was retired due to the gearbox after 67 laps?
CREATE TABLE table_10290 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT MAX("Grid") FROM table_10290 WHERE "Time/Retired" LIKE '%gearbox%' AND "Laps" > 67
What is Tries Against, when Try Diff is +15?
CREATE TABLE table_name_34 ( tries_against VARCHAR, try_diff VARCHAR )
SELECT tries_against FROM table_name_34 WHERE try_diff LIKE '%+15%'
How many different pairs of candidates were there for the district first elected in 1988?
CREATE TABLE table_19753079_12 ( candidates VARCHAR, first_elected VARCHAR )
SELECT COUNT(candidates) FROM table_19753079_12 WHERE first_elected LIKE '%1988%'
What is the location of the match with chad armstrong as the opponent?
CREATE TABLE table_name_47 ( location VARCHAR, opponent VARCHAR )
SELECT location FROM table_name_47 WHERE opponent LIKE "%chad armstrong%"
Which player went to Gonzaga?
CREATE TABLE table_33637 ( "Player" text, "Nationality" text, "Position" text, "From" text, "School/Country" text )
SELECT "Player" FROM table_33637 WHERE "School/Country" LIKE '%gonzaga%'
How many customers in state of CA?
CREATE TABLE customers ( state VARCHAR )
SELECT COUNT(*) FROM customers WHERE state LIKE "%ca%"
On what date was the Ed Remaster CD and TOCT-24365 Catalog released?
CREATE TABLE table_71464 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text )
SELECT "Date" FROM table_71464 WHERE "Format" LIKE '%ed remaster cd%' AND "Catalog" LIKE '%toct-24365%'
What type institution is point park university
CREATE TABLE table_16197 ( "Institution" text, "Nickname" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real )
SELECT "Type" FROM table_16197 WHERE "Institution" LIKE '%point park university%'
How many points does Clark have?
CREATE TABLE table_14342592_3 ( points VARCHAR, player VARCHAR )
SELECT points FROM table_14342592_3 WHERE player LIKE "%clark%"
What district did S. William Green belong to?
CREATE TABLE table_1341663_33 ( district VARCHAR, incumbent VARCHAR )
SELECT district FROM table_1341663_33 WHERE incumbent LIKE "%s. william green%"
Name the starter for schulte
CREATE TABLE table_14342592_4 ( starter VARCHAR, player VARCHAR )
SELECT starter FROM table_14342592_4 WHERE player LIKE "%schulte%"
What was Olazabal's winning score in the event in which Phillip Price finished 2nd?
CREATE TABLE table_name_90 ( winning_score VARCHAR, runner_s__up VARCHAR )
SELECT winning_score FROM table_name_90 WHERE runner_s__up LIKE "%phillip price%"
What was the wicket ranking for the match that had a fielding team of Sri Lanka?
CREATE TABLE table_name_73 ( wicket VARCHAR, fielding_team VARCHAR )
SELECT wicket FROM table_name_73 WHERE fielding_team LIKE "%sri lanka%"
Tell me the country for ICAO tjvq
CREATE TABLE table_31774 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text )
SELECT "Country" FROM table_31774 WHERE "ICAO" LIKE '%tjvq%'
what is the highest tankers when pumpers is more than 2?
CREATE TABLE table_name_84 ( tankers INTEGER, pumpers INTEGER )
SELECT MAX(tankers) FROM table_name_84 WHERE pumpers > 2
What was the final score of the match that had an attendance of 9,205?
CREATE TABLE table_10276 ( "Tie no" text, "Home team" text, "Score 1" text, "Away team" text, "Attendance" text )
SELECT "Score 1" FROM table_10276 WHERE "Attendance" LIKE '%9,205%'
What is the date of the tournament with Alena Tarasova as the opponent?
CREATE TABLE table_name_56 ( date VARCHAR, opponent VARCHAR )
SELECT date FROM table_name_56 WHERE opponent LIKE "%alena tarasova%"
Which round has an Opposing Team of manchester united?
CREATE TABLE table_64022 ( "Opposing Team" text, "Against" real, "Date" text, "Venue" text, "Round" text )
SELECT "Round" FROM table_64022 WHERE "Opposing Team" LIKE '%manchester united%'
For all players playing at the center, list the height in feet.
CREATE TABLE table_23670057_4 ( height__f_ VARCHAR, position VARCHAR )
SELECT height__f_ FROM table_23670057_4 WHERE position LIKE '%center%'
The Catalog number is 80809 what is the title?
CREATE TABLE table_11222744_2 ( title VARCHAR, catalog_number VARCHAR )
SELECT title FROM table_11222744_2 WHERE catalog_number LIKE "%80809%"
In which city is MUB located?
CREATE TABLE table_12839 ( "Name" text, "No. Specimens" real, "Abbr." text, "Country" text, "City" text )
SELECT "City" FROM table_12839 WHERE "Abbr." LIKE '%mub%'
Name the total number of hangul chosongul for 8,352
CREATE TABLE table_160510_5 ( hangul_chosongul VARCHAR, area VARCHAR )
SELECT COUNT(hangul_chosongul) FROM table_160510_5 WHERE area LIKE "%8,352%"
What is the wattage/TDP associated with model name 4x0?
CREATE TABLE table_24099628_1 ( tdp VARCHAR, model__list_ VARCHAR )
SELECT tdp FROM table_24099628_1 WHERE model__list_ LIKE "%4x0%"
What was the speed of the Superbike race?
CREATE TABLE table_name_10 ( speed VARCHAR, race VARCHAR )
SELECT speed FROM table_name_10 WHERE race LIKE "%superbike%"
What is Park Tae-Hwan's final time?
CREATE TABLE table_name_3 ( time VARCHAR, name VARCHAR )
SELECT time FROM table_name_3 WHERE name LIKE "%park tae-hwan%"
Notes of bbc radio 4, and a Director of peter kavanagh includes which average year?
CREATE TABLE table_name_67 ( year INTEGER, notes VARCHAR, director VARCHAR )
SELECT AVG(year) FROM table_name_67 WHERE notes LIKE '%bbc radio 4%' AND director LIKE '%peter kavanagh%'
Who was at home when the score was 2:2?
CREATE TABLE table_5529 ( "Venue" text, "Home" text, "Guest" text, "Score" text, "Attendance" real )
SELECT "Home" FROM table_5529 WHERE "Score" LIKE '%2:2%'
what was the score in toronto
CREATE TABLE table_name_2 ( score VARCHAR, home VARCHAR )
SELECT score FROM table_name_2 WHERE home LIKE "%toronto%"
what was the achievement for the rival at scottish claymores
CREATE TABLE table_27893892_2 ( team_record VARCHAR, opponent VARCHAR )
SELECT team_record FROM table_27893892_2 WHERE opponent LIKE '%at scottish claymores%'
Name the f/laps for gp2 series
CREATE TABLE table_24587026_1 ( f_laps VARCHAR, series VARCHAR )
SELECT f_laps FROM table_24587026_1 WHERE series LIKE "%gp2 series%"
From what series is Peck Up Your Troubles?
CREATE TABLE table_name_66 ( series VARCHAR, title VARCHAR )
SELECT series FROM table_name_66 WHERE title LIKE "%peck up your troubles%"
What was the record when they played the Los Angeles Rams?
CREATE TABLE table_13259009_2 ( record VARCHAR, opponent VARCHAR )
SELECT record FROM table_13259009_2 WHERE opponent LIKE "%los angeles rams%"
what's the result with district being washington 7
CREATE TABLE table_1341472_49 ( result VARCHAR, district VARCHAR )
SELECT result FROM table_1341472_49 WHERE district LIKE "%washington 7%"
What is the Position of Pick #77?
CREATE TABLE table_name_25 ( position VARCHAR, pick__number VARCHAR )
SELECT position FROM table_name_25 WHERE pick__number LIKE '%77%'
What is the Date when the Country shows uk, the Format is cd, and the Catalog of edcd 227?
CREATE TABLE table_43265 ( "Date" text, "Label" text, "Format" text, "Country" text, "Catalog" text )
SELECT "Date" FROM table_43265 WHERE "Country" LIKE '%uk%' AND "Format" LIKE '%cd%' AND "Catalog" LIKE '%edcd 227%'
What is the poor law union for the Barnahely towland?
CREATE TABLE table_30120619_1 ( poor_law_union VARCHAR, townland VARCHAR )
SELECT poor_law_union FROM table_30120619_1 WHERE townland LIKE "%barnahely%"
How many u.s. viewers (million) have 6 as the #?
CREATE TABLE table_2866456_1 ( us_viewers__million_ VARCHAR, _number VARCHAR )
SELECT us_viewers__million_ FROM table_2866456_1 WHERE _number LIKE '%6%'
What is the 2nd leg of the second team in the 2007 uefa intertoto cup?
CREATE TABLE table_name_78 ( team__number2 VARCHAR )
SELECT 2 AS nd_leg FROM table_name_78 WHERE team__number2 LIKE "%2007 uefa intertoto cup%"
What was the name of the away team that had a tie of 2?
CREATE TABLE table_77274 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text )
SELECT "Away team" FROM table_77274 WHERE "Tie no" LIKE '%2%'
what is the vehicle code where the bore is 79.4?
CREATE TABLE table_23722304_2 ( vehicle_code VARCHAR, bore__mm_ VARCHAR )
SELECT vehicle_code FROM table_23722304_2 WHERE bore__mm_ LIKE "%79.4%"
Which Date has a Status of second test?
CREATE TABLE table_48933 ( "Opposing Team" text, "Against" real, "Date" text, "Venue" text, "Status" text )
SELECT "Date" FROM table_48933 WHERE "Status" LIKE '%second test%'
Who built the under grid 6 car with under 49 laps?
CREATE TABLE table_57845 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Constructor" FROM table_57845 WHERE "Grid" < 6 AND "Laps" < 49
WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA?
CREATE TABLE table_name_12 ( transfer_window VARCHAR, country VARCHAR )
SELECT transfer_window FROM table_name_12 WHERE country LIKE "%bra%"
What party is thomas foglietta from?
CREATE TABLE table_1341472_40 ( party VARCHAR, incumbent VARCHAR )
SELECT party FROM table_1341472_40 WHERE incumbent LIKE "%thomas foglietta%"
What township is located at longitude -99.287270?
CREATE TABLE table_18600760_9 ( township VARCHAR, longitude VARCHAR )
SELECT township FROM table_18600760_9 WHERE longitude LIKE "%-99.287270%"
what is the sport for wolfgang schattauer?
CREATE TABLE table_name_69 ( sport VARCHAR, name VARCHAR )
SELECT sport FROM table_name_69 WHERE name LIKE "%wolfgang schattauer%"
What date was the record 20 16?
CREATE TABLE table_69322 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
SELECT "Date" FROM table_69322 WHERE "Record" LIKE '%20–16%'
What is the total round with pick of 109?
CREATE TABLE table_name_37 ( round INTEGER, pick VARCHAR )
SELECT SUM(round) FROM table_name_37 WHERE pick LIKE '%109%'
In what City was the Ept Baden Classic?
CREATE TABLE table_70033 ( "Date" text, "City" text, "Event" text, "Winner" text, "Prize" text )
SELECT "City" FROM table_70033 WHERE "Event" LIKE '%ept baden classic%'
what is the name of the tournament where outcome is runner-up
CREATE TABLE table_29127804_3 ( tournament VARCHAR, outcome VARCHAR )
SELECT tournament FROM table_29127804_3 WHERE outcome LIKE "%runner-up%"
Where did Footscray play as the away team?
CREATE TABLE table_name_76 ( venue VARCHAR, away_team VARCHAR )
SELECT venue FROM table_name_76 WHERE away_team LIKE "%footscray%"
which regiment was in the Fulton County
CREATE TABLE table_29458735_5 ( regiment VARCHAR, county VARCHAR )
SELECT regiment FROM table_29458735_5 WHERE county LIKE "%fulton%"
Tell me the name of the person married to frederick ix
CREATE TABLE table_name_71 ( name VARCHAR, spouse VARCHAR )
SELECT name FROM table_name_71 WHERE spouse LIKE "%frederick ix%"
What original air dates are associated with a viewing figure of 7.27 million?
CREATE TABLE table_15026994_2 ( original_air_date VARCHAR, viewing_figure VARCHAR )
SELECT original_air_date FROM table_15026994_2 WHERE viewing_figure LIKE "%7.27 million%"
Which Winning score has a Margin of victory of 1 stroke, and a Date of 21 jun 1981?
CREATE TABLE table_name_19 ( winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR )
SELECT winning_score FROM table_name_19 WHERE margin_of_victory LIKE "%1 stroke%" AND date LIKE "%21 jun 1981%"
What is position does Dan O'Sullivan play?
CREATE TABLE table_name_58 ( position VARCHAR, player VARCHAR )
SELECT position FROM table_name_58 WHERE player LIKE "%dan o'sullivan%"
What is the name of the winner of the tour championship tournament?
CREATE TABLE table_name_73 ( winner VARCHAR, tournament VARCHAR )
SELECT winner FROM table_name_73 WHERE tournament LIKE "%the tour championship%"
Name the goals with since less than 2007 and App(GS/Sub) of 97 (69/28)
CREATE TABLE table_name_57 ( goals VARCHAR, since VARCHAR, app_gs_sub_ VARCHAR )
SELECT goals FROM table_name_57 WHERE since < '2007' AND app_gs_sub_ LIKE '%97 (69/28)%'
Which Gold has a Total of 2998, and a Bronze smaller than 1191?
CREATE TABLE table_name_68 ( gold INTEGER, total VARCHAR, bronze VARCHAR )
SELECT AVG(gold) FROM table_name_68 WHERE total LIKE '%2998%' AND CAST(bronze AS INTEGER) < 1191
Where did the team of Rahal Letterman in 2006 start?
CREATE TABLE table_name_53 ( start VARCHAR, team VARCHAR, year VARCHAR )
SELECT COUNT(start) FROM table_name_53 WHERE team LIKE "%rahal letterman%" AND year = 2006
How many points are in the scored category for the team that has 8 total points and a position that is less than 10?
CREATE TABLE table_name_38 ( scored INTEGER, points VARCHAR, position VARCHAR )
SELECT SUM(scored) FROM table_name_38 WHERE points LIKE '%8%' AND position < '10'
How much did Kenny Brack win?
CREATE TABLE table_73747 ( "Position" real, "Driver" text, "Points" real, "Winnings" text, "Series" text )
SELECT "Winnings" FROM table_73747 WHERE "Driver" LIKE '%kenny brack%'
What are the lowest points that have a Mugen V8 engine and a Reynard 91D chassis?
CREATE TABLE table_70742 ( "Year" real, "Chassis" text, "Engine" text, "Tyres" text, "Points" real )
SELECT MIN("Points") FROM table_70742 WHERE "Engine" LIKE '%mugen v8%' AND "Chassis" LIKE '%reynard 91d%'
Who was the composer of te3rafy?
CREATE TABLE table_28005100_1 ( composer VARCHAR, title VARCHAR )
SELECT composer FROM table_28005100_1 WHERE title LIKE "%te3rafy%"
What is the record that has an attendance greater than 39,980 with july 26 as the date?
CREATE TABLE table_66792 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT "Record" FROM table_66792 WHERE "Attendance" > 39980 AND "Date" LIKE '%july 26%'
What is the surface for the riverhead raceway?
CREATE TABLE table_name_84 ( surface VARCHAR, track VARCHAR )
SELECT surface FROM table_name_84 WHERE track LIKE "%riverhead raceway%"
What is the name of the athlete from Myanmar?
CREATE TABLE table_65027 ( "Rank" real, "Athletes" text, "Country" text, "Time" text, "Notes" text )
SELECT "Athletes" FROM table_65027 WHERE "Country" LIKE '%myanmar%'
What stadium is located in Halifax?
CREATE TABLE table_name_48 ( stadium VARCHAR, city VARCHAR )
SELECT stadium FROM table_name_48 WHERE city LIKE "%halifax%"
Where was the game played when the record was 20-6-6?
CREATE TABLE table_2864 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Attendance" real, "Record" text, "Points" real )
SELECT "Location" FROM table_2864 WHERE "Record" LIKE '%20-6-6%'
What is the name of the player who played in 2009 only?
CREATE TABLE table_12321870_32 ( player_name VARCHAR, period VARCHAR )
SELECT player_name FROM table_12321870_32 WHERE period LIKE "%2009%"
Name the number of games on june 12
CREATE TABLE table_11965481_13 ( game VARCHAR, date VARCHAR )
SELECT COUNT(game) FROM table_11965481_13 WHERE date LIKE "%june 12%"
Which opponent scored 95-101?
CREATE TABLE table_name_34 ( opponent VARCHAR, score VARCHAR )
SELECT opponent FROM table_name_34 WHERE score LIKE "%95-101%"
What is the score 1 with a h ground?
CREATE TABLE table_name_85 ( score1 VARCHAR, ground VARCHAR )
SELECT score1 FROM table_name_85 WHERE ground LIKE "%h%"
What is the highest top-10 that has a u.s. open for the tournament, and a top-25 greater than 12?
CREATE TABLE table_43440 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT MAX("Top-10") FROM table_43440 WHERE "Tournament" LIKE '%u.s. open%' AND "Top-25" > 12
What is the least total?
CREATE TABLE table_28723146_2 ( total INTEGER )
SELECT MIN(total) FROM table_28723146_2
What is Place, when Score is less than 67, and when Country is South Africa?
CREATE TABLE table_41945 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT "Place" FROM table_41945 WHERE "Score" < 67 AND "Country" LIKE '%south africa%'
What is the venue of the napa auto parts 200 race with a mrn radio?
CREATE TABLE table_39146 ( "Date" text, "Race" text, "Distance" text, "Venue" text, "Radio" text )
SELECT "Venue" FROM table_39146 WHERE "Radio" LIKE '%mrn%' AND "Race" LIKE '%napa auto parts 200%'
When was there a match in Centurion Park?
CREATE TABLE table_70521 ( "Date" text, "Home captain" text, "Away captain" text, "Venue" text, "Result" text )
SELECT "Date" FROM table_70521 WHERE "Venue" LIKE '%centurion park%'
Who is the winning driver when rd. is 3?
CREATE TABLE table_19850806_3 ( winning_driver VARCHAR, rd VARCHAR )
SELECT winning_driver FROM table_19850806_3 WHERE rd LIKE "%3%"
What's the smallest track written by dennis linde that's 2:50 minutes long
CREATE TABLE table_name_37 ( track INTEGER, writer_s_ VARCHAR, time VARCHAR )
SELECT MIN(track) FROM table_name_37 WHERE writer_s_ LIKE '%dennis linde%' AND time LIKE '%2:50%'
What is Location/Attendance, when Score is '4-5 (OT)'?
CREATE TABLE table_name_2 ( location_attendance VARCHAR, score VARCHAR )
SELECT location_attendance FROM table_name_2 WHERE score LIKE "%4-5 (ot)%"
What is the opponent with the outcome of runner-up with a date of 19 september 1994?
CREATE TABLE table_name_25 ( opponent VARCHAR, outcome VARCHAR, date VARCHAR )
SELECT opponent FROM table_name_25 WHERE outcome LIKE "%runner-up%" AND date LIKE "%19 september 1994%"
Who was the away team when Lincoln City was the home team?
CREATE TABLE table_46579 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text )
SELECT "Away team" FROM table_46579 WHERE "Home team" LIKE '%lincoln city%'
What's the value for 2007 when 2011 is a and 2009 is q2?
CREATE TABLE table_name_12 ( Id VARCHAR )
SELECT 2007 FROM table_name_12 WHERE 2011 LIKE '%a%' AND 2009 LIKE '%q2%'
how many films grossed more than $ 80,000,000
CREATE TABLE table_203_762 ( id number, "#" number, "date" text, "film" text, "gross" text, "notes" text )
SELECT COUNT("film") FROM table_203_762 WHERE CAST("gross" AS INTEGER) > 80000000
what is the title of the episode with production code '2arg09'?
CREATE TABLE table_27332038_1 ( title VARCHAR, production_code VARCHAR )
SELECT title FROM table_27332038_1 WHERE production_code LIKE '%2arg09%'
What wheel arrangement has a fleet number(s) of 45 46?
CREATE TABLE table_name_46 ( wheel_arrangement VARCHAR, fleet_number_s_ VARCHAR )
SELECT wheel_arrangement FROM table_name_46 WHERE fleet_number_s_ LIKE "%45–46%"
How many draft picks are there at the linebacker position?
CREATE TABLE table_16729063_1 ( pick__number VARCHAR, position VARCHAR )
SELECT COUNT(pick__number) FROM table_16729063_1 WHERE position LIKE '%linebacker%'
How many people are listed for high rebounds on game 30?
CREATE TABLE table_27723228_8 ( high_rebounds VARCHAR, game VARCHAR )
SELECT COUNT(high_rebounds) FROM table_27723228_8 WHERE game LIKE '%30%'