question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Who was the runner-up (a) if K. P. Ramalingam won the election?
CREATE TABLE table_22752982_5 (runner_up_a VARCHAR, winner VARCHAR)
SELECT runner_up_a FROM table_22752982_5 WHERE winner = "K. P. Ramalingam"
Which Against has Losses larger than 2, and Wins of 8, and Byes smaller than 0?
CREATE TABLE table_name_65 (against INTEGER, byes VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT SUM(against) FROM table_name_65 WHERE losses > 2 AND wins = 8 AND byes < 0
What was the grid for Bruno Junqueira for Dale Coyne Racing?
CREATE TABLE table_name_45 (grid VARCHAR, team VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_45 WHERE team = "dale coyne racing" AND driver = "bruno junqueira"
What is Opponents In The Final, when Score is 4-1 5-4 (7) 4-2?
CREATE TABLE table_name_84 (opponents_in_the_final VARCHAR, score VARCHAR)
SELECT opponents_in_the_final FROM table_name_84 WHERE score = "4-1 5-4 (7) 4-2"
What is the sum of the poles of Team la filière, which has less than 162 points?
CREATE TABLE table_name_13 (poles INTEGER, team VARCHAR, points VARCHAR)
SELECT SUM(poles) FROM table_name_13 WHERE team = "la filière" AND points < 162
On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s?
CREATE TABLE table_name_69 (date VARCHAR, score1 VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_69 WHERE score1 = "2 - 4" AND opponent = "chelsea under 18s"
What school did the forward whose number is 10 belong to?
CREATE TABLE table_11734041_2 (school_club_team_country VARCHAR, no_s_ VARCHAR, position VARCHAR)
SELECT school_club_team_country FROM table_11734041_2 WHERE no_s_ = "10" AND position = "Forward"
Who was the winner after 2011?
CREATE TABLE table_name_81 (winner VARCHAR, year INTEGER)
SELECT winner FROM table_name_81 WHERE year > 2011
Which vehicle has a class 6c3g?
CREATE TABLE table_name_20 (vehicle VARCHAR, class VARCHAR)
SELECT vehicle FROM table_name_20 WHERE class = "6c3g"
Which Record is dated Dec 10?
CREATE TABLE table_name_49 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_49 WHERE date = "dec 10"
What is the death date of elisabeth of lorraine?
CREATE TABLE table_name_82 (death VARCHAR, image VARCHAR)
SELECT death FROM table_name_82 WHERE image = "elisabeth of lorraine"
What game was developed by Nintendo for the Gamecube platform?
CREATE TABLE table_name_92 (game VARCHAR, developer_s_ VARCHAR, platform_s_ VARCHAR)
SELECT game FROM table_name_92 WHERE developer_s_ = "nintendo" AND platform_s_ = "gamecube"
what average grid has laps larger than 52 and contains the driver of andrea de adamich?
CREATE TABLE table_name_36 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT AVG(grid) FROM table_name_36 WHERE laps > 52 AND driver = "andrea de adamich"
What is the number of 2011 populations having a 2002 population of 29449?
CREATE TABLE table_2562572_2 (population__2011_ VARCHAR, population__2002_ VARCHAR)
SELECT COUNT(population__2011_) FROM table_2562572_2 WHERE population__2002_ = 29449
Who was the Tournament Winner when UNC Wilmington won the regular season?
CREATE TABLE table_24248450_3 (tournament_winner VARCHAR, regular_season_winner VARCHAR)
SELECT tournament_winner FROM table_24248450_3 WHERE regular_season_winner = "UNC Wilmington"
What was the result of the December 15, 2002 game?
CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_66 WHERE date = "december 15, 2002"
What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02?
CREATE TABLE table_name_25 (area__km²_ INTEGER, capital VARCHAR, population___percentage_ VARCHAR)
SELECT AVG(area__km²_) FROM table_name_25 WHERE capital = "camagüey" AND population___percentage_ > 7.02
What train number is heading to amritsar?
CREATE TABLE table_12095519_1 (train_no VARCHAR, destination VARCHAR)
SELECT train_no FROM table_12095519_1 WHERE destination = "Amritsar"
What is the amount of match points for a club that lost 18 and has 11 bonus points?
CREATE TABLE table_name_6 (match_points VARCHAR, lost VARCHAR, bonus_points VARCHAR)
SELECT match_points FROM table_name_6 WHERE lost = "18" AND bonus_points = "11"
What is the date of the game when the venue is MCG?
CREATE TABLE table_name_31 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_31 WHERE venue = "mcg"
When was there an attendance of 51,342?
CREATE TABLE table_name_6 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_6 WHERE attendance = "51,342"
Name the best when runs of 1088 and matches more than 11
CREATE TABLE table_name_4 (best VARCHAR, matches VARCHAR, runs VARCHAR)
SELECT best FROM table_name_4 WHERE matches > 11 AND runs = 1088
On what Surface was the match with a Score of 3-6, 1-6 played?
CREATE TABLE table_name_99 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_99 WHERE score = "3-6, 1-6"
Find the name of the storm that affected both Afghanistan and Albania regions.
CREATE TABLE storm (Name VARCHAR, storm_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE region (region_id VARCHAR, Region_name VARCHAR)
SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.Region_name = 'Afghanistan' INTERSECT SELECT T3.Name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id...
What are the distinct payment method codes in all the invoices?
CREATE TABLE INVOICES (payment_method_code VARCHAR)
SELECT DISTINCT payment_method_code FROM INVOICES
What player has a score larger than 67?
CREATE TABLE table_name_94 (player VARCHAR, score INTEGER)
SELECT player FROM table_name_94 WHERE score > 67
What types of ships were made at the Froemming Brothers ship yard?
CREATE TABLE table_name_32 (ship_types_delivered VARCHAR, yard_name VARCHAR)
SELECT ship_types_delivered FROM table_name_32 WHERE yard_name = "froemming brothers"
What is the release price for the GPU frequency of standard power, embedded?
CREATE TABLE table_name_96 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR)
SELECT release_price___usd__ FROM table_name_96 WHERE gpu_frequency = "standard power, embedded"
What seasons had 288 games and more than 100 goals?
CREATE TABLE table_name_88 (seasons VARCHAR, goals VARCHAR, games VARCHAR)
SELECT seasons FROM table_name_88 WHERE goals > 100 AND games = 288
Who was the leading actress in a film with Warren Beatty as the leading actor and also at the 40th Oscars?
CREATE TABLE table_24225238_1 (leading_actress VARCHAR, leading_actor VARCHAR, oscars VARCHAR)
SELECT leading_actress FROM table_24225238_1 WHERE leading_actor = "Warren Beatty" AND oscars = "40th"
Score of 122–105 had what record?
CREATE TABLE table_name_68 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_68 WHERE score = "122–105"
What is the country that the player with a score of 70-69=139 from?
CREATE TABLE table_name_43 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_43 WHERE score = 70 - 69 = 139
What is every strike rate when cathces/stumpings is 13/1?
CREATE TABLE table_2985664_8 (strike_rate VARCHAR, catches_stumpings VARCHAR)
SELECT strike_rate FROM table_2985664_8 WHERE catches_stumpings = "13/1"
What was the score for the game in which Emeka Okafor (10) had high rebounds?
CREATE TABLE table_11907963_6 (score VARCHAR, high_rebounds VARCHAR)
SELECT score FROM table_11907963_6 WHERE high_rebounds = "Emeka Okafor (10)"
In what Year was the 32nd Ceremony with winner William A. Horning in the Film North by Northwest?
CREATE TABLE table_name_87 (year VARCHAR, film VARCHAR, ceremony VARCHAR, name VARCHAR)
SELECT year FROM table_name_87 WHERE ceremony = "32nd" AND name = "william a. horning" AND film = "north by northwest"
What was the score of the game when the Indians ended up with a record of 55-51?
CREATE TABLE table_name_33 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_33 WHERE record = "55-51"
Which location has the ecosystem of kelp forest?
CREATE TABLE table_15635768_1 (place_of_issue VARCHAR, ecosystem VARCHAR)
SELECT place_of_issue FROM table_15635768_1 WHERE ecosystem = "Kelp Forest"
If new points is 1720, what is the status?
CREATE TABLE table_23501776_18 (status VARCHAR, new_points VARCHAR)
SELECT status FROM table_23501776_18 WHERE new_points = 1720
What is the venue with a competition in 1964?
CREATE TABLE table_name_15 (venue VARCHAR, year VARCHAR)
SELECT venue FROM table_name_15 WHERE year = 1964
What is the result at the Masters for the player who finished R16 at the PGA Ch.?
CREATE TABLE table_1506950_9 (masters VARCHAR, pga_ch VARCHAR)
SELECT masters FROM table_1506950_9 WHERE pga_ch = "R16"
What date was the district incumbent Saxby Chambliss elected?
CREATE TABLE table_26336739_1 (elected INTEGER, incumbent VARCHAR)
SELECT MAX(elected) FROM table_26336739_1 WHERE incumbent = "Saxby Chambliss"
What is the average Total for the United States with a To par more than 6 and 1996 was won?
CREATE TABLE table_name_96 (total INTEGER, year_s__won VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT AVG(total) FROM table_name_96 WHERE country = "united states" AND to_par > 6 AND year_s__won = "1996"
Name the final position for copa libertadores
CREATE TABLE table_23819979_3 (final_position VARCHAR, competition VARCHAR)
SELECT final_position FROM table_23819979_3 WHERE competition = "Copa Libertadores"
What is the production code for episode #78?
CREATE TABLE table_2623498_5 (prod_code VARCHAR, episode__number VARCHAR)
SELECT prod_code FROM table_2623498_5 WHERE episode__number = "78"
What is the country with area of 3,170 in m²?
CREATE TABLE table_name_17 (country VARCHAR, area_in_m² VARCHAR)
SELECT country FROM table_name_17 WHERE area_in_m² = "3,170"
What is the total number of ties a team with less than 3 losses have?
CREATE TABLE table_name_98 (ties VARCHAR, losses INTEGER)
SELECT COUNT(ties) FROM table_name_98 WHERE losses < 3
Who remixed a music video in 1985?
CREATE TABLE table_name_22 (remixed_by VARCHAR, year VARCHAR, version VARCHAR)
SELECT remixed_by FROM table_name_22 WHERE year = 1985 AND version = "music video"
what is the name when the nation is France, the pts/game is more than 3 and points is less than 33?
CREATE TABLE table_name_55 (name VARCHAR, points VARCHAR, nation VARCHAR, pts_game VARCHAR)
SELECT name FROM table_name_55 WHERE nation = "france" AND pts_game > 3 AND points < 33
How many years of kindergarten is provided in Ticino?
CREATE TABLE table_1831309_1 (years_of_kindergarten VARCHAR, canton VARCHAR)
SELECT years_of_kindergarten AS provided FROM table_1831309_1 WHERE canton = "Ticino"
Name the finished for kerry katona
CREATE TABLE table_14345690_4 (finished VARCHAR, celebrity VARCHAR)
SELECT COUNT(finished) FROM table_14345690_4 WHERE celebrity = "Kerry Katona"
What is Name, when Location is Tanzania, and when Novelty is Gen Nov?
CREATE TABLE table_name_88 (name VARCHAR, location VARCHAR, novelty VARCHAR)
SELECT name FROM table_name_88 WHERE location = "tanzania" AND novelty = "gen nov"
What is the total number of Laps that's got a Year less than 1987?
CREATE TABLE table_name_16 (laps INTEGER, year INTEGER)
SELECT SUM(laps) FROM table_name_16 WHERE year < 1987
What is the highest Week for october 12, 2008?
CREATE TABLE table_name_67 (week INTEGER, date VARCHAR)
SELECT MAX(week) FROM table_name_67 WHERE date = "october 12, 2008"
What proto-oceanic has louse as the animal?
CREATE TABLE table_name_86 (proto_oceanic VARCHAR, animal VARCHAR)
SELECT proto_oceanic FROM table_name_86 WHERE animal = "louse"
When dizzee rascal is 5th, who was the winner?
CREATE TABLE table_17111812_1 (winner VARCHAR, fifth VARCHAR)
SELECT winner FROM table_17111812_1 WHERE fifth = "Dizzee Rascal"
What is the total round for a wide receiver with an overall of more than 145?
CREATE TABLE table_name_4 (round VARCHAR, position VARCHAR, overall VARCHAR)
SELECT COUNT(round) FROM table_name_4 WHERE position = "wide receiver" AND overall > 145
name all the winnings that the start appears to be 7
CREATE TABLE table_1671401_3 (winnings VARCHAR, starts VARCHAR)
SELECT winnings FROM table_1671401_3 WHERE starts = 7
List the # for ships commissioned on september 30, 1967.
CREATE TABLE table_1014206_2 (_number VARCHAR, commissioned VARCHAR)
SELECT _number FROM table_1014206_2 WHERE commissioned = "September 30, 1967"
What is the lowest Total for rank 3 with more than 4 gold?
CREATE TABLE table_name_13 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT MIN(total) FROM table_name_13 WHERE rank = "3" AND gold > 4
What week number did November 19, 1989 games fall on?
CREATE TABLE table_name_14 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_14 WHERE date = "november 19, 1989"
What's the Slovene word for Thursday?
CREATE TABLE table_1277350_5 (thursday_fourth_day VARCHAR, day__see_irregularities__ VARCHAR)
SELECT thursday_fourth_day FROM table_1277350_5 WHERE day__see_irregularities__ = "Slovene"
Which UK base has 441st tcg Troop carrier group and 14 as their seir serial?
CREATE TABLE table_name_9 (uk_base VARCHAR, troop_carrier_group VARCHAR, serial VARCHAR)
SELECT uk_base FROM table_name_9 WHERE troop_carrier_group = "441st tcg" AND serial = "14"
How many votes were cast when the notes reported lost to incumbent vic gilliam?
CREATE TABLE table_name_51 (votes VARCHAR, notes VARCHAR)
SELECT votes FROM table_name_51 WHERE notes = "lost to incumbent vic gilliam"
How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT COUNT(1969) FROM table_name_18 WHERE 1967 < 0.73 AND 1964 > 0.07
Province of leinster, and a County of fingal has which irish name?
CREATE TABLE table_name_65 (irish_name VARCHAR, province VARCHAR, county VARCHAR)
SELECT irish_name FROM table_name_65 WHERE province = "leinster" AND county = "fingal"
How many laps for a Time/Retired of tyre, and a Grid larger than 10?
CREATE TABLE table_name_66 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_66 WHERE time_retired = "tyre" AND grid > 10
What is the College of the Player from PBA Team Alaska Milkmen with a Pick number of 3 or less?
CREATE TABLE table_name_65 (college VARCHAR, pick VARCHAR, pba_team VARCHAR)
SELECT college FROM table_name_65 WHERE pick < 3 AND pba_team = "alaska milkmen"
How many opponents were there for the game recorded as 6-4 in the Atlanta Falcons 1978 season?
CREATE TABLE table_16710971_2 (opponents VARCHAR, record VARCHAR)
SELECT COUNT(opponents) FROM table_16710971_2 WHERE record = "6-4"
when was the site partially deleted when the cerclis id is az7570028582?
CREATE TABLE table_name_67 (partially_deleted VARCHAR, cerclis_id VARCHAR)
SELECT partially_deleted FROM table_name_67 WHERE cerclis_id = "az7570028582"
what is the tournament when in 2012 the performance was 2r?
CREATE TABLE table_name_38 (tournament VARCHAR)
SELECT tournament FROM table_name_38 WHERE 2012 = "2r"
Name the total number of original titles written by john sullivan and keith lindsay
CREATE TABLE table_17641206_6 (original_title VARCHAR, written_by VARCHAR)
SELECT COUNT(original_title) FROM table_17641206_6 WHERE written_by = "John Sullivan and Keith Lindsay"
Where the audience share is 8%, what is the original airing?
CREATE TABLE table_name_60 (original_airing VARCHAR, audience_share__average_ VARCHAR)
SELECT original_airing FROM table_name_60 WHERE audience_share__average_ = "8%"
What is the average total medals of the nation ranked 1 with less than 1 silver?
CREATE TABLE table_name_62 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_62 WHERE rank = "1" AND silver < 1
What is the total number of gold medals Egypt, who has less than 0 silver, has?
CREATE TABLE table_name_49 (gold VARCHAR, nation VARCHAR, silver VARCHAR)
SELECT COUNT(gold) FROM table_name_49 WHERE nation = "egypt" AND silver < 0
how many match points rotherham lose
CREATE TABLE table_27987767_2 (match_points VARCHAR, losers VARCHAR)
SELECT match_points FROM table_27987767_2 WHERE losers = "Rotherham"
What are the different ages of editors? Show each age along with the number of editors of that age.
CREATE TABLE editor (Age VARCHAR)
SELECT Age, COUNT(*) FROM editor GROUP BY Age
What is Hungary's time with a heat higher than 2 and two lanes?
CREATE TABLE table_name_45 (time VARCHAR, lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT time FROM table_name_45 WHERE heat > 2 AND nationality = "hungary" AND lane = 2
What's the total long for more than 24 loss, a gain over 273, and an avg/g of 207.8?
CREATE TABLE table_name_19 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)
SELECT SUM(long) FROM table_name_19 WHERE loss > 24 AND gain > 273 AND avg_g = 207.8
What is scored with the position of 6?
CREATE TABLE table_18703133_6 (scored INTEGER, position VARCHAR)
SELECT MIN(scored) FROM table_18703133_6 WHERE position = 6
What was the To par when the Score was 67-68=135?
CREATE TABLE table_name_68 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_68 WHERE score = 67 - 68 = 135
Which school has the Raiders as their mascot?
CREATE TABLE table_11044765_1 (school VARCHAR, mascot VARCHAR)
SELECT school FROM table_11044765_1 WHERE mascot = "Raiders"
What week was the final score 6–26?
CREATE TABLE table_name_99 (week VARCHAR, final_score VARCHAR)
SELECT week FROM table_name_99 WHERE final_score = "6–26"
What party is associated with Texas 2?
CREATE TABLE table_1342218_43 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1342218_43 WHERE district = "Texas 2"
What was the percentage increase in spending on international tourism from 2011 to 2012 of the country that spent $85.9 billion in 2011?
CREATE TABLE table_29789_3 (_percentage_change VARCHAR, international_tourism_expenditure_2011 VARCHAR)
SELECT _percentage_change FROM table_29789_3 WHERE international_tourism_expenditure_2011 = "$85.9 billion"
List the number of long range shors where the score is 171.
CREATE TABLE table_24906653_5 (field_goals VARCHAR, points VARCHAR)
SELECT COUNT(field_goals) FROM table_24906653_5 WHERE points = 171
Name the number of teams for 11th position september 10
CREATE TABLE table_25361570_2 (team VARCHAR, position_in_table VARCHAR, date_of_appointment VARCHAR)
SELECT COUNT(team) FROM table_25361570_2 WHERE position_in_table = "11th" AND date_of_appointment = "September 10"
Who is the opponent in game 7?
CREATE TABLE table_name_21 (opponent VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_21 WHERE game = 7
Which Series has an Opponent of @ new york rangers, and a Date of april 22?
CREATE TABLE table_name_70 (series VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT series FROM table_name_70 WHERE opponent = "@ new york rangers" AND date = "april 22"
Which player played 2004-05
CREATE TABLE table_11545282_18 (player VARCHAR, years_for_jazz VARCHAR)
SELECT player FROM table_11545282_18 WHERE years_for_jazz = "2004-05"
What is the highest geohash length when there is a ng error of ±0.00017, and a lng bits smaller than 20?
CREATE TABLE table_name_31 (geohash_length INTEGER, lng_error VARCHAR, lng_bits VARCHAR)
SELECT MAX(geohash_length) FROM table_name_31 WHERE lng_error = "±0.00017" AND lng_bits < 20
Who is every play-by-play announcer when Chris Rose is the trophy presenter?
CREATE TABLE table_2941848_2 (play_by_play_announcer VARCHAR, trophy_presentation VARCHAR)
SELECT play_by_play_announcer FROM table_2941848_2 WHERE trophy_presentation = "Chris Rose"
Which opponent has a record of 3–1?
CREATE TABLE table_name_94 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_94 WHERE record = "3–1"
Which 2003 has a 2012 of 1–4?
CREATE TABLE table_name_24 (Id VARCHAR)
SELECT 2003 FROM table_name_24 WHERE 2012 = "1–4"
Tony P. Hall was the incumbent in the race between what two candidates?
CREATE TABLE table_1341453_37 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341453_37 WHERE incumbent = "Tony P. Hall"
How many goals were achieved when Chievo was the club and the debut year was before 2002?
CREATE TABLE table_name_71 (goals VARCHAR, current_club VARCHAR, debut_year VARCHAR)
SELECT COUNT(goals) FROM table_name_71 WHERE current_club = "chievo" AND debut_year < 2002
Name the total number for report july 23
CREATE TABLE table_2267857_1 (report VARCHAR, date VARCHAR)
SELECT COUNT(report) FROM table_2267857_1 WHERE date = "July 23"
How many different kinds of clients are supported by the web clients accelerators?
CREATE TABLE web_client_accelerator (client VARCHAR)
SELECT COUNT(DISTINCT client) FROM web_client_accelerator
What clubs recorded 748 points to the good?
CREATE TABLE table_1676073_12 (club VARCHAR, points_for VARCHAR)
SELECT club FROM table_1676073_12 WHERE points_for = "748"
for the rank more than 1 and nationality of netherlands, what is the lane?
CREATE TABLE table_name_30 (lane INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT AVG(lane) FROM table_name_30 WHERE nationality = "netherlands" AND rank > 1
What date has a Data of 19:29?
CREATE TABLE table_name_39 (date VARCHAR, data VARCHAR)
SELECT date FROM table_name_39 WHERE data = "19:29"