answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MIN(first_elected) FROM table_1341897_6 WHERE district = "Arkansas 3"
When was James William Trimble first elected in the Arkansas 3 district?
CREATE TABLE table_1341897_6 (first_elected INTEGER, district VARCHAR)
SELECT city FROM addresses WHERE zip_postcode = 255
Find the city with post code 255.
CREATE TABLE addresses (city VARCHAR, zip_postcode VARCHAR)
SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = "Freier TuS Regensburg"
Name the landesliga nord for freier tus regensburg
CREATE TABLE table_20181270_3 (landesliga_nord VARCHAR, landesliga_mitte VARCHAR)
SELECT date FROM table_name_33 WHERE record = "48-21-6"
What was the date of the game that led to a 48-21-6 record?
CREATE TABLE table_name_33 (date VARCHAR, record VARCHAR)
SELECT main_span_feet FROM table_name_43 WHERE year_opened = 1936 AND country = "united states" AND rank > 47 AND main_span_metres = "421"
What is the main span feet from opening year of 1936 in the United States with a rank greater than 47 and 421 main span metres?
CREATE TABLE table_name_43 (main_span_feet VARCHAR, main_span_metres VARCHAR, rank VARCHAR, year_opened VARCHAR, country VARCHAR)
SELECT year FROM table_name_68 WHERE yards = "2,242"
What year was 2,242 yards achieved?
CREATE TABLE table_name_68 (year VARCHAR, yards VARCHAR)
SELECT currency FROM table_name_45 WHERE central_rate = "3.45280"
Which currency has a central rate of 3.45280?
CREATE TABLE table_name_45 (currency VARCHAR, central_rate VARCHAR)
SELECT lites_2_race_two_winning_team FROM table_26638600_3 WHERE lites_1_race_one_winning_team = "#13 Inspire Motorsports"
Who was the lights 2 race two winning team when the lites 1 race one winning team was #13 Inspire Motorsports?
CREATE TABLE table_26638600_3 (lites_2_race_two_winning_team VARCHAR, lites_1_race_one_winning_team VARCHAR)
SELECT COUNT(platform) FROM table_name_60 WHERE frequency__per_hour_ < 2
How many Platforms have a Frequency of less than 2?
CREATE TABLE table_name_60 (platform VARCHAR, frequency__per_hour_ INTEGER)
SELECT rr_romaja FROM table_name_85 WHERE hangul_chosongul = "강원도" AND capital = "wonsan"
What is the RR Romaja for the province that has Hangul of 강원도 and capital of Wonsan?
CREATE TABLE table_name_85 (rr_romaja VARCHAR, hangul_chosongul VARCHAR, capital VARCHAR)
SELECT player FROM table_name_49 WHERE position = "right wing" AND nationality = "czech republic"
Who has a nationality of Czech Republic and a position of right wing?
CREATE TABLE table_name_49 (player VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT attendance FROM table_name_72 WHERE week < 3 AND date = "september 18, 1965"
What was the attendance of the game on September 18, 1965 before week 3?
CREATE TABLE table_name_72 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT MIN(silver) FROM table_name_30 WHERE gold > 0 AND nation = "switzerland"
What is the low silver total for switzerland with over 0 golds?
CREATE TABLE table_name_30 (silver INTEGER, gold VARCHAR, nation VARCHAR)
SELECT date FROM table_name_95 WHERE tournament = "paco rabanne open de france"
What was the date of the Paco Rabanne Open de France?
CREATE TABLE table_name_95 (date VARCHAR, tournament VARCHAR)
SELECT MIN(losses) FROM table_name_15 WHERE benalla_dfl = "goorambat" AND wins < 13
When Benall DFL is Goorambat with less than 13 wins, what is the least amount of losses?
CREATE TABLE table_name_15 (losses INTEGER, benalla_dfl VARCHAR, wins VARCHAR)
SELECT updated_in_past_30_days FROM table_name_93 WHERE registration = "open to people 13 and over"
What is Updated In Past 30 Days, when Registration is "Open to people 13 and over"?
CREATE TABLE table_name_93 (updated_in_past_30_days VARCHAR, registration VARCHAR)
SELECT notes FROM table_name_77 WHERE time = "6:05.21"
what is the notes for the time 6:05.21?
CREATE TABLE table_name_77 (notes VARCHAR, time VARCHAR)
SELECT last_title FROM table_name_11 WHERE club = "newell's old boys"
Name the last time for club of newell's old boys
CREATE TABLE table_name_11 (last_title VARCHAR, club VARCHAR)
SELECT format FROM table_1949994_7 WHERE end_date = "June 25"
What's the format of the season that ended on June 25?
CREATE TABLE table_1949994_7 (format VARCHAR, end_date VARCHAR)
SELECT music FROM table_name_32 WHERE points_jury = "18 (5,5,4,4)"
Which Music has a Points Jury of 18 (5,5,4,4)?
CREATE TABLE table_name_32 (music VARCHAR, points_jury VARCHAR)
SELECT team FROM table_name_38 WHERE number = 14 AND years_with_franchise = "1993-2000"
Which team is number 14 and had a franchise in 1993-2000?
CREATE TABLE table_name_38 (team VARCHAR, number VARCHAR, years_with_franchise VARCHAR)
SELECT theme FROM table_name_96 WHERE winner = "dani"
What is the theme with dani as the winner?
CREATE TABLE table_name_96 (theme VARCHAR, winner VARCHAR)
SELECT series FROM table_1714685_1 WHERE title = "Galaxy Angel AA"
When galaxy angel aa is the title what was the series?
CREATE TABLE table_1714685_1 (series VARCHAR, title VARCHAR)
SELECT pole_position FROM table_1132568_3 WHERE grand_prix = "French grand_prix"
Who is in the pole position for the French Grand Prix?
CREATE TABLE table_1132568_3 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT score FROM table_name_46 WHERE record = "3-7"
What score has 3-7 as the record?
CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR)
SELECT MAX(highest) FROM table_11206916_1 WHERE stadium = "Gayfield Park"
The gayfield park stadium had a highest attendance of what?
CREATE TABLE table_11206916_1 (highest INTEGER, stadium VARCHAR)
SELECT MAX(extra_points) FROM table_14342210_12
What was the most extra points?
CREATE TABLE table_14342210_12 (extra_points INTEGER)
SELECT conference_matchups FROM table_name_81 WHERE payout___us$__ = "$3 million"
What was the conference matchup in the bowl game with a $3 million payout?
CREATE TABLE table_name_81 (conference_matchups VARCHAR, payout___us$__ VARCHAR)
SELECT attendance FROM table_name_42 WHERE result = "l 20-17"
How many were in attendance when the result was l 20-17?
CREATE TABLE table_name_42 (attendance VARCHAR, result VARCHAR)
SELECT COUNT(gold) FROM table_name_99 WHERE rank = "10" AND bronze > 2
How many Golds did Rank 10 get, with a Bronze larger than 2?
CREATE TABLE table_name_99 (gold VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT T2.Name, T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID
What are the names of wrestlers and the elimination moves?
CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE elimination (Elimination_Move VARCHAR, Wrestler_ID VARCHAR)
SELECT sport FROM table_name_29 WHERE nation_represented = "united states"
Which sport did the United States win?
CREATE TABLE table_name_29 (sport VARCHAR, nation_represented VARCHAR)
SELECT home_team AS score FROM table_name_10 WHERE away_team = "north melbourne"
What did the team score at home in north melbourne?
CREATE TABLE table_name_10 (home_team VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_6 WHERE away_team = "richmond"
Name the venue when the away team was richmond
CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR)
SELECT COUNT(year) FROM table_name_78 WHERE group = "sitges film festival"
What is the number of years that Kim was nominated at the Sitges Film Festival?
CREATE TABLE table_name_78 (year VARCHAR, group VARCHAR)
SELECT surface FROM table_name_31 WHERE date = "july 27, 2013"
What type of surface was played on July 27, 2013?
CREATE TABLE table_name_31 (surface VARCHAR, date VARCHAR)
SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = "Pass"
Find id of candidates whose assessment code is "Pass"?
CREATE TABLE candidate_assessments (candidate_id VARCHAR, asessment_outcome_code VARCHAR)
SELECT house_1950 FROM table_name_17 WHERE 1950 < 1980 AND governors_1950 = "governors 1970"
What shows for House 1950 with a 1950 less than 1980, and Governors 1950 of governors 1970?
CREATE TABLE table_name_17 (house_1950 VARCHAR, governors_1950 VARCHAR)
SELECT runner_s__up FROM table_name_26 WHERE winning_score = –8(68 - 68 - 72 - 72 = 280)
Which Runner(s)-up has a Winning score of –8 (68-68-72-72=280)?
CREATE TABLE table_name_26 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT series FROM table_25740774_1 WHERE position = "NC"
Which series is in position nc?
CREATE TABLE table_25740774_1 (series VARCHAR, position VARCHAR)
SELECT english FROM table_26263954_1 WHERE revised_hepburn = "chiji"
when chiji is revised hepburn what are all the english
CREATE TABLE table_26263954_1 (english VARCHAR, revised_hepburn VARCHAR)
SELECT COUNT(march) FROM table_27501030_8 WHERE opponent = "Pittsburgh Penguins"
How many times did they play the pittsburgh penguins?
CREATE TABLE table_27501030_8 (march VARCHAR, opponent VARCHAR)
SELECT szdsz FROM table_name_60 WHERE jobbik = "5%" AND fidesz = "68%"
What is the SZDSZ percentage with a Jobbik of 5% and a Fidesz of 68%?
CREATE TABLE table_name_60 (szdsz VARCHAR, jobbik VARCHAR, fidesz VARCHAR)
SELECT MIN(against) FROM table_name_42 WHERE status = "first test" AND date = "26/05/2007"
What is the lowest Against, when Status is "First Test", and when Date is "26/05/2007"?
CREATE TABLE table_name_42 (against INTEGER, status VARCHAR, date VARCHAR)
SELECT MAX(played) FROM table_name_47 WHERE goals_conceded = 21 AND draw > 3
What was the highest number played when there were 21 goals conceded and a draw greater than 3?
CREATE TABLE table_name_47 (played INTEGER, goals_conceded VARCHAR, draw VARCHAR)
SELECT COUNT(amman) FROM table_26173058_2 WHERE wehdat = "0-1"
what is the number of teams where the record is 0-1
CREATE TABLE table_26173058_2 (amman VARCHAR, wehdat VARCHAR)
SELECT crowd FROM table_name_16 WHERE home_team = "south melbourne"
How many people were at the game where the home team was South Melbourne?
CREATE TABLE table_name_16 (crowd VARCHAR, home_team VARCHAR)
SELECT vacator FROM table_1958768_3 WHERE district = "Wisconsin 1st"
Name the vacator for wisconsin 1st
CREATE TABLE table_1958768_3 (vacator VARCHAR, district VARCHAR)
SELECT date FROM table_name_66 WHERE week = 10
What date has 10 for the week?
CREATE TABLE table_name_66 (date VARCHAR, week VARCHAR)
SELECT livery FROM table_name_32 WHERE description = "20t tanker" AND date > 1941
Which Livery has a Description of 20t tanker, with a date later than 1941?
CREATE TABLE table_name_32 (livery VARCHAR, description VARCHAR, date VARCHAR)
SELECT custody_level_s_ FROM table_25346763_1 WHERE location = "Shelton"
What is the custody level of the facility in Shelton?
CREATE TABLE table_25346763_1 (custody_level_s_ VARCHAR, location VARCHAR)
SELECT MAX(attendance) FROM table_name_40 WHERE result = "l 6-28"
What was the highest attendance when the result was L 6-28?
CREATE TABLE table_name_40 (attendance INTEGER, result VARCHAR)
SELECT MAX(number_of_seats) FROM table_name_24 WHERE make = "mci" AND quantity > 32
What is the largest number of seats with more than 32 of a MCI make?
CREATE TABLE table_name_24 (number_of_seats INTEGER, make VARCHAR, quantity VARCHAR)
SELECT venue FROM table_name_14 WHERE opposing_team = "hawke's bay"
Venue for Hawke's bay?
CREATE TABLE table_name_14 (venue VARCHAR, opposing_team VARCHAR)
SELECT international_tourism_expenditure__2012_ FROM table_name_65 WHERE international_tourism_expenditure__2011_ = "$33.3 billion"
Which International tourism expenditure (2012) has an International tourism expenditure (2011) of $33.3 billion?
CREATE TABLE table_name_65 (international_tourism_expenditure__2012_ VARCHAR, international_tourism_expenditure__2011_ VARCHAR)
SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1
Which park had most attendances in 2008?
CREATE TABLE park (park_name VARCHAR, park_id VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR, attendance VARCHAR)
SELECT AVG(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'
What is average salary of the players in the team named 'Boston Red Stockings' ?
CREATE TABLE salary (salary INTEGER, team_id VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
SELECT date FROM table_name_38 WHERE round = 2
What is Date, when Round is "2"?
CREATE TABLE table_name_38 (date VARCHAR, round VARCHAR)
SELECT MIN(number_of_dances) FROM table_20424140_3
What's the minimal number of dances a couple has danced?
CREATE TABLE table_20424140_3 (number_of_dances INTEGER)
SELECT network FROM table_28190363_1 WHERE judges = "Batuhan Zeynioğlu Piatti Murat Bozok Erol Kaynar"
What are the networks whose version of the show includes the judges batuhan zeynioğlu piatti murat bozok erol kaynar?
CREATE TABLE table_28190363_1 (network VARCHAR, judges VARCHAR)
SELECT score FROM table_name_93 WHERE date = "2000-05-23"
What is Score, when Date is "2000-05-23"?
CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)
SELECT MIN(earnings__) AS $__ FROM table_name_78 WHERE wins = 22 AND rank < 2
What is the lowest level of Earnings($) to have a Wins value of 22 and a Rank lower than 2?
CREATE TABLE table_name_78 (earnings__ INTEGER, wins VARCHAR, rank VARCHAR)
SELECT SUM(first_exercise) FROM table_name_2 WHERE second_exercise = 18
What is the total for the first exercise and has 18 as the second exercise?
CREATE TABLE table_name_2 (first_exercise INTEGER, second_exercise VARCHAR)
SELECT AVG(year) FROM table_name_44 WHERE result = "34-25"
What Year had a Result of 34-25?
CREATE TABLE table_name_44 (year INTEGER, result VARCHAR)
SELECT poles FROM table_1671401_2 WHERE avg_finish = "26.8"
Name the poles for avg finish is 26.8
CREATE TABLE table_1671401_2 (poles VARCHAR, avg_finish VARCHAR)
SELECT party FROM table_1342359_39 WHERE district = "South Carolina 3"
What is the party for south carolina 3?
CREATE TABLE table_1342359_39 (party VARCHAR, district VARCHAR)
SELECT AVG(points) FROM table_name_34 WHERE position = 7 AND lost < 4
Which average Points have a Position of 7, and a Lost smaller than 4?
CREATE TABLE table_name_34 (points INTEGER, position VARCHAR, lost VARCHAR)
SELECT country FROM table_name_62 WHERE year_s__won = "1963"
Which Country has a Year(s) won of 1963?
CREATE TABLE table_name_62 (country VARCHAR, year_s__won VARCHAR)
SELECT seasons_and_winners FROM table_16884579_1 WHERE premiere = "28 January 2007"
Name the seasons and winners that airs 28 january 2007
CREATE TABLE table_16884579_1 (seasons_and_winners VARCHAR, premiere VARCHAR)
SELECT Hometown FROM teacher ORDER BY Age LIMIT 1
What is the hometown of the youngest teacher?
CREATE TABLE teacher (Hometown VARCHAR, Age VARCHAR)
SELECT AVG(position) FROM table_name_53 WHERE team = "ypiranga-sp" AND lost < 7
What is team ypiranga-sp's average position when they lost by less than 7?
CREATE TABLE table_name_53 (position INTEGER, team VARCHAR, lost VARCHAR)
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+10.4%"
What is the percentage of registered voters in which the d-r spread is +10.4%?
CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread VARCHAR)
SELECT trainer FROM table_name_71 WHERE year = 2013
Who was the trainer in 2013?
CREATE TABLE table_name_71 (trainer VARCHAR, year VARCHAR)
SELECT MIN(appearances¹) FROM table_24565004_22 WHERE name = "Pierre Vermeulen"
at least how many times was Pierre Vermeulen at a game?
CREATE TABLE table_24565004_22 (appearances¹ INTEGER, name VARCHAR)
SELECT launched FROM table_name_94 WHERE name = "garibaldets (гарибальдиец)"
when was garibaldets (гарибальдиец) launched?
CREATE TABLE table_name_94 (launched VARCHAR, name VARCHAR)
SELECT SUM(total) FROM table_name_97 WHERE year_s__won = "1993"
The golfer who won in 1993 had what total has his total?
CREATE TABLE table_name_97 (total INTEGER, year_s__won VARCHAR)
SELECT mac_os_x FROM table_name_88 WHERE linux = "no" AND amigaos = "no" AND android = "unknown"
Which Mac OS X has a Linux of no, and an AmigaOS of no, and an Android of unknown?
CREATE TABLE table_name_88 (mac_os_x VARCHAR, android VARCHAR, linux VARCHAR, amigaos VARCHAR)
SELECT final_score FROM table_21761882_4 WHERE attendance = 25598
What was the final score when the attendance was 25598?
CREATE TABLE table_21761882_4 (final_score VARCHAR, attendance VARCHAR)
SELECT democratic_alternative FROM table_name_31 WHERE polling_institute = "malta today"
What is the value of the Democratic Alternative for the poll released by Malta Today?
CREATE TABLE table_name_31 (democratic_alternative VARCHAR, polling_institute VARCHAR)
SELECT candidates FROM table_1341843_19 WHERE incumbent = "Joe Waggonner"
Who were the candidates in the district whose incumbent is Joe Waggonner?
CREATE TABLE table_1341843_19 (candidates VARCHAR, incumbent VARCHAR)
SELECT surface FROM table_name_94 WHERE tournament = "eckental" AND score = "w/o"
What is the surface of eckental tournament with a w/o score?
CREATE TABLE table_name_94 (surface VARCHAR, tournament VARCHAR, score VARCHAR)
SELECT date FROM table_name_64 WHERE score = "6-2, 6-4"
On what Date was the match with a Score of 6-2, 6-4?
CREATE TABLE table_name_64 (date VARCHAR, score VARCHAR)
SELECT AVG(winners) FROM table_name_2 WHERE wins = 1 AND country = "fiji" AND first_title < 2004
How many Winners have Wins of 1 and a Country of fiji and a First title smaller than 2004?
CREATE TABLE table_name_2 (winners INTEGER, first_title VARCHAR, wins VARCHAR, country VARCHAR)
SELECT winner FROM table_20540006_6 WHERE sec_team = "LSU"
Who was the winner when the SEC team LSU played?
CREATE TABLE table_20540006_6 (winner VARCHAR, sec_team VARCHAR)
SELECT MAX(lost) FROM table_name_75 WHERE seasons = 2 AND goals_against > 43
Which Lost has Seasons of 2, and Goals against larger than 43?
CREATE TABLE table_name_75 (lost INTEGER, seasons VARCHAR, goals_against VARCHAR)
SELECT original_airdate FROM table_26866299_1 WHERE series__number = 96
What was the original air date for episode number 96 in the series?
CREATE TABLE table_26866299_1 (original_airdate VARCHAR, series__number VARCHAR)
SELECT date FROM table_name_87 WHERE type_of_game = "friendly" AND results¹ = "2:3"
What day was a friendly game held that had a score of 2:3?
CREATE TABLE table_name_87 (date VARCHAR, type_of_game VARCHAR, results¹ VARCHAR)
SELECT record FROM table_name_41 WHERE high_assists = "beno udrih (4)" AND game = 26
What is the record of game 26 with beno udrih (4) as the highest assists?
CREATE TABLE table_name_41 (record VARCHAR, high_assists VARCHAR, game VARCHAR)
SELECT AVG(hoop) FROM table_name_37 WHERE all_around < 9.7
What is the average hoop when the all around is less than 9.7?
CREATE TABLE table_name_37 (hoop INTEGER, all_around INTEGER)
SELECT competition FROM table_name_54 WHERE captain = "robbie paul" AND lost < 5 AND main_article = "bradford bulls 1997"
What Competition in Main Article of Bradford Bulls 1997 have Robbie Paul as Captain with less than 5 Lost?
CREATE TABLE table_name_54 (competition VARCHAR, main_article VARCHAR, captain VARCHAR, lost VARCHAR)
SELECT school_club_team FROM table_name_35 WHERE player = "john crotty"
What school does John Crotty play for?
CREATE TABLE table_name_35 (school_club_team VARCHAR, player VARCHAR)
SELECT round1 FROM table_16815824_1 WHERE team = "Great Britain"
What was Great Britain's Round 1 score?
CREATE TABLE table_16815824_1 (round1 VARCHAR, team VARCHAR)
SELECT MAX(pick) FROM table_name_49 WHERE overall < 217 AND name = "alfred morris" AND round < 6
what is the pick for alfred morris when the overall is less than 217, and the round is smaller than 6?
CREATE TABLE table_name_49 (pick INTEGER, round VARCHAR, overall VARCHAR, name VARCHAR)
SELECT home_team AS score FROM table_name_36 WHERE away_team = "collingwood"
What is the home team score when the away team is Collingwood?
CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(country_of_owner) FROM table_21676617_1 WHERE horse = "Utah Bulwark"
How many countries did Utah Bulwark's owner come from?
CREATE TABLE table_21676617_1 (country_of_owner VARCHAR, horse VARCHAR)
SELECT time_retired FROM table_name_84 WHERE points = "32"
Name the Time/Retired when the points were 32.
CREATE TABLE table_name_84 (time_retired VARCHAR, points VARCHAR)
SELECT tournament FROM table_name_13 WHERE 1976 = "grand slam tournaments"
What is the tournament that had Grand Slam Tournaments in 1976?
CREATE TABLE table_name_13 (tournament VARCHAR)
SELECT manufacturer FROM table_name_61 WHERE time = "accident" AND grid > 15
Which Manufacturer has a Time of accident and a Grid greater than 15?
CREATE TABLE table_name_61 (manufacturer VARCHAR, time VARCHAR, grid VARCHAR)
SELECT date FROM table_name_60 WHERE winning_constructor = "bugatti" AND winning_driver = "stanislas czaykowski"
Tell me the date for bugatti fpr stanislas czaykowski
CREATE TABLE table_name_60 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT team FROM table_name_64 WHERE stadium = "vikings stadium"
Who is the team at vikings stadium?
CREATE TABLE table_name_64 (team VARCHAR, stadium VARCHAR)