answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(year) FROM table_name_58 WHERE team = "walker racing" AND wins > 1
Which Year is the highest that has a Team of walker racing, and Wins larger than 1?
CREATE TABLE table_name_58 (year INTEGER, team VARCHAR, wins VARCHAR)
SELECT family_families FROM table_19897294_4 WHERE no_overall = "UK10"
What family had a no.overall of UK10?
CREATE TABLE table_19897294_4 (family_families VARCHAR, no_overall VARCHAR)
SELECT written_by FROM table_26136228_3 WHERE us_viewers__millions_ = "1.08"
Who wrote the episode that had 1.08 million U.S. viewers?
CREATE TABLE table_26136228_3 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT incident_no FROM table_name_8 WHERE place = "dantewada, chattisgarh"
What is the incident number of the incident that occurred in Dantewada, Chattisgarh?
CREATE TABLE table_name_8 (incident_no VARCHAR, place VARCHAR)
SELECT party FROM table_22756549_1 WHERE runner_up_a = "A. Krishnaswamy"
What party was the winner when A. Krishnaswamy was the runner-up?
CREATE TABLE table_22756549_1 (party VARCHAR, runner_up_a VARCHAR)
SELECT MAX(no_in_series) FROM table_19897294_8 WHERE family_families = "The Ward Family and The Wren Family"
Name the number in series for in the ward family and the wren family
CREATE TABLE table_19897294_8 (no_in_series INTEGER, family_families VARCHAR)
SELECT competition FROM table_name_17 WHERE date = "july 1, 2000"
Which Competition has the Date July 1, 2000?
CREATE TABLE table_name_17 (competition VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_66 WHERE player = "steve pate"
Golfer Steve Pate has what To par?
CREATE TABLE table_name_66 (to_par VARCHAR, player VARCHAR)
SELECT MAX(rank) FROM table_name_35 WHERE bronze < 2 AND gold > 1 AND silver < 1
What is the highest rank with less than 2 bronze, more than 1 gold, and less than 1 silver?
CREATE TABLE table_name_35 (rank INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT score FROM table_name_44 WHERE tie_no = "1"
When the tie no was 1, what was the score?
CREATE TABLE table_name_44 (score VARCHAR, tie_no VARCHAR)
SELECT shut_down FROM table_12983929_1 WHERE commercial_operation = "01.02.1984"
What's the shut down state of the unit that's been in commercial operation since 01.02.1984?
CREATE TABLE table_12983929_1 (shut_down VARCHAR, commercial_operation VARCHAR)
SELECT directed_by FROM table_28859177_2 WHERE original_air_date = "November 21, 2003"
Who directed the episode that aired November 21, 2003?
CREATE TABLE table_28859177_2 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT team FROM table_name_58 WHERE conference = "great plains" AND school = "concordia (ne)"
What team has great plains as the conference, and concordia (ne) as the school?
CREATE TABLE table_name_58 (team VARCHAR, conference VARCHAR, school VARCHAR)
SELECT name FROM table_name_2 WHERE qual_1 = "1:16.850"
What is the name of the person with a qual 1 time of 1:16.850?
CREATE TABLE table_name_2 (name VARCHAR, qual_1 VARCHAR)
SELECT opponent FROM table_name_19 WHERE date = "april 28"
Which Opponent is on april 28?
CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR)
SELECT SUM(pick) FROM table_name_3 WHERE college = "texas a&i" AND round > 1
What is the sum of the pick from texas a&i college with a round greater than 1?
CREATE TABLE table_name_3 (pick INTEGER, college VARCHAR, round VARCHAR)
SELECT COUNT(year) FROM table_name_39 WHERE date__opening_ = "september 21"
What is the total number of Year(s), when Date (Opening) is "September 21"?
CREATE TABLE table_name_39 (year VARCHAR, date__opening_ VARCHAR)
SELECT high_rebounds FROM table_name_16 WHERE date = "november 5"
Can you tell me the High rebounds that has the Date of november 5?
CREATE TABLE table_name_16 (high_rebounds VARCHAR, date VARCHAR)
SELECT AVG(1 AS st_prize___) AS $__ FROM table_name_47 WHERE score = "279 (–9)"
What is the average first prize of the tournament with a score of 279 (–9)?
CREATE TABLE table_name_47 (score VARCHAR)
SELECT MAX(against) FROM table_name_71 WHERE opposing_teams = "wales"
What is the largest Against with an Opposing Teams of wales?
CREATE TABLE table_name_71 (against INTEGER, opposing_teams VARCHAR)
SELECT incumbent FROM table_2668347_17 WHERE candidates = "Jacob Spangler (DR) 67.1% Jacob Hay (F) 32.9%"
Name the incumbent for jacob spangler (dr) 67.1% jacob hay (f) 32.9%
CREATE TABLE table_2668347_17 (incumbent VARCHAR, candidates VARCHAR)
SELECT high_rebounds FROM table_name_7 WHERE score = "l 122–93"
Who had the high rebounds when the score was l 122–93?
CREATE TABLE table_name_7 (high_rebounds VARCHAR, score VARCHAR)
SELECT myspace_band FROM table_name_38 WHERE original_airdate = "19 february 2008"
What is the name of the MySpace Band with an Original Airdate of 19 february 2008?
CREATE TABLE table_name_38 (myspace_band VARCHAR, original_airdate VARCHAR)
SELECT second FROM table_name_71 WHERE lead = "shane mckinlay"
Who was second when Shane McKinlay was the lead?
CREATE TABLE table_name_71 (second VARCHAR, lead VARCHAR)
SELECT SUM(revenue), founder FROM manufacturers GROUP BY founder
Find the total revenue of companies of each founder.
CREATE TABLE manufacturers (founder VARCHAR, revenue INTEGER)
SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = "game1"
What is the name of the tourist attraction that is associated with the photo "game1"?
CREATE TABLE TOURIST_ATTRACTIONS (Name VARCHAR, Tourist_Attraction_ID VARCHAR); CREATE TABLE PHOTOS (Tourist_Attraction_ID VARCHAR, Name VARCHAR)
SELECT senior_pga_championship FROM table_name_41 WHERE senior_british_open = "tom watson (5/6)"
When Tom Watson (5/6) won the Senior British Open who won the Senior PGA Championship?
CREATE TABLE table_name_41 (senior_pga_championship VARCHAR, senior_british_open VARCHAR)
SELECT english_translation FROM table_1805919_1 WHERE traditional_chinese = "哀郢"
What is the English translation of 哀郢?
CREATE TABLE table_1805919_1 (english_translation VARCHAR, traditional_chinese VARCHAR)
SELECT order_year FROM table_name_73 WHERE fleet_series__quantity_ = "12081-12090 (10)"
Which order year has a Fleet Series (Quantity) of 12081-12090 (10)?
CREATE TABLE table_name_73 (order_year VARCHAR, fleet_series__quantity_ VARCHAR)
SELECT team FROM table_11961582_10 WHERE date = "April 20"
Which team was played on April 20?
CREATE TABLE table_11961582_10 (team VARCHAR, date VARCHAR)
SELECT MIN(played) FROM table_18607260_6
Name the least played
CREATE TABLE table_18607260_6 (played INTEGER)
SELECT grand_final_television_commentator FROM table_name_20 WHERE year_s_ > 1959 AND grand_final_dual_television_commentator = "dave" AND spokesperson = "marie myriam"
What is the grand final television commentator status after 1959 when Dave was the grand final dual television commentator and Marie Myriam was the spokesperson?
CREATE TABLE table_name_20 (grand_final_television_commentator VARCHAR, spokesperson VARCHAR, year_s_ VARCHAR, grand_final_dual_television_commentator VARCHAR)
SELECT format FROM table_name_28 WHERE country = "united kingdom" AND date = "20 october 2008"
what is the format for the country united kingdom on 20 october 2008?
CREATE TABLE table_name_28 (format VARCHAR, country VARCHAR, date VARCHAR)
SELECT week FROM table_11406866_2 WHERE attendance = "77,098"
what's the week where attendance is 77,098
CREATE TABLE table_11406866_2 (week VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_12 WHERE loss = "hiller (22–15–1)"
Which score has a Loss of hiller (22–15–1)?
CREATE TABLE table_name_12 (score VARCHAR, loss VARCHAR)
SELECT nationality FROM table_2840500_4 WHERE player = "Christian Lefebvre"
What is the nationality of Christian Lefebvre?
CREATE TABLE table_2840500_4 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(scores) FROM table_23292220_5 WHERE episode = "5x06"
Name the number of scores for 5x06
CREATE TABLE table_23292220_5 (scores VARCHAR, episode VARCHAR)
SELECT opponent FROM table_name_69 WHERE score = "18-19"
Who scored 18-19?
CREATE TABLE table_name_69 (opponent VARCHAR, score VARCHAR)
SELECT SUM(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1
What is the total ticket expense of the visitors whose membership level is 1?
CREATE TABLE visit (Total_spent INTEGER, visitor_id VARCHAR); CREATE TABLE visitor (id VARCHAR, Level_of_membership VARCHAR)
SELECT home FROM table_name_27 WHERE date = "april 14"
What is the home team of the April 14 game?
CREATE TABLE table_name_27 (home VARCHAR, date VARCHAR)
SELECT year_s__won FROM table_name_34 WHERE total < 291 AND to_par = "+10" AND player = "raymond floyd"
In what year(s) did Raymond Floyd have a total of less than 291 and a To par of +10?
CREATE TABLE table_name_34 (year_s__won VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT attendance FROM table_name_19 WHERE week = 18
What is the Attendance with a Week that is 18?
CREATE TABLE table_name_19 (attendance VARCHAR, week VARCHAR)
SELECT result FROM table_name_48 WHERE week = 4
What was the score of the Browns week 4 game?
CREATE TABLE table_name_48 (result VARCHAR, week VARCHAR)
SELECT rank FROM table_name_14 WHERE team = "roma"
What Rank has a Team of roma?
CREATE TABLE table_name_14 (rank VARCHAR, team VARCHAR)
SELECT speed FROM table_name_41 WHERE rider = "andy reynolds"
Name the speed for andy reynolds
CREATE TABLE table_name_41 (speed VARCHAR, rider VARCHAR)
SELECT delegate FROM table_1825751_14 WHERE pageant = "Elite Model Look" AND year > 1993.0
where pageant is elite model look and year is bigger than 1993.0, who is the delegate?
CREATE TABLE table_1825751_14 (delegate VARCHAR, pageant VARCHAR, year VARCHAR)
SELECT MAX(season) FROM table_242813_2 WHERE pitcher = "Old Hoss Radbourn"
Name the most season for old hoss radbourn
CREATE TABLE table_242813_2 (season INTEGER, pitcher VARCHAR)
SELECT COUNT(year) FROM table_name_41 WHERE position = "17th (q)"
How many years have a Position of 17th (q)?
CREATE TABLE table_name_41 (year VARCHAR, position VARCHAR)
SELECT 1997 FROM table_name_74 WHERE 2002 = "sf"
Which 1997 has sf as the 2002?
CREATE TABLE table_name_74 (Id VARCHAR)
SELECT MAX(bronze) FROM table_name_5 WHERE total < 22 AND silver < 5
What is the most Bronze medals won among the participants that won less than 22 medals overall and less than 5 silver medals?
CREATE TABLE table_name_5 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT meet FROM table_name_4 WHERE event = "1500m freestyle"
What event had the 1500m freestyle?
CREATE TABLE table_name_4 (meet VARCHAR, event VARCHAR)
SELECT MAX(won) FROM table_15331868_1 WHERE difference = "1"
What is the highest number won with a difference of 1?
CREATE TABLE table_15331868_1 (won INTEGER, difference VARCHAR)
SELECT 2009 FROM table_name_60 WHERE 2010 = "q1"
What is the 2009 value with q1 in 2010?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT AVG(ngc_number) FROM table_name_59 WHERE apparent_magnitude > 14.2
What is the average NGC number that has a Apparent magnitude greater than 14.2?
CREATE TABLE table_name_59 (ngc_number INTEGER, apparent_magnitude INTEGER)
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID
What are the names of poker players?
CREATE TABLE poker_player (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT founded FROM table_1301373_1 WHERE captain = "Matt Smith"
When was the team, whose captain is Matt Smith, founded?
CREATE TABLE table_1301373_1 (founded VARCHAR, captain VARCHAR)
SELECT COUNT(marginal_ordinary_income_tax_rate) FROM table_11647327_2 WHERE single = "$8,351– $33,950"
What is the amount of marginal ordinary income tax rate for single in which the range is $8,351– $33,950?
CREATE TABLE table_11647327_2 (marginal_ordinary_income_tax_rate VARCHAR, single VARCHAR)
SELECT COUNT(winner) FROM table_25938117_1 WHERE tournament = "Allianz Championship"
Name the total number of winners for allianz championship
CREATE TABLE table_25938117_1 (winner VARCHAR, tournament VARCHAR)
SELECT game_site FROM table_name_17 WHERE week = 11
I want the game site for week of 11
CREATE TABLE table_name_17 (game_site VARCHAR, week VARCHAR)
SELECT name FROM table_name_47 WHERE creator = "hyriand"
Who is a Creator of hyriand?
CREATE TABLE table_name_47 (name VARCHAR, creator VARCHAR)
SELECT runners_up FROM table_name_63 WHERE winner = "hajduk split (3)"
Who is listed as the Runners-up that also has a Winner of Hajduk Split (3)?
CREATE TABLE table_name_63 (runners_up VARCHAR, winner VARCHAR)
SELECT name FROM table_name_14 WHERE total_tenure_time = "36 years, 0 days" AND uninterrupted_time = "36 years, 0 days" AND total_tenure_rank = 49
Who has a total tenure time and uninterrupted time of 36 years, 0 days, as well as a total tenure rank of 49?
CREATE TABLE table_name_14 (name VARCHAR, total_tenure_rank VARCHAR, total_tenure_time VARCHAR, uninterrupted_time VARCHAR)
SELECT game_site FROM table_name_84 WHERE match_report = "recap" AND week = 7
Which game site has a recap as the match report for week 7?
CREATE TABLE table_name_84 (game_site VARCHAR, match_report VARCHAR, week VARCHAR)
SELECT country FROM table_name_9 WHERE singles_champions = "dennis blömke" AND tournament = "germany f13 futures"
In what Country will Dennis Blömke play the Germany F13 Futures Tournament?
CREATE TABLE table_name_9 (country VARCHAR, singles_champions VARCHAR, tournament VARCHAR)
SELECT year FROM table_2187333_1 WHERE team_s_ = "#16 Roush Racing" AND poles < 1.0
Name the year for #16 roush racing for poles less than smaller 1.0
CREATE TABLE table_2187333_1 (year VARCHAR, team_s_ VARCHAR, poles VARCHAR)
SELECT became_dauphine FROM table_name_72 WHERE birth = "1393"
When was became dauphine when birth is 1393?
CREATE TABLE table_name_72 (became_dauphine VARCHAR, birth VARCHAR)
SELECT constructor FROM table_1140119_5 WHERE race_name = "IV J.C.C. Jersey Road Race"
Would built the winning car in the IV J.C.C. Jersey Road Race?
CREATE TABLE table_1140119_5 (constructor VARCHAR, race_name VARCHAR)
SELECT losing_bonus FROM table_17941032_2 WHERE points = "53"
What was the losing bonus that had 53 points?
CREATE TABLE table_17941032_2 (losing_bonus VARCHAR, points VARCHAR)
SELECT AVG(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"
What is the average cost of procedures that physician John Wen was trained in?
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (cost INTEGER, code VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR)
SELECT displacement FROM table_name_28 WHERE version = "db"
I want the displacement for version of db
CREATE TABLE table_name_28 (displacement VARCHAR, version VARCHAR)
SELECT melbourne FROM table_name_59 WHERE gold_coast = "yes" AND adelaide = "no" AND sydney = "yes"
Which Melbourne had a gold coast and sydney which were yes, but an adelaide that was no?
CREATE TABLE table_name_59 (melbourne VARCHAR, sydney VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT COUNT(athlete) FROM table_17289604_38 WHERE round_of_64 = "Llagostera Vives ( ESP ) L 6–2, 3–6, 5–7"
How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6–2, 3–6, 5–7?
CREATE TABLE table_17289604_38 (athlete VARCHAR, round_of_64 VARCHAR)
SELECT high_rebounds FROM table_name_43 WHERE team = "washington"
What is the High rebounds of washington Team?
CREATE TABLE table_name_43 (high_rebounds VARCHAR, team VARCHAR)
SELECT COUNT(overall) FROM table_name_73 WHERE round > 7 AND pick = 21
WHAT IS THE TOTAL NUMBER WITH A ROUND BIGGER THAN 7 AND PICK OF 21?
CREATE TABLE table_name_73 (overall VARCHAR, round VARCHAR, pick VARCHAR)
SELECT production__latest_figures_ FROM table_250309_1 WHERE parent_company = "Ariel"
what is the production where the parent company is ariel?
CREATE TABLE table_250309_1 (production__latest_figures_ VARCHAR, parent_company VARCHAR)
SELECT drawn FROM table_name_50 WHERE try_bonus = "9" AND lost = "4"
When the try bonus is 9 and the lost 4, what is the drawn?
CREATE TABLE table_name_50 (drawn VARCHAR, try_bonus VARCHAR, lost VARCHAR)
SELECT build_year FROM table_name_44 WHERE total_production = 150
Tell me the build year for total production of 150
CREATE TABLE table_name_44 (build_year VARCHAR, total_production VARCHAR)
SELECT 1 AS st_prize__$__ FROM table_15346009_1 WHERE score = "271 (-9)"
What was the value of 1st prize when the score was 271 (-9)?
CREATE TABLE table_15346009_1 (score VARCHAR)
SELECT cfl_team FROM table_28059992_2 WHERE player = "Robert Beveridge"
Name the cfl team for robert beveridge
CREATE TABLE table_28059992_2 (cfl_team VARCHAR, player VARCHAR)
SELECT MAX(run_3) FROM table_name_86 WHERE run_2 = 55.44
What is the highest run 3 of the athlete with a 55.44 run 2?
CREATE TABLE table_name_86 (run_3 INTEGER, run_2 VARCHAR)
SELECT processors_supported FROM table_name_91 WHERE memory = "ddr2" AND model = "nforce 550"
What are the processors supported by a ddr2 memory and the nforce 550 model?
CREATE TABLE table_name_91 (processors_supported VARCHAR, memory VARCHAR, model VARCHAR)
SELECT fourth_place FROM table_name_26 WHERE runners_up = "2 (1999, 2005)"
What fourth-place has 2 (1999, 2005) as the runner(s)-up?
CREATE TABLE table_name_26 (fourth_place VARCHAR, runners_up VARCHAR)
SELECT date FROM table_name_73 WHERE tie_no = "6"
What date has 6 as the tie no.?
CREATE TABLE table_name_73 (date VARCHAR, tie_no VARCHAR)
SELECT place FROM table_name_73 WHERE player = "john cook"
What is the place of player john cook?
CREATE TABLE table_name_73 (place VARCHAR, player VARCHAR)
SELECT tries_for FROM table_name_74 WHERE tries_against = "30"
What is the number of tries for that has 30 tries against?
CREATE TABLE table_name_74 (tries_for VARCHAR, tries_against VARCHAR)
SELECT segment_d FROM table_15187735_13 WHERE segment_a = "Bowling Balls"
Name the segment d for bowling balls
CREATE TABLE table_15187735_13 (segment_d VARCHAR, segment_a VARCHAR)
SELECT position FROM table_name_26 WHERE player = "tim barnett"
What position does tim barnett play?
CREATE TABLE table_name_26 (position VARCHAR, player VARCHAR)
SELECT city FROM table_name_50 WHERE location = "netherlands"
What city was located in the Netherlands?
CREATE TABLE table_name_50 (city VARCHAR, location VARCHAR)
SELECT to_par FROM table_name_89 WHERE player = "mike souchak"
What is Mike Souchak's to par?
CREATE TABLE table_name_89 (to_par VARCHAR, player VARCHAR)
SELECT 4 AS th_place FROM table_2388763_1 WHERE year = 2007
What team finished in 4th place in 2007?
CREATE TABLE table_2388763_1 (year VARCHAR)
SELECT score FROM table_name_26 WHERE decision = "parent" AND visitor = "philadelphia" AND date = "january 27"
Decision of parent, and a Visitor of Philadelphia, and a Date of January 27 had what score?
CREATE TABLE table_name_26 (score VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT entered_office FROM table_name_45 WHERE throne_name = "mohammad ali shah qajar"
What was the Entered Office of the man with the throne name Mohammad Ali Shah Qajar?
CREATE TABLE table_name_45 (entered_office VARCHAR, throne_name VARCHAR)
SELECT group_a_winner FROM table_1137142_1 WHERE group_c_winner = "Vis Pesaro"
What is the group a winner for vis pesaro?
CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_c_winner VARCHAR)
SELECT gender FROM table_name_49 WHERE local_board = "albert–eden" AND roll > 232 AND decile = "5"
What gender has a local board of albert–eden with a roll of more than 232 and Decile of 5?
CREATE TABLE table_name_49 (gender VARCHAR, decile VARCHAR, local_board VARCHAR, roll VARCHAR)
SELECT to_par FROM table_name_77 WHERE player = "tom watson"
Which To par has a Player of tom watson?
CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR)
SELECT team FROM table_name_56 WHERE college = "lawrence tech"
What's the team of the player who went to lawrence tech?
CREATE TABLE table_name_56 (team VARCHAR, college VARCHAR)
SELECT nationality, COUNT(*) FROM swimmer GROUP BY nationality HAVING COUNT(*) > 1
List countries that have more than one swimmer.
CREATE TABLE swimmer (nationality VARCHAR)
SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english"
Return the names of singers who are from UK and released an English song.
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
SELECT height FROM table_24055352_1 WHERE hometown = "Los Angeles"
What is the height when the player is from Los Angeles?
CREATE TABLE table_24055352_1 (height VARCHAR, hometown VARCHAR)
SELECT MAX(attendance) FROM table_16227492_1 WHERE _number = 4
Name the most attendance for number 4
CREATE TABLE table_16227492_1 (attendance INTEGER, _number VARCHAR)