answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT name FROM table_name_32 WHERE rank > 17 AND confederation = "uefa" AND caps = 114
Which UEFA confederation member had a rank more than 17 and caps of 114?
CREATE TABLE table_name_32 (name VARCHAR, caps VARCHAR, rank VARCHAR, confederation VARCHAR)
SELECT engine FROM table_name_9 WHERE years = "1975-84" AND displacement = "1585cc"
What engine with years of 1975-84 has a displacement of 1585cc?
CREATE TABLE table_name_9 (engine VARCHAR, years VARCHAR, displacement VARCHAR)
SELECT muzzle_velocity FROM table_name_32 WHERE cartridge = ".38 long colt"
What is the muzzle velocity for the .38 long colt cartridge?
CREATE TABLE table_name_32 (muzzle_velocity VARCHAR, cartridge VARCHAR)
SELECT MIN(season) FROM table_name_42 WHERE last_aired = "august 20, 2010"
Of the series that last aired August 20, 2010, what is the lowest number of seasons?
CREATE TABLE table_name_42 (season INTEGER, last_aired VARCHAR)
SELECT games FROM table_name_86 WHERE tied = 10
What is the number of games for the season with 10 ties?
CREATE TABLE table_name_86 (games VARCHAR, tied VARCHAR)
SELECT directed_by FROM table_22904752_1 WHERE no = 79
Who is no. 79 directed by?
CREATE TABLE table_22904752_1 (directed_by VARCHAR, no VARCHAR)
SELECT position FROM table_name_59 WHERE school = "glades day school"
What is the position of the player from Glades Day School?
CREATE TABLE table_name_59 (position VARCHAR, school VARCHAR)
SELECT score FROM table_name_7 WHERE partnering = "nathalie tauziat"
What was the score of the game with Nathalie Tauziat as a partner?
CREATE TABLE table_name_7 (score VARCHAR, partnering VARCHAR)
SELECT memory_map FROM table_name_68 WHERE byte_string = "standard" AND max_memory__kwords_ > 128 AND model = "sigma 9"
On a Sigma 9 with a standard byte string and more than 128 max memory, what is the value of the memory map?
CREATE TABLE table_name_68 (memory_map VARCHAR, model VARCHAR, byte_string VARCHAR, max_memory__kwords_ VARCHAR)
SELECT netflix FROM table_15187735_15 WHERE segment_d = "High-Performance Engines"
What is the netflix episode number where Segment D is high-performance engines?
CREATE TABLE table_15187735_15 (netflix VARCHAR, segment_d VARCHAR)
SELECT literary_tradition FROM table_name_74 WHERE language_s_ = "english" AND year = 2011
What is the literary traidtion for the film in english in 2011?
CREATE TABLE table_name_74 (literary_tradition VARCHAR, language_s_ VARCHAR, year VARCHAR)
SELECT venue FROM table_name_28 WHERE date = "18/03/2006"
What was the venue for the game on 18/03/2006?
CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR)
SELECT MAX(seats) FROM table_name_61 WHERE share_of_votes = "45.3%" AND total_seats < 166
with shares of 45.3% and total seats less than 166. what is the greatest number of seat?
CREATE TABLE table_name_61 (seats INTEGER, share_of_votes VARCHAR, total_seats VARCHAR)
SELECT COUNT(incumbent) FROM table_1341663_11 WHERE first_elected = 1972
How many sitting politicians were originally elected in 1972?
CREATE TABLE table_1341663_11 (incumbent VARCHAR, first_elected VARCHAR)
SELECT fa_cup_apps FROM table_19730892_1 WHERE name = "Arthur Morton"
Name the fa cup apps for arthur morton
CREATE TABLE table_19730892_1 (fa_cup_apps VARCHAR, name VARCHAR)
SELECT date FROM table_name_52 WHERE comment = "tailcone on, lakebed landing" AND duration = "5min 34 s"
What is Date, when Comment is Tailcone On, Lakebed Landing, and when Duration is 5min 34 s?
CREATE TABLE table_name_52 (date VARCHAR, comment VARCHAR, duration VARCHAR)
SELECT first_elected FROM table_name_6 WHERE member = "john armitage"
What is the year First elected when the Member is John Armitage?
CREATE TABLE table_name_6 (first_elected VARCHAR, member VARCHAR)
SELECT date FROM table_name_90 WHERE venue = "los angeles"
On what Date was the Venue Los Angeles?
CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)
SELECT part_2 FROM table_name_42 WHERE part_5 = "january 24, 2008"
When is Part 2, when Part 5 is on January 24, 2008?
CREATE TABLE table_name_42 (part_2 VARCHAR, part_5 VARCHAR)
SELECT SUM(year) FROM table_name_93 WHERE edition > 4 AND winner = "new york red bulls"
I want the sum of year for edition more than 4 and winners of new york red bulls
CREATE TABLE table_name_93 (year INTEGER, edition VARCHAR, winner VARCHAR)
SELECT points FROM table_name_23 WHERE year > 1985 AND engine = "cosworth v8"
How many points for the cosworth v8 engine after 1985?
CREATE TABLE table_name_23 (points VARCHAR, year VARCHAR, engine VARCHAR)
SELECT d_42_√ FROM table_name_59 WHERE d_44_√ = "majorityβ†’"
What's the D 42 √ when D 44 √ is majorityβ†’?
CREATE TABLE table_name_59 (d_42_√ VARCHAR, d_44_√ VARCHAR)
SELECT COUNT(height) FROM table_name_22 WHERE spike < 340 AND name = "gilberto godoy filho" AND weight < 85
Weighing less than 85, with less than 340 Spikes, what is Gilberto Godoy Filho's Height
CREATE TABLE table_name_22 (height VARCHAR, weight VARCHAR, spike VARCHAR, name VARCHAR)
SELECT genre FROM table_name_98 WHERE release_year_of_first_charted_record = 1988
Name the genre for release-year of first charted record of 1988
CREATE TABLE table_name_98 (genre VARCHAR, release_year_of_first_charted_record VARCHAR)
SELECT shortstop FROM table_12142298_2 WHERE first_baseman = "Paul Konerko"
Who played SS when paul konerko played 1st base?
CREATE TABLE table_12142298_2 (shortstop VARCHAR, first_baseman VARCHAR)
SELECT opponent FROM table_14423274_3 WHERE game_site = "Rich Stadium"
Which team did they play at Rich Stadium?
CREATE TABLE table_14423274_3 (opponent VARCHAR, game_site VARCHAR)
SELECT MAX(_number) FROM table_2985714_2
What is the maximum overall number?
CREATE TABLE table_2985714_2 (_number INTEGER)
SELECT chassis FROM table_name_43 WHERE points = 16
Which chassis had 16 points?
CREATE TABLE table_name_43 (chassis VARCHAR, points VARCHAR)
SELECT COUNT(goals_against) FROM table_name_14 WHERE points_1 = 44 AND goals_for > 65
When the Points 1 were 44 and the Goals For were larger than 65, what was the total number of Goals Against?
CREATE TABLE table_name_14 (goals_against VARCHAR, points_1 VARCHAR, goals_for VARCHAR)
SELECT partner FROM table_name_95 WHERE opponents_in_the_final = "florian mayer & alexander waske"
Who is the partner facing the opponents florian Mayer & alexander waske in the final?
CREATE TABLE table_name_95 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT AVG(season) FROM table_name_45 WHERE coach = "fisher" AND actual_adjusted_record = "0–11"
What is the average Season for coach Fisher, and an actual adjusted record of 0–11?
CREATE TABLE table_name_45 (season INTEGER, coach VARCHAR, actual_adjusted_record VARCHAR)
SELECT title FROM table_name_21 WHERE representative = "edward h. strobel"
Name the title with representative edward h. strobel
CREATE TABLE table_name_21 (title VARCHAR, representative VARCHAR)
SELECT id_code_of_his_zero_fighter FROM table_name_1 WHERE count = "10"
Which Zero Fighter has a count of 10?
CREATE TABLE table_name_1 (id_code_of_his_zero_fighter VARCHAR, count VARCHAR)
SELECT name, openning_year FROM cinema ORDER BY openning_year DESC
Show all the cinema names and opening years in descending order of opening year.
CREATE TABLE cinema (name VARCHAR, openning_year VARCHAR)
SELECT national_team FROM table_name_6 WHERE year = "total"
Which National team has a Year of total?
CREATE TABLE table_name_6 (national_team VARCHAR, year VARCHAR)
SELECT championship_game FROM table_name_29 WHERE final_four = "1" AND conference = "american south"
What is the Championship Game when the Final Four is 1 and the conference is American South?
CREATE TABLE table_name_29 (championship_game VARCHAR, final_four VARCHAR, conference VARCHAR)
SELECT country FROM table_name_11 WHERE city = "istanbul"
What country is Istanbul in?
CREATE TABLE table_name_11 (country VARCHAR, city VARCHAR)
SELECT college_junior_club_team FROM table_2840500_8 WHERE player = "Andrej Podkonicky"
Name the college for andrej podkonicky
CREATE TABLE table_2840500_8 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT COUNT(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'
How many different courses offered by Physics department?
CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR)
SELECT COUNT(name) FROM table_19061741_3 WHERE duration = "Days 1-86"
When days 1-86 is the duration how many names are there?
CREATE TABLE table_19061741_3 (name VARCHAR, duration VARCHAR)
SELECT player FROM table_name_76 WHERE score = 66
WHAT IS THE PLAYER WITH A SCORE OF 66?
CREATE TABLE table_name_76 (player VARCHAR, score VARCHAR)
SELECT cfl_team FROM table_name_68 WHERE position = "d"
what is the cfl team for position d?
CREATE TABLE table_name_68 (cfl_team VARCHAR, position VARCHAR)
SELECT playoffs FROM table_1939214_1 WHERE league = "USISL Pro league"
What was the team's status in the USISL Pro League playoffs?
CREATE TABLE table_1939214_1 (playoffs VARCHAR, league VARCHAR)
SELECT years FROM table_name_47 WHERE assist < 26 AND rank < 6 AND nation = "usa"
Which years did the USA have a rank lower than 6 and an assist number less than 26?
CREATE TABLE table_name_47 (years VARCHAR, nation VARCHAR, assist VARCHAR, rank VARCHAR)
SELECT score FROM table_name_81 WHERE game > 40 AND record = "25-10-8"
Which Score has a Game larger than 40, and a Record of 25-10-8?
CREATE TABLE table_name_81 (score VARCHAR, game VARCHAR, record VARCHAR)
SELECT russian_name FROM table_name_86 WHERE latin_3_letter_code = "lbr"
What is the Russian name with lbr as the Latin 3-letter code?
CREATE TABLE table_name_86 (russian_name VARCHAR, latin_3_letter_code VARCHAR)
SELECT loser FROM table_name_32 WHERE result = "35-27"
What was the Loser of the Game with a Result of 35-27?
CREATE TABLE table_name_32 (loser VARCHAR, result VARCHAR)
SELECT campus FROM campuses WHERE county = "Los Angeles" AND YEAR > 1950
Which university is in Los Angeles county and opened after 1950?
CREATE TABLE campuses (campus VARCHAR, county VARCHAR, YEAR VARCHAR)
SELECT player FROM table_name_41 WHERE to_par = "–4"
What is the name of the player with a To par of –4?
CREATE TABLE table_name_41 (player VARCHAR, to_par VARCHAR)
SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND points > 9 AND position = 5 AND against < 12
What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?
CREATE TABLE table_name_51 (played INTEGER, against VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR)
SELECT elimination FROM table_name_96 WHERE wrestler = "candice"
What is the Elimination for Candice?
CREATE TABLE table_name_96 (elimination VARCHAR, wrestler VARCHAR)
SELECT SUM(avg_g) FROM table_name_32 WHERE name = "robert marve" AND gain < 236
How much Avg/G has a Name of robert marve, and a Gain smaller than 236?
CREATE TABLE table_name_32 (avg_g INTEGER, name VARCHAR, gain VARCHAR)
SELECT COUNT(population_est__2012_) FROM table_name_53 WHERE capital = "montpelier" AND house_seat_s_ > 1
How many populations have a capital of Montpelier and more than 1 House seat?
CREATE TABLE table_name_53 (population_est__2012_ VARCHAR, capital VARCHAR, house_seat_s_ VARCHAR)
SELECT away_team FROM table_name_51 WHERE home_team = "melbourne"
During melbourne's home game, who was the away team?
CREATE TABLE table_name_51 (away_team VARCHAR, home_team VARCHAR)
SELECT AVG(draw) FROM table_name_64 WHERE artist = "desi dobreva" AND place < 6
What is the average draw for Desi Dobreva, was it less than 6?
CREATE TABLE table_name_64 (draw INTEGER, artist VARCHAR, place VARCHAR)
SELECT score FROM table_name_2 WHERE competition = "1978 world cup qualification"
WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification?
CREATE TABLE table_name_2 (score VARCHAR, competition VARCHAR)
SELECT MAX(padilla_municipality) FROM table_2509350_3 WHERE language = "Quechua"
Name the most padilla municipality for quechua
CREATE TABLE table_2509350_3 (padilla_municipality INTEGER, language VARCHAR)
SELECT AVG(bronze) FROM table_name_94 WHERE silver < 1 AND total > 3
Which Bronze has a Silver smaller than 1, and a Total larger than 3?
CREATE TABLE table_name_94 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT time___gmt__ FROM table_name_66 WHERE serial = "4a"
What is the time (GMT) for the 4A Serial?
CREATE TABLE table_name_66 (time___gmt__ VARCHAR, serial VARCHAR)
SELECT margin_of_victory FROM table_name_6 WHERE winning_score = –10(70 - 72 - 68 - 68 = 278)
What was the margin of victory when the winning score was –10 (70-72-68-68=278)?
CREATE TABLE table_name_6 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT 2007 FROM table_name_70 WHERE 2010 = "3r"
What is the 2007 when the 2010 is 3r?
CREATE TABLE table_name_70 (Id VARCHAR)
SELECT result FROM table_name_68 WHERE road_team = "boston" AND date = "april 23"
WHAT IS THE RESULT WITH THE BOSTON ROAD TEAM, ON APRIL 23?
CREATE TABLE table_name_68 (result VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT COUNT(draws) FROM table_18594107_1 WHERE scored = 25
How many draws occurred when 25 points were scored?
CREATE TABLE table_18594107_1 (draws VARCHAR, scored VARCHAR)
SELECT MIN(1977) FROM table_name_23 WHERE county = "zzz bucharest" AND 2011 < 1883425
Which 1977 is the lowest one that has a County of zzz bucharest, and a 2011 smaller than 1883425?
CREATE TABLE table_name_23 (county VARCHAR)
SELECT athletes FROM table_name_82 WHERE country = "germany"
What athletes represented the country of germany?
CREATE TABLE table_name_82 (athletes VARCHAR, country VARCHAR)
SELECT opponents_in_final FROM table_name_5 WHERE score_in_final = "6–4, 3–6, 5–7"
What was the Opponents in Final during the match with a Score in Final of 6–4, 3–6, 5–7?
CREATE TABLE table_name_5 (opponents_in_final VARCHAR, score_in_final VARCHAR)
SELECT quantity FROM table_name_67 WHERE seats = 16 AND class = "kss 1913"
What is the quantity when the seats number was 16 and the class was kss 1913?
CREATE TABLE table_name_67 (quantity VARCHAR, seats VARCHAR, class VARCHAR)
SELECT womens_doubles FROM table_15001681_1 WHERE womens_singles = "no competition" AND mens_doubles = "Roland Hilti Kilian Pfister" AND year = 2006
In the year 2006, the womens singles had no competition and the mens doubles were roland hilti kilian pfister, what were the womens doubles
CREATE TABLE table_15001681_1 (womens_doubles VARCHAR, year VARCHAR, womens_singles VARCHAR, mens_doubles VARCHAR)
SELECT label FROM table_name_41 WHERE english_title = "another she"
What is Another She's Label?
CREATE TABLE table_name_41 (label VARCHAR, english_title VARCHAR)
SELECT COUNT(peak) FROM table_name_34 WHERE hk_viewers = "2.23 million" AND rank > 2
How many entries have a HK viewers of 2.23 million, and a Rank below 2?
CREATE TABLE table_name_34 (peak VARCHAR, hk_viewers VARCHAR, rank VARCHAR)
SELECT segment_a FROM table_name_61 WHERE segment_b = "s awning"
Which Segment A has a Segment B of s awning?
CREATE TABLE table_name_61 (segment_a VARCHAR, segment_b VARCHAR)
SELECT birthplace FROM table_name_86 WHERE weight__kg_ = 98 AND birthdate = "may 1, 1984"
What was the birthplace of the player who weighs 98 KG and was born on May 1, 1984?
CREATE TABLE table_name_86 (birthplace VARCHAR, weight__kg_ VARCHAR, birthdate VARCHAR)
SELECT result FROM table_name_78 WHERE date = "november 24, 1946"
What is the Result of the game on November 24, 1946?
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)
SELECT MAX(championships) FROM table_name_48 WHERE league = "evergreen premier league"
How many championships does Evergreen Premier League have?
CREATE TABLE table_name_48 (championships INTEGER, league VARCHAR)
SELECT gloss FROM table_name_79 WHERE latin = "castitas"
What's the gloss with Castitas(Latin)?
CREATE TABLE table_name_79 (gloss VARCHAR, latin VARCHAR)
SELECT catalog FROM table_name_15 WHERE date = "november 16, 2004"
What is the catalog number with the date November 16, 2004?
CREATE TABLE table_name_15 (catalog VARCHAR, date VARCHAR)
SELECT AVG(games_played) FROM table_name_5 WHERE loses = 10 AND player = "bo oshoniyi" AND minutes > 1170
What is the average Games Played for Bo Oshoniyi, who had more than 1170 minutes and 10 loses?
CREATE TABLE table_name_5 (games_played INTEGER, minutes VARCHAR, loses VARCHAR, player VARCHAR)
SELECT location FROM table_name_36 WHERE opponent = "bob stines"
What is the Location of the match against Bob Stines?
CREATE TABLE table_name_36 (location VARCHAR, opponent VARCHAR)
SELECT home_team FROM table_name_16 WHERE venue = "mcg"
Which team plays their home matches at the mcg Venue?
CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR)
SELECT record_description FROM table_name_96 WHERE achievement = "m (ft)" AND type = "mi-10r" AND pilot = "v.p. koloshenko" AND date = "28 may 1965"
Achievement of m (ft), and a Type of mi-10r, and a Pilot of v.p. koloshenko, and a Date of 28 may 1965 had what record description?
CREATE TABLE table_name_96 (record_description VARCHAR, date VARCHAR, pilot VARCHAR, achievement VARCHAR, type VARCHAR)
SELECT MAX(game) FROM table_name_56 WHERE january > 18 AND decision = "valiquette"
Which Game has a January larger than 18, and a Decision of valiquette?
CREATE TABLE table_name_56 (game INTEGER, january VARCHAR, decision VARCHAR)
SELECT time FROM table_name_53 WHERE name = "yuliya yefimova"
What is the time of Yuliya Yefimova?
CREATE TABLE table_name_53 (time VARCHAR, name VARCHAR)
SELECT driver FROM table_name_86 WHERE class = "cm22" AND navigator = "macneall"
Who was the driver of the vehicle having class of CM22 and navigator of Macneall?
CREATE TABLE table_name_86 (driver VARCHAR, class VARCHAR, navigator VARCHAR)
SELECT record FROM table_name_9 WHERE res = "loss" AND round = "1" AND opponent = "akira maeda"
What record has loss as the res., 1 for the round, and akira maeda as the opponent?
CREATE TABLE table_name_9 (record VARCHAR, opponent VARCHAR, res VARCHAR, round VARCHAR)
SELECT name FROM table_name_98 WHERE location = "angola" AND entered_service = "1988"
Which is located in Angola and entered service in 1988?
CREATE TABLE table_name_98 (name VARCHAR, location VARCHAR, entered_service VARCHAR)
SELECT SUM(gold) FROM table_name_2 WHERE total < 1
What is the total gold with a total less than 1?
CREATE TABLE table_name_2 (gold INTEGER, total INTEGER)
SELECT recnet FROM table_name_51 WHERE frequency = "91.1 fm"
What is listed for the RECNet that also has a Frequency of 91.1 FM?
CREATE TABLE table_name_51 (recnet VARCHAR, frequency VARCHAR)
SELECT outcome FROM table_name_1 WHERE championship = "premier league snooker" AND year < 2010
What was Shaun Murphy's outcome in the Premier League Snooker championship held before 2010?
CREATE TABLE table_name_1 (outcome VARCHAR, championship VARCHAR, year VARCHAR)
SELECT name FROM table_name_40 WHERE league_cup = "0 (0)" AND fa_cup = "12 (14)"
What is the Name when the League Cup shows 0 (0), and the FA Cup is 12 (14)?
CREATE TABLE table_name_40 (name VARCHAR, league_cup VARCHAR, fa_cup VARCHAR)
SELECT county FROM table_22815568_13 WHERE market_income_per_capita = "$25,006"
what is the county where the market income per capita is $25,006?
CREATE TABLE table_22815568_13 (county VARCHAR, market_income_per_capita VARCHAR)
SELECT live_births_per_year FROM table_27434_2 WHERE life_expectancy_total = "65.1"
How many live births per year do people with a life expectancy of 65.1 have?
CREATE TABLE table_27434_2 (live_births_per_year VARCHAR, life_expectancy_total VARCHAR)
SELECT date FROM table_name_66 WHERE casualties = "1 wia" AND circumstances = "ied" AND location = "15km nw of pol-e khomri"
When was the location 15km NW of Pol-E Khomri, the circumstaances IED and the casualties of 1 WIA?
CREATE TABLE table_name_66 (date VARCHAR, location VARCHAR, casualties VARCHAR, circumstances VARCHAR)
SELECT series FROM table_25369796_1 WHERE points = "56"
What was the series where a team scored 56 points?
CREATE TABLE table_25369796_1 (series VARCHAR, points VARCHAR)
SELECT release_price___usd__ FROM table_name_53 WHERE model_number = "atom z510pt"
What was the release price of the Atom Z510PT processor?
CREATE TABLE table_name_53 (release_price___usd__ VARCHAR, model_number VARCHAR)
SELECT meet FROM table_name_67 WHERE date = "3 august 2012"
what is the meet when the date is 3 august 2012?
CREATE TABLE table_name_67 (meet VARCHAR, date VARCHAR)
SELECT score FROM table_name_36 WHERE odds = "p + 2" AND date > 1847
What was the score for a game with the odds of p + 2 after 1847?
CREATE TABLE table_name_36 (score VARCHAR, odds VARCHAR, date VARCHAR)
SELECT place FROM table_name_25 WHERE country = "united states" AND player = "corey pavin"
What place is United States player Corey Pavin in?
CREATE TABLE table_name_25 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT points FROM table_15467476_2 WHERE club = "Pontrhydyfen RFC"
Name the points for pontrhydyfen rfc
CREATE TABLE table_15467476_2 (points VARCHAR, club VARCHAR)
SELECT series FROM table_name_7 WHERE wins < 3 AND points = "9" AND podiums = 1
what is the series when wins is less than 3, points is 9 and podiums is 1?
CREATE TABLE table_name_7 (series VARCHAR, podiums VARCHAR, wins VARCHAR, points VARCHAR)
SELECT us_open_cup FROM table_1046170_5 WHERE playoffs = "division Semifinals"
which round is u.s. open cup division semifinals
CREATE TABLE table_1046170_5 (us_open_cup VARCHAR, playoffs VARCHAR)