answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT goals FROM table_name_13 WHERE caps > 8 AND player = "stein huysegems"
How many goals occurred for Stein Huysegems when the caps value is more than 8?
CREATE TABLE table_name_13 (goals VARCHAR, caps VARCHAR, player VARCHAR)
SELECT _percentage_win FROM table_name_98 WHERE total > 16 AND losses < 7
What is the win percentage when there's more than 16 totals and less than 7 losses?
CREATE TABLE table_name_98 (_percentage_win VARCHAR, total VARCHAR, losses VARCHAR)
SELECT wheels FROM table_name_31 WHERE built < 1958 AND location = "york" AND railway = "nsr"
Which Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr?
CREATE TABLE table_name_31 (wheels VARCHAR, railway VARCHAR, built VARCHAR, location VARCHAR)
SELECT district FROM table_1341423_21 WHERE incumbent = "Joe Moakley"
Which district is Joe Moakley?
CREATE TABLE table_1341423_21 (district VARCHAR, incumbent VARCHAR)
SELECT score FROM table_name_35 WHERE tie_no = "6"
What's the score when the tie number was 6?
CREATE TABLE table_name_35 (score VARCHAR, tie_no VARCHAR)
SELECT home_team AS score FROM table_name_38 WHERE venue = "glenferrie oval"
In the venue of Glenferrie Oval, what is the home team score?
CREATE TABLE table_name_38 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_8 WHERE away_team = "walsall"
Who was the home team when walsall was the away team?
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR)
SELECT city FROM table_name_32 WHERE first_season = 1996
What's the name of the city whose first season was in 1996?
CREATE TABLE table_name_32 (city VARCHAR, first_season VARCHAR)
SELECT production_code FROM table_26702204_1 WHERE us_viewers__million_ = "11.76"
What is the production code when the u.s. viewers (million) is 11.76?
CREATE TABLE table_26702204_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT director FROM table_name_51 WHERE result = "not nominated" AND original_title = "bayan ko: kapit sa patalim"
Which director had not nominated as a result, and had Bayan Ko: Kapit Sa Patalim as an original title?
CREATE TABLE table_name_51 (director VARCHAR, result VARCHAR, original_title VARCHAR)
SELECT crowd FROM table_name_77 WHERE away_team = "melbourne"
How large was the crowd when the away team was melbourne?
CREATE TABLE table_name_77 (crowd VARCHAR, away_team VARCHAR)
SELECT notes FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria"
What are the notes for svishtov , bulgaria?
CREATE TABLE table_242785_1 (notes VARCHAR, main_legionary_base VARCHAR)
SELECT AVG(january) FROM table_name_92 WHERE opponent = "chicago black hawks"
What is the average date in January that the Rangers played against Chicago Black Hawks?
CREATE TABLE table_name_92 (january INTEGER, opponent VARCHAR)
SELECT week_3 FROM table_name_54 WHERE week_2 = "ashley lowe"
Who is the cyber girl in week 3 when Ashley Lowe was the cyber girl in week 2?
CREATE TABLE table_name_54 (week_3 VARCHAR, week_2 VARCHAR)
SELECT MIN(money___) AS $__ FROM table_name_81 WHERE place = "t2" AND player = "johnny miller"
what is the lowest money ($) when the place is t2 for player johnny miller?
CREATE TABLE table_name_81 (money___ INTEGER, place VARCHAR, player VARCHAR)
SELECT college FROM table_name_82 WHERE player = "richard ticzon"
What college did Richard Ticzon attend?
CREATE TABLE table_name_82 (college VARCHAR, player VARCHAR)
SELECT date FROM table_name_71 WHERE game = 3
what is the date for game 3?
CREATE TABLE table_name_71 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_36 WHERE series = "amscar round 3"
What is Date, when Series is Amscar Round 3?
CREATE TABLE table_name_36 (date VARCHAR, series VARCHAR)
SELECT SUM(average) FROM table_name_16 WHERE caps = 68 AND goals < 9
What is the sum of the averages when there are 68 caps and less than 9 goals?
CREATE TABLE table_name_16 (average INTEGER, caps VARCHAR, goals VARCHAR)
SELECT date FROM table_21321935_2 WHERE pole_position = "Oliver Jarvis"
When did Oliver Jarvis have pole position?
CREATE TABLE table_21321935_2 (date VARCHAR, pole_position VARCHAR)
SELECT MIN(year) FROM table_name_93 WHERE to_par = "–1"
Which Year is the lowest one that has a To par of –1?
CREATE TABLE table_name_93 (year INTEGER, to_par VARCHAR)
SELECT MIN(minutes) FROM table_25016555_5 WHERE player = "Sandy Brondello"
When sandy brondello is the player what is the lowest amount of minutes?
CREATE TABLE table_25016555_5 (minutes INTEGER, player VARCHAR)
SELECT group FROM table_15926991_1 WHERE time = "1:11.65"
Which group had the time 1:11.65?
CREATE TABLE table_15926991_1 (group VARCHAR, time VARCHAR)
SELECT constructor FROM table_name_78 WHERE chassis = "talbot-lago t26c" AND driver = "charles pozzi"
Who is the constructor when the chassis is talbot-lago t26c and the driver is charles pozzi?
CREATE TABLE table_name_78 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT uu_usu_score FROM table_13665809_2 WHERE winner = "#5 Brigham Young (2–0)"
what are all the uu-usu score with winner is #5 brigham young (2–0)
CREATE TABLE table_13665809_2 (uu_usu_score VARCHAR, winner VARCHAR)
SELECT 2008 FROM table_name_79 WHERE tournament = "year end ranking"
what is 2008 when the tournament is year end ranking?
CREATE TABLE table_name_79 (tournament VARCHAR)
SELECT country FROM table_name_15 WHERE height__m_ > 4100 AND range = "arsi mountains" AND mountain = "bada"
Which Country has a Height (m) larger than 4100, and a Range of arsi mountains, and a Mountain of bada?
CREATE TABLE table_name_15 (country VARCHAR, mountain VARCHAR, height__m_ VARCHAR, range VARCHAR)
SELECT SUM(rebounds) FROM table_name_21 WHERE name = "fedor likholitov" AND rank > 8
How many rebounds does Fedor likholitov have with a rank greater than 8?
CREATE TABLE table_name_21 (rebounds INTEGER, name VARCHAR, rank VARCHAR)
SELECT championship FROM table_name_36 WHERE reign = "8"
Name the championship with reign of 8
CREATE TABLE table_name_36 (championship VARCHAR, reign VARCHAR)
SELECT make FROM table_name_33 WHERE pos > 9
Which Make has a Pos larger than 9?
CREATE TABLE table_name_33 (make VARCHAR, pos INTEGER)
SELECT away_team AS score FROM table_name_52 WHERE away_team = "north melbourne"
What was North Melbourne's score when they were the home team?
CREATE TABLE table_name_52 (away_team VARCHAR)
SELECT census_ranking FROM table_176529_2 WHERE population = 959
What is the census ranking of the location with population of 959?
CREATE TABLE table_176529_2 (census_ranking VARCHAR, population VARCHAR)
SELECT result FROM table_26977890_1 WHERE combatants_b = "Royal Navy"
With the Royal Navy as Combatants B, what was the result?
CREATE TABLE table_26977890_1 (result VARCHAR, combatants_b VARCHAR)
SELECT player FROM table_name_65 WHERE pos = "ol" AND college = "ohio state"
Which player had a position of OL from Ohio State?
CREATE TABLE table_name_65 (player VARCHAR, pos VARCHAR, college VARCHAR)
SELECT MAX(wnba_game_average) FROM table_name_11 WHERE average = "9,290 (4th)" AND total_for_year < 157 OFFSET 934
What is the largest WNBA game average with 9,290 (4th) is the average, and less than 157,934 is the total for the year?
CREATE TABLE table_name_11 (wnba_game_average INTEGER, average VARCHAR, total_for_year VARCHAR)
SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE "%6862 Kaitlyn Knolls%"
Which state can address "6862 Kaitlyn Knolls" possibly be in?
CREATE TABLE addresses (state_province_county VARCHAR, line_1_number_building VARCHAR)
SELECT date FROM table_name_20 WHERE opponents_in_the_final = "claire de gubernatis alexandra dulgheru"
Which date has opponents, Claire De Gubernatis Alexandra Dulgheru, in the final?
CREATE TABLE table_name_20 (date VARCHAR, opponents_in_the_final VARCHAR)
SELECT tonnage FROM table_name_90 WHERE built < 1973 AND ship = "ssbergensfjord"
The ship SSBergensfjord built before 1973 has what tonnage?
CREATE TABLE table_name_90 (tonnage VARCHAR, built VARCHAR, ship VARCHAR)
SELECT home_team FROM table_name_42 WHERE away_team = "carlton"
What team did team carlton play while away?
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_55 WHERE home = "st. louis"
What was the date of the game when St. Louis was the home team?
CREATE TABLE table_name_55 (date VARCHAR, home VARCHAR)
SELECT team FROM table_name_1 WHERE college = "washington"
Who is the team for Washington College?
CREATE TABLE table_name_1 (team VARCHAR, college VARCHAR)
SELECT travers_stakes FROM table_24089503_1 WHERE year = 1977
What was the attendance at the Travers Stakes in 1977?
CREATE TABLE table_24089503_1 (travers_stakes VARCHAR, year VARCHAR)
SELECT col__m_ FROM table_name_84 WHERE rank > 4 AND summit = "kawaikini"
What's the col (m) ranked more than 4 with a summit of Kawaikini?
CREATE TABLE table_name_84 (col__m_ VARCHAR, rank VARCHAR, summit VARCHAR)
SELECT pick FROM table_name_14 WHERE round = "2" AND team = "indianapolis olympians"
What was the pick for round 2 with the team Indianapolis Olympians?
CREATE TABLE table_name_14 (pick VARCHAR, round VARCHAR, team VARCHAR)
SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "Atlético Tucumán"
If the home is Atlético Tucumán, what is the name of the first leg?
CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR)
SELECT date FROM table_name_35 WHERE against = 3
What was the date when the against was 3?
CREATE TABLE table_name_35 (date VARCHAR, against VARCHAR)
SELECT place FROM table_name_67 WHERE to_par = "+4" AND score = 70 - 76 - 71 = 217
What is the Place of the Player with a To par of +4 and Score of 70-76-71=217?
CREATE TABLE table_name_67 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT MIN(year) FROM table_name_11 WHERE date = "14 february"
Which Year has a Date of 14 February?
CREATE TABLE table_name_11 (year INTEGER, date VARCHAR)
SELECT date FROM table_name_14 WHERE record = "0-2"
Which Date has a Record of 0-2?
CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR)
SELECT first_name, last_name FROM employees ORDER BY hire_date LIMIT 10
List top 10 employee work longest in the company. List employee's first and last name.
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR)
SELECT year FROM table_12243817_1 WHERE country = "Japan"
What year is Japan the country?
CREATE TABLE table_12243817_1 (year VARCHAR, country VARCHAR)
SELECT time_retired FROM table_name_74 WHERE constructor = "maserati" AND laps = 90
what is the time/retired when the constructor is maserati and the laps is 90?
CREATE TABLE table_name_74 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT score FROM table_name_18 WHERE competition = "friendly"
What's the score of the friendly competition?
CREATE TABLE table_name_18 (score VARCHAR, competition VARCHAR)
SELECT latitude FROM table_16799784_3 WHERE name = "Vaidilute Rupes"
What is the latitude of vaidilute rupes?
CREATE TABLE table_16799784_3 (latitude VARCHAR, name VARCHAR)
SELECT points FROM table_name_29 WHERE country = "united kingdom" AND place = 10
What points has united kingdom as the country, and 10 as the place?
CREATE TABLE table_name_29 (points VARCHAR, country VARCHAR, place VARCHAR)
SELECT away_team FROM table_name_25 WHERE venue = "mcg"
Who was the away team at mcg?
CREATE TABLE table_name_25 (away_team VARCHAR, venue VARCHAR)
SELECT position FROM table_20861261_4 WHERE player = "Curtis Painter"
What's Curtis Painter's position?
CREATE TABLE table_20861261_4 (position VARCHAR, player VARCHAR)
SELECT english FROM table_15040_8 WHERE french = "cheval"
What is the English word for the French word cheval?
CREATE TABLE table_15040_8 (english VARCHAR, french VARCHAR)
SELECT goals FROM table_name_16 WHERE ratio = 0.29
Which Goals have a Ratio of 0.29?
CREATE TABLE table_name_16 (goals VARCHAR, ratio VARCHAR)
SELECT Author, College FROM submission
What are the authors of submissions and their colleges?
CREATE TABLE submission (Author VARCHAR, College VARCHAR)
SELECT object_type FROM table_name_56 WHERE apparent_magnitude > 9.6 AND right_ascension___j2000__ = "17h59m02.0s"
Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s?
CREATE TABLE table_name_56 (object_type VARCHAR, apparent_magnitude VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT score FROM table_name_61 WHERE home_team = "saskatoon accelerators"
Which score has a Home Team of saskatoon accelerators?
CREATE TABLE table_name_61 (score VARCHAR, home_team VARCHAR)
SELECT date_of_birth FROM table_name_66 WHERE begin_date = "april 24, 1902"
What was the date of birth of the member of the United States House of Representatives that began their term on April 24, 1902?
CREATE TABLE table_name_66 (date_of_birth VARCHAR, begin_date VARCHAR)
SELECT MIN(points) FROM table_name_35 WHERE races > 16
What is the lowest number of points for Drivers that have raced in more than 16 Races?
CREATE TABLE table_name_35 (points INTEGER, races INTEGER)
SELECT MIN(silver) FROM table_name_4 WHERE total > 2 AND bronze = 3 AND gold > 0 AND rank = "1"
What is the least silver when the total is more than 2, bronze is 3, gold is more than 0, and rank is 1?
CREATE TABLE table_name_4 (silver INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT name FROM table_name_70 WHERE lane < 6 AND time = "2:11.02"
Who swam in a lane less than 6 and finished with a time of 2:11.02?
CREATE TABLE table_name_70 (name VARCHAR, lane VARCHAR, time VARCHAR)
SELECT shows___sellout FROM table_22123920_4 WHERE sellout___percentage_ = "75%"
Between November 25–30, 2008 the sellout rate was at 75%, indicating that the ration between shows to sellout was what?
CREATE TABLE table_22123920_4 (shows___sellout VARCHAR, sellout___percentage_ VARCHAR)
SELECT home FROM table_name_94 WHERE visitor = "chicago black hawks" AND record = "0-2"
What was the home team when the visiting team was Chicago Black Hawks, a game with a record of 0-2?
CREATE TABLE table_name_94 (home VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT AVG(laps) FROM table_name_4 WHERE time_retired = "+16.874 secs" AND grid < 5
What are the average Laps for the time/retired of +16.874 secs, and a grid less than 5?
CREATE TABLE table_name_4 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT character FROM table_name_21 WHERE version = 5.1 AND name = "greek capital letter archaic sampi"
What character was the version 5.1 and had a Greek capital letter Archaic Sampi?
CREATE TABLE table_name_21 (character VARCHAR, version VARCHAR, name VARCHAR)
SELECT MIN(overall) FROM table_name_17 WHERE round = 10 AND name = "terry daniels"
What is the lowest overall draft pick number for terry daniels who was picked in round 10?
CREATE TABLE table_name_17 (overall INTEGER, round VARCHAR, name VARCHAR)
SELECT MAX(week) FROM table_name_97 WHERE result = "bottom 3" AND partner = "endre jansen"
In what Week resulting in the bottom 3 was Endre Jansen Partner?
CREATE TABLE table_name_97 (week INTEGER, result VARCHAR, partner VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_83 WHERE primary_language_s_ = "azerbaijani, russian"
What is Film Title Used In Nomination, when Primary Language(s) is "Azerbaijani, Russian"?
CREATE TABLE table_name_83 (film_title_used_in_nomination VARCHAR, primary_language_s_ VARCHAR)
SELECT home_team FROM table_name_90 WHERE venue = "western oval"
Which Team plays at Western Oval?
CREATE TABLE table_name_90 (home_team VARCHAR, venue VARCHAR)
SELECT league FROM table_242813_2 WHERE strikeouts = 451
Name the league for strikeouts being 451
CREATE TABLE table_242813_2 (league VARCHAR, strikeouts VARCHAR)
SELECT method FROM table_name_35 WHERE record = "11-1"
The record of 11-1 used what method?
CREATE TABLE table_name_35 (method VARCHAR, record VARCHAR)
SELECT SUM(settlement_amount), AVG(settlement_amount) FROM settlements
Find the total and average amount of settlements.
CREATE TABLE settlements (settlement_amount INTEGER)
SELECT home FROM table_name_89 WHERE visitor = "detroit" AND score = "4 – 1"
Who was home when Detroit was visiting with a score of 4 – 1?
CREATE TABLE table_name_89 (home VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT AVG(round) FROM table_name_18 WHERE opponent = "klas akesson"
What is the average round against opponent Klas Akesson?
CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR)
SELECT COUNT(attendance) FROM table_name_60 WHERE result = "lost 2-4" AND date > 15
How many people attended the game that lost 2-4 and the date was higher than 15?
CREATE TABLE table_name_60 (attendance VARCHAR, result VARCHAR, date VARCHAR)
SELECT circuit FROM table_25531112_2 WHERE event = "Clipsal 500"
What circuit was the Clipsal 500 on?
CREATE TABLE table_25531112_2 (circuit VARCHAR, event VARCHAR)
SELECT goals FROM table_name_54 WHERE score = "38-28"
Tell me the goals for score of 38-28
CREATE TABLE table_name_54 (goals VARCHAR, score VARCHAR)
SELECT MAX(played) FROM table_name_26 WHERE position > 5 AND points > 0 AND drawn < 0
Which Played has a Position larger than 5, a Points larger than 0, and a Drawn smaller than 0?
CREATE TABLE table_name_26 (played INTEGER, drawn VARCHAR, position VARCHAR, points VARCHAR)
SELECT hp_winning_team FROM table_29225103_2 WHERE ep_winning_team = "Hans Zereis" AND gm_winning_team = "Charles Gibson"
Who was the HP winning team when the EP winning team was Hans Zereis and the GM winning team was Charles Gibson?
CREATE TABLE table_29225103_2 (hp_winning_team VARCHAR, ep_winning_team VARCHAR, gm_winning_team VARCHAR)
SELECT nation FROM table_name_37 WHERE competition = "preseason" AND year < 2011 AND club = "chivas de guadalajara"
What shows for nation when the Competition is preseason, Year less than 2011, and a Club of chivas de guadalajara?
CREATE TABLE table_name_37 (nation VARCHAR, club VARCHAR, competition VARCHAR, year VARCHAR)
SELECT international_tourist_arrivals__2011_ FROM table_14752049_1 WHERE country = "Italy"
How many tourist arrivals occurred in 2011 in the country of Italy?
CREATE TABLE table_14752049_1 (international_tourist_arrivals__2011_ VARCHAR, country VARCHAR)
SELECT lyrics FROM table_name_48 WHERE date = "august 10, 2005" AND catalog_number = "tocp-66427"
In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?
CREATE TABLE table_name_48 (lyrics VARCHAR, date VARCHAR, catalog_number VARCHAR)
SELECT european_competitions FROM table_name_35 WHERE tier = 2 AND season = "2000–01"
Tier of 2, and a Season of 2000–01 is what European competitions?
CREATE TABLE table_name_35 (european_competitions VARCHAR, tier VARCHAR, season VARCHAR)
SELECT AVG(fall_07) FROM table_name_34 WHERE fall_06 > 219
Name the average fall 07 for fall 07 more than 219
CREATE TABLE table_name_34 (fall_07 INTEGER, fall_06 INTEGER)
SELECT championship FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6"
Which championship has a final score of 3–6, 4–6, 2–6?
CREATE TABLE table_2201724_1 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT date FROM table_name_84 WHERE race = "argentine grand prix"
When did the Argentine Grand Prix race?
CREATE TABLE table_name_84 (date VARCHAR, race VARCHAR)
SELECT winner FROM table_name_59 WHERE date = "28 december 2007"
Who was the winner on 28 December 2007?
CREATE TABLE table_name_59 (winner VARCHAR, date VARCHAR)
SELECT MIN(_number) FROM table_18424435_5
What is the smallest number?
CREATE TABLE table_18424435_5 (_number INTEGER)
SELECT college FROM table_name_93 WHERE player = "leon perry"
What college did Leon Perry attend?
CREATE TABLE table_name_93 (college VARCHAR, player VARCHAR)
SELECT name FROM table_23696862_6 WHERE wsop_earnings = "$36,372"
Whose WSOP earnings were $36,372?
CREATE TABLE table_23696862_6 (name VARCHAR, wsop_earnings VARCHAR)
SELECT _percentage_of_seats FROM table_name_92 WHERE difference = "0.19"
What is the % of seats where the difference is 0.19?
CREATE TABLE table_name_92 (_percentage_of_seats VARCHAR, difference VARCHAR)
SELECT MIN(points) FROM table_name_33 WHERE extra_points = 0 AND player = "curtis redden" AND touchdowns < 2
Which Points is the lowest one that has an Extra points of 0, and a Player of curtis redden, and Touchdowns smaller than 2?
CREATE TABLE table_name_33 (points INTEGER, touchdowns VARCHAR, extra_points VARCHAR, player VARCHAR)
SELECT position FROM table_name_82 WHERE round > 15 AND overall = 411
What position is the round higher than 15 and has an overall of 411.
CREATE TABLE table_name_82 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT country FROM table_name_12 WHERE prominence__m_ < 1540 AND height__m_ < 3530 AND range = "virunga mountains" AND mountain = "nyiragongo"
Which Country has a Prominence (m) smaller than 1540, and a Height (m) smaller than 3530, and a Range of virunga mountains, and a Mountain of nyiragongo?
CREATE TABLE table_name_12 (country VARCHAR, mountain VARCHAR, range VARCHAR, prominence__m_ VARCHAR, height__m_ VARCHAR)
SELECT school FROM table_name_28 WHERE player = "mike rosario"
What school has the player of mike rosario?
CREATE TABLE table_name_28 (school VARCHAR, player VARCHAR)