answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT time FROM table_name_55 WHERE grid < 6 AND rider = "noriyuki haga"
What was the time for a grid less than 6 for Noriyuki Haga?
CREATE TABLE table_name_55 (time VARCHAR, grid VARCHAR, rider VARCHAR)
SELECT built_year FROM ship GROUP BY built_year ORDER BY COUNT(*) DESC LIMIT 1
In which year were most of ships built?
CREATE TABLE ship (built_year VARCHAR)
SELECT constructor FROM table_name_23 WHERE time_retired = "collision" AND driver = "olivier panis"
What is the construction of Olivier Panis' car that retired due to a collision?
CREATE TABLE table_name_23 (constructor VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT COUNT(party) FROM table_1341663_11 WHERE incumbent = "Dawson Mathis"
How many parties are there in races involving Dawson Mathis?
CREATE TABLE table_1341663_11 (party VARCHAR, incumbent VARCHAR)
SELECT MIN(seats_2010) FROM table_name_46 WHERE seats_2005 < 9 AND governorate = "al muthanna governorate" AND in_de_creased_by > 2
Name the lowest Seats 2010 which has Seats 2005 smaller than 9, and a Governorate of al muthanna governorate, and an In/de-creased by larger than 2?
CREATE TABLE table_name_46 (seats_2010 INTEGER, in_de_creased_by VARCHAR, seats_2005 VARCHAR, governorate VARCHAR)
SELECT StuID FROM Student WHERE major = 600 INTERSECT SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y'
Show student ids who are on scholarship and have major 600.
CREATE TABLE Sportsinfo (StuID VARCHAR, major VARCHAR, onscholarship VARCHAR); CREATE TABLE Student (StuID VARCHAR, major VARCHAR, onscholarship VARCHAR)
SELECT COUNT(original_air_date) FROM table_17758010_2 WHERE us_viewers__millions_ = "19.49"
How many original air dates have U.S. Views (millions) of 19.49?
CREATE TABLE table_17758010_2 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT october FROM table_name_71 WHERE july = "kimberley stanfield"
Name the october for july of kimberley stanfield
CREATE TABLE table_name_71 (october VARCHAR, july VARCHAR)
SELECT constructor FROM table_name_50 WHERE driver = "nick heidfeld"
What company was the constructor when Nick Heidfeld was the driver/
CREATE TABLE table_name_50 (constructor VARCHAR, driver VARCHAR)
SELECT MAX(matches) FROM table_name_32 WHERE point = 43 AND final_rank < 7
Tell me the highest matches for point 43 and final rank less than 7
CREATE TABLE table_name_32 (matches INTEGER, point VARCHAR, final_rank VARCHAR)
SELECT venue FROM table_name_57 WHERE date = "14 april 2002"
What is the Venue with a Date with 14 april 2002?
CREATE TABLE table_name_57 (venue VARCHAR, date VARCHAR)
SELECT date FROM table_name_65 WHERE home_team = "richmond"
What is Date, when Home Team is Richmond?
CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR)
SELECT goal_difference FROM table_name_56 WHERE points_1 = "51" AND goals_against < 66
When the Points 1 was 51 and the Goals Against was less than 66, what was the Goal Difference?
CREATE TABLE table_name_56 (goal_difference VARCHAR, points_1 VARCHAR, goals_against VARCHAR)
SELECT AVG(place) FROM table_name_49 WHERE points = 69 AND draw < 13
What was the average place for the song that had 69 points and a draw smaller than 13?
CREATE TABLE table_name_49 (place INTEGER, points VARCHAR, draw VARCHAR)
SELECT name FROM table_name_8 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad"
Which person has an expiring term of December 31, 2020, and has Terry Branstad as the appointing governor?
CREATE TABLE table_name_8 (name VARCHAR, term_expires VARCHAR, appointing_governor VARCHAR)
SELECT tournament FROM table_name_64 WHERE surface = "clay" AND date = "may 24, 1992"
What was the Tournament on May 24, 1992 played on a Clay Surface?
CREATE TABLE table_name_64 (tournament VARCHAR, surface VARCHAR, date VARCHAR)
SELECT COUNT(district) FROM table_25030512_41 WHERE incumbent = "Tom Marino"
Name the number of district for tom marino
CREATE TABLE table_25030512_41 (district VARCHAR, incumbent VARCHAR)
SELECT MAX(bronze) FROM table_name_99 WHERE total = 14 AND gold > 6
What is the most bronze when the total is 14, and there are more than 6 gold?
CREATE TABLE table_name_99 (bronze INTEGER, total VARCHAR, gold VARCHAR)
SELECT COUNT(goals_for) FROM table_name_66 WHERE draws < 11 AND points = "54+16" AND goals_against < 39
How many goals for where there when draws are less than 11, points of is 54+16 and goals against are less than 39?
CREATE TABLE table_name_66 (goals_for VARCHAR, goals_against VARCHAR, draws VARCHAR, points VARCHAR)
SELECT year FROM table_name_16 WHERE circuit = "kyalami" AND winning_constructor = "ferrari"
What year did Ferrari win the Kyalami circuit?
CREATE TABLE table_name_16 (year VARCHAR, circuit VARCHAR, winning_constructor VARCHAR)
SELECT location_attendance FROM table_17322817_10 WHERE date = "April 5"
Name the location attendance for april 5
CREATE TABLE table_17322817_10 (location_attendance VARCHAR, date VARCHAR)
SELECT MIN(gold) FROM table_22355_35
which is the minimun amount of gold medals?
CREATE TABLE table_22355_35 (gold INTEGER)
SELECT date FROM table_name_24 WHERE leading_scorer = "maurice williams (25)" AND score = "102–105"
What is the Date with a Leading scorer with maurice williams (25), and a Score with 102–105?
CREATE TABLE table_name_24 (date VARCHAR, leading_scorer VARCHAR, score VARCHAR)
SELECT kashmiri FROM table_name_90 WHERE indonesian = "senin"
What is the Kashmiri word for the Indonesian word senin?
CREATE TABLE table_name_90 (kashmiri VARCHAR, indonesian VARCHAR)
SELECT SUM(laps) FROM table_name_20 WHERE grid = 18
How many laps were completed in grid 18?
CREATE TABLE table_name_20 (laps INTEGER, grid VARCHAR)
SELECT format FROM table_name_11 WHERE date = "january 21, 2002"
Which format has january 21, 2002 as the date?
CREATE TABLE table_name_11 (format VARCHAR, date VARCHAR)
SELECT champion FROM table_name_43 WHERE attendance = "70,000"
Who was the champion when the attendance was 70,000?
CREATE TABLE table_name_43 (champion VARCHAR, attendance VARCHAR)
SELECT AVG(events) FROM table_name_98 WHERE top_10 = 1 AND wins > 0 AND cuts_made < 4
What is the average number of events having 1 top-10, fewer than 4 cuts made, and 0 wins?
CREATE TABLE table_name_98 (events INTEGER, cuts_made VARCHAR, top_10 VARCHAR, wins VARCHAR)
SELECT day_3 FROM table_name_45 WHERE day_4 = "fr."
What is the day 3 when day 4 is fr.?
CREATE TABLE table_name_45 (day_3 VARCHAR, day_4 VARCHAR)
SELECT tournament FROM table_name_37 WHERE year > 1973
What tournament took place after 1973?
CREATE TABLE table_name_37 (tournament VARCHAR, year INTEGER)
SELECT result FROM table_name_20 WHERE opponent = "philadelphia eagles"
What was the results against the Philadelphia Eagles?
CREATE TABLE table_name_20 (result VARCHAR, opponent VARCHAR)
SELECT 2009 FROM table_name_86 WHERE tournament = "french open"
What is the value in 2009 at the French Open?
CREATE TABLE table_name_86 (tournament VARCHAR)
SELECT canterbury FROM table_name_67 WHERE central_districts = "276* m.d. crowe & p.s. briasco v (c) 1986/87"
Which of the Canterbury has a Central District of 276* M.D. Crowe & P.S. Briasco V (C) 1986/87?
CREATE TABLE table_name_67 (canterbury VARCHAR, central_districts VARCHAR)
SELECT per_capita_income FROM table_name_12 WHERE county = "washington"
What is the per capital income for Washington county?
CREATE TABLE table_name_12 (per_capita_income VARCHAR, county VARCHAR)
SELECT country FROM table_name_38 WHERE place = "t1" AND score = 72 - 68 - 70 - 73 = 283
Which country had a place of t1, as well as a score of 72-68-70-73=283?
CREATE TABLE table_name_38 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT MAX(heat) FROM table_name_22 WHERE nationality = "poland" AND lane < 6
What is the highest heat when the nationality is poland, and the lane is smaller than 6?
CREATE TABLE table_name_22 (heat INTEGER, nationality VARCHAR, lane VARCHAR)
SELECT games FROM table_name_33 WHERE event = "men's singles" AND medal = "silver"
Which Olympic Games had a silver medal for the Men's Singles?
CREATE TABLE table_name_33 (games VARCHAR, event VARCHAR, medal VARCHAR)
SELECT date FROM table_name_50 WHERE streak = "won 8"
What is the date when streak was won 8?
CREATE TABLE table_name_50 (date VARCHAR, streak VARCHAR)
SELECT MIN(round) FROM table_name_9 WHERE overall = 92
What was the lowest round number that had an overall pick up 92?
CREATE TABLE table_name_9 (round INTEGER, overall VARCHAR)
SELECT event FROM table_name_34 WHERE outcome = "other open tournaments"
What Event has an Outcome of other open tournaments?
CREATE TABLE table_name_34 (event VARCHAR, outcome VARCHAR)
SELECT COUNT(yards) FROM table_name_99 WHERE avg = 9 AND rec = 1
Name the total number of yards for avg of 9 and rec of 1
CREATE TABLE table_name_99 (yards VARCHAR, avg VARCHAR, rec VARCHAR)
SELECT district FROM table_1342233_13 WHERE incumbent = "Sid Simpson"
What district is incumbent sid simpson from?
CREATE TABLE table_1342233_13 (district VARCHAR, incumbent VARCHAR)
SELECT title FROM table_20967430_4 WHERE original_air_date = "March 11, 1988"
What was the name of the episode that aired originally on March 11, 1988?
CREATE TABLE table_20967430_4 (title VARCHAR, original_air_date VARCHAR)
SELECT weight FROM table_24850630_4 WHERE venue = "Sandown Park"
What was the weight of the jockey at Sandown Park?
CREATE TABLE table_24850630_4 (weight VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_4 WHERE venue = "victoria park"
What home team plays at victoria park?
CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR)
SELECT rank FROM table_name_65 WHERE active_service = "american civil war and indian wars"
What rank does the person participating in American Civil war and indian wars?
CREATE TABLE table_name_65 (rank VARCHAR, active_service VARCHAR)
SELECT type FROM table_name_34 WHERE opponent = "robert villemain" AND record = "109–1–2"
What is the type when Robert Villemain had a record at 109–1–2?
CREATE TABLE table_name_34 (type VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT daytime FROM table_name_5 WHERE saturday = "yes" AND name = "exmouth"
Name the Daytime which has Saturday of yes and a Name of exmouth?
CREATE TABLE table_name_5 (daytime VARCHAR, saturday VARCHAR, name VARCHAR)
SELECT label FROM table_name_86 WHERE region = "united kingdom" AND catalog = "chem036"
What label is associated with the United Kingdom and the chem036 catalog?
CREATE TABLE table_name_86 (label VARCHAR, region VARCHAR, catalog VARCHAR)
SELECT T1.Date_Claim_Made, T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING COUNT(*) > 2 UNION SELECT T1.Date_Claim_Made, T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = (SELECT MAX(Amount_Claimed) F...
Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.
CREATE TABLE Settlements (Claim_id VARCHAR); CREATE TABLE Claims (Amount_Claimed INTEGER); CREATE TABLE Claims (Date_Claim_Made VARCHAR, Claim_id VARCHAR, Amount_Claimed INTEGER)
SELECT title FROM table_28081876_4 WHERE production_code = 201
name the title of the episode with production code 201
CREATE TABLE table_28081876_4 (title VARCHAR, production_code VARCHAR)
SELECT 2006 FROM table_name_15 WHERE 2004 = "a" AND 2002 = "not tier i"
Which 2006 Tournament has a 2004, and a 2002 of not tier i?
CREATE TABLE table_name_15 (Id VARCHAR)
SELECT builder FROM table_name_86 WHERE works_number = "16272"
Which Builder has a Works Number of 16272?
CREATE TABLE table_name_86 (builder VARCHAR, works_number VARCHAR)
SELECT MAX(2012) FROM table_name_69 WHERE 2011 = 81 OFFSET 094
What is the highest 2012 immigration for a country with an immigration of 81,094 in 2011?
CREATE TABLE table_name_69 (Id VARCHAR)
SELECT original_airdate FROM table_name_56 WHERE episode = "2-01 (42)"
What date did Episode 2-01 (42) air?
CREATE TABLE table_name_56 (original_airdate VARCHAR, episode VARCHAR)
SELECT tournament FROM table_name_64 WHERE week = "november 23"
What is Tournament, when Week is November 23?
CREATE TABLE table_name_64 (tournament VARCHAR, week VARCHAR)
SELECT total FROM table_name_57 WHERE year_s__won = "1997"
In 1997, what was the final total?
CREATE TABLE table_name_57 (total VARCHAR, year_s__won VARCHAR)
SELECT AVG(time) FROM table_name_94 WHERE lane < 4 AND rank > 6
Which Time has a Lane smaller than 4, and a Rank larger than 6?
CREATE TABLE table_name_94 (time INTEGER, lane VARCHAR, rank VARCHAR)
SELECT aircraft FROM table_name_37 WHERE call_sign = "paula 01"
Which Aircraft has the Call Sign Paula 01?
CREATE TABLE table_name_37 (aircraft VARCHAR, call_sign VARCHAR)
SELECT comments FROM table_18305523_2 WHERE cover_date = "14 March 1987"
What is the comment on the issue dated 14 March 1987?
CREATE TABLE table_18305523_2 (comments VARCHAR, cover_date VARCHAR)
SELECT AVG(attendance) FROM table_name_71 WHERE result = "w 21–7"
What was the Attendance at the Game with a Result of w 21–7?
CREATE TABLE table_name_71 (attendance INTEGER, result VARCHAR)
SELECT lead FROM table_name_98 WHERE third = "david nedohin"
What lead has the third David Nedohin?
CREATE TABLE table_name_98 (lead VARCHAR, third VARCHAR)
SELECT athlete FROM table_name_49 WHERE time < 21.2 AND lane < 7 AND nationality = "dominica"
Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7?
CREATE TABLE table_name_49 (athlete VARCHAR, nationality VARCHAR, time VARCHAR, lane VARCHAR)
SELECT Player FROM match_season WHERE College = "UCLA"
Show the players from college UCLA.
CREATE TABLE match_season (Player VARCHAR, College VARCHAR)
SELECT ihsaa_class FROM table_name_85 WHERE school = "speedway"
Which IHSAA class does speedway school belong to?
CREATE TABLE table_name_85 (ihsaa_class VARCHAR, school VARCHAR)
SELECT 1985 FROM table_name_70 WHERE career_sr = "0 / 5" AND 1986 = "nh"
With a 1986 of NH and a career SR of 0 / 5 what is the results in 1985?
CREATE TABLE table_name_70 (career_sr VARCHAR)
SELECT written_by FROM table_25277363_2 WHERE no_in_series = 149
Who wrote episode number 149 in the series?
CREATE TABLE table_25277363_2 (written_by VARCHAR, no_in_series VARCHAR)
SELECT COUNT(thursday_day_five) FROM table_1277350_7 WHERE sunday_day_one = "Ahad"
How many time is sunday day one is ahad?
CREATE TABLE table_1277350_7 (thursday_day_five VARCHAR, sunday_day_one VARCHAR)
SELECT country___exonym__ FROM table_1008653_1 WHERE official_or_native_language_s___alphabet_script_ = "Dutch Papiamento"
What is the English name of the country whose official native language is Dutch Papiamento?
CREATE TABLE table_1008653_1 (country___exonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR)
SELECT total FROM table_name_15 WHERE bronze > 35
What is the total associated with Bronzes over 35?
CREATE TABLE table_name_15 (total VARCHAR, bronze INTEGER)
SELECT sesamin FROM table_1831262_2 WHERE secoisolariciresinol = 240
what is the total number of sesamin were secoisolariciresinol is 240?
CREATE TABLE table_1831262_2 (sesamin VARCHAR, secoisolariciresinol VARCHAR)
SELECT outgoing_manager FROM table_27057070_3 WHERE team = "Simurq PFC"
Who is the outgoing manager when the team is simurq pfc?
CREATE TABLE table_27057070_3 (outgoing_manager VARCHAR, team VARCHAR)
SELECT hometown FROM table_11677691_1 WHERE player = "Jeremy Hill"
What is Jeremy Hill's hometown?
CREATE TABLE table_11677691_1 (hometown VARCHAR, player VARCHAR)
SELECT MIN(game) FROM table_name_95 WHERE date = "february 28"
What was the first game played on February 28?
CREATE TABLE table_name_95 (game INTEGER, date VARCHAR)
SELECT date_to FROM table_name_78 WHERE name = "james chester"
When was james chester loaned out until ?
CREATE TABLE table_name_78 (date_to VARCHAR, name VARCHAR)
SELECT AVG(points) FROM table_name_72 WHERE domestic_cup = "quarterfinals"
What was the average points in the quarterfinals domestic cup?
CREATE TABLE table_name_72 (points INTEGER, domestic_cup VARCHAR)
SELECT opponent FROM table_name_8 WHERE date = "april 24, 1999"
Who was the opponent on april 24, 1999?
CREATE TABLE table_name_8 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT dept_name), school_code FROM department GROUP BY school_code HAVING COUNT(DISTINCT dept_name) < 5
Find the number of different departments in each school whose number of different departments is less than 5.
CREATE TABLE department (school_code VARCHAR, dept_name VARCHAR)
SELECT liberal_ticket FROM table_name_21 WHERE free_libertarian_ticket = "jack a. martin"
The Liberal Ticket listed which candidate when Jack A. Martin was listed on the Free Libertarian Ticket?
CREATE TABLE table_name_21 (liberal_ticket VARCHAR, free_libertarian_ticket VARCHAR)
SELECT home_team AS score FROM table_name_28 WHERE ground = "optus oval"
When the Ground was Optus Oval, what is the Home team score?
CREATE TABLE table_name_28 (home_team VARCHAR, ground VARCHAR)
SELECT name FROM Person WHERE gender = 'male' ORDER BY age
Find the name and age of all males in order of their age.
CREATE TABLE Person (name VARCHAR, gender VARCHAR, age VARCHAR)
SELECT MAX(rank) FROM table_name_45 WHERE population_density___km_2__ > 5.7 AND _percentage_growth__2006_11_ = "5.7%"
What was the highest rank of an area with a population density larger than 5.7 and a 2006–2011 percentage growth of 5.7%?
CREATE TABLE table_name_45 (rank INTEGER, population_density___km_2__ VARCHAR, _percentage_growth__2006_11_ VARCHAR)
SELECT COUNT(to_par) FROM table_name_91 WHERE player = "andy north" AND total > 153
What is the To par of Player Andy North with a Total larger than 153?
CREATE TABLE table_name_91 (to_par VARCHAR, player VARCHAR, total VARCHAR)
SELECT score FROM table_name_18 WHERE record = "18-22-13"
What was the score of the game with a record of 18-22-13?
CREATE TABLE table_name_18 (score VARCHAR, record VARCHAR)
SELECT rank FROM table_name_97 WHERE silver > 0 AND bronze = 38
What is the rank of the nation with more than 0 silver medals and 38 bronze medals?
CREATE TABLE table_name_97 (rank VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT height__m_ FROM table_23670057_6 WHERE year_born = 1981
Name the height for the player born in 1981
CREATE TABLE table_23670057_6 (height__m_ VARCHAR, year_born VARCHAR)
SELECT COUNT(overall_pick__number) FROM table_12165135_1 WHERE position = "Defensive Back"
What is the pick number of the defensive back?
CREATE TABLE table_12165135_1 (overall_pick__number VARCHAR, position VARCHAR)
SELECT services FROM table_name_2 WHERE area_of_operation = "wadi borjuj"
What services were in the area of operation Wadi Borjuj?
CREATE TABLE table_name_2 (services VARCHAR, area_of_operation VARCHAR)
SELECT height FROM table_name_53 WHERE player = "kenny williams"
What is Player Kenny Williams' Height?
CREATE TABLE table_name_53 (height VARCHAR, player VARCHAR)
SELECT try_bonus FROM table_name_61 WHERE points_against = "488"
What Try bonus has a Points against of 488?
CREATE TABLE table_name_61 (try_bonus VARCHAR, points_against VARCHAR)
SELECT label FROM table_name_91 WHERE catalog = "y8hr 1006" AND date = "1972"
Which label has a catalog of y8hr 1006 in 1972?
CREATE TABLE table_name_91 (label VARCHAR, catalog VARCHAR, date VARCHAR)
SELECT MAX(enrollment) FROM table_1183842_1 WHERE institution = "Barry University"
Barry University had the highest enrollment of what number?
CREATE TABLE table_1183842_1 (enrollment INTEGER, institution VARCHAR)
SELECT MIN(round) FROM table_name_84 WHERE position = "defensive back" AND pick = 226
Name the Round which has a Position of defensive back and a Pick of 226?
CREATE TABLE table_name_84 (round INTEGER, position VARCHAR, pick VARCHAR)
SELECT miles__km_ FROM table_2175685_1 WHERE average_speed__mph_ = "103.145"
How many miles (km) were driven when the average speed (mph) was 103.145?
CREATE TABLE table_2175685_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR)
SELECT runner_up FROM table_name_88 WHERE winner = "kiveton park" AND season = "2005-06"
What was the Runner-up during the 2005-06 Season with Kiveton Park as the Winner?
CREATE TABLE table_name_88 (runner_up VARCHAR, winner VARCHAR, season VARCHAR)
SELECT candidates FROM table_1341718_14 WHERE incumbent = "Ed Derwinski"
who were the candidates when the incumbent was ed derwinski?
CREATE TABLE table_1341718_14 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(overall) FROM table_name_37 WHERE player = "fred nixon"
What is the total number of overall draft picks for Fred Nixon?
CREATE TABLE table_name_37 (overall VARCHAR, player VARCHAR)
SELECT years_in_orlando FROM table_name_10 WHERE nationality = "united states" AND position = "center" AND player = "jawann oldham"
Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham?
CREATE TABLE table_name_10 (years_in_orlando VARCHAR, player VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT music FROM table_name_53 WHERE year < 1963
What music is in the film before 1963?
CREATE TABLE table_name_53 (music VARCHAR, year INTEGER)
SELECT country FROM table_name_90 WHERE edition = "42nd"
What was the nationality of the winner of the 42nd Edition?
CREATE TABLE table_name_90 (country VARCHAR, edition VARCHAR)