answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MIN(total) FROM table_name_90 WHERE bronze < 7 AND silver = 1 AND rank > 9
What is the Total number of medals for the Nation with 7 or less Bronze medals and 1 Silver medal with a Rank of 9 or larger?
CREATE TABLE table_name_90 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT week FROM table_14984078_1 WHERE date = "December 2, 1962"
What week of the season did the date December 2, 1962 fall on?
CREATE TABLE table_14984078_1 (week VARCHAR, date VARCHAR)
SELECT district FROM table_27021001_1 WHERE incumbent = "Charlie Norwood"
What is the district with the incumbent Charlie Norwood?
CREATE TABLE table_27021001_1 (district VARCHAR, incumbent VARCHAR)
SELECT thursday FROM table_name_51 WHERE wednesday = "星期三 xingqisen"
Which Thursday has a Wednesday of 星期三 xingqisen?
CREATE TABLE table_name_51 (thursday VARCHAR, wednesday VARCHAR)
SELECT release_date FROM table_name_22 WHERE dvd_title = "ben 10: alien force volume 9"
What is the release date for Ben 10: Alien Force Volume 9 on DVD?
CREATE TABLE table_name_22 (release_date VARCHAR, dvd_title VARCHAR)
SELECT MAX(number) FROM table_name_74 WHERE opponent = "julio césar vásquez"
What is the highest number of the match with julio césar vásquez as the opponent?
CREATE TABLE table_name_74 (number INTEGER, opponent VARCHAR)
SELECT 2001 FROM table_name_76 WHERE 1999 = "toyota 1nz-fxe hybrid prius"
Which car won the same award in 2001 that the toyota 1nz-fxe hybrid prius won in 1999?
CREATE TABLE table_name_76 (Id VARCHAR)
SELECT date FROM table_name_64 WHERE home_team = "collingwood"
What day did Collingwood play as the home team?
CREATE TABLE table_name_64 (date VARCHAR, home_team VARCHAR)
SELECT SUM(rank) FROM table_name_21 WHERE assists = 82
What is the sum of Rank, when Assists is "82"?
CREATE TABLE table_name_21 (rank INTEGER, assists VARCHAR)
SELECT depth FROM table_25675509_1 WHERE latitude = "08.979° S"
If the latitude is 08.979° s, what is the depth?
CREATE TABLE table_25675509_1 (depth VARCHAR, latitude VARCHAR)
SELECT salary FROM salary WHERE YEAR = 2001 ORDER BY salary DESC LIMIT 3
List the 3 highest salaries of the players in 2001?
CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR)
SELECT MAX(Champions) AS league FROM table_name_48 WHERE total = 6 AND position = "midfielder"
What is the most Champions League assists for those with a total of 6 and position of Midfielder?
CREATE TABLE table_name_48 (Champions INTEGER, total VARCHAR, position VARCHAR)
SELECT MAX(no) FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Benedicto Campos"
Name the most number for automóvil club argentino for benedicto campos
CREATE TABLE table_21977704_1 (no INTEGER, entrant VARCHAR, driver VARCHAR)
SELECT prime_mover FROM table_name_87 WHERE build_date = "1975"
What is the prime mover for a build date in 1975?
CREATE TABLE table_name_87 (prime_mover VARCHAR, build_date VARCHAR)
SELECT date__ddmmyyyy_ FROM table_name_74 WHERE soviet_unit = "73 giap" AND enemy_aircraft = "bf.109g-? w.nr.?"
What was the date of the victory when the Soviet Unit was 73 giap, and the Enemy Aircraft was bf.109g-? w.nr.?
CREATE TABLE table_name_74 (date__ddmmyyyy_ VARCHAR, soviet_unit VARCHAR, enemy_aircraft VARCHAR)
SELECT score FROM table_name_82 WHERE game = 2
What was the score for game 2?
CREATE TABLE table_name_82 (score VARCHAR, game VARCHAR)
SELECT SUM(teams) FROM table_name_48 WHERE season < 2008 AND k_league_classic = "runners-up" AND manager = "kim ho"
How many teams played before 2008, had a K League Classic of runners-up, and a Manager of kim ho?
CREATE TABLE table_name_48 (teams INTEGER, manager VARCHAR, season VARCHAR, k_league_classic VARCHAR)
SELECT MIN(pick) FROM table_name_83 WHERE school = "furman" AND round < 8
What is the lowest pick from the Furman School that is a round smaller than 8?
CREATE TABLE table_name_83 (pick INTEGER, school VARCHAR, round VARCHAR)
SELECT population FROM table_name_25 WHERE median_household_income = "$69,760"
What is the population for a county that has a median income of $69,760?
CREATE TABLE table_name_25 (population VARCHAR, median_household_income VARCHAR)
SELECT MAX(diff) FROM table_name_68 WHERE drawn = 6 AND played > 18
What is the highest diff with drawn of 6 and play larger than 18?
CREATE TABLE table_name_68 (diff INTEGER, drawn VARCHAR, played VARCHAR)
SELECT SUM(reg_gp) FROM table_name_17 WHERE player = "morgan clark" AND rd__number < 7
What is the sum of the number of regular games played by Morgan Clark with the number of road games less than 7?
CREATE TABLE table_name_17 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR)
SELECT MIN(year) FROM table_name_75 WHERE points = 4
what is the least year for 4 points?
CREATE TABLE table_name_75 (year INTEGER, points VARCHAR)
SELECT name FROM table_name_86 WHERE score > 22 AND song = "林俊杰 - 木乃伊"
Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?
CREATE TABLE table_name_86 (name VARCHAR, score VARCHAR, song VARCHAR)
SELECT result FROM table_27487712_1 WHERE district = "Georgia's 3rd"
What was the result of the election for georgia's 3rd district?
CREATE TABLE table_27487712_1 (result VARCHAR, district VARCHAR)
SELECT points_for FROM table_name_83 WHERE try_bonus = "1"
What is the points when the try bonus is 1?
CREATE TABLE table_name_83 (points_for VARCHAR, try_bonus VARCHAR)
SELECT AVG(to_par) FROM table_name_58 WHERE score = 70 - 71 = 141
What is the To par of the Player with a Score of 70-71=141?
CREATE TABLE table_name_58 (to_par INTEGER, score VARCHAR)
SELECT rank_by_average FROM table_name_34 WHERE number_of_dances = "1" AND season = "9"
What rank by average has 1 dance on season 9?
CREATE TABLE table_name_34 (rank_by_average VARCHAR, number_of_dances VARCHAR, season VARCHAR)
SELECT SUM(silver) FROM table_name_62 WHERE gold = 20
How many silver medals did the country that won 20 gold medals win in the 1955 Pan American Games?
CREATE TABLE table_name_62 (silver INTEGER, gold VARCHAR)
SELECT party FROM table_2668329_25 WHERE district = "Virginia 4"
What party won the Virginia 4 district?
CREATE TABLE table_2668329_25 (party VARCHAR, district VARCHAR)
SELECT segment_b FROM table_15187735_19 WHERE episode = 242
What is the segment B of episode 242?
CREATE TABLE table_15187735_19 (segment_b VARCHAR, episode VARCHAR)
SELECT years_for_grizzlies FROM table_name_19 WHERE school_club_team = "providence"
What year were the Grizzlies in Providence?
CREATE TABLE table_name_19 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT AVG(division) FROM table_name_36 WHERE reg_season = "1st, western" AND playoffs = "champions" AND year < 2013
Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013?
CREATE TABLE table_name_36 (division INTEGER, year VARCHAR, reg_season VARCHAR, playoffs VARCHAR)
SELECT AVG(barrow_island_australia) FROM table_name_94 WHERE draugen_north_sea = 17 AND mutineer_exeter_australia < 6
What is the average Barrow Island Australia when Draugen north sea is 17 and Mutineer-Exeter Australia is smaller than 6?
CREATE TABLE table_name_94 (barrow_island_australia INTEGER, draugen_north_sea VARCHAR, mutineer_exeter_australia VARCHAR)
SELECT AVG(attendance) FROM table_name_25 WHERE away = "vida"
What is the Attendance when Vida is the Away team?
CREATE TABLE table_name_25 (attendance INTEGER, away VARCHAR)
SELECT record FROM table_name_15 WHERE score = "9–6"
What record has a Score of 9–6?
CREATE TABLE table_name_15 (record VARCHAR, score VARCHAR)
SELECT COUNT(player) FROM table_14342367_13 WHERE hometown = "Sioux City, Iowa"
How many players are from Sioux City, Iowa?
CREATE TABLE table_14342367_13 (player VARCHAR, hometown VARCHAR)
SELECT round FROM table_name_19 WHERE position = "cornerback"
Which round has a position that is cornerback?
CREATE TABLE table_name_19 (round VARCHAR, position VARCHAR)
SELECT MIN(yards) FROM table_name_3 WHERE long = 34 AND avg < 12.6
Name the lowest yards for 34 long and avg less than 12.6
CREATE TABLE table_name_3 (yards INTEGER, long VARCHAR, avg VARCHAR)
SELECT SUM(district) FROM table_name_37 WHERE party = "democratic" AND home_town = "roby"
What district has a democratic leader from Roby?
CREATE TABLE table_name_37 (district INTEGER, party VARCHAR, home_town VARCHAR)
SELECT name FROM table_name_37 WHERE lane < 4 AND mark = "52.64"
what is the name when the lane is less than 4 and mark is 52.64?
CREATE TABLE table_name_37 (name VARCHAR, lane VARCHAR, mark VARCHAR)
SELECT candidates FROM table_2668254_8 WHERE district = "Kentucky 9"
Who were the candidates in the Kentucky 9 district?
CREATE TABLE table_2668254_8 (candidates VARCHAR, district VARCHAR)
SELECT won FROM table_12792876_3 WHERE points_for = "496"
What was the won when the points for was 496?
CREATE TABLE table_12792876_3 (won VARCHAR, points_for VARCHAR)
SELECT score FROM table_name_54 WHERE place = "t3" AND player = "seve ballesteros"
What score did Seve Ballesteros have when he was in T3 place?
CREATE TABLE table_name_54 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT outcome FROM table_18183850_12 WHERE opponent = "Magdaléna Rybáriková"
What was the outcome of the game when the opponent was Magdaléna Rybáriková?
CREATE TABLE table_18183850_12 (outcome VARCHAR, opponent VARCHAR)
SELECT winning_driver FROM table_name_78 WHERE name = "kraco car stereo 150"
Who was the winning driver of the Kraco Car Stereo 150?
CREATE TABLE table_name_78 (winning_driver VARCHAR, name VARCHAR)
SELECT home FROM table_name_93 WHERE competition = "uefa cup" AND season = "2000-2001" AND round = "second round"
What is the home team of the UEFA cup in the 2000-2001 season with a second round?
CREATE TABLE table_name_93 (home VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR)
SELECT conductor FROM table_name_34 WHERE production = "the three pintos (die drei pintos)"
Who was the Conductor of the Three Pintos (Die Drei Pintos) Production?
CREATE TABLE table_name_34 (conductor VARCHAR, production VARCHAR)
SELECT high_assists FROM table_name_3 WHERE game = 77
Who had the high assists in game 77?
CREATE TABLE table_name_3 (high_assists VARCHAR, game VARCHAR)
SELECT live___studio FROM table_name_98 WHERE year < 1983
Is it live or studio before 1983?
CREATE TABLE table_name_98 (live___studio VARCHAR, year INTEGER)
SELECT exited FROM table_name_26 WHERE celebrity = "alex best"
What day did Alex Best exit?
CREATE TABLE table_name_26 (exited VARCHAR, celebrity VARCHAR)
SELECT wins FROM table_1697190_1 WHERE tournaments_played = 14
Name the wins for tournaments played being 14
CREATE TABLE table_1697190_1 (wins VARCHAR, tournaments_played VARCHAR)
SELECT date FROM table_name_65 WHERE home_team = "north melbourne"
What was the date of the game where North Melbourne was the home team?
CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR)
SELECT others_percentage FROM table_2401326_1 WHERE others_number = 462
What percentage of the votes were for others in the county where 462 people voted that way?
CREATE TABLE table_2401326_1 (others_percentage VARCHAR, others_number VARCHAR)
SELECT rank FROM table_name_39 WHERE notes = "cancelled" AND name = "daewoo business center"
What's the rank for Daewoo Business Center when the notes are cancelled?
CREATE TABLE table_name_39 (rank VARCHAR, notes VARCHAR, name VARCHAR)
SELECT MIN(owned_since) FROM table_22329326_1
What was the earliest year a station was owned since?
CREATE TABLE table_22329326_1 (owned_since INTEGER)
SELECT rounds FROM table_name_7 WHERE sponsor_s_ = "arciero wines" AND chassis = "march 85c"
Which rounds do Arciero Wines sponsor a March 85c chassis?
CREATE TABLE table_name_7 (rounds VARCHAR, sponsor_s_ VARCHAR, chassis VARCHAR)
SELECT winner FROM table_name_97 WHERE general_classification = "pavel tonkov" AND stage = "7"
Who was the winner in stage 7 with a general classification of Pavel Tonkov?
CREATE TABLE table_name_97 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_76 WHERE constituency_number = "132"
What is the reserved for value for constituency number 132?
CREATE TABLE table_name_76 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT _kah__atau_tidak_ FROM table_name_98 WHERE "basikal" = "basikal" AND language_dialect = "malay language (informal)"
what is -kah (atau tidak when basikal is basikal and language dialect is malay language (informal)?
CREATE TABLE table_name_98 (_kah__atau_tidak_ VARCHAR, language_dialect VARCHAR)
SELECT MAX(round) FROM table_name_77 WHERE pick__number = 9 AND position = "defensive back" AND overall < 468
What is the highest round with a pick# of 9, overll less than 468, and position of defensive back?
CREATE TABLE table_name_77 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR)
SELECT COUNT(preliminaries) FROM table_12338595_1 WHERE interview = "8.488"
What is the preliminary score associated with the interview score of 8.488?
CREATE TABLE table_12338595_1 (preliminaries VARCHAR, interview VARCHAR)
SELECT round FROM table_name_67 WHERE date = "7 january 2003"
What round was on 7 January 2003?
CREATE TABLE table_name_67 (round VARCHAR, date VARCHAR)
SELECT actual_order_id FROM actual_orders WHERE order_status_code = 'Success'
Find the ids of orders whose status is 'Success'.
CREATE TABLE actual_orders (actual_order_id VARCHAR, order_status_code VARCHAR)
SELECT AVG(last_yr) FROM table_name_98 WHERE l_plyf < 0
What is the average last yr with an l plyf less than 0?
CREATE TABLE table_name_98 (last_yr INTEGER, l_plyf INTEGER)
SELECT titles FROM table_24924576_2 WHERE result = "TKO 11/12"
Name the titles for tko 11/12
CREATE TABLE table_24924576_2 (titles VARCHAR, result VARCHAR)
SELECT result FROM table_name_2 WHERE opponent = "houston texans"
Opponent of houston texans had what result?
CREATE TABLE table_name_2 (result VARCHAR, opponent VARCHAR)
SELECT touchdowns FROM table_25711913_2 WHERE points = 25
How many touchdowns did the player took which gained 25 points?
CREATE TABLE table_25711913_2 (touchdowns VARCHAR, points VARCHAR)
SELECT model FROM table_name_75 WHERE sail_area = "24.5 m²"
Which Model has a Sail Area of 24.5 m²?
CREATE TABLE table_name_75 (model VARCHAR, sail_area VARCHAR)
SELECT season FROM table_name_6 WHERE country = "china" AND team = "dalian shide" AND apps > 8 AND goals = 2
What is Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2?
CREATE TABLE table_name_6 (season VARCHAR, goals VARCHAR, apps VARCHAR, country VARCHAR, team VARCHAR)
SELECT date FROM table_name_50 WHERE site = "michigan stadium • ann arbor, mi"
What date was the Site michigan stadium • ann arbor, mi?
CREATE TABLE table_name_50 (date VARCHAR, site VARCHAR)
SELECT MAX(year) FROM table_name_14 WHERE engine = "maserati straight-6" AND entrant = "h h gould"
For engines of Maserati Straight-6 and entrants of H H Gould, what is the latest year?
CREATE TABLE table_name_14 (year INTEGER, engine VARCHAR, entrant VARCHAR)
SELECT SUM(attendance) FROM table_name_50 WHERE date = "april 17"
How many attended the game on April 17?
CREATE TABLE table_name_50 (attendance INTEGER, date VARCHAR)
SELECT SUM(avg) FROM table_name_70 WHERE long = 32
What is the sum of averages with a long value of 32?
CREATE TABLE table_name_70 (avg INTEGER, long VARCHAR)
SELECT opponent FROM table_name_87 WHERE event = "rumble of the kings 6"
Who did he fight in Rumble of the Kings 6?
CREATE TABLE table_name_87 (opponent VARCHAR, event VARCHAR)
SELECT date FROM table_name_95 WHERE road_team = "portland" AND game = "game 2"
On what date was Portland on the road for Game 2?
CREATE TABLE table_name_95 (date VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT date FROM table_name_53 WHERE arena = "joe louis arena"
What date has joe louis arena as the arena?
CREATE TABLE table_name_53 (date VARCHAR, arena VARCHAR)
SELECT COUNT(week) FROM table_name_57 WHERE date = "september 17, 2000"
How many weeks did a game happen on September 17, 2000?
CREATE TABLE table_name_57 (week VARCHAR, date VARCHAR)
SELECT SUM(silver) FROM table_name_34 WHERE nation = "liechtenstein" AND bronze > 4
Tell me the sum of silver for liechtenstein and bronze more than 4
CREATE TABLE table_name_34 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT vacator FROM table_225100_4 WHERE district = "South Carolina 4th"
Who is the vacator when south carolina 4th is the district?
CREATE TABLE table_225100_4 (vacator VARCHAR, district VARCHAR)
SELECT league_cup_goals FROM table_name_29 WHERE total > 15 AND fa_cup_goals = 3 AND club = "chesterfield"
How many League Cup goals correspond to 3 FA Cup Goals and a total over 15 for Chesterfield?
CREATE TABLE table_name_29 (league_cup_goals VARCHAR, club VARCHAR, total VARCHAR, fa_cup_goals VARCHAR)
SELECT record FROM table_name_25 WHERE game_site = "riverfront stadium"
What was their record when they played at Riverfront Stadium?
CREATE TABLE table_name_25 (record VARCHAR, game_site VARCHAR)
SELECT outcome FROM table_name_22 WHERE score = "6–1, 6–1"
What is the Outcome of the match with a Score of 6–1, 6–1?
CREATE TABLE table_name_22 (outcome VARCHAR, score VARCHAR)
SELECT SUM(international_mail) FROM table_name_35 WHERE change = "+35,7%" AND year > 2008
How much international mail has a change of +35,7% later than 2008?
CREATE TABLE table_name_35 (international_mail INTEGER, change VARCHAR, year VARCHAR)
SELECT SUM(attendance) FROM table_name_59 WHERE date = "october 16" AND game > 5
what is the attendance on the date of october 16 and the game is more than 5?
CREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR, game VARCHAR)
SELECT MAX(event) FROM table_30060356_3
What is the highest numbered event?
CREATE TABLE table_30060356_3 (event INTEGER)
SELECT resolution FROM table_27653752_1 WHERE pixels_per_degree__ppd_ = 69
What's the resolution of the model with a PPD of 69?
CREATE TABLE table_27653752_1 (resolution VARCHAR, pixels_per_degree__ppd_ VARCHAR)
SELECT year FROM table_name_5 WHERE tournament = "world half marathon championships" AND result = "3rd"
What was the year of the World Half Marathon Championships with a result of 3rd?
CREATE TABLE table_name_5 (year VARCHAR, tournament VARCHAR, result VARCHAR)
SELECT name FROM table_name_17 WHERE type = "learning/social difficulties"
Which name is the learning/social difficulties type?
CREATE TABLE table_name_17 (name VARCHAR, type VARCHAR)
SELECT city FROM table_20996923_20 WHERE television = "NFL Network"
What is the city when the Television network was the NFL Network?
CREATE TABLE table_20996923_20 (city VARCHAR, television VARCHAR)
SELECT label FROM table_name_24 WHERE year > 2004
What label is after 2004?
CREATE TABLE table_name_24 (label VARCHAR, year INTEGER)
SELECT census_ranking FROM table_name_79 WHERE area_km_2 > 243.31
What is the census ranking for the parish with an area larger than 243.31 square km?
CREATE TABLE table_name_79 (census_ranking VARCHAR, area_km_2 INTEGER)
SELECT COUNT(capacity) FROM table_name_27 WHERE venue = "yunost"
What is the capacity number for Yunost?
CREATE TABLE table_name_27 (capacity VARCHAR, venue VARCHAR)
SELECT original_title FROM table_name_85 WHERE director = "luis buñuel"
Name the original title directed by luis buñuel
CREATE TABLE table_name_85 (original_title VARCHAR, director VARCHAR)
SELECT MIN(total_kurdistan_list) FROM table_24440361_1
Name the least total kurdistan list
CREATE TABLE table_24440361_1 (total_kurdistan_list INTEGER)
SELECT coach FROM table_2140071_8 WHERE episode = 15
Who was the coach for episode 15?
CREATE TABLE table_2140071_8 (coach VARCHAR, episode VARCHAR)
SELECT height_m___ft__ FROM table_name_44 WHERE city_of_license = "malone, ny"
Name the heightfor city of license of malone, ny
CREATE TABLE table_name_44 (height_m___ft__ VARCHAR, city_of_license VARCHAR)
SELECT away FROM table_name_89 WHERE date = "14 september 2008" AND attendance > 1881
Which Away has a Date of 14 september 2008, and an Attendance larger than 1881?
CREATE TABLE table_name_89 (away VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT open_cup FROM table_1214035_1 WHERE year = 2002
What open cups where played in 2002
CREATE TABLE table_1214035_1 (open_cup VARCHAR, year VARCHAR)
SELECT AVG(drawn) FROM table_name_95 WHERE lost < 4 AND points < 21
What is the average number of losses for teams with under 4 losses and under 21 points?
CREATE TABLE table_name_95 (drawn INTEGER, lost VARCHAR, points VARCHAR)
SELECT away_team FROM table_name_7 WHERE home_team = "south melbourne"
Who was the away team when the home team was South Melbourne?
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)