answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT author_s_ FROM table_name_35 WHERE time = "2:22"
Who wrote the song that runs for 2:22?
CREATE TABLE table_name_35 (author_s_ VARCHAR, time VARCHAR)
SELECT fleet_number_s_ FROM table_name_27 WHERE serial_numbers = "68056"
What is the fleet number for the model with Serial number 68056?
CREATE TABLE table_name_27 (fleet_number_s_ VARCHAR, serial_numbers VARCHAR)
SELECT player FROM table_name_58 WHERE pick < 161 AND college = "auburn university"
What is Player, when Pick is less than 161, and when College is "Auburn University"?
CREATE TABLE table_name_58 (player VARCHAR, pick VARCHAR, college VARCHAR)
SELECT track FROM table_name_72 WHERE race = "woodward stakes"
Which track does the Woodward Stakes race take place on?
CREATE TABLE table_name_72 (track VARCHAR, race VARCHAR)
SELECT COUNT(won) FROM table_13564702_3 WHERE club = "Maesteg Harlequins RFC"
Name the number of won for maesteg harlequins rfc
CREATE TABLE table_13564702_3 (won VARCHAR, club VARCHAR)
SELECT season FROM table_name_77 WHERE last_airdate = "may 6, 1987"
Which season last aired on May 6, 1987?
CREATE TABLE table_name_77 (season VARCHAR, last_airdate VARCHAR)
SELECT manufacturer FROM table_17801022_1 WHERE date = "November 2"
What manufacturer won the race on November 2?
CREATE TABLE table_17801022_1 (manufacturer VARCHAR, date VARCHAR)
SELECT hdi__2011_ FROM table_2155836_1 WHERE country = "Tunisia"
What is the HDI for 2011 in Tunisia?
CREATE TABLE table_2155836_1 (hdi__2011_ VARCHAR, country VARCHAR)
SELECT location_attendance FROM table_17340355_6 WHERE date = "December 10"
What is the location of the the game on december 10
CREATE TABLE table_17340355_6 (location_attendance VARCHAR, date VARCHAR)
SELECT COUNT(total_goals) FROM table_name_80 WHERE total_apps = "0 (3)" AND league_goals < 0
How many total goals have 0 (3) as total apps, with league goals less than 0?
CREATE TABLE table_name_80 (total_goals VARCHAR, total_apps VARCHAR, league_goals VARCHAR)
SELECT podiums FROM table_name_74 WHERE series = "world rally championship"
What Podiums listing has a World Rally Championship series entry?
CREATE TABLE table_name_74 (podiums VARCHAR, series VARCHAR)
SELECT chassis FROM table_name_12 WHERE year < 1960 AND points < 8
What was the Chassis with less than 8 points before 1960?
CREATE TABLE table_name_12 (chassis VARCHAR, year VARCHAR, points VARCHAR)
SELECT to_par FROM table_name_25 WHERE country = "australia"
What is To Par, when Country is "Australia"?
CREATE TABLE table_name_25 (to_par VARCHAR, country VARCHAR)
SELECT MIN(feet) FROM table_name_22 WHERE longitude__e_ = "76°34′06″" AND prominence__m_ < 1 OFFSET 701
What is the lowest feet total with a Longitude (E) of 76°34′06″, and a Prominence (m) under 1,701?
CREATE TABLE table_name_22 (feet INTEGER, longitude__e_ VARCHAR, prominence__m_ VARCHAR)
SELECT title FROM table_11058032_1 WHERE directed_by = "Mark Tinker"
What is the title of the episode directed by Mark Tinker?
CREATE TABLE table_11058032_1 (title VARCHAR, directed_by VARCHAR)
SELECT COUNT(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "Tom Fleming"
In how many years was Tom Fleming the final television commentator?
CREATE TABLE table_17766232_7 (year_s_ VARCHAR, final_television_commentator VARCHAR)
SELECT bush_percentage FROM table_2401326_1 WHERE kerry_percentage = "37.6%"
What's percentage voted for Busg in the county where Kerry got 37.6%?
CREATE TABLE table_2401326_1 (bush_percentage VARCHAR, kerry_percentage VARCHAR)
SELECT ihsaa_class FROM table_name_92 WHERE ihsaa_football_class = "aa" AND school = "centerville"
What is the IHSAA class of Centerville, which plays IHSAA class AA football?
CREATE TABLE table_name_92 (ihsaa_class VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR)
SELECT player FROM table_name_41 WHERE year_s__won = "1978 , 1985"
What is Player, when Year(s) Won is 1978 , 1985?
CREATE TABLE table_name_41 (player VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_89 WHERE town = "dubai"
what country has dubai
CREATE TABLE table_name_89 (country VARCHAR, town VARCHAR)
SELECT overall FROM table_name_47 WHERE pick__number < 13
What is the overall of the player with a pick # higher than 13?
CREATE TABLE table_name_47 (overall VARCHAR, pick__number INTEGER)
SELECT position FROM table_name_90 WHERE nationality = "united states" AND years_for_grizzlies = "2000-2001"
What position is the player from the United States play for the Grizzlies from 2000-2001?
CREATE TABLE table_name_90 (position VARCHAR, nationality VARCHAR, years_for_grizzlies VARCHAR)
SELECT no_in_series FROM table_22078906_2 WHERE us_viewers__millions_ = "15.89"
What number episode in the series was watched by 15.89 million U.S. viewers?
CREATE TABLE table_22078906_2 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(goals_scored) FROM table_name_7 WHERE place > 5 AND lost = 11 AND goals_conceded < 45
How many goals that were scored had a place of more than 5, a lost of 11, and goals conceded of less than 45?
CREATE TABLE table_name_7 (goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR, lost VARCHAR)
SELECT MAX(won) FROM table_15331868_1 WHERE difference = "1"
What is the highest number won with a difference of 1?
CREATE TABLE table_15331868_1 (won INTEGER, difference VARCHAR)
SELECT record FROM table_name_1 WHERE game = 41
What was the record after game 41?
CREATE TABLE table_name_1 (record VARCHAR, game VARCHAR)
SELECT COUNT(games) FROM table_name_62 WHERE goals = 23 AND rank > 9
How many games have 23 goals with a rank greater than 9?
CREATE TABLE table_name_62 (games VARCHAR, goals VARCHAR, rank VARCHAR)
SELECT MAX(bronze) FROM table_name_83 WHERE silver < 1 AND total < 2
With silver medals less than 1, and total medals less than 2, what is the most bronze medals?
CREATE TABLE table_name_83 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT MIN(gold) FROM table_name_23 WHERE total = 7
What is the smallest number of gold medals a country with 7 medals has?
CREATE TABLE table_name_23 (gold INTEGER, total VARCHAR)
SELECT result FROM table_name_51 WHERE box_scores = "box" AND date = "september 25"
What was the result of the game on September 25 with a box score of box?
CREATE TABLE table_name_51 (result VARCHAR, box_scores VARCHAR, date VARCHAR)
SELECT try_bonus FROM table_17941032_3 WHERE lost = "11" AND losing_bonus = "6"
Name the try bonus for lost being 11 and losing bonus is 6
CREATE TABLE table_17941032_3 (try_bonus VARCHAR, lost VARCHAR, losing_bonus VARCHAR)
SELECT party FROM table_25030512_24 WHERE first_elected = "1998"
Name the party for 1998 first elected
CREATE TABLE table_25030512_24 (party VARCHAR, first_elected VARCHAR)
SELECT position FROM table_name_14 WHERE height = 205 AND shirt_no = 8
What is the position of the player with a height of 205 and shirt no 8?
CREATE TABLE table_name_14 (position VARCHAR, height VARCHAR, shirt_no VARCHAR)
SELECT district FROM address GROUP BY district HAVING COUNT(*) >= 2
Which districts have at least two addresses?
CREATE TABLE address (district VARCHAR)
SELECT time FROM table_name_85 WHERE team = "398cc yamaha"
What is the time of the rider with a 398cc yamaha?
CREATE TABLE table_name_85 (time VARCHAR, team VARCHAR)
SELECT team FROM table_name_29 WHERE high_assists = "alvin williams (6)"
What is the team when alvin williams (6) has the high assists?
CREATE TABLE table_name_29 (team VARCHAR, high_assists VARCHAR)
SELECT medal FROM table_name_14 WHERE name = "alex obeyesekera"
Which Medal has a Name of alex obeyesekera?
CREATE TABLE table_name_14 (medal VARCHAR, name VARCHAR)
SELECT year AS Retired FROM table_name_2 WHERE fuel_propulsion = "diesel" AND length = "40'" AND numbers__quantity_ordered_ = "3701-3729 (29 buses)"
What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?
CREATE TABLE table_name_2 (year VARCHAR, numbers__quantity_ordered_ VARCHAR, fuel_propulsion VARCHAR, length VARCHAR)
SELECT undisclosed FROM table_23835213_2 WHERE "aldershot_town" = "aldershot_town" AND wycombe_wanderers = "Oxford United"
What is the undisclosed when Aldertown is Aldershot Town and Wycombe Wanderers is Oxford United?
CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR)
SELECT res FROM table_name_27 WHERE opponent = "tony halme"
What was the result of the fight with Tony Halme?
CREATE TABLE table_name_27 (res VARCHAR, opponent VARCHAR)
SELECT style FROM table_28677723_14 WHERE total = 39
Name the style for 39
CREATE TABLE table_28677723_14 (style VARCHAR, total VARCHAR)
SELECT MAX(lost) FROM table_name_81 WHERE draw = 0 AND team = "gwardia katowice" AND points < 12
What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice?
CREATE TABLE table_name_81 (lost INTEGER, points VARCHAR, draw VARCHAR, team VARCHAR)
SELECT title FROM table_23399481_4 WHERE us_viewers__in_millions_ = "1.22"
What is the name of the episodes which had 1.22 million U.S. viewers?
CREATE TABLE table_23399481_4 (title VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT results¹ FROM table_name_12 WHERE type_of_game = "friendly" AND date = "june 25"
What is the Results¹ that was a friendly game and played on June 25?
CREATE TABLE table_name_12 (results¹ VARCHAR, type_of_game VARCHAR, date VARCHAR)
SELECT party FROM table_1342256_6 WHERE first_elected = "1926"
what's the party with first elected being 1926
CREATE TABLE table_1342256_6 (party VARCHAR, first_elected VARCHAR)
SELECT final_score FROM table_24126518_2 WHERE location = "Exhibition Stadium" AND date = "September 10"
Name the final score for exhibition stadium for september 10
CREATE TABLE table_24126518_2 (final_score VARCHAR, location VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_76 WHERE date = "november 3, 2002"
What score in the final has november 3, 2002 as the date?
CREATE TABLE table_name_76 (score_in_the_final VARCHAR, date VARCHAR)
SELECT competition FROM table_name_96 WHERE date = "30 december 2005"
What is Competition, when Date is 30 December 2005?
CREATE TABLE table_name_96 (competition VARCHAR, date VARCHAR)
SELECT round_of_16 FROM table_17289604_38 WHERE round_of_32 = "Koryttseva ( UKR ) W 2–6, 6–1, 7–5"
What was round of 16 when in round 32 it was koryttseva ( ukr ) w 2–6, 6–1, 7–5?
CREATE TABLE table_17289604_38 (round_of_16 VARCHAR, round_of_32 VARCHAR)
SELECT year FROM table_name_26 WHERE color_commentator_s_ = "jerry sichting"
Name the year for jerry sichting
CREATE TABLE table_name_26 (year VARCHAR, color_commentator_s_ VARCHAR)
SELECT score FROM table_name_64 WHERE opponent = "hawthorn"
Name the score for hawthorn opponent
CREATE TABLE table_name_64 (score VARCHAR, opponent VARCHAR)
SELECT ergative FROM table_name_13 WHERE genitive = "tkven(s)"
What is the ergative for the genitive tkven(s)?
CREATE TABLE table_name_13 (ergative VARCHAR, genitive VARCHAR)
SELECT pole_position FROM table_18095719_2 WHERE round = 7
Who had pole position in round 7?
CREATE TABLE table_18095719_2 (pole_position VARCHAR, round VARCHAR)
SELECT losing_bonus FROM table_12792876_3 WHERE points_against = "445"
What was the losing bonus when the points against was 445?
CREATE TABLE table_12792876_3 (losing_bonus VARCHAR, points_against VARCHAR)
SELECT club FROM table_name_76 WHERE founded < 1882 AND league = "fa premier league"
Which Club has a Founded smaller than 1882, and a League of fa premier league?
CREATE TABLE table_name_76 (club VARCHAR, founded VARCHAR, league VARCHAR)
SELECT MIN(year) FROM table_name_70 WHERE movie = "8 women" AND awards = "césar award"
In what year was the movie 8 women up for a César Award?
CREATE TABLE table_name_70 (year INTEGER, movie VARCHAR, awards VARCHAR)
SELECT time FROM table_name_60 WHERE year > 1985 AND place < 2 AND athlete = "riochy sekiya"
Which Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya?
CREATE TABLE table_name_60 (time VARCHAR, athlete VARCHAR, year VARCHAR, place VARCHAR)
SELECT player FROM table_name_62 WHERE fa_cup < 6 AND premier_league = 33 AND UEfa_cup > 5
What player had less than 6 appearances at the FA cup, 33 at the premier league, and more than 5 at the UEFA cup?
CREATE TABLE table_name_62 (player VARCHAR, UEfa_cup VARCHAR, fa_cup VARCHAR, premier_league VARCHAR)
SELECT T1.student_id, T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2
Find the student ID and middle name for all the students with at most two enrollments.
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (middle_name VARCHAR, student_id VARCHAR)
SELECT record FROM table_name_26 WHERE visitor = "quebec nordiques" AND date = "april 22"
What is the record when the visiting team was the Quebec Nordiques on April 22?
CREATE TABLE table_name_26 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT MAX(game) FROM table_29997127_4 WHERE location_attendance = "America West Arena 18,756"
In what game was the attendance at the America West Arena 18,756?
CREATE TABLE table_29997127_4 (game INTEGER, location_attendance VARCHAR)
SELECT date_from FROM table_name_50 WHERE position = "mf" AND name = "jennison myrie-williams"
What is the date for the MF position and player Jennison Myrie-Williams?
CREATE TABLE table_name_50 (date_from VARCHAR, position VARCHAR, name VARCHAR)
SELECT start_station_name, end_station_name FROM trip ORDER BY id LIMIT 3
Give me the start station and end station for the trips with the three oldest id.
CREATE TABLE trip (start_station_name VARCHAR, end_station_name VARCHAR, id VARCHAR)
SELECT MIN(population__2004_) FROM table_name_8 WHERE households = 5158
What is the lowest 2004 population when there were 5158 households?
CREATE TABLE table_name_8 (population__2004_ INTEGER, households VARCHAR)
SELECT AVG(gold) FROM table_name_66 WHERE sport = "athletics" AND silver > 42
What is the average number of golds in athletics associated with over 42 silvers?
CREATE TABLE table_name_66 (gold INTEGER, sport VARCHAR, silver VARCHAR)
SELECT duration FROM table_name_83 WHERE actor = "joyce jacobs"
How long did Joyce Jacobs portray her character on her show?
CREATE TABLE table_name_83 (duration VARCHAR, actor VARCHAR)
SELECT department_id, AVG(salary) FROM employees WHERE commission_pct <> "null" GROUP BY department_id
display the average salary of employees for each department who gets a commission percentage.
CREATE TABLE employees (department_id VARCHAR, salary INTEGER, commission_pct VARCHAR)
SELECT turbine_manufacturer FROM table_24837750_1 WHERE date_in_service = "2005"
Who was the turbine manufacturer of the wind farm that started service on 2005?
CREATE TABLE table_24837750_1 (turbine_manufacturer VARCHAR, date_in_service VARCHAR)
SELECT place FROM table_name_22 WHERE to_par = "+2" AND score = 70 - 72 - 73 = 215
What is the Place of the Player with a To par of +2 and a Score of 70-72-73=215?
CREATE TABLE table_name_22 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT position FROM table_name_7 WHERE number = 16
Which position is number 16?
CREATE TABLE table_name_7 (position VARCHAR, number VARCHAR)
SELECT AVG(International_Passengers) FROM airport
What is the average number of international passengers of all airports?
CREATE TABLE airport (International_Passengers INTEGER)
SELECT player FROM table_name_74 WHERE to_par = "–2" AND score = 69 - 73 = 142
Name the Player who has a To par of –2 and a Score of 69-73=142?
CREATE TABLE table_name_74 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT spouse FROM table_name_38 WHERE birth = "30 may 1653"
Which Spouse has a Birth of 30 may 1653?
CREATE TABLE table_name_38 (spouse VARCHAR, birth VARCHAR)
SELECT round_of_32 FROM table_26335424_86 WHERE quarterfinals = "Did not advance" AND event = "Bantamweight (-63kg)"
If the event was bantamweight (-63kg), and the quarterfinals did not advance, then who was in round of 32?
CREATE TABLE table_26335424_86 (round_of_32 VARCHAR, quarterfinals VARCHAR, event VARCHAR)
SELECT kicker FROM table_name_36 WHERE opponent = "new york giants" AND yards < 68
Opponent of new york giants, and a Yards smaller than 68 is what kicker?
CREATE TABLE table_name_36 (kicker VARCHAR, opponent VARCHAR, yards VARCHAR)
SELECT season FROM table_name_35 WHERE caps < 36 AND club = "nac breda"
Which season has Caps lower than 36 for the Club of NAC Breda?
CREATE TABLE table_name_35 (season VARCHAR, caps VARCHAR, club VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_49 WHERE place = "t2" AND country = "united states" AND player = "leo diegel"
What is the total amount of money that has a t2 place, is from the United States for player Leo Diegel?
CREATE TABLE table_name_49 (money___ VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)
SELECT COUNT(gold) FROM table_name_31 WHERE bronze < 0
What is the value for Gold, when the value for Bronze is less than 0?
CREATE TABLE table_name_31 (gold VARCHAR, bronze INTEGER)
SELECT d_46_√ FROM table_name_2 WHERE d_43_√ = "r 3"
What is the D 46 √ with a D 43 √ with r 3?
CREATE TABLE table_name_2 (d_46_√ VARCHAR, d_43_√ VARCHAR)
SELECT SUM(game) FROM table_name_26 WHERE date = "wed. nov. 14"
What is the sum of Game, when Date is "Wed. Nov. 14"?
CREATE TABLE table_name_26 (game INTEGER, date VARCHAR)
SELECT COUNT(pick) FROM table_name_32 WHERE nationality = "canada" AND draft < 1976 AND player = "curt bennett" AND round < 2
What is the total pick number of player curt bennett from canada with a draft before 1976 and a round less than 2?
CREATE TABLE table_name_32 (pick VARCHAR, round VARCHAR, player VARCHAR, nationality VARCHAR, draft VARCHAR)
SELECT district FROM table_1341472_51 WHERE first_elected = 1978
What district first elected in 1978?
CREATE TABLE table_1341472_51 (district VARCHAR, first_elected VARCHAR)
SELECT visitor FROM table_name_76 WHERE home = "detroit" AND date = "february 24"
Which visitor has detroit as the home, and february 24 as the date?
CREATE TABLE table_name_76 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT opposing_teams FROM table_name_63 WHERE date = "11/04/1999"
What opposing teams playing on 11/04/1999?
CREATE TABLE table_name_63 (opposing_teams VARCHAR, date VARCHAR)
SELECT release_date FROM table_name_98 WHERE sspec_number = "sr15h(c0)"
what is the release date when the sspec number is sr15h(c0)?
CREATE TABLE table_name_98 (release_date VARCHAR, sspec_number VARCHAR)
SELECT result FROM table_name_2 WHERE week = 1
What is the result week 1?
CREATE TABLE table_name_2 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_82 WHERE venue = "lord's"
Name the result for venue of lord's
CREATE TABLE table_name_82 (result VARCHAR, venue VARCHAR)
SELECT date FROM table_name_8 WHERE location = "bells beach"
What date was the game played when it was located at bells beach?
CREATE TABLE table_name_8 (date VARCHAR, location VARCHAR)
SELECT COUNT(calculated_activity___bq__) FROM table_26211058_1 WHERE specimen_weight_size = "1000 g / 8.79 cm"
If the specimen weight/size is 1000 g / 8.79 cm, what is the calculated activity?
CREATE TABLE table_26211058_1 (calculated_activity___bq__ VARCHAR, specimen_weight_size VARCHAR)
SELECT theme FROM table_name_73 WHERE original_artist = "fontella bass"
What is the Theme when Fontella Bass was the original artist?
CREATE TABLE table_name_73 (theme VARCHAR, original_artist VARCHAR)
SELECT opponent FROM table_name_14 WHERE record = "6-3"
Which opponent led to a 6-3 record?
CREATE TABLE table_name_14 (opponent VARCHAR, record VARCHAR)
SELECT party FROM table_2668169_2 WHERE incumbent = "Mathias Morris"
Which party does the incumbent Mathias Morris belong to?
CREATE TABLE table_2668169_2 (party VARCHAR, incumbent VARCHAR)
SELECT frequency FROM table_18536769_1 WHERE owner = "Vista Radio"
When vista radio is the owner what is the frequency?
CREATE TABLE table_18536769_1 (frequency VARCHAR, owner VARCHAR)
SELECT score FROM table_23453931_5 WHERE date = "December 19"
Name the score for december 19
CREATE TABLE table_23453931_5 (score VARCHAR, date VARCHAR)
SELECT MAX(losses) FROM table_name_89 WHERE goals_for < 45 AND points < 18
What were the highest losses when the goal was smaller than 45 and the points was smaller than 18?
CREATE TABLE table_name_89 (losses INTEGER, goals_for VARCHAR, points VARCHAR)
SELECT nord FROM table_name_3 WHERE berlin = "tennis borussia berlin" AND year = 1952
What is the Nord in 1952, when tennis borussia berlin was Berlin?
CREATE TABLE table_name_3 (nord VARCHAR, berlin VARCHAR, year VARCHAR)
SELECT brigade FROM table_name_68 WHERE name = "tall al-shawk"
What is the brigade Tall Al-Shawk shows for the name?
CREATE TABLE table_name_68 (brigade VARCHAR, name VARCHAR)
SELECT score FROM table_name_12 WHERE country = "united states" AND player = "mike reid"
Mike Reid from the United States has what score?
CREATE TABLE table_name_12 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT members_of_parliament FROM table_name_97 WHERE trailing_party = "bharatiya lok dal"
What is Members of Parliament, when Trailing Party is "Bharatiya Lok Dal"?
CREATE TABLE table_name_97 (members_of_parliament VARCHAR, trailing_party VARCHAR)
SELECT serbs FROM table_2374338_2 WHERE hungarians = "9.26%"
What is every value for Serbs if value for Hungarians is 9.26%?
CREATE TABLE table_2374338_2 (serbs VARCHAR, hungarians VARCHAR)