answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT score FROM table_name_52 WHERE record = "38-30"
What's the score if the record was 38-30?
CREATE TABLE table_name_52 (score VARCHAR, record VARCHAR)
SELECT lap_by_lap FROM table_name_74 WHERE year > 1973 AND pit_reporters = "bill flemming"
Which lap-by-lap has a year after 1973, with pit reporter Bill Flemming?
CREATE TABLE table_name_74 (lap_by_lap VARCHAR, year VARCHAR, pit_reporters VARCHAR)
SELECT cfl_team FROM table_20170644_1 WHERE player = "Simeon Rottier"
What CFL team did simeon rottier play for?
CREATE TABLE table_20170644_1 (cfl_team VARCHAR, player VARCHAR)
SELECT SUM(goals_against) FROM table_name_54 WHERE goals_for < 33 AND points < 16
How many Goals against have Goals for smaller than 33, and Points smaller than 16?
CREATE TABLE table_name_54 (goals_against INTEGER, goals_for VARCHAR, points VARCHAR)
SELECT date FROM table_name_58 WHERE record = "73-82"
with a record of 73-82 what was the date?
CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR)
SELECT game FROM table_name_70 WHERE october > 24 AND record = "6-2-1"
Which game was after October 24 and had a record of 6-2-1?
CREATE TABLE table_name_70 (game VARCHAR, october VARCHAR, record VARCHAR)
SELECT television_service FROM table_name_41 WHERE content = "programmi per adulti 24h/24" AND hdtv = "no"
Which television service has programmi per adulti 24h/24 content and no HDTV?
CREATE TABLE table_name_41 (television_service VARCHAR, content VARCHAR, hdtv VARCHAR)
SELECT MAX(roll) FROM table_name_12 WHERE authority = "state" AND name = "sylvia park school"
What is the biggest roll number of Sylvia Park School, which has a state authority?
CREATE TABLE table_name_12 (roll INTEGER, authority VARCHAR, name VARCHAR)
SELECT object_type FROM table_name_19 WHERE ngc_number = 2787
Which Object type has a NGC number of 2787?
CREATE TABLE table_name_19 (object_type VARCHAR, ngc_number VARCHAR)
SELECT party FROM table_name_61 WHERE district = 41 AND delegate = "jill p. carter"
Which party belongs to district 41, and is delegated by Jill P. Carter?
CREATE TABLE table_name_61 (party VARCHAR, district VARCHAR, delegate VARCHAR)
SELECT record FROM table_name_81 WHERE decision = "parent" AND home = "philadelphia" AND date = "december 12"
What record has a decision of parent, Philadelphia as the home, with december 12 as the date?
CREATE TABLE table_name_81 (record VARCHAR, date VARCHAR, decision VARCHAR, home VARCHAR)
SELECT competition FROM table_name_54 WHERE result = "3–1"
Which Competition has a Result of 3–1?
CREATE TABLE table_name_54 (competition VARCHAR, result VARCHAR)
SELECT MIN(cycle) FROM table_name_57 WHERE number_of_contestants = "11" AND international_destinations = "paris gran canaria"
What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria?
CREATE TABLE table_name_57 (cycle INTEGER, number_of_contestants VARCHAR, international_destinations VARCHAR)
SELECT partner FROM table_name_10 WHERE outcome = "winner" AND score = "7-6 (7) 5-7 10-7"
Tell me the partner for outcome of winner and score of 7-6 (7) 5-7 10-7
CREATE TABLE table_name_10 (partner VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT no_in_series FROM table_23528223_2 WHERE directed_by = "Skipp Sudduth"
What's the series number of the episode directed by Skipp Sudduth?
CREATE TABLE table_23528223_2 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT bb___blind_bear FROM table_2603017_2 WHERE ba___running_bear = "MF - Mountain Falcon"
what is bb - blind bear where ba - running bear is mf - mountain falcon?
CREATE TABLE table_2603017_2 (bb___blind_bear VARCHAR, ba___running_bear VARCHAR)
SELECT directed_by FROM table_18424435_3 WHERE us_air_date = "February 27, 2009"
Who directed the episode aired on February 27, 2009?
CREATE TABLE table_18424435_3 (directed_by VARCHAR, us_air_date VARCHAR)
SELECT hdtv FROM table_15887683_16 WHERE n° = 862
What values of HDTV correspond to n° of 862?
CREATE TABLE table_15887683_16 (hdtv VARCHAR, n° VARCHAR)
SELECT COUNT(replaced_by) FROM table_11713303_2 WHERE date_of_appointment = "10 December 2007" AND manner_of_departure = "Quit"
How many have been replaced where the appointment date is 10 December 2007 and the manner of departure is quit?
CREATE TABLE table_11713303_2 (replaced_by VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR)
SELECT MIN(total) FROM table_name_80 WHERE country = "united states" AND silver > 11
What is the lowest total medals for the united states who had more than 11 silver medals?
CREATE TABLE table_name_80 (total INTEGER, country VARCHAR, silver VARCHAR)
SELECT nationality FROM table_11545282_17 WHERE player = "Bill Robinzine"
What is the nationality of bill robinzine?
CREATE TABLE table_11545282_17 (nationality VARCHAR, player VARCHAR)
SELECT MIN(silver) FROM table_name_1 WHERE bronze = 19 AND total > 58
Name the Silver which has a Bronze of 19, and a Total larger than 58?
CREATE TABLE table_name_1 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT AVG(points) FROM table_name_86 WHERE english_translation = "sing"
The English translation of Sing has what average points?
CREATE TABLE table_name_86 (points INTEGER, english_translation VARCHAR)
SELECT MAX(points) FROM table_name_52 WHERE games = 21 AND rank > 2
What is the highest value for Points, when Games is 21, and when Rank is greater than 2?
CREATE TABLE table_name_52 (points INTEGER, games VARCHAR, rank VARCHAR)
SELECT home_team AS score FROM table_name_46 WHERE home_team = "melbourne"
When melbourne was the home team what was their score?
CREATE TABLE table_name_46 (home_team VARCHAR)
SELECT commander FROM table_11793221_4 WHERE complement = "167 off 2348 men"
Name the commander of 167 off 2348 men
CREATE TABLE table_11793221_4 (commander VARCHAR, complement VARCHAR)
SELECT MAX(rank) FROM table_name_64 WHERE rider = "peter symes"
What is the highest rank for Peter Symes?
CREATE TABLE table_name_64 (rank INTEGER, rider VARCHAR)
SELECT high_points FROM table_27734577_2 WHERE score = "L 85–94 (OT)"
Who corned the most points for the game that ended with a score of l 85–94 (ot)?
CREATE TABLE table_27734577_2 (high_points VARCHAR, score VARCHAR)
SELECT title FROM table_name_90 WHERE notes = "8 episodes"
Which title had Notes of 8 episodes?
CREATE TABLE table_name_90 (title VARCHAR, notes VARCHAR)
SELECT opponent FROM table_name_97 WHERE time = "7:30pm"
Who was the opposing team in the game(s) that started at 7:30pm?
CREATE TABLE table_name_97 (opponent VARCHAR, time VARCHAR)
SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500
Find the official names of cities with population bigger than 1500 or smaller than 500.
CREATE TABLE city (Official_Name VARCHAR, Population VARCHAR)
SELECT record FROM table_name_34 WHERE date = "may 7"
Which record happened on the date of May 7?
CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR)
SELECT career_sr FROM table_name_47 WHERE 1989 = "a" AND 1997 = "f"
What was the career SR with a value of A in 1980 and F in 1997?
CREATE TABLE table_name_47 (career_sr VARCHAR)
SELECT title FROM table_26199130_1 WHERE production_code = "2ALF03"
What is the title of the episode with production code 2alf03?
CREATE TABLE table_26199130_1 (title VARCHAR, production_code VARCHAR)
SELECT money___$__ FROM table_name_77 WHERE player = "trevor immelman"
what is the money for trevor immelman?
CREATE TABLE table_name_77 (money___$__ VARCHAR, player VARCHAR)
SELECT years_in_orlando FROM table_name_23 WHERE nationality = "united states" AND school_club_team = "illinois"
Which Years in Orlando has a Nationality of united states, and a School/Club Team of illinois?
CREATE TABLE table_name_23 (years_in_orlando VARCHAR, nationality VARCHAR, school_club_team VARCHAR)
SELECT class FROM table_name_16 WHERE quantity_made = "1" AND type = "0-6-0t"
What is the class of the locomotive with a quantity made of 1 and a 0-6-0t type?
CREATE TABLE table_name_16 (class VARCHAR, quantity_made VARCHAR, type VARCHAR)
SELECT MAX(clean_) & _jerk FROM table_name_91 WHERE snatch < 150 AND bodyweight > 93.13
What is the biggest clean and jerk number when snatch was less than 150 and the bodyweight was bigger than 93.13?
CREATE TABLE table_name_91 (_jerk VARCHAR, clean_ INTEGER, snatch VARCHAR, bodyweight VARCHAR)
SELECT COUNT(title) FROM table_165732_2 WHERE episode__number = 2
How many titles does Episode 2 have
CREATE TABLE table_165732_2 (title VARCHAR, episode__number VARCHAR)
SELECT percentage__2011_ FROM table_name_13 WHERE population__2006_ > 120 AND percentage__2006_ = "45.22%"
What percentage of the 2011 population had a mother tongue language that was spoken by 45.22% of the population in 2006 (over 120)?
CREATE TABLE table_name_13 (percentage__2011_ VARCHAR, population__2006_ VARCHAR, percentage__2006_ VARCHAR)
SELECT rank FROM table_name_77 WHERE points < 408.8 AND placings = 160
What is the Rank of the couple with less than 408.8 Points and Placings of 160?
CREATE TABLE table_name_77 (rank VARCHAR, points VARCHAR, placings VARCHAR)
SELECT high_rebounds FROM table_name_80 WHERE high_assists = "rafer alston , rashard lewis , hedo türkoğlu (3)"
What is High Rebounds, when High Assists is "Rafer Alston , Rashard Lewis , Hedo Türkoğlu (3)"?
CREATE TABLE table_name_80 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT time FROM table_21578303_2 WHERE stage = "SS12"
What is the time when ss12 is stage?
CREATE TABLE table_21578303_2 (time VARCHAR, stage VARCHAR)
SELECT name FROM table_name_56 WHERE district = "nagpur" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "59"
What is the name for Nagpur district, with a reserved for ( SC / ST /None) of none, and a Constituency number of 59?
CREATE TABLE table_name_56 (name VARCHAR, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR)
SELECT country FROM table_name_66 WHERE score = 69 - 74 = 143
Which Country has a Score of 69-74=143?
CREATE TABLE table_name_66 (country VARCHAR, score VARCHAR)
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10
List the customers first and last name of 10 least expensive invoices.
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR)
SELECT COUNT(DISTINCT director) FROM movie
How many movie directors are there?
CREATE TABLE movie (director VARCHAR)
SELECT COUNT(no_in_season) FROM table_2226817_6 WHERE written_by = "Art Everett"
How many season numbers are there for the episodes written by Art Everett?
CREATE TABLE table_2226817_6 (no_in_season VARCHAR, written_by VARCHAR)
SELECT cfl_team FROM table_name_76 WHERE player = "pascal masson"
What CFL Team is Pascal Masson on?
CREATE TABLE table_name_76 (cfl_team VARCHAR, player VARCHAR)
SELECT COUNT(rank__timeslot_) FROM table_20971444_3 WHERE rating__18_49_ = "3.1"
Name the total number of rank timeslot for 18-49 being 3.1
CREATE TABLE table_20971444_3 (rank__timeslot_ VARCHAR, rating__18_49_ VARCHAR)
SELECT uci_rating FROM table_name_81 WHERE location = "italy" AND team = "progetto ciclismo alplast"
What is the UCI rating of the race in Italy with the progetto ciclismo alplast team?
CREATE TABLE table_name_81 (uci_rating VARCHAR, location VARCHAR, team VARCHAR)
SELECT COUNT(elected) FROM table_13618584_2 WHERE incumbent = "Onzlee Ware"
How many times was incumbent onzlee ware elected?
CREATE TABLE table_13618584_2 (elected VARCHAR, incumbent VARCHAR)
SELECT result FROM table_name_37 WHERE round > 17
Which Result has a Round larger than 17?
CREATE TABLE table_name_37 (result VARCHAR, round INTEGER)
SELECT distance FROM table_197286_4 WHERE direction = "North"
Name the distance from north
CREATE TABLE table_197286_4 (distance VARCHAR, direction VARCHAR)
SELECT location FROM table_name_7 WHERE time = "3:15"
what is the location when the time is 3:15?
CREATE TABLE table_name_7 (location VARCHAR, time VARCHAR)
SELECT venue FROM table_name_16 WHERE home_team = "footscray"
In what venue does Footscray play?
CREATE TABLE table_name_16 (venue VARCHAR, home_team VARCHAR)
SELECT years_in_toronto FROM table_10015132_3 WHERE player = "Dell Curry"
During what period did Dell Curry play for Toronto?
CREATE TABLE table_10015132_3 (years_in_toronto VARCHAR, player VARCHAR)
SELECT score FROM table_name_21 WHERE date = "april 27"
What was the result of April 27's game?
CREATE TABLE table_name_21 (score VARCHAR, date VARCHAR)
SELECT MIN(joined) FROM table_261954_1
What is the least value of joined?
CREATE TABLE table_261954_1 (joined INTEGER)
SELECT trofeo_fast_team FROM table_name_55 WHERE young_rider_classification = "francesco casagrande" AND stage = "10"
Name trofeo fast team with young rider classification of francesco casagrande and stage of 10
CREATE TABLE table_name_55 (trofeo_fast_team VARCHAR, young_rider_classification VARCHAR, stage VARCHAR)
SELECT date FROM table_name_36 WHERE attendance = "57,013"
Which Date has an Attendance of 57,013?
CREATE TABLE table_name_36 (date VARCHAR, attendance VARCHAR)
SELECT replaced_by FROM table_name_44 WHERE team = "arminia bielefeld"
Who replaced the manager of team arminia bielefeld?
CREATE TABLE table_name_44 (replaced_by VARCHAR, team VARCHAR)
SELECT time FROM table_name_29 WHERE athlete = "emma twigg"
What is the race time for emma twigg?
CREATE TABLE table_name_29 (time VARCHAR, athlete VARCHAR)
SELECT res FROM table_name_20 WHERE record = "16-6"
Which result has a Record of 16-6?
CREATE TABLE table_name_20 (res VARCHAR, record VARCHAR)
SELECT drawn FROM table_name_63 WHERE lost = "14" AND bonus_points = "12"
What is Drawn, when Lost is 14, and when Bonus Points is 12?
CREATE TABLE table_name_63 (drawn VARCHAR, lost VARCHAR, bonus_points VARCHAR)
SELECT COUNT(lane) FROM table_name_16 WHERE heat > 7
What is the total lane for a heat larger than 7?
CREATE TABLE table_name_16 (lane VARCHAR, heat INTEGER)
SELECT method FROM table_name_88 WHERE round = "1" AND record = "10–2"
Round of 1, and a Record of 10–2 had what method?
CREATE TABLE table_name_88 (method VARCHAR, round VARCHAR, record VARCHAR)
SELECT croats FROM table_2374338_2 WHERE romanians = "16.65%"
What is every value for Croats when value for Romanians is 16.65%?
CREATE TABLE table_2374338_2 (croats VARCHAR, romanians VARCHAR)
SELECT country FROM table_name_20 WHERE gdp__nominal_ = "$29.9 billion"
Which country has a GDP (nominal) of $29.9 billion?
CREATE TABLE table_name_20 (country VARCHAR, gdp__nominal_ VARCHAR)
SELECT position FROM table_name_19 WHERE player = "bert coan"
Which position does bert coan play?
CREATE TABLE table_name_19 (position VARCHAR, player VARCHAR)
SELECT aorist FROM table_27298240_26 WHERE present = "bude"
What aorist has bude in present tense?
CREATE TABLE table_27298240_26 (aorist VARCHAR, present VARCHAR)
SELECT set_3 FROM table_name_54 WHERE set_5 = "na" AND set_1 = "21-25" AND set_2 = "25-16"
What is set 3 when set 5 is na, set 1 is 21-25, and set 2 is 25-16?
CREATE TABLE table_name_54 (set_3 VARCHAR, set_2 VARCHAR, set_5 VARCHAR, set_1 VARCHAR)
SELECT mascot FROM table_name_76 WHERE school = "logansport community"
Which Mascot has a School of logansport community?
CREATE TABLE table_name_76 (mascot VARCHAR, school VARCHAR)
SELECT SUM(balls_faced) FROM table_name_4 WHERE average = 39.13 AND runs_scored > 313
Which Balls Faced has a Average of 39.13 and Runs Scored larger than 313?
CREATE TABLE table_name_4 (balls_faced INTEGER, average VARCHAR, runs_scored VARCHAR)
SELECT report FROM table_name_5 WHERE race = "belgian grand prix"
What was the report in the Belgian Grand Prix?
CREATE TABLE table_name_5 (report VARCHAR, race VARCHAR)
SELECT country FROM table_145439_1 WHERE health = "91.4"
what's the country with health being 91.4
CREATE TABLE table_145439_1 (country VARCHAR, health VARCHAR)
SELECT duration FROM table_name_36 WHERE actor = "nickolas grace"
What is the duration for nickolas grace as the actor?
CREATE TABLE table_name_36 (duration VARCHAR, actor VARCHAR)
SELECT drawn FROM table_name_96 WHERE points_against = "234"
What was the draw when the points against was 234?
CREATE TABLE table_name_96 (drawn VARCHAR, points_against VARCHAR)
SELECT MAX(rank) FROM table_name_4 WHERE passengers < 124 OFFSET 296
What is the highest rank when there are fewer than 124,296 passengers?
CREATE TABLE table_name_4 (rank INTEGER, passengers INTEGER)
SELECT incumbent FROM table_name_35 WHERE result = "retired democratic gain"
Which Incumbent has a Result of retired democratic gain?
CREATE TABLE table_name_35 (incumbent VARCHAR, result VARCHAR)
SELECT date FROM table_11622392_1 WHERE location = "Washington"
When was the tournament in Washington held?
CREATE TABLE table_11622392_1 (date VARCHAR, location VARCHAR)
SELECT transfer_window FROM table_name_12 WHERE country = "bra"
WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA?
CREATE TABLE table_name_12 (transfer_window VARCHAR, country VARCHAR)
SELECT year FROM table_name_26 WHERE points > 0 AND chassis = "ags jh22"
What year is listed that has points greater than 0 with a chassis labeled AGS JH22?
CREATE TABLE table_name_26 (year VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT result FROM table_name_83 WHERE record = "3–3"
Record of 3–3 has what result?
CREATE TABLE table_name_83 (result VARCHAR, record VARCHAR)
SELECT score FROM table_name_2 WHERE attendance = "50,200"
What was the score of the game attended by 50,200?
CREATE TABLE table_name_2 (score VARCHAR, attendance VARCHAR)
SELECT MAX(year) FROM table_name_13 WHERE entrant = "shadow racing team" AND pts > 0
What is the latest year that shadow racing team scored more than 0 points?
CREATE TABLE table_name_13 (year INTEGER, entrant VARCHAR, pts VARCHAR)
SELECT MIN(pick) FROM table_name_42 WHERE player = "michael holper"
Which pick was MIchael Holper?
CREATE TABLE table_name_42 (pick INTEGER, player VARCHAR)
SELECT SUM(year) FROM table_name_93 WHERE edition > 4 AND winner = "new york red bulls"
I want the sum of year for edition more than 4 and winners of new york red bulls
CREATE TABLE table_name_93 (year INTEGER, edition VARCHAR, winner VARCHAR)
SELECT attendance FROM table_name_58 WHERE result = "won 5-2"
What was the Attendance in the game with a Result of won 5-2?
CREATE TABLE table_name_58 (attendance VARCHAR, result VARCHAR)
SELECT MAX(earnings___) AS $__ FROM table_1697190_1 WHERE money_list_rank = 143
Name the most earnings for money list rank being 143
CREATE TABLE table_1697190_1 (earnings___ INTEGER, money_list_rank VARCHAR)
SELECT club FROM table_name_9 WHERE not_winning_editions = "1992, 2003"
Which Club has a Not winning editions of 1992, 2003?
CREATE TABLE table_name_9 (club VARCHAR, not_winning_editions VARCHAR)
SELECT MIN(attendance) FROM table_name_52 WHERE date = "september 3, 1972"
What is the lowest attendance on September 3, 1972?
CREATE TABLE table_name_52 (attendance INTEGER, date VARCHAR)
SELECT COUNT(arabs_2001) FROM table_1939367_1 WHERE province = "British Columbia"
If the province is British Columbia, what is the Arabs 2001 total number?
CREATE TABLE table_1939367_1 (arabs_2001 VARCHAR, province VARCHAR)
SELECT weight_ & _height FROM table_name_65 WHERE player = "michael worrincy"
Which Weight & Height has a Player of michael worrincy?
CREATE TABLE table_name_65 (weight_ VARCHAR, _height VARCHAR, player VARCHAR)
SELECT status FROM table_name_12 WHERE novelty = "gen et sp" AND name = "haplocanthosaurus"
What is the Status with a novelty of gen et sp, and the name is haplocanthosaurus?
CREATE TABLE table_name_12 (status VARCHAR, novelty VARCHAR, name VARCHAR)
SELECT year_s__of_manufacture FROM table_name_74 WHERE quantity = 31 AND axle_arrangement___uic__ = "b n2t"
What year was the b n2t axle arrangement, which has a quantity of 31, manufactured?
CREATE TABLE table_name_74 (year_s__of_manufacture VARCHAR, quantity VARCHAR, axle_arrangement___uic__ VARCHAR)
SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count >= 100 OR amount_of_transaction >= 100
What are the dates of transactions with at least 100 share count or amount bigger than 100?
CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, share_count VARCHAR, amount_of_transaction VARCHAR)
SELECT points_against FROM table_name_54 WHERE try_bonus = "4" AND lost = "10"
For a Lost of 10 and a Try Bonus of 4, what are the points against them?
CREATE TABLE table_name_54 (points_against VARCHAR, try_bonus VARCHAR, lost VARCHAR)
SELECT week_1 FROM table_name_12 WHERE week_2 = "kamila sulewska"
Who was the girl on week 1 that preceded week 2's Kamila Sulewska?
CREATE TABLE table_name_12 (week_1 VARCHAR, week_2 VARCHAR)
SELECT attendance FROM table_name_48 WHERE date = "october 2, 1977"
What was the Attendance on october 2, 1977?
CREATE TABLE table_name_48 (attendance VARCHAR, date VARCHAR)