answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT to_par FROM table_name_37 WHERE total < 297 AND finish = "1"
What is To par, when Total is less than 297, and when Finish is "1"?
CREATE TABLE table_name_37 (to_par VARCHAR, total VARCHAR, finish VARCHAR)
SELECT english FROM table_26263954_1 WHERE revised_hepburn = "chiji"
when chiji is revised hepburn what are all the english
CREATE TABLE table_26263954_1 (english VARCHAR, revised_hepburn VARCHAR)
SELECT COUNT(wins) FROM table_1507423_4 WHERE position = "26th"
How many wins were there when the position was 26th?
CREATE TABLE table_1507423_4 (wins VARCHAR, position VARCHAR)
SELECT nation FROM table_name_62 WHERE athlete = "emma george" AND record = "4.58m(15ft0¼in)"
What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0¼in)?
CREATE TABLE table_name_62 (nation VARCHAR, athlete VARCHAR, record VARCHAR)
SELECT home_team AS score FROM table_name_25 WHERE venue = "kardinia park"
What is the home team score that played at Kardinia Park?
CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(races_ridden) FROM table_name_94 WHERE nationality = "german" AND races_won < 10
How many races did the German racer that won less than 10 races ride?
CREATE TABLE table_name_94 (races_ridden VARCHAR, nationality VARCHAR, races_won VARCHAR)
SELECT club FROM table_27293285_6 WHERE lost = "7"
Which club lost exactly 7 matches?
CREATE TABLE table_27293285_6 (club VARCHAR, lost VARCHAR)
SELECT COUNT(*), nationality FROM constructors GROUP BY nationality
What are the numbers of constructors for different nationalities?
CREATE TABLE constructors (nationality VARCHAR)
SELECT name FROM table_11585313_1 WHERE number_of_goals = 10
What is the name of person that scored 10 goals?
CREATE TABLE table_11585313_1 (name VARCHAR, number_of_goals VARCHAR)
SELECT island FROM table_name_3 WHERE population > 76 AND height__m_ > 210 AND area___ha__ > 12068
What island has a population over 76, a height over 210, and an area larger than 12068?
CREATE TABLE table_name_3 (island VARCHAR, area___ha__ VARCHAR, population VARCHAR, height__m_ VARCHAR)
SELECT MAX(season) FROM table_29619494_2 WHERE denim_demons = "3rd"
What is the most recent season where the Denim Demons placed 3rd?
CREATE TABLE table_29619494_2 (season INTEGER, denim_demons VARCHAR)
SELECT artist FROM table_name_28 WHERE place = "withdrawn"
What is the Artist of the Song with a Place of withdrawn?
CREATE TABLE table_name_28 (artist VARCHAR, place VARCHAR)
SELECT date FROM table_name_33 WHERE record = "3-1"
Name the date with record of 3-1
CREATE TABLE table_name_33 (date VARCHAR, record VARCHAR)
SELECT MAX(rank) FROM table_name_68 WHERE date = "7 september 1996"
Date of 7 september 1996 includes which highest rank athlete?
CREATE TABLE table_name_68 (rank INTEGER, date VARCHAR)
SELECT college FROM table_name_11 WHERE pick < 6 AND pba_team = "shell turbo chargers"
Which college has a pick below 6 for the PBA team the Shell Turbo Chargers?
CREATE TABLE table_name_11 (college VARCHAR, pick VARCHAR, pba_team VARCHAR)
SELECT MIN(crowd) FROM table_name_89 WHERE venue = "victoria park"
What is the smallest crowd for victoria park?
CREATE TABLE table_name_89 (crowd INTEGER, venue VARCHAR)
SELECT december FROM table_15945862_1 WHERE january = "8.77"
What December is 8.77 in January
CREATE TABLE table_15945862_1 (december VARCHAR, january VARCHAR)
SELECT position_in_2013 FROM table_1560673_1 WHERE number_of_seasons_in_second_tier = "29"
What was the players position in 2013 who had 29 seasons in the second tier
CREATE TABLE table_1560673_1 (position_in_2013 VARCHAR, number_of_seasons_in_second_tier VARCHAR)
SELECT name FROM table_name_87 WHERE team = "forsythe racing" AND qual_2 = "1:47.132"
what name goes along with the team of forsythe racing, and a Qual 2 of 1:47.132?
CREATE TABLE table_name_87 (name VARCHAR, team VARCHAR, qual_2 VARCHAR)
SELECT MAX(m_v_ft_s) FROM table_16439764_1 WHERE time_to_ft__m__at_55°__seconds_ = "22.1"
What is the maximum foot per second speed where time to feet ratio is 22.1 at 55 degrees?
CREATE TABLE table_16439764_1 (m_v_ft_s INTEGER, time_to_ft__m__at_55°__seconds_ VARCHAR)
SELECT score FROM table_name_76 WHERE player = "jeff maggert"
What is Score, when Player is "Jeff Maggert"?
CREATE TABLE table_name_76 (score VARCHAR, player VARCHAR)
SELECT date FROM table_27715173_6 WHERE score = "W 116–93 (OT)"
What date was the game with a score of w 116–93 (ot)?
CREATE TABLE table_27715173_6 (date VARCHAR, score VARCHAR)
SELECT result FROM table_name_35 WHERE opponent = "san francisco 49ers"
What was the result when the San Francisco 49ers were the opponents?
CREATE TABLE table_name_35 (result VARCHAR, opponent VARCHAR)
SELECT 1992 FROM table_name_43 WHERE 1988 = "a" AND tournament = "australian open"
What shows for 1992 when 1988 is A, at the Australian Open?
CREATE TABLE table_name_43 (tournament VARCHAR)
SELECT AVG(events) FROM table_name_27 WHERE top_10 = 0 AND tournament = "pga championship" AND top_5 < 0
What is the average number of events of PGA Championship tournaments with a top-5 less than 0?
CREATE TABLE table_name_27 (events INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)
SELECT COUNT(average_speed__mph_) FROM table_2268216_1 WHERE year = "2003"
How many average speeds are listed in the year 2003?
CREATE TABLE table_2268216_1 (average_speed__mph_ VARCHAR, year VARCHAR)
SELECT 2011 FROM table_name_73 WHERE 2012 = "1r"
What is 2011, when 2012 is "1R"?
CREATE TABLE table_name_73 (Id VARCHAR)
SELECT 2001 FROM table_name_31 WHERE 2007 = "1r"
2007 of 1r is involved in what 2001?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT driver FROM table_name_84 WHERE grid = 13
who is the driver with the grid of 13?
CREATE TABLE table_name_84 (driver VARCHAR, grid VARCHAR)
SELECT engine FROM table_name_98 WHERE tyre = "g" AND chassis = "003 002 004 005 006" AND driver = "jackie stewart"
Which engine was on a car with G tires, a chassis model of 003 002 004 005 006, driven by Jackie Stewart?
CREATE TABLE table_name_98 (engine VARCHAR, driver VARCHAR, tyre VARCHAR, chassis VARCHAR)
SELECT record FROM table_name_69 WHERE leading_scorer = "lebron james (16)"
What's the record of the game where Lebron James (16) was the leading scorer?
CREATE TABLE table_name_69 (record VARCHAR, leading_scorer VARCHAR)
SELECT AVG(figures) FROM table_name_19 WHERE free < 56.35
What was the average figure score of the skater with a free score under 56.35?
CREATE TABLE table_name_19 (figures INTEGER, free INTEGER)
SELECT runner_up FROM table_name_81 WHERE winner = "ilhwa chunma"
Who is the runner-up for Ilhwa Chunma?
CREATE TABLE table_name_81 (runner_up VARCHAR, winner VARCHAR)
SELECT label FROM table_name_84 WHERE region = "australia"
What Label has the Region of Australia?
CREATE TABLE table_name_84 (label VARCHAR, region VARCHAR)
SELECT opponent FROM table_name_72 WHERE player < 113 AND event = 2011
Who was the opponent in the 2011 event with less than 113 players?
CREATE TABLE table_name_72 (opponent VARCHAR, player VARCHAR, event VARCHAR)
SELECT score FROM table_name_83 WHERE opponent = "buffalo sabres"
What was the Score in the game against the Buffalo Sabres?
CREATE TABLE table_name_83 (score VARCHAR, opponent VARCHAR)
SELECT type FROM table_2076533_1 WHERE enrollment__2005_ = 1245
Name the type for 1245 enrollment
CREATE TABLE table_2076533_1 (type VARCHAR, enrollment__2005_ VARCHAR)
SELECT event FROM table_name_69 WHERE opponent = "josh spearman"
What event did Soares fight against josh spearman?
CREATE TABLE table_name_69 (event VARCHAR, opponent VARCHAR)
SELECT place FROM table_name_22 WHERE player = "tom watson"
Where has a Player of tom watson?
CREATE TABLE table_name_22 (place VARCHAR, player VARCHAR)
SELECT record FROM table_name_4 WHERE team = "utah jazz"
What is the record for the Utah Jazz?
CREATE TABLE table_name_4 (record VARCHAR, team VARCHAR)
SELECT method_of_elimination FROM table_24628683_2 WHERE wrestler = "Kofi Kingston"
What was the method of elimination for Kofi Kingston/
CREATE TABLE table_24628683_2 (method_of_elimination VARCHAR, wrestler VARCHAR)
SELECT country_of_origin FROM table_name_10 WHERE year_of_intro = 1977
What is Country of Origin, when Year of Intro is 1977?
CREATE TABLE table_name_10 (country_of_origin VARCHAR, year_of_intro VARCHAR)
SELECT location FROM table_name_59 WHERE distance = "10,000 m"
Which Location has a Distance of 10,000 m?
CREATE TABLE table_name_59 (location VARCHAR, distance VARCHAR)
SELECT tries_against FROM table_13564637_5 WHERE points_against = "287"
What are the tries against when points against 287?
CREATE TABLE table_13564637_5 (tries_against VARCHAR, points_against VARCHAR)
SELECT surface FROM table_name_97 WHERE tournament = "carthage" AND date = "august 14, 1994"
What type of surface was used for the carthage tournament on august 14, 1994?
CREATE TABLE table_name_97 (surface VARCHAR, tournament VARCHAR, date VARCHAR)
SELECT time_retired FROM table_name_48 WHERE points < 11 AND laps = 74
What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?
CREATE TABLE table_name_48 (time_retired VARCHAR, points VARCHAR, laps VARCHAR)
SELECT vote FROM table_24233848_2 WHERE finish = "9th voted Out Day 22"
Name the vote for 9th voted out day 22
CREATE TABLE table_24233848_2 (vote VARCHAR, finish VARCHAR)
SELECT date FROM table_name_56 WHERE result = "win"
On which date was there a win?
CREATE TABLE table_name_56 (date VARCHAR, result VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_2 WHERE object_type = "globular cluster" AND apparent_magnitude = 8.5 AND ngc_number = 6273
Tell me the right ascensuon for object type of globular cluster and apparent magnitude of 8.5 and NGC number of 6273
CREATE TABLE table_name_2 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR, object_type VARCHAR, apparent_magnitude VARCHAR)
SELECT directed_by FROM table_12226390_2 WHERE production_code = 28
Who directed the episode with production code 28?
CREATE TABLE table_12226390_2 (directed_by VARCHAR, production_code VARCHAR)
SELECT gdp___bn__ FROM table_12108_1 WHERE "capital" = "capital"
what is the gdp ( bn ) where capital is capital?
CREATE TABLE table_12108_1 (gdp___bn__ VARCHAR)
SELECT attendance FROM table_name_76 WHERE time = "3:31"
What was the attendance for the game played at 3:31?
CREATE TABLE table_name_76 (attendance VARCHAR, time VARCHAR)
SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1
What is the last name of the staff who has handled the first ever complaint?
CREATE TABLE staff (last_name VARCHAR, staff_id VARCHAR); CREATE TABLE complaints (staff_id VARCHAR, date_complaint_raised VARCHAR)
SELECT away_team FROM table_name_78 WHERE date = "december 24, 1977"
Who is the away team for the game played on December 24, 1977?
CREATE TABLE table_name_78 (away_team VARCHAR, date VARCHAR)
SELECT status_at_production FROM table_1792122_11 WHERE project = "London Aquatics Centre"
What is the status of the London Aquatics Centre project at the time of production?
CREATE TABLE table_1792122_11 (status_at_production VARCHAR, project VARCHAR)
SELECT athlete FROM table_name_73 WHERE place = "reno"
What athlete has reno as the place?
CREATE TABLE table_name_73 (athlete VARCHAR, place VARCHAR)
SELECT COUNT(school_colors) FROM table_12434380_1 WHERE main_campus_location = "Highland"
How many school colors is there for the main campus location of highland?
CREATE TABLE table_12434380_1 (school_colors VARCHAR, main_campus_location VARCHAR)
SELECT report FROM table_name_89 WHERE date = "29 november" AND away_team = "melbourne tigers"
What kind of report was for the game played on 29 November with Melbourne Tigers being the away team?
CREATE TABLE table_name_89 (report VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT song FROM table_10848177_1 WHERE picturization = "Vijay"
Which song has picturization by only vijay?
CREATE TABLE table_10848177_1 (song VARCHAR, picturization VARCHAR)
SELECT title FROM table_26866233_1 WHERE original_airdate = "December22,1996"
The episode with the original airdate December22,1996 has what title?
CREATE TABLE table_26866233_1 (title VARCHAR, original_airdate VARCHAR)
SELECT SUM(snow__days_year_) FROM table_name_61 WHERE storms__days_year_ = 31
What is the amount of snow where the days for storms are 31?
CREATE TABLE table_name_61 (snow__days_year_ INTEGER, storms__days_year_ VARCHAR)
SELECT year FROM table_name_64 WHERE runner_s__up = "flory van donck"
What Year had a Runner(s)-up of flory van donck?
CREATE TABLE table_name_64 (year VARCHAR, runner_s__up VARCHAR)
SELECT investment_earnings FROM table_name_26 WHERE state_ & _federal = "13,999,169"
What were the investment earnings in the year that State and Federal taxes were $13,999,169?
CREATE TABLE table_name_26 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR)
SELECT tournament FROM table_name_21 WHERE date = "12 february 2001"
Which tournament was played on 12 February 2001?
CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR)
SELECT opponent FROM table_24852001_2 WHERE attendance = 16115
Who were the opponents that had an attendance of exactly 16115?
CREATE TABLE table_24852001_2 (opponent VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_45 WHERE loss = "sutcliffe (10-4)"
What is the date for the game that included a loss of sutcliffe (10-4)?
CREATE TABLE table_name_45 (date VARCHAR, loss VARCHAR)
SELECT years FROM table_name_90 WHERE area = "upper hutt" AND authority = "private"
What years is the private school in upper hutt?
CREATE TABLE table_name_90 (years VARCHAR, area VARCHAR, authority VARCHAR)
SELECT cat_no FROM table_name_23 WHERE label_s_ = "mute" AND release_format = "standard cd"
What is the cat no for the label mute and the standard cd format?
CREATE TABLE table_name_23 (cat_no VARCHAR, label_s_ VARCHAR, release_format VARCHAR)
SELECT COUNT(viewers) FROM table_name_30 WHERE rank = "#40"
What is the total number of Viewers when the rank is #40?
CREATE TABLE table_name_30 (viewers VARCHAR, rank VARCHAR)
SELECT SUM(rank) FROM table_name_3 WHERE sites > 62 AND circuit = "cineplex entertainment"
what is the rank of the cinema when the number of sites is more than 62 and the circuit is cineplex entertainment?
CREATE TABLE table_name_3 (rank INTEGER, sites VARCHAR, circuit VARCHAR)
SELECT spacecraft FROM table_22385461_9 WHERE start___utc__ = "November 18, 2008 18:09"
If the start (utc) is November 18, 2008 18:09, what is the name of the spacecraft?
CREATE TABLE table_22385461_9 (spacecraft VARCHAR, start___utc__ VARCHAR)
SELECT position FROM table_name_91 WHERE years_for_grizzlies = "1998-1999"
What position did the person who was with the grizzlies in 1998-1999 play?
CREATE TABLE table_name_91 (position VARCHAR, years_for_grizzlies VARCHAR)
SELECT attendance FROM table_name_94 WHERE score = "0 – 0"
What is the Attendance of the game with a Score of 0 – 0?
CREATE TABLE table_name_94 (attendance VARCHAR, score VARCHAR)
SELECT COUNT(year) FROM table_name_51 WHERE team = "scuderia lancia corse"
What is the year when Scuderia Lancia Corse competed?
CREATE TABLE table_name_51 (year VARCHAR, team VARCHAR)
SELECT 2003 FROM table_name_59 WHERE 2008 = "2r" AND 2011 = "1r"
What is the 2003 value with 2r in 2008 and 1r in 2011?
CREATE TABLE table_name_59 (Id VARCHAR)
SELECT stroke FROM table_name_39 WHERE max_power = "109 ps(80kw)@4000 rpm"
What stroke has a max power of 109 ps(80kw)@4000 rpm?
CREATE TABLE table_name_39 (stroke VARCHAR, max_power VARCHAR)
SELECT set_2 FROM table_name_45 WHERE date = "25 may" AND set_3 = "21–25"
Which Set 2 has a Date of 25 may, and a Set 3 of 21–25?
CREATE TABLE table_name_45 (set_2 VARCHAR, date VARCHAR, set_3 VARCHAR)
SELECT position FROM table_name_54 WHERE player = "drew barry category:articles with hcards"
What is Position when Player is Drew Barry Category:Articles With hCards?
CREATE TABLE table_name_54 (position VARCHAR, player VARCHAR)
SELECT MIN(att) FROM table_name_6 WHERE date = "june 27"
What was the attendance on June 27?
CREATE TABLE table_name_6 (att INTEGER, date VARCHAR)
SELECT home_or_away FROM table_name_25 WHERE shirt_number > 18
Can you tell me the Home or the Away that has the Shirt Number larger than 18?
CREATE TABLE table_name_25 (home_or_away VARCHAR, shirt_number INTEGER)
SELECT year FROM table_name_10 WHERE rank < 6 AND name = "damac heights"
In what year was the rank less than 6 for Damac Heights?
CREATE TABLE table_name_10 (year VARCHAR, rank VARCHAR, name VARCHAR)
SELECT name FROM table_name_13 WHERE floors = 10
What was the name of the building with 10 floors?
CREATE TABLE table_name_13 (name VARCHAR, floors VARCHAR)
SELECT results FROM table_1341423_36 WHERE incumbent = "Ernest Istook"
What was the results when the incumbent was ernest istook?
CREATE TABLE table_1341423_36 (results VARCHAR, incumbent VARCHAR)
SELECT location FROM table_name_15 WHERE mascot = "royals"
Where is the school with Royals as their mascot?
CREATE TABLE table_name_15 (location VARCHAR, mascot VARCHAR)
SELECT city FROM table_name_88 WHERE home_team_s = "brisbane broncos"
What city has the home team of the brisbane broncos?
CREATE TABLE table_name_88 (city VARCHAR, home_team_s VARCHAR)
SELECT years_produced FROM table_26352332_4 WHERE cylinder_layout = "V8"
The cylinder layout v8 is produced in what years?
CREATE TABLE table_26352332_4 (years_produced VARCHAR, cylinder_layout VARCHAR)
SELECT european_cup FROM table_name_91 WHERE season = "2006-07"
Which European Cup is in the 2006-07 season?
CREATE TABLE table_name_91 (european_cup VARCHAR, season VARCHAR)
SELECT AVG(year) FROM table_name_44 WHERE award_description_s_ = "platinum"
What is the average year with an award of platinum?
CREATE TABLE table_name_44 (year INTEGER, award_description_s_ VARCHAR)
SELECT alpha FROM table_name_34 WHERE ia64 = "discontinued 3.5-3.8 4.1-4.7"
Which Alpha contains ia64 with discontinued 3.5-3.8 4.1-4.7?
CREATE TABLE table_name_34 (alpha VARCHAR, ia64 VARCHAR)
SELECT overall FROM table_name_72 WHERE pick < 9 AND college = "michigan state" AND name = "buck mystrom"
What is the overall pick number for a draft pick smaller than 9, named buck mystrom from Michigan State college?
CREATE TABLE table_name_72 (overall VARCHAR, name VARCHAR, pick VARCHAR, college VARCHAR)
SELECT game_site FROM table_name_8 WHERE attendance = "78,722"
What game did Jets have an attendance of 78,722?
CREATE TABLE table_name_8 (game_site VARCHAR, attendance VARCHAR)
SELECT YEAR, AVG(attendance) FROM home_game GROUP BY YEAR
What is the average number of attendance at home games for each year?
CREATE TABLE home_game (YEAR VARCHAR, attendance INTEGER)
SELECT position FROM table_21795846_1 WHERE points = 16
If there is 16 points, what was the position?
CREATE TABLE table_21795846_1 (position VARCHAR, points VARCHAR)
SELECT population__1931__in_1, 000 AS s FROM table_name_88 WHERE capital = "brześć nad bugiem"
Capital of brześć nad bugiem has what population (1931) in 1,000s?
CREATE TABLE table_name_88 (population__1931__in_1 VARCHAR, capital VARCHAR)
SELECT site FROM table_26842217_4 WHERE visiting_team = "Louisiana-Lafayette"
Where's the louisiana-lafayette as a visiting team?
CREATE TABLE table_26842217_4 (site VARCHAR, visiting_team VARCHAR)
SELECT tournament FROM table_name_16 WHERE winning_score = –27(65 - 68 - 64 - 64 = 261)
Which tournament ended with a winning score of –27 (65-68-64-64=261)?
CREATE TABLE table_name_16 (tournament VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_39 WHERE score = "3–4" AND attendance > 34 OFFSET 609
Score of 3–4, and a Attendance larger than 34,609 happened on what date?
CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR, attendance VARCHAR)
SELECT grid FROM table_name_37 WHERE driver = "david coulthard"
David Coulthard was the driver in which grid?
CREATE TABLE table_name_37 (grid VARCHAR, driver VARCHAR)
SELECT tenure FROM table_28051859_3 WHERE school = "Field"
When were the members tenured in the Field school?
CREATE TABLE table_28051859_3 (tenure VARCHAR, school VARCHAR)
SELECT roomName, RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2
Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.
CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR, basePrice VARCHAR, maxOccupancy VARCHAR)