question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
what is the highest rank for italy when gold is more than 1?
CREATE TABLE table_name_19 (rank INTEGER, nation VARCHAR, gold VARCHAR)
SELECT MAX(rank) FROM table_name_19 WHERE nation = "italy" AND gold > 1
When John Harkes was the color commentator, and Alexi Lalas and Steve McManaman were the pregame analysts, who were the sideline reporters?
CREATE TABLE table_name_84 (sideline_reporters VARCHAR, color_commentator VARCHAR, pregame_analysts VARCHAR)
SELECT sideline_reporters FROM table_name_84 WHERE color_commentator = "john harkes" AND pregame_analysts = "alexi lalas and steve mcmanaman"
What is the date for the United Kingdom with an LP format?
CREATE TABLE table_name_88 (date VARCHAR, country VARCHAR, format VARCHAR)
SELECT date FROM table_name_88 WHERE country = "united kingdom" AND format = "lp"
What is the order number for the theme of Mariah Carey?
CREATE TABLE table_15796100_1 (order__number VARCHAR, theme VARCHAR)
SELECT order__number FROM table_15796100_1 WHERE theme = "Mariah Carey"
what is the lowest grid with laps larger than 23?
CREATE TABLE table_name_85 (grid INTEGER, laps INTEGER)
SELECT MIN(grid) FROM table_name_85 WHERE laps > 23
Who was the opponent when he went more than 1 round with a record of 12-7?
CREATE TABLE table_name_46 (opponent VARCHAR, round VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_46 WHERE round > 1 AND record = "12-7"
Who's the Winning driver with a Pole position of bryan herta?
CREATE TABLE table_name_46 (winning_driver VARCHAR, pole_position VARCHAR)
SELECT winning_driver FROM table_name_46 WHERE pole_position = "bryan herta"
Did Jason Pennycooke win the award he was nominated for?
CREATE TABLE table_name_14 (result VARCHAR, nominee VARCHAR)
SELECT result FROM table_name_14 WHERE nominee = "jason pennycooke"
What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75?
CREATE TABLE table_name_70 (grid INTEGER, time_retired VARCHAR, qual VARCHAR)
SELECT MIN(grid) FROM table_name_70 WHERE time_retired = "engine" AND qual < 138.75
What is the maximum number of seasons for any team?
CREATE TABLE table_2522473_1 (seasons INTEGER)
SELECT MAX(seasons) FROM table_2522473_1
With a year larger than 1905, and a location of philadelphia, pennsylvania with a to par [a] of n/a and a country of scotland what is the course?
CREATE TABLE table_name_1 (course VARCHAR, location VARCHAR, year VARCHAR, country VARCHAR, to_par_ VARCHAR, a_ VARCHAR)
SELECT course FROM table_name_1 WHERE to_par_[a_] = "n/a" AND country = "scotland" AND year > 1905 AND location = "philadelphia, pennsylvania"
Which engine was on a car with G tires, a chassis model of 003 002 004 005 006, driven by Jackie Stewart?
CREATE TABLE table_name_98 (engine VARCHAR, driver VARCHAR, tyre VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_98 WHERE tyre = "g" AND chassis = "003 002 004 005 006" AND driver = "jackie stewart"
Which game did Curtis Borchardt play with more than 274 rebounds?
CREATE TABLE table_name_20 (games INTEGER, name VARCHAR, rebounds VARCHAR)
SELECT SUM(games) FROM table_name_20 WHERE name = "curtis borchardt" AND rebounds > 274
In 1879-81 with number built 4, what is the LMS nos?
CREATE TABLE table_name_63 (lms_nos VARCHAR, date VARCHAR, no_built VARCHAR)
SELECT lms_nos FROM table_name_63 WHERE date = "1879-81" AND no_built = 4
When was Blackburn Point Bridge built?
CREATE TABLE table_name_55 (built VARCHAR, name VARCHAR)
SELECT built FROM table_name_55 WHERE name = "blackburn point bridge"
Name the competition for khartoum
CREATE TABLE table_name_54 (competition VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_54 WHERE venue = "khartoum"
What is the To par when Lanny Wadkins is the player?
CREATE TABLE table_name_66 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_66 WHERE player = "lanny wadkins"
What's Auburn's percentage?
CREATE TABLE table_22993636_2 (percentage VARCHAR, team VARCHAR)
SELECT percentage FROM table_22993636_2 WHERE team = "Auburn"
WHAT IS THE FIRST LEG OF TUILLA?
CREATE TABLE table_name_79 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_79 WHERE team_1 = "tuilla"
What year did Martina Navratilova win Wimbledon?
CREATE TABLE table_2092557_12 (wimbledon VARCHAR, player VARCHAR)
SELECT wimbledon FROM table_2092557_12 WHERE player = "Martina Navratilova"
how many players played running back where status is made 53-man roster at start of 2009 season
CREATE TABLE table_20898602_1 (player VARCHAR, status VARCHAR, position VARCHAR)
SELECT COUNT(player) FROM table_20898602_1 WHERE status = "Made 53-man roster at start of 2009 season" AND position = "Running back"
Which Time has a Round larger than 1, and an Event of total fighting alliance 2?
CREATE TABLE table_name_21 (time VARCHAR, round VARCHAR, event VARCHAR)
SELECT time FROM table_name_21 WHERE round > 1 AND event = "total fighting alliance 2"
When the value of "since beginning of big 12" is synonymous with its' category, what are the in Ames values?
CREATE TABLE table_10429820_13 (in_ames VARCHAR)
SELECT in_ames FROM table_10429820_13 WHERE "since_beginning_of_big_12" = "since_beginning_of_big_12"
What is the lowest Bronze with a 17 Rank and a Total less than 5
CREATE TABLE table_name_30 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_30 WHERE rank = "17" AND total < 5
I want the lowest points diff for against being less than 578 and lost being 15 and points more than 26
CREATE TABLE table_name_37 (points_diff INTEGER, points VARCHAR, against VARCHAR, lost VARCHAR)
SELECT MIN(points_diff) FROM table_name_37 WHERE against < 578 AND lost = 15 AND points > 26
Who is the person whose age is below 30?
CREATE TABLE Person (name VARCHAR, age INTEGER)
SELECT name FROM Person WHERE age < 30
Find the common personal name of course authors and students.
CREATE TABLE Course_Authors_and_Tutors (personal_name VARCHAR); CREATE TABLE Students (personal_name VARCHAR)
SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students
What stadium is located in Halifax?
CREATE TABLE table_name_48 (stadium VARCHAR, city VARCHAR)
SELECT stadium FROM table_name_48 WHERE city = "halifax"
When the driver mike hailwood has a grid greater than 12 and a Time/Retired of + 2 laps, what is the average number of laps?
CREATE TABLE table_name_96 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT AVG(laps) FROM table_name_96 WHERE time_retired = "+ 2 laps" AND driver = "mike hailwood" AND grid > 12
On December 4, Tampa Bay has a record of 12-13-2.
CREATE TABLE table_name_42 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT record FROM table_name_42 WHERE home = "tampa bay" AND date = "december 4"
When the attendance was 3188 what was the score?
CREATE TABLE table_name_78 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_78 WHERE attendance = 3188
What is the average Points for a year before 1955?
CREATE TABLE table_name_68 (points INTEGER, year INTEGER)
SELECT AVG(points) FROM table_name_68 WHERE year < 1955
Name the points against for november 14
CREATE TABLE table_15607589_2 (points_against VARCHAR, date VARCHAR)
SELECT points_against FROM table_15607589_2 WHERE date = "November 14"
Where is the transmitter located for the station voice of vietnam
CREATE TABLE table_name_87 (transmitter_location VARCHAR, station VARCHAR)
SELECT transmitter_location FROM table_name_87 WHERE station = "voice of vietnam"
What's the minimum total attendance of the Premier League association football?
CREATE TABLE table_10815352_1 (total_attendance INTEGER, sport VARCHAR, league VARCHAR)
SELECT MIN(total_attendance) FROM table_10815352_1 WHERE sport = "Association football" AND league = "Premier league"
What is the record for the game played on September 27?
CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_26 WHERE date = "september 27"
What is the game number when the Toronto Maple Leafs were the opponent, and the February was less than 17?
CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR)
SELECT AVG(game) FROM table_name_49 WHERE opponent = "toronto maple leafs" AND february < 17
I want to know the total for silver more than 0 with bronze more than 21 and gold more than 29
CREATE TABLE table_name_74 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT COUNT(total) FROM table_name_74 WHERE silver > 0 AND bronze > 21 AND gold > 29
How many titles are given for the episode directed by Joanna Kerns?
CREATE TABLE table_17356205_1 (title VARCHAR, directed_by VARCHAR)
SELECT COUNT(title) FROM table_17356205_1 WHERE directed_by = "Joanna Kerns"
What was the earliest week that the Storm played the San Jose Sabercats?
CREATE TABLE table_name_63 (week INTEGER, opponent VARCHAR)
SELECT MIN(week) FROM table_name_63 WHERE opponent = "san jose sabercats"
Name the venue for eng by 6 wkts
CREATE TABLE table_name_46 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_46 WHERE result = "eng by 6 wkts"
What was the highest attendance of February 7, 2009 and more than 49 points?
CREATE TABLE table_name_17 (attendance INTEGER, date VARCHAR, points VARCHAR)
SELECT MAX(attendance) FROM table_name_17 WHERE date = "february 7, 2009" AND points > 49
Which African countries have a smaller population than that of any country in Asia?
CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)
SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT MIN(population) FROM country WHERE Continent = "Asia")
What was the result of the competition that had a score of 4-0?
CREATE TABLE table_name_95 (result VARCHAR, score VARCHAR)
SELECT result FROM table_name_95 WHERE score = "4-0"
What group on the island of Muckle Green Holm has a population of 0?
CREATE TABLE table_name_49 (group VARCHAR, population VARCHAR, island VARCHAR)
SELECT group FROM table_name_49 WHERE population = "0" AND island = "muckle green holm"
What is the loan club named dennehy?
CREATE TABLE table_name_61 (loan_club VARCHAR, name VARCHAR)
SELECT loan_club FROM table_name_61 WHERE name = "dennehy"
Who is the incumbent in the Virginia 6 district?
CREATE TABLE table_2668329_25 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_2668329_25 WHERE district = "Virginia 6"
What is the player from Japan's To Par?
CREATE TABLE table_name_30 (to_par VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_30 WHERE country = "japan"
Which Week has Points For larger than 19, and an Opponent of philadelphia eagles, and Points Against larger than 7?
CREATE TABLE table_name_17 (week INTEGER, points_against VARCHAR, points_for VARCHAR, opponent VARCHAR)
SELECT MAX(week) FROM table_name_17 WHERE points_for > 19 AND opponent = "philadelphia eagles" AND points_against > 7
What is the gold number when total is more than 1, and bronze is 0, and rank is 5?
CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT SUM(gold) FROM table_name_19 WHERE total > 1 AND bronze = 0 AND rank = "5"
When is the club founded that founed prsl in 2008 and the home city is carolina 1?
CREATE TABLE table_name_95 (founded INTEGER, joined_prsl VARCHAR, home_city VARCHAR)
SELECT MAX(founded) FROM table_name_95 WHERE joined_prsl = 2008 AND home_city = "carolina 1"
Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year?
CREATE TABLE table_name_39 (year INTEGER, event VARCHAR, location VARCHAR, final_score VARCHAR)
SELECT SUM(year) FROM table_name_39 WHERE location = "saint paul" AND final_score > 14.35 AND event = "all around"
Who was the outgoing manager of the Heart of Midlothian?
CREATE TABLE table_name_55 (outgoing_manager VARCHAR, team VARCHAR)
SELECT outgoing_manager FROM table_name_55 WHERE team = "heart of midlothian"
Which Affiliation has a Nickname of cougars?
CREATE TABLE table_name_47 (affiliation VARCHAR, nickname VARCHAR)
SELECT affiliation FROM table_name_47 WHERE nickname = "cougars"
What was the crowd size on 4 july 1981, and a Away team of essendon?
CREATE TABLE table_name_41 (crowd VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_41 WHERE date = "4 july 1981" AND away_team = "essendon"
Name the security forces with civilians of 67
CREATE TABLE table_name_15 (security_forces VARCHAR, civilians VARCHAR)
SELECT security_forces FROM table_name_15 WHERE civilians = "67"
What was the high points for opponent Mid-Michigan destroyers on January 3?
CREATE TABLE table_name_22 (high_points VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_22 WHERE opponent = "mid-michigan destroyers" AND date = "january 3"
Who directed the episode whose production code is 2m5901?
CREATE TABLE table_27969432_4 (directed_by VARCHAR, production VARCHAR)
SELECT directed_by FROM table_27969432_4 WHERE production = "2M5901"
Name the air date that chris long directed
CREATE TABLE table_18569389_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT original_air_date FROM table_18569389_1 WHERE directed_by = "Chris Long"
Find the number of rooms with price higher than 120 for different decor.
CREATE TABLE Rooms (decor VARCHAR, basePrice INTEGER)
SELECT decor, COUNT(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor
What is the high assists that has @ detroit as the team?
CREATE TABLE table_name_93 (high_assists VARCHAR, team VARCHAR)
SELECT high_assists FROM table_name_93 WHERE team = "@ detroit"
What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth?
CREATE TABLE table_name_70 (sixth VARCHAR, second VARCHAR, fourth VARCHAR)
SELECT sixth FROM table_name_70 WHERE second = "tasmania" AND fourth = "western australia"
Find the average number of factories for the manufacturers that have more than 20 shops.
CREATE TABLE manufacturer (Num_of_Factories INTEGER, num_of_shops INTEGER)
SELECT AVG(Num_of_Factories) FROM manufacturer WHERE num_of_shops > 20
What was the result for song of the year award in 1994?
CREATE TABLE table_name_69 (result VARCHAR, year VARCHAR, award VARCHAR)
SELECT result FROM table_name_69 WHERE year = 1994 AND award = "song of the year"
what is the county when the year left is 1998?
CREATE TABLE table_name_36 (county VARCHAR, year_left VARCHAR)
SELECT county FROM table_name_36 WHERE year_left = "1998"
What are the census ranking(s) for a population of 284?
CREATE TABLE table_171250_2 (census_ranking VARCHAR, population VARCHAR)
SELECT census_ranking FROM table_171250_2 WHERE population = 284
What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?
CREATE TABLE table_name_68 (lane INTEGER, time VARCHAR, rank VARCHAR)
SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 8
What is Points, when Points For is "562"?
CREATE TABLE table_name_25 (points VARCHAR, points_for VARCHAR)
SELECT points FROM table_name_25 WHERE points_for = "562"
What city has the home team of the brisbane broncos?
CREATE TABLE table_name_88 (city VARCHAR, home_team_s VARCHAR)
SELECT city FROM table_name_88 WHERE home_team_s = "brisbane broncos"
What is Opponent, when Date is 8 April 1999?
CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_18 WHERE date = "8 april 1999"
What day was Jeld-Wen Tradition held?
CREATE TABLE table_15346009_1 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_15346009_1 WHERE tournament = "JELD-WEN Tradition"
What was the total purse in the years after 1996 with a score of 272 (-16) when frank nobilo won?
CREATE TABLE table_name_27 (purse___ INTEGER, year VARCHAR, score VARCHAR, winner VARCHAR)
SELECT SUM(purse___) AS $__ FROM table_name_27 WHERE score = "272 (-16)" AND winner = "frank nobilo" AND year > 1996
What is year of construction of spitallamm?
CREATE TABLE table_10020178_1 (year_of_construction INTEGER, name VARCHAR)
SELECT MIN(year_of_construction) FROM table_10020178_1 WHERE name = "Spitallamm"
What was the time for the G2 group at the Hobartville Stakes?
CREATE TABLE table_name_62 (time VARCHAR, group VARCHAR, race VARCHAR)
SELECT time FROM table_name_62 WHERE group = "g2" AND race = "hobartville stakes"
What is the long figure when gain is less than 0?
CREATE TABLE table_name_28 (long INTEGER, gain INTEGER)
SELECT AVG(long) FROM table_name_28 WHERE gain < 0
On what date was the home team the Dallas Cowboys 34?
CREATE TABLE table_name_28 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_28 WHERE home_team = "dallas cowboys 34"
What is the average attendance of the match with arlesey town as the home team?
CREATE TABLE table_name_68 (attendance INTEGER, home_team VARCHAR)
SELECT AVG(attendance) FROM table_name_68 WHERE home_team = "arlesey town"
what is the date for tirrana?
CREATE TABLE table_name_18 (date VARCHAR, name VARCHAR)
SELECT date FROM table_name_18 WHERE name = "tirrana"
Which studio analyst has Scott Oake for the ice level reporter?
CREATE TABLE table_name_52 (studio_analysts VARCHAR, ice_level_reporters VARCHAR)
SELECT studio_analysts FROM table_name_52 WHERE ice_level_reporters = "scott oake"
What is the result with a Round of 3, and an Opponent of keith wisniewski?
CREATE TABLE table_name_32 (res VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_32 WHERE round = "3" AND opponent = "keith wisniewski"
What is the lowest feet total with a Longitude (E) of 76°34′06″, and a Prominence (m) under 1,701?
CREATE TABLE table_name_22 (feet INTEGER, longitude__e_ VARCHAR, prominence__m_ VARCHAR)
SELECT MIN(feet) FROM table_name_22 WHERE longitude__e_ = "76°34′06″" AND prominence__m_ < 1 OFFSET 701
When the record is listed as 2-0-0, and the November date is less than 27, what is the sum of the game?
CREATE TABLE table_name_71 (game INTEGER, november VARCHAR, record VARCHAR)
SELECT SUM(game) FROM table_name_71 WHERE november < 27 AND record = "2-0-0"
What is the total game number with athlone town as the opponent?
CREATE TABLE table_name_95 (game VARCHAR, opponent VARCHAR)
SELECT COUNT(game) FROM table_name_95 WHERE opponent = "athlone town"
What was the Score on March 15?
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_8 WHERE date = "march 15"
What was the first broadcast date of the episode in which Sean's team is made up of Peter Serafinowicz and Johnny Vegas?
CREATE TABLE table_23292220_3 (first_broadcast VARCHAR, seans_team VARCHAR)
SELECT first_broadcast FROM table_23292220_3 WHERE seans_team = "Peter Serafinowicz and Johnny Vegas"
Name the date for motogp winner of casey stoner and grand prix of valencian grand prix
CREATE TABLE table_name_15 (date VARCHAR, motogp_winner VARCHAR, grand_prix VARCHAR)
SELECT date FROM table_name_15 WHERE motogp_winner = "casey stoner" AND grand_prix = "valencian grand prix"
What is Name, when Overall is less than 175, and when College is "Georgia"?
CREATE TABLE table_name_83 (name VARCHAR, overall VARCHAR, college VARCHAR)
SELECT name FROM table_name_83 WHERE overall < 175 AND college = "georgia"
Which country has the catalog nr of thr-048 in 2004?
CREATE TABLE table_name_43 (country VARCHAR, date VARCHAR, catalog_nr VARCHAR)
SELECT country FROM table_name_43 WHERE date = "2004" AND catalog_nr = "thr-048"
Which Volleyball has a Golf of 2, and an Indoor track of 3?
CREATE TABLE table_name_52 (volleyball VARCHAR, golf VARCHAR, indoor_track VARCHAR)
SELECT volleyball FROM table_name_52 WHERE golf = "2" AND indoor_track = "3"
What is the part 4 with *hlaupaną *stautaną in part 1?
CREATE TABLE table_name_6 (part_4 VARCHAR, part_1 VARCHAR)
SELECT part_4 FROM table_name_6 WHERE part_1 = "*hlaupaną *stautaną"
In what season did Raquel Pacheco finish in third place?
CREATE TABLE table_25214321_1 (season VARCHAR, third_place VARCHAR)
SELECT season FROM table_25214321_1 WHERE third_place = "Raquel Pacheco"
Which track title has a year lesser thsn 2005?
CREATE TABLE table_name_6 (Track VARCHAR, year INTEGER)
SELECT Track AS title FROM table_name_6 WHERE year < 2005
What was the record against Boston?
CREATE TABLE table_15780718_8 (record VARCHAR, team VARCHAR)
SELECT record FROM table_15780718_8 WHERE team = "Boston"
what is 1977 when 1980 is chile?
CREATE TABLE table_name_65 (Id VARCHAR)
SELECT 1977 FROM table_name_65 WHERE 1980 = "chile"
What year was the structure in greensboro, north carolina considered tallest?
CREATE TABLE table_name_16 (year VARCHAR, town VARCHAR)
SELECT year FROM table_name_16 WHERE town = "greensboro, north carolina"
Which Third has a Second of scott pfeifer?
CREATE TABLE table_name_29 (third VARCHAR, second VARCHAR)
SELECT third FROM table_name_29 WHERE second = "scott pfeifer"
Which area did estrella tv 62 provide coverage for?
CREATE TABLE table_2523809_1 (coverage VARCHAR, branding VARCHAR)
SELECT coverage FROM table_2523809_1 WHERE branding = "Estrella TV 62"
Let's say Type is of datasetcomplete, what is the Attribute?
CREATE TABLE table_name_62 (attribute VARCHAR, type VARCHAR)
SELECT attribute FROM table_name_62 WHERE type = "datasetcomplete"
What was the draw for Lpż Gdańsk with a match of 8?
CREATE TABLE table_name_57 (draw VARCHAR, match VARCHAR, team VARCHAR)
SELECT draw FROM table_name_57 WHERE match = "8" AND team = "lpż gdańsk"
what the the end number where albert rains was running
CREATE TABLE table_1342233_3 (result VARCHAR, incumbent VARCHAR)
SELECT COUNT(result) FROM table_1342233_3 WHERE incumbent = "Albert Rains"