answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT championship FROM table_name_71 WHERE partnering = "maikel scheffers" AND year > 2007 AND opponents_in_final = "stephane houdet nicolas peiffer"
What championship tournament did Ronald Vink play in with maikel scheffers as his partner in 2007 against stephane houdet nicolas peiffer?
CREATE TABLE table_name_71 (championship VARCHAR, opponents_in_final VARCHAR, partnering VARCHAR, year VARCHAR)
SELECT result FROM table_name_11 WHERE opponent = "igor samoilenco"
Opponent of igor samoilenco had what result?
CREATE TABLE table_name_11 (result VARCHAR, opponent VARCHAR)
SELECT 2001 FROM table_name_99 WHERE 2007 = "1r" AND 2008 = "q1"
What is 2001, when 2007 is "1R", and when 2008 is "Q1"?
CREATE TABLE table_name_99 (Id VARCHAR)
SELECT races FROM table_10748727_1 WHERE season = "2009" AND wins = 0
how many races were in 2009 with 0 wins?
CREATE TABLE table_10748727_1 (races VARCHAR, season VARCHAR, wins VARCHAR)
SELECT televotes FROM table_19763199_4 WHERE jury_votes = 4
How many televotes are there where there is 4 jury votes?
CREATE TABLE table_19763199_4 (televotes VARCHAR, jury_votes VARCHAR)
SELECT class FROM table_name_40 WHERE capacity < 3384 AND navigator = "ferguson"
What class has a capacity smaller than 3384 for Ferguson?
CREATE TABLE table_name_40 (class VARCHAR, capacity VARCHAR, navigator VARCHAR)
SELECT result FROM table_name_98 WHERE location = "match reports"
What is the result at match reports?
CREATE TABLE table_name_98 (result VARCHAR, location VARCHAR)
SELECT AVG(week) FROM table_name_78 WHERE opponent = "denver broncos"
What is the average number of weeks that the opponent was the Denver Broncos?
CREATE TABLE table_name_78 (week INTEGER, opponent VARCHAR)
SELECT opponent FROM table_name_89 WHERE date = "april 23"
Who did the Indians play on April 23?
CREATE TABLE table_name_89 (opponent VARCHAR, date VARCHAR)
SELECT nhl_team FROM table_2840500_5 WHERE college_junior_club_team = "HC Lada Togliatti (Russia)"
Which team drafted the player from the HC Lada Togliatti (Russia)?
CREATE TABLE table_2840500_5 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT MAX(position) FROM table_13805773_2 WHERE artist = "Ray Adams"
What is highest place reached by artist Ray Adams?
CREATE TABLE table_13805773_2 (position INTEGER, artist VARCHAR)
SELECT accreditation_type FROM table_name_5 WHERE accreditation_level = "joyn" AND company_name = "nokia corporation"
When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?
CREATE TABLE table_name_5 (accreditation_type VARCHAR, accreditation_level VARCHAR, company_name VARCHAR)
SELECT COUNT(draw) FROM table_name_9 WHERE televotes > 1761 AND song = "ils sont là" AND place < 2
What is the total number of Draw(s), when Televotes is greater than 1761, when Song is "Ils Sont Là", and when Place is less than 2?
CREATE TABLE table_name_9 (draw VARCHAR, place VARCHAR, televotes VARCHAR, song VARCHAR)
SELECT series_no FROM table_19236587_4 WHERE uk_viewers__million_ = "2.43"
What's the series number of the episode seen by 2.43 million viewers in the UK?
CREATE TABLE table_19236587_4 (series_no VARCHAR, uk_viewers__million_ VARCHAR)
SELECT MAX(round) FROM table_name_85 WHERE opponent = "hikaru shinohara" AND record = "11-7"
What was the highest number of rounds that had Hikaru Shinohara as an opponent and a record of 11-7?
CREATE TABLE table_name_85 (round INTEGER, opponent VARCHAR, record VARCHAR)
SELECT land_area FROM table_214920_1 WHERE population_canada_2011_census = 18847
What is the land area for the RCM that has a population of 18847?
CREATE TABLE table_214920_1 (land_area VARCHAR, population_canada_2011_census VARCHAR)
SELECT gold FROM table_name_14 WHERE silver = "1"
In the Year Yugoslavia won 1 Silver, how many Gold medals did they win?
CREATE TABLE table_name_14 (gold VARCHAR, silver VARCHAR)
SELECT name_or_route FROM table_17814458_1 WHERE slope_length = 336
Name the name or route for slope length being 336
CREATE TABLE table_17814458_1 (name_or_route VARCHAR, slope_length VARCHAR)
SELECT simplified_characters FROM table_16162581_1 WHERE wade_giles = "hsin-yüan … i-ma"
Name the simplified charaacters being hsin-yüan … i-ma
CREATE TABLE table_16162581_1 (simplified_characters VARCHAR, wade_giles VARCHAR)
SELECT COUNT(party) FROM table_1342292_45 WHERE first_elected = 1930
How many incumbents were first elected in 1930?
CREATE TABLE table_1342292_45 (party VARCHAR, first_elected VARCHAR)
SELECT points FROM table_24912693_4 WHERE steals = 2
How many points does the player with 2 steals have?
CREATE TABLE table_24912693_4 (points VARCHAR, steals VARCHAR)
SELECT affiliation FROM table_19210115_1 WHERE nickname = "Explorers"
What is the affiliation of the University called Explorers?
CREATE TABLE table_19210115_1 (affiliation VARCHAR, nickname VARCHAR)
SELECT album_s_ FROM table_23667534_1 WHERE song_s__title = "It's Going So Badly"
What album was the song It's going so badly on?
CREATE TABLE table_23667534_1 (album_s_ VARCHAR, song_s__title VARCHAR)
SELECT MAX(matches) FROM table_28547332_4
What is the maximum number of matches in a game?
CREATE TABLE table_28547332_4 (matches INTEGER)
SELECT SUM(draws) FROM table_name_72 WHERE against > 1228 AND wins < 1
What's the sum of draws for against larger than 1228 with fewer than 1 wins?
CREATE TABLE table_name_72 (draws INTEGER, against VARCHAR, wins VARCHAR)
SELECT date FROM table_name_10 WHERE circuit = "snetterton" AND fastest_lap = "riki christodoulou"
What date was the circuit, snetterton, when riki christodoulou had the fastest lap?
CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, fastest_lap VARCHAR)
SELECT opponent FROM table_17924362_1 WHERE date = "December 8"
Name the opponent for december 8
CREATE TABLE table_17924362_1 (opponent VARCHAR, date VARCHAR)
SELECT college FROM table_name_46 WHERE overall = 308
Which College has an Overall of 308?
CREATE TABLE table_name_46 (college VARCHAR, overall VARCHAR)
SELECT outcome FROM table_name_83 WHERE tournament = "tokyo"
what is the outcome when the tournament is tokyo?
CREATE TABLE table_name_83 (outcome VARCHAR, tournament VARCHAR)
SELECT province FROM table_27274222_2 WHERE turnout___percentage_ = "54.09"
What province had a turnout of 54.09%?
CREATE TABLE table_27274222_2 (province VARCHAR, turnout___percentage_ VARCHAR)
SELECT AVG(attendance) FROM table_name_44 WHERE record = "37–21–12" AND points < 86
What is the Attendance of the game with a Record of 37–21–12 and less than 86 Points?
CREATE TABLE table_name_44 (attendance INTEGER, record VARCHAR, points VARCHAR)
SELECT country FROM table_name_2 WHERE score = 66 - 65 - 66 - 72 = 269
What country scored 66-65-66-72=269?
CREATE TABLE table_name_2 (country VARCHAR, score VARCHAR)
SELECT polish FROM table_25008327_8 WHERE belarusian = "ноч"
What is every value for Polish when Balarusian is ноч?
CREATE TABLE table_25008327_8 (polish VARCHAR, belarusian VARCHAR)
SELECT result FROM table_name_11 WHERE date = "august 27, 1980"
What is the result when the date is August 27, 1980?
CREATE TABLE table_name_11 (result VARCHAR, date VARCHAR)
SELECT network FROM table_name_25 WHERE year = 2011
What's the network in 2011?
CREATE TABLE table_name_25 (network VARCHAR, year VARCHAR)
SELECT season FROM table_name_68 WHERE south = "esc holzkirchen" AND west = "esv buchloe" AND north = "ehc bayreuth"
What season has esc holzkirchen south, esv buchloe west, and ehc bayreuth north?
CREATE TABLE table_name_68 (season VARCHAR, north VARCHAR, south VARCHAR, west VARCHAR)
SELECT icb_sector FROM table_168274_1 WHERE ticker_symbol = "AI"
Name the icb sector for ai
CREATE TABLE table_168274_1 (icb_sector VARCHAR, ticker_symbol VARCHAR)
SELECT province FROM table_15081939_4 WHERE swimsuit = "8.43"
Which province got a swimsuit score of 8.43
CREATE TABLE table_15081939_4 (province VARCHAR, swimsuit VARCHAR)
SELECT home_team FROM table_name_46 WHERE venue = "victoria park"
Which home team plays at victoria park?
CREATE TABLE table_name_46 (home_team VARCHAR, venue VARCHAR)
SELECT score_points FROM table_name_80 WHERE rank_points = "defending champion"
What Score points has a Rank points of defending champion?
CREATE TABLE table_name_80 (score_points VARCHAR, rank_points VARCHAR)
SELECT years_for_grizzlies FROM table_name_56 WHERE position = "point guard" AND school_club_team = "florida"
What are the years when the grizzlies had a point guard who attended the school/club Florida?
CREATE TABLE table_name_56 (years_for_grizzlies VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT season FROM table_name_75 WHERE club = "south melbourne"
In what season was there a club of South Melbourne?
CREATE TABLE table_name_75 (season VARCHAR, club VARCHAR)
SELECT COUNT(quantity) FROM table_name_11 WHERE type = "1′c1′ h2t"
How much Quantity has a Type of 1′c1′ h2t?
CREATE TABLE table_name_11 (quantity VARCHAR, type VARCHAR)
SELECT COUNT(season) FROM table_name_27 WHERE team_2 = "chonburi" AND score = "0:1"
Can you tell me the total number of Season that has the Team 2 of chonburi, and the Score of 0:1?
CREATE TABLE table_name_27 (season VARCHAR, team_2 VARCHAR, score VARCHAR)
SELECT MAX(goals) FROM table_name_37 WHERE player = "robbie findley" AND rank < 10
What is the highest number of goals for robbie findley ranked above 10?
CREATE TABLE table_name_37 (goals INTEGER, player VARCHAR, rank VARCHAR)
SELECT record FROM table_name_79 WHERE opponent = "alexis vila"
What was the record after the bout with Alexis Vila?
CREATE TABLE table_name_79 (record VARCHAR, opponent VARCHAR)
SELECT Status FROM roller_coaster GROUP BY Status ORDER BY COUNT(*) DESC LIMIT 1
Please show the most common status of roller coasters.
CREATE TABLE roller_coaster (Status VARCHAR)
SELECT player FROM table_name_5 WHERE total = 9 AND opposition = "offaly"
Which Player has a Total of 9, and an Opposition of offaly?
CREATE TABLE table_name_5 (player VARCHAR, total VARCHAR, opposition VARCHAR)
SELECT production_code FROM table_name_92 WHERE no_in_series = 174
What production code does episode 174 of Melrose place have?
CREATE TABLE table_name_92 (production_code VARCHAR, no_in_series VARCHAR)
SELECT SUM(quantity) FROM table_name_60 WHERE year < 2011 AND model = "slf-230"
Name the sum of quantity for before 2011 model slf-230
CREATE TABLE table_name_60 (quantity INTEGER, year VARCHAR, model VARCHAR)
SELECT tournament FROM table_name_20 WHERE score_in_the_final = "1–6, 3–6"
Tell me the tournament for score in the final of 1–6, 3–6
CREATE TABLE table_name_20 (tournament VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(district) FROM table_name_57 WHERE democratic = "nicholas von stein"
How many districts featured the democrat nicholas von stein?
CREATE TABLE table_name_57 (district VARCHAR, democratic VARCHAR)
SELECT pick__number FROM table_name_6 WHERE round < 6 AND overall > 13 AND college = "penn state"
Which Pick # has a Round smaller than 6, and an Overall larger than 13, and a College of penn state?
CREATE TABLE table_name_6 (pick__number VARCHAR, college VARCHAR, round VARCHAR, overall VARCHAR)
SELECT Name FROM Projects WHERE NOT Code IN (SELECT Project FROM AssignedTo)
Select the project names which are not assigned yet.
CREATE TABLE Projects (Name VARCHAR, Code VARCHAR, Project VARCHAR); CREATE TABLE AssignedTo (Name VARCHAR, Code VARCHAR, Project VARCHAR)
SELECT name FROM table_name_35 WHERE current_age = 29
What is the prisoner's name that is currently 29 years old?
CREATE TABLE table_name_35 (name VARCHAR, current_age VARCHAR)
SELECT state FROM bank GROUP BY state ORDER BY SUM(no_of_customers) DESC LIMIT 1
Find the state which has the most number of customers.
CREATE TABLE bank (state VARCHAR, no_of_customers INTEGER)
SELECT season FROM table_29697744_1 WHERE position = "5th"
in which year the season was in 5th position
CREATE TABLE table_29697744_1 (season VARCHAR, position VARCHAR)
SELECT production_company FROM table_name_54 WHERE director_s_ = "daniel cormack"
What was the production company for the film directed by Daniel Cormack?
CREATE TABLE table_name_54 (production_company VARCHAR, director_s_ VARCHAR)
SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN endowment AS T3 ON T2.school_id = T3.school_id GROUP BY T2.school_name HAVING SUM(T1.budgeted) > 100 OR SUM(T3.amount) > 10
Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10.
CREATE TABLE endowment (school_id VARCHAR, amount INTEGER); CREATE TABLE budget (school_id VARCHAR, budgeted INTEGER); CREATE TABLE school (school_name VARCHAR, school_id VARCHAR)
SELECT position FROM table_11677691_7 WHERE school = "Saguaro High school"
Which player is from Saguaro High School?
CREATE TABLE table_11677691_7 (position VARCHAR, school VARCHAR)
SELECT SUM(pick) FROM table_name_30 WHERE player = "john jones"
What was John Jones's pick#?
CREATE TABLE table_name_30 (pick INTEGER, player VARCHAR)
SELECT last_top_division_title FROM table_1908877_2 WHERE club = "Citizen"
when did the club Citizen achieve its last top division title?
CREATE TABLE table_1908877_2 (last_top_division_title VARCHAR, club VARCHAR)
SELECT year_s__of_manufacture FROM table_name_92 WHERE axle_arrangement = "2′b n2"
Which Year(s) of manufacture has an Axle arrangement of 2′b n2?
CREATE TABLE table_name_92 (year_s__of_manufacture VARCHAR, axle_arrangement VARCHAR)
SELECT away FROM table_name_40 WHERE home = "1-2" AND league = "bundesliga"
Playing in the Bundesliga league, what was the Away record for the team with an At Home record of 1-2?
CREATE TABLE table_name_40 (away VARCHAR, home VARCHAR, league VARCHAR)
SELECT leading_scorer FROM table_name_18 WHERE record = "9–6"
What is the name of the leading scorer when the record was 9–6?
CREATE TABLE table_name_18 (leading_scorer VARCHAR, record VARCHAR)
SELECT name FROM table_name_21 WHERE location = "ljubljana" AND year_proposed = "2010" AND floors = "15"
What building is in ljubljana, proposed in 2010, and has 15 floors?
CREATE TABLE table_name_21 (name VARCHAR, floors VARCHAR, location VARCHAR, year_proposed VARCHAR)
SELECT liberal_ticket FROM table_name_51 WHERE free_libertarian_ticket = "robert s. flanzer"
Robert S. Flanzer was the Free Libertarian ticket with who listed as the Liberal Ticket?
CREATE TABLE table_name_51 (liberal_ticket VARCHAR, free_libertarian_ticket VARCHAR)
SELECT date FROM table_name_12 WHERE winning_driver = "fabrizio giovanardi christian abt"
What is the date that Fabrizio Giovanardi Christian Abt won?
CREATE TABLE table_name_12 (date VARCHAR, winning_driver VARCHAR)
SELECT province FROM table_name_82 WHERE capital = "muju"
Which province has muju as the capital?
CREATE TABLE table_name_82 (province VARCHAR, capital VARCHAR)
SELECT timeslot FROM table_name_43 WHERE finale = "may 20, 2003"
What time did the season finale air on May 20, 2003?
CREATE TABLE table_name_43 (timeslot VARCHAR, finale VARCHAR)
SELECT record FROM table_name_34 WHERE game > 32 AND december < 21
Which Record has a Game larger than 32, and a December smaller than 21?
CREATE TABLE table_name_34 (record VARCHAR, game VARCHAR, december VARCHAR)
SELECT MAX(laps) FROM table_name_73 WHERE rank = "14"
What is the highest laps of the year when the rank was 14?
CREATE TABLE table_name_73 (laps INTEGER, rank VARCHAR)
SELECT MAX(2002) FROM table_name_38 WHERE 2008 > 19.5 AND 2006 < 24.5 AND 1999 = 18.3
What is the maximum 2002 figure when 2008 is 19.5, 2006 is less than 24.5 and 1999 is 18.3?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT episode__number FROM table_10269427_3 WHERE production_code = 227
what is the episode # for production code 227
CREATE TABLE table_10269427_3 (episode__number VARCHAR, production_code VARCHAR)
SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part'
Show the names of customers who have both an order in completed status and an order in part status.
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_status_code VARCHAR)
SELECT ohio FROM table_18461045_1 WHERE kentucky = "Warren County South LL Bowling Green"
What was the little league team from Ohio when the little league team from Kentucky was Warren County South LL Bowling Green?
CREATE TABLE table_18461045_1 (ohio VARCHAR, kentucky VARCHAR)
SELECT latitude FROM table_16768245_2 WHERE diameter = "184.0"
What is the latitude when the diameter is 184.0?
CREATE TABLE table_16768245_2 (latitude VARCHAR, diameter VARCHAR)
SELECT MAX(laps) FROM table_name_12 WHERE rider = "max biaggi" AND grid > 2
What is the highest number of laps that max biaggi rode on a grid larger than 2?
CREATE TABLE table_name_12 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT team FROM table_name_85 WHERE round < 9 AND pole_position = "takashi kogure"
Before round 9, when Takashi Kogure held pole position, who was the team?
CREATE TABLE table_name_85 (team VARCHAR, round VARCHAR, pole_position VARCHAR)
SELECT record FROM table_name_17 WHERE game = 13
what is the record when the game is 13?
CREATE TABLE table_name_17 (record VARCHAR, game VARCHAR)
SELECT date FROM table_name_38 WHERE score = "1-5"
Name the date for score of 1-5
CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)
SELECT AVG(grid) FROM table_name_52 WHERE time_retired = "+1 lap" AND laps > 27
What is the grid average with a +1 lap time and more than 27 laps?
CREATE TABLE table_name_52 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT SUM(to_par) FROM table_name_35 WHERE year_s__won = "1978 , 1985"
What is the sum of To Par, when Year(s) Won is "1978 , 1985"?
CREATE TABLE table_name_35 (to_par INTEGER, year_s__won VARCHAR)
SELECT canadian_championship FROM table_name_85 WHERE league = "84 (4)"
What Canadian Championship has 84 (4) as the league?
CREATE TABLE table_name_85 (canadian_championship VARCHAR, league VARCHAR)
SELECT place FROM table_name_88 WHERE event = "half marathon"
What is the Place of the half marathon Event?
CREATE TABLE table_name_88 (place VARCHAR, event VARCHAR)
SELECT date FROM table_name_53 WHERE stage = 5
When did stage 5 occur?
CREATE TABLE table_name_53 (date VARCHAR, stage VARCHAR)
SELECT score FROM table_name_49 WHERE venue = "olympic stadium tokyo, japan"
What's the score at Olympic Stadium Tokyo, Japan?
CREATE TABLE table_name_49 (score VARCHAR, venue VARCHAR)
SELECT winning_driver FROM table_name_26 WHERE race_name = "vii rand grand prix"
What driver won the VII Rand Grand Prix?
CREATE TABLE table_name_26 (winning_driver VARCHAR, race_name VARCHAR)
SELECT i_o_bus FROM table_name_65 WHERE release_price___usd__ = "$657"
What is the I/O bus entry for the processor with a release price of $657?
CREATE TABLE table_name_65 (i_o_bus VARCHAR, release_price___usd__ VARCHAR)
SELECT MIN(wins) FROM table_name_75 WHERE points < 32 AND class = "350cc" AND rank = "8th"
What is the fewest number of wins for a team ranked 8th with fewer than 32 points in the 350cc class?
CREATE TABLE table_name_75 (wins INTEGER, rank VARCHAR, points VARCHAR, class VARCHAR)
SELECT COUNT(total_assists) FROM table_name_20 WHERE games > 107 AND rank < 2
How many assists for player(s) with over 107 games and ranked less than 2?
CREATE TABLE table_name_20 (total_assists VARCHAR, games VARCHAR, rank VARCHAR)
SELECT city FROM table_name_48 WHERE county = "40 jennings" AND school = "north vernon"
Which city has a school of North Vernon and a county of 40 Jennings?
CREATE TABLE table_name_48 (city VARCHAR, county VARCHAR, school VARCHAR)
SELECT copa_mercosur_1998 FROM table_14962316_9 WHERE team = "Cruzeiro"
What were Cruzeiro results in the Copa Mercosur in 1998
CREATE TABLE table_14962316_9 (copa_mercosur_1998 VARCHAR, team VARCHAR)
SELECT period__h_ FROM table_206217_2 WHERE eccentricity = "0.583085"
What is every value of period when eccentricity is 0.583085?
CREATE TABLE table_206217_2 (period__h_ VARCHAR, eccentricity VARCHAR)
SELECT record FROM table_name_16 WHERE date = "april 24"
What is Record, when Date is "April 24"?
CREATE TABLE table_name_16 (record VARCHAR, date VARCHAR)
SELECT country FROM table_name_76 WHERE opened = 2002 AND model = "spinning coaster" AND park = "disney's animal kingdom"
Which country has a rollercoaster that opened in 2002, is a spinning coaster, and is located in Disney's Animal Kingdom?
CREATE TABLE table_name_76 (country VARCHAR, park VARCHAR, opened VARCHAR, model VARCHAR)
SELECT club FROM table_name_8 WHERE try_bonus = "2"
Which club has a try bonus of 2 ?
CREATE TABLE table_name_8 (club VARCHAR, try_bonus VARCHAR)
SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance
Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.
CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR)
SELECT MAX(wins) FROM table_name_20 WHERE tournament = "masters tournament" AND events < 15
How many wins were in the Masters Tournament with less than 15 events?
CREATE TABLE table_name_20 (wins INTEGER, tournament VARCHAR, events VARCHAR)
SELECT position FROM table_1965650_2 WHERE player = "Glenn Goldup"
Name the position of glenn goldup
CREATE TABLE table_1965650_2 (position VARCHAR, player VARCHAR)