question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the class of the locomotive with an Eastleigh Works manufacturer, made in 1914, and withdrawn in 1959?
CREATE TABLE table_name_72 (class VARCHAR, year_s__withdrawn VARCHAR, manufacturer VARCHAR, year_made VARCHAR)
SELECT class FROM table_name_72 WHERE manufacturer = "eastleigh works" AND year_made = "1914" AND year_s__withdrawn = "1959"
What was the date of the Mariners game that had a score of 1-12?
CREATE TABLE table_name_96 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_96 WHERE score = "1-12"
The match against Oleg Taktarov had what result?
CREATE TABLE table_name_19 (res VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_19 WHERE opponent = "oleg taktarov"
What is the largest Decile with Years of 1–8, anAuthority of state, and a Roll of 141?
CREATE TABLE table_name_46 (decile INTEGER, roll VARCHAR, years VARCHAR, authority VARCHAR)
SELECT MAX(decile) FROM table_name_46 WHERE years = "1–8" AND authority = "state" AND roll = 141
Which player played for the Rockets in 2002-03?
CREATE TABLE table_name_41 (player VARCHAR, years_for_rockets VARCHAR)
SELECT player FROM table_name_41 WHERE years_for_rockets = "2002-03"
What is the song for Dixie Chicks?
CREATE TABLE table_23981771_1 (song_title VARCHAR, artist VARCHAR)
SELECT song_title FROM table_23981771_1 WHERE artist = "Dixie Chicks"
What is the name of the player that had a debut in round 6?
CREATE TABLE table_name_96 (name VARCHAR, debut VARCHAR)
SELECT name FROM table_name_96 WHERE debut = "round 6"
What are the number of losses that have Ties of 1 and 3 or more poll wins?
CREATE TABLE table_name_49 (losses VARCHAR, ties VARCHAR, poll_wins VARCHAR)
SELECT COUNT(losses) FROM table_name_49 WHERE ties = 1 AND poll_wins > 3
What was his average finish when his average start was 27.7?
CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR)
SELECT avg_finish FROM table_2169966_2 WHERE avg_start = "27.7"
How many times is the title am/pm callanetics?
CREATE TABLE table_27303975_3 (studio VARCHAR, title VARCHAR)
SELECT COUNT(studio) FROM table_27303975_3 WHERE title = "AM/PM Callanetics"
What was the Record on September 21?
CREATE TABLE table_name_78 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_78 WHERE date = "september 21"
Where was the fight that lasted 5:00 when Yundt's record was 8-4?
CREATE TABLE table_name_39 (location VARCHAR, time VARCHAR, record VARCHAR)
SELECT location FROM table_name_39 WHERE time = "5:00" AND record = "8-4"
How many divisions have been won when the playoff result is conference quarterfinals.
CREATE TABLE table_1427998_1 (division VARCHAR, playoffs VARCHAR)
SELECT COUNT(division) FROM table_1427998_1 WHERE playoffs = "Conference Quarterfinals"
Which Tournament has Opponents in the final of maria lindström maria strandlund?
CREATE TABLE table_name_17 (tournament VARCHAR, opponents_in_the_final VARCHAR)
SELECT tournament FROM table_name_17 WHERE opponents_in_the_final = "maria lindström maria strandlund"
What Sprints classification has the Points classification, Mark Cavendish and Team classification, Caisse D'epargne?
CREATE TABLE table_name_18 (sprints_classification VARCHAR, points_classification VARCHAR, team_classification VARCHAR)
SELECT sprints_classification FROM table_name_18 WHERE points_classification = "mark cavendish" AND team_classification = "caisse d'epargne"
What was the score of the game on November 12?
CREATE TABLE table_10812293_3 (score VARCHAR, date VARCHAR)
SELECT score FROM table_10812293_3 WHERE date = "November 12"
Tell me the region for georgia
CREATE TABLE table_name_8 (region VARCHAR, state VARCHAR)
SELECT region FROM table_name_8 WHERE state = "georgia"
What is the original air date for the season# 2?
CREATE TABLE table_29391888_1 (original_air_date VARCHAR, season__number VARCHAR)
SELECT original_air_date FROM table_29391888_1 WHERE season__number = 2
What is the average Goals, when Club is Iserlohn Roosters, and when Games is less than 56?
CREATE TABLE table_name_45 (goals INTEGER, club VARCHAR, games VARCHAR)
SELECT AVG(goals) FROM table_name_45 WHERE club = "iserlohn roosters" AND games < 56
What is the total number of bronze medals the U.S. Virgin Islands, which has less than 0 golds, has?
CREATE TABLE table_name_45 (bronze VARCHAR, nation VARCHAR, gold VARCHAR)
SELECT COUNT(bronze) FROM table_name_45 WHERE nation = "u.s. virgin islands" AND gold < 0
Which Incumbent has a District of massachusetts 8?
CREATE TABLE table_name_47 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_name_47 WHERE district = "massachusetts 8"
What is the lowest Gold count if the Bronze is 4 and Silver is greater than 5?
CREATE TABLE table_name_45 (gold INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT MIN(gold) FROM table_name_45 WHERE bronze = 4 AND silver > 5
How many Laps have a Time/Retired of +1:42.517, and a Grid larger than 33?
CREATE TABLE table_name_67 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_67 WHERE time_retired = "+1:42.517" AND grid > 33
What is the most elevated TF1 # that has an Official # larger than 47, and an Air date (France) of 13 july 2010?
CREATE TABLE table_name_95 (tf1__number INTEGER, official__number VARCHAR, air_date__france_ VARCHAR)
SELECT MAX(tf1__number) FROM table_name_95 WHERE official__number > 47 AND air_date__france_ = "13 july 2010"
Who were the scorers in round 3?
CREATE TABLE table_name_83 (scorers VARCHAR, round VARCHAR)
SELECT scorers FROM table_name_83 WHERE round = "round 3"
What is Opponents In The Final, when Partner is "Jiří Novák"?
CREATE TABLE table_name_67 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT opponents_in_the_final FROM table_name_67 WHERE partner = "jiří novák"
What was sweden's score in T9 place?
CREATE TABLE table_name_27 (score VARCHAR, place VARCHAR, country VARCHAR)
SELECT score FROM table_name_27 WHERE place = "t9" AND country = "sweden"
What season did they play queensland at wicket 4?
CREATE TABLE table_name_81 (season VARCHAR, opponent VARCHAR, wicket VARCHAR)
SELECT season FROM table_name_81 WHERE opponent = "queensland" AND wicket = "4"
How much capacity was installed in Wheatland?
CREATE TABLE table_24837750_1 (installed_capacity__mw_ VARCHAR, county VARCHAR)
SELECT installed_capacity__mw_ FROM table_24837750_1 WHERE county = "Wheatland"
What language is the book Miss Macintosh, My Darling in?
CREATE TABLE table_name_17 (language VARCHAR, book_title VARCHAR)
SELECT language FROM table_name_17 WHERE book_title = "miss macintosh, my darling"
What district has Ron Paul?
CREATE TABLE table_1341395_44 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341395_44 WHERE incumbent = "Ron Paul"
What was the final round value for member Chris Webber?
CREATE TABLE table_name_59 (final_round VARCHAR, members VARCHAR)
SELECT final_round FROM table_name_59 WHERE members = "chris webber"
How many high rebounds are listed for game 35?
CREATE TABLE table_27704187_8 (high_rebounds VARCHAR, game VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27704187_8 WHERE game = 35
Which Destination has a Stopping pattern of [2777] mciver station platforms?
CREATE TABLE table_name_47 (destination VARCHAR, stopping_pattern VARCHAR)
SELECT destination FROM table_name_47 WHERE stopping_pattern = "[2777] mciver station platforms"
How many regions had an incarceration rate for females of 63?
CREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, incarceration_rate_female VARCHAR)
SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE incarceration_rate_female = 63
Name the team with a tie number of 6.
CREATE TABLE table_name_51 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_51 WHERE tie_no = "6"
What is the date of the British Rail class 111 tslrb description?
CREATE TABLE table_name_40 (date VARCHAR, description VARCHAR)
SELECT date FROM table_name_40 WHERE description = "british rail class 111 tslrb"
Which title aired on 18 dec 2006- 10 feb 2007?
CREATE TABLE table_name_67 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR)
SELECT english_title__chinese_title_ FROM table_name_67 WHERE airing_date = "18 dec 2006- 10 feb 2007"
Who had highest assists in game against Utah?
CREATE TABLE table_28768469_5 (high_assists VARCHAR, team VARCHAR)
SELECT high_assists FROM table_28768469_5 WHERE team = "Utah"
Who won the US Open in 1937?
CREATE TABLE table_197638_6 (player VARCHAR, us_open VARCHAR)
SELECT player FROM table_197638_6 WHERE us_open = 1937
Which Gold has a Rank of 15, and a Total smaller than 2?
CREATE TABLE table_name_99 (gold INTEGER, rank VARCHAR, total VARCHAR)
SELECT AVG(gold) FROM table_name_99 WHERE rank = "15" AND total < 2
What was the season when the low team is chicago sting?
CREATE TABLE table_237757_10 (season VARCHAR, low_team VARCHAR)
SELECT season FROM table_237757_10 WHERE low_team = "Chicago Sting"
Who is the director of kon-tiki original title?
CREATE TABLE table_21655290_1 (director VARCHAR, original_title VARCHAR)
SELECT director FROM table_21655290_1 WHERE original_title = "Kon-Tiki"
Which address do not have any member with the black membership card?
CREATE TABLE member (address VARCHAR, Membership_card VARCHAR)
SELECT address FROM member EXCEPT SELECT address FROM member WHERE Membership_card = 'Black'
Which Position has an Event of 10,000 m, and a Competition of world championships, and a Year larger than 1993?
CREATE TABLE table_name_8 (position VARCHAR, year VARCHAR, event VARCHAR, competition VARCHAR)
SELECT position FROM table_name_8 WHERE event = "10,000 m" AND competition = "world championships" AND year > 1993
Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira?
CREATE TABLE table_name_85 (competition VARCHAR, assist_pass VARCHAR, result VARCHAR, location VARCHAR)
SELECT competition FROM table_name_85 WHERE result = "2-0" AND location = "ferreiras" AND assist_pass = "casey nogueira"
What was the score of game 2?
CREATE TABLE table_name_5 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_5 WHERE game = 2
What is Played, when Goal Difference is "+51"?
CREATE TABLE table_name_91 (played VARCHAR, goal_difference VARCHAR)
SELECT played FROM table_name_91 WHERE goal_difference = "+51"
What is the voter registration that has a BYut of 48.2?
CREATE TABLE table_name_78 (voter_registration VARCHAR, byut VARCHAR)
SELECT COUNT(voter_registration) FROM table_name_78 WHERE byut = 48.2
What date is the release when the label was Parlophone and the catalog was 582 2912?
CREATE TABLE table_name_35 (date VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_35 WHERE label = "parlophone" AND catalog = "582 2912"
Project Name Pebble: E-Paper Watch for Iphone and Android was ranked how many times?
CREATE TABLE table_27155990_1 (rank VARCHAR, project_name VARCHAR)
SELECT COUNT(rank) FROM table_27155990_1 WHERE project_name = "Pebble: E-Paper Watch for iPhone and Android"
What is the score where the opponent was Mardy Fish?
CREATE TABLE table_name_68 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_68 WHERE opponent = "mardy fish"
What's the highest reign on march 10, 2007?
CREATE TABLE table_name_66 (reign INTEGER, date VARCHAR)
SELECT MAX(reign) FROM table_name_66 WHERE date = "march 10, 2007"
What is the lowest enrollment that has Lafayette as the location?
CREATE TABLE table_name_46 (enrollment INTEGER, location VARCHAR)
SELECT MIN(enrollment) FROM table_name_46 WHERE location = "lafayette"
What was the score when the Rangers were playing against the Vancouver Canucks?
CREATE TABLE table_name_99 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_99 WHERE opponent = "vancouver canucks"
How many districts have an incumbent first elected in 1944?
CREATE TABLE table_1342198_6 (district VARCHAR, first_elected VARCHAR)
SELECT COUNT(district) FROM table_1342198_6 WHERE first_elected = 1944
On what date was the venue at Edgbaston?
CREATE TABLE table_name_97 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_97 WHERE venue = "edgbaston"
What was the attendance of the game that lasted 3:55?
CREATE TABLE table_name_1 (att VARCHAR, time VARCHAR)
SELECT att FROM table_name_1 WHERE time = "3:55"
Name the # country for new palestine
CREATE TABLE table_name_54 (_number___county VARCHAR, school VARCHAR)
SELECT _number___county FROM table_name_54 WHERE school = "new palestine"
How many churches have a wedding in year 2016?
CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR)
SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016
What was the 1st leg of the match that had an aggregate of 4-3?
CREATE TABLE table_name_11 (agg VARCHAR)
SELECT 1 AS st_leg FROM table_name_11 WHERE agg = "4-3"
What are the lowest points for an engine with a Dallara F303 chassis?
CREATE TABLE table_name_93 (points INTEGER, chassis VARCHAR)
SELECT MIN(points) FROM table_name_93 WHERE chassis = "dallara f303"
What is the election date for the electorate of member charles brown category:articles with hcards?
CREATE TABLE table_name_94 (election_date VARCHAR, member VARCHAR)
SELECT election_date FROM table_name_94 WHERE member = "charles brown category:articles with hcards"
What is the maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6?
CREATE TABLE table_name_86 (drawn INTEGER, played VARCHAR, diff VARCHAR, points VARCHAR)
SELECT MAX(drawn) FROM table_name_86 WHERE diff < 186 AND points < 12 AND played < 6
What is the result of the european indoor championships after 1974?
CREATE TABLE table_name_41 (result VARCHAR, tournament VARCHAR, year VARCHAR)
SELECT result FROM table_name_41 WHERE tournament = "european indoor championships" AND year > 1974
Name the result for uncaf nations cup 2009 and 6 goal
CREATE TABLE table_name_3 (result VARCHAR, competition VARCHAR, goal VARCHAR)
SELECT result FROM table_name_3 WHERE competition = "uncaf nations cup 2009" AND goal = 6
How many bronzes for nations with over 22 golds and ranked under 2?
CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, rank VARCHAR)
SELECT MAX(bronze) FROM table_name_66 WHERE gold > 22 AND rank < 2
How many products have the characteristic named "hot"?
CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "hot"
What was the highest share?
CREATE TABLE table_25304789_1 (share INTEGER)
SELECT MAX(share) FROM table_25304789_1
Where was the player from who graduated from Michigan after 2010?
CREATE TABLE table_name_32 (home_town VARCHAR, graduated VARCHAR, college_prior VARCHAR)
SELECT home_town FROM table_name_32 WHERE graduated > 2010 AND college_prior = "michigan"
what is the surface of the final which had score 6-2, 6-3
CREATE TABLE table_1918850_2 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT surface FROM table_1918850_2 WHERE score_in_the_final = "6-2, 6-3"
Season of 2002–03, and a Lost larger than 14, what is the lowest goals?
CREATE TABLE table_name_38 (goalsfor INTEGER, season VARCHAR, lost VARCHAR)
SELECT MIN(goalsfor) FROM table_name_38 WHERE season = "2002–03" AND lost > 14
Who was in the women's 200m medley?
CREATE TABLE table_name_22 (name VARCHAR, event VARCHAR)
SELECT name FROM table_name_22 WHERE event = "women's 200m medley"
Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7
CREATE TABLE table_name_92 (merconorte INTEGER, superliga VARCHAR, interliga VARCHAR, matches VARCHAR)
SELECT MIN(merconorte) FROM table_name_92 WHERE interliga = 2 AND matches > 260 AND superliga > 7
Which event did he win with a method of submission (triangle choke) and a time of n/a?
CREATE TABLE table_name_25 (event VARCHAR, method VARCHAR, res VARCHAR, time VARCHAR)
SELECT event FROM table_name_25 WHERE res = "win" AND time = "n/a" AND method = "submission (triangle choke)"
Which constituency had the conservative party win in 2003?
CREATE TABLE table_name_72 (constituency VARCHAR, winning_party_2003 VARCHAR)
SELECT constituency FROM table_name_72 WHERE winning_party_2003 = "conservative"
Which Position has a Pick of 174?
CREATE TABLE table_name_66 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_66 WHERE pick = 174
What nation has 187.84 points?
CREATE TABLE table_name_83 (nation VARCHAR, points VARCHAR)
SELECT nation FROM table_name_83 WHERE points = 187.84
Which Location has a Time of 4:13.48?
CREATE TABLE table_name_83 (location VARCHAR, time VARCHAR)
SELECT location FROM table_name_83 WHERE time = "4:13.48"
What is the average total of the census after 1971 with 10,412 (32.88%) Serbs?
CREATE TABLE table_name_90 (total INTEGER, year_of_census VARCHAR, serbs VARCHAR)
SELECT AVG(total) FROM table_name_90 WHERE year_of_census > 1971 AND serbs = "10,412 (32.88%)"
How many points were there when tries for were 84?
CREATE TABLE table_17369472_2 (points VARCHAR, tries_for VARCHAR)
SELECT points FROM table_17369472_2 WHERE tries_for = "84"
Which date has a Result of 5–0, and an Opponent of tooting & mitcham?
CREATE TABLE table_name_90 (date VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_90 WHERE result = "5–0" AND opponent = "tooting & mitcham"
What is the total number of First Elected, when Party is "Democratic", and when District is "Tennessee 5"?
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, district VARCHAR)
SELECT COUNT(first_elected) FROM table_name_28 WHERE party = "democratic" AND district = "tennessee 5"
Which venue hosted the Dixie Derby Girls?
CREATE TABLE table_name_68 (venue VARCHAR, club VARCHAR)
SELECT venue FROM table_name_68 WHERE club = "dixie derby girls"
What is the highest Best score for the Dance Mambo?
CREATE TABLE table_name_47 (best_score INTEGER, dance VARCHAR)
SELECT MAX(best_score) FROM table_name_47 WHERE dance = "mambo"
What is the Flattening ratio associated with the Equatorial diameter of 12,756.28km?
CREATE TABLE table_name_27 (flattening_ratio VARCHAR, equatorial_diameter VARCHAR)
SELECT flattening_ratio FROM table_name_27 WHERE equatorial_diameter = "12,756.28km"
What is the date of week 17?
CREATE TABLE table_name_35 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_35 WHERE week = 17
What is the Player that has a Place of t2, and a Score of 74-70-68=212?
CREATE TABLE table_name_64 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_64 WHERE place = "t2" AND score = 74 - 70 - 68 = 212
What is the 1991 when 1992 and 1990 are 1R?
CREATE TABLE table_name_69 (Id VARCHAR)
SELECT 1991 FROM table_name_69 WHERE 1992 = "1r" AND 1990 = "1r"
Which county had a Bush number of votes of 566?
CREATE TABLE table_name_34 (county VARCHAR, bush_number VARCHAR)
SELECT county FROM table_name_34 WHERE bush_number = 566
How many different frequencies does the model with part number ado540biaa5do?
CREATE TABLE table_13869651_3 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT COUNT(frequency) FROM table_13869651_3 WHERE part_number_s_ = "ADO540BIAA5DO"
Name The Result that has a Distance of 1200m, and a Weight (kg) of 55.5?
CREATE TABLE table_name_5 (result VARCHAR, distance VARCHAR, weight__kg_ VARCHAR)
SELECT result FROM table_name_5 WHERE distance = "1200m" AND weight__kg_ = 55.5
Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +?
CREATE TABLE table_name_85 (particle VARCHAR, makeup VARCHAR, spin___parity___j_p VARCHAR)
SELECT particle FROM table_name_85 WHERE makeup = "d s s" AND spin___parity___j_p = "3⁄2 +"
Which FA Cup has a Total smaller than 1?
CREATE TABLE table_name_24 (fa_cup INTEGER, total INTEGER)
SELECT AVG(fa_cup) FROM table_name_24 WHERE total < 1
How many date of appointments are there when the date of vacancy was 2 october 2010?
CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT COUNT(date_of_appointment) FROM table_26976615_3 WHERE date_of_vacancy = "2 October 2010"
What is the Date of the Tournament against Anastasiya Yakimova?
CREATE TABLE table_name_35 (date VARCHAR, opponent_in_final VARCHAR)
SELECT date FROM table_name_35 WHERE opponent_in_final = "anastasiya yakimova"
which Name has a Loss larger than 2, and a Avg/G larger than -16, and a GP-GS of 11–7, and a Gain larger than 86?
CREATE TABLE table_name_23 (name VARCHAR, gain VARCHAR, gp_gs VARCHAR, loss VARCHAR, avg_g VARCHAR)
SELECT name FROM table_name_23 WHERE loss > 2 AND avg_g > -16 AND gp_gs = "11–7" AND gain > 86
What type of surface was played at the tournament in berlin?
CREATE TABLE table_name_16 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_16 WHERE tournament = "berlin"
On how many different dates was the episode written by Charlie Day aired for the first time?
CREATE TABLE table_29273115_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT COUNT(original_air_date) FROM table_29273115_1 WHERE written_by = "Charlie Day"
What's the lowest Drawn that has a Lost that's less than 0?
CREATE TABLE table_name_1 (drawn INTEGER, lost INTEGER)
SELECT MIN(drawn) FROM table_name_1 WHERE lost < 0