question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
When the away team was Carlton, who was the home team?
CREATE TABLE table_16388545_1 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_16388545_1 WHERE away_team = "Carlton"
Which is the team against which Missouri Tigers have a record of ui, 4-1 at the opponent's venue?How
CREATE TABLE table_16201038_4 (missouri_vs VARCHAR, at_opponents_venue VARCHAR)
SELECT missouri_vs FROM table_16201038_4 WHERE at_opponents_venue = "UI, 4-1"
What is the name of the driver with 6 points?
CREATE TABLE table_name_35 (driver VARCHAR, points VARCHAR)
SELECT driver FROM table_name_35 WHERE points = 6
How many vuts made for a player with 2 wins and under 7 top 5s?
CREATE TABLE table_name_96 (cuts_made INTEGER, wins VARCHAR, top_5 VARCHAR)
SELECT AVG(cuts_made) FROM table_name_96 WHERE wins = 2 AND top_5 < 7
When was the last game that had a time of 2:46 and attendance of more than 57,533?
CREATE TABLE table_name_27 (game INTEGER, time VARCHAR, attendance VARCHAR)
SELECT MAX(game) FROM table_name_27 WHERE time = "2:46" AND attendance > 57 OFFSET 533
What nationality has a pick of 1?
CREATE TABLE table_name_49 (nationality VARCHAR, pick VARCHAR)
SELECT nationality FROM table_name_49 WHERE pick = "1"
What is the result of the election with 3,871 total votes?
CREATE TABLE table_name_89 (results VARCHAR, total_votes INTEGER)
SELECT results FROM table_name_89 WHERE total_votes > 3 OFFSET 871
What school does the Blue Raiders belong to?
CREATE TABLE table_name_16 (school VARCHAR, team VARCHAR)
SELECT school FROM table_name_16 WHERE team = "blue raiders"
Who took third place in 2012?
CREATE TABLE table_name_82 (third_place VARCHAR, year VARCHAR)
SELECT third_place FROM table_name_82 WHERE year = 2012
What was the record in a week less than 13 on November 9, 2003?
CREATE TABLE table_name_69 (record VARCHAR, week VARCHAR, date VARCHAR)
SELECT record FROM table_name_69 WHERE week < 13 AND date = "november 9, 2003"
What are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor?
CREATE TABLE table_name_45 (years VARCHAR, soap_opera VARCHAR, actor VARCHAR)
SELECT years FROM table_name_45 WHERE soap_opera = "un posto al sole" AND actor = "riccardo polizzy carbonelli"
Player Craig Parry of Australia is in what place number?
CREATE TABLE table_name_86 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT place FROM table_name_86 WHERE country = "australia" AND player = "craig parry"
What team had less than 291 total points whole having 76 bronze and over 21 gold?
CREATE TABLE table_name_67 (silver INTEGER, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT SUM(silver) FROM table_name_67 WHERE gold > 21 AND bronze = 76 AND total < 291
Name the series on june 5
CREATE TABLE table_11965481_13 (series VARCHAR, date VARCHAR)
SELECT series FROM table_11965481_13 WHERE date = "June 5"
How many socialists correspond to a 7.5% People's Party?
CREATE TABLE table_1463383_1 (socialist VARCHAR, peoples_party VARCHAR)
SELECT COUNT(socialist) FROM table_1463383_1 WHERE peoples_party = "7.5%"
What is the lowest week that has 7:15 p.m. as the time (cst) and fedexfield as the game site?
CREATE TABLE table_name_53 (week INTEGER, time__cst_ VARCHAR, game_site VARCHAR)
SELECT MIN(week) FROM table_name_53 WHERE time__cst_ = "7:15 p.m." AND game_site = "fedexfield"
What's the total for a league cup less than 1?
CREATE TABLE table_name_30 (league VARCHAR, total INTEGER)
SELECT COUNT(league) AS Cup FROM table_name_30 WHERE total < 1
What is listed for the Attendance that has a Tie no of 5?
CREATE TABLE table_name_97 (attendance VARCHAR, tie_no VARCHAR)
SELECT attendance FROM table_name_97 WHERE tie_no = "5"
What was the number of athletes for the 7th edition?
CREATE TABLE table_26669939_1 (no_of_athletes VARCHAR, edition VARCHAR)
SELECT no_of_athletes FROM table_26669939_1 WHERE edition = "7th"
What are the distinct visit dates?
CREATE TABLE VISITS (Visit_Date VARCHAR)
SELECT DISTINCT Visit_Date FROM VISITS
What is the location of the Durfee Mill No. 1, built before 1872 ?
CREATE TABLE table_name_7 (location VARCHAR, built VARCHAR, name VARCHAR)
SELECT location FROM table_name_7 WHERE built < 1872 AND name = "durfee mill no. 1"
What did the away team score at Junction oval?
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_30 WHERE venue = "junction oval"
Who directed the film that had phyllis welch as the leading lady?
CREATE TABLE table_name_74 (director_s_ VARCHAR, leading_lady VARCHAR)
SELECT director_s_ FROM table_name_74 WHERE leading_lady = "phyllis welch"
How many entries are there for vote when the air date was 15 november 1997?
CREATE TABLE table_25016824_2 (vote VARCHAR, air_date VARCHAR)
SELECT COUNT(vote) FROM table_25016824_2 WHERE air_date = "15 November 1997"
What is the 1994 finish for the Miami tournament?
CREATE TABLE table_name_14 (tournament VARCHAR)
SELECT 1994 FROM table_name_14 WHERE tournament = "miami"
Which date is associated with a venue of Luxembourg?
CREATE TABLE table_name_29 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_29 WHERE venue = "luxembourg"
What was the score when the opposing team was from Belgium?
CREATE TABLE table_18183850_12 (score VARCHAR, opponent_team VARCHAR)
SELECT score FROM table_18183850_12 WHERE opponent_team = "Belgium"
What is the sum for December when the record was 22-12-5?
CREATE TABLE table_name_56 (december INTEGER, record VARCHAR)
SELECT SUM(december) FROM table_name_56 WHERE record = "22-12-5"
Which opponent was on week 2?
CREATE TABLE table_name_55 (opponent VARCHAR, week INTEGER)
SELECT opponent FROM table_name_55 WHERE week < 2
Who was the opponent when they played at the Skydome?
CREATE TABLE table_name_53 (opponent VARCHAR, location_attendance VARCHAR)
SELECT opponent FROM table_name_53 WHERE location_attendance = "skydome"
Name the position for ron lalonde
CREATE TABLE table_1473672_4 (position VARCHAR, player VARCHAR)
SELECT position FROM table_1473672_4 WHERE player = "Ron Lalonde"
What is the western title for the puzzle genre?
CREATE TABLE table_name_56 (western_title VARCHAR, genre VARCHAR)
SELECT western_title FROM table_name_56 WHERE genre = "puzzle"
What is the most losses for positions under 15 and 66 goals against?
CREATE TABLE table_name_50 (lost INTEGER, goals_against VARCHAR, position VARCHAR)
SELECT MAX(lost) FROM table_name_50 WHERE goals_against = 66 AND position < 15
Raiders of the Lost Ark had pieces of 277 for what lowest number?
CREATE TABLE table_name_8 (number INTEGER, film VARCHAR, pieces VARCHAR)
SELECT MIN(number) FROM table_name_8 WHERE film = "raiders of the lost ark" AND pieces = 277
What is the date for the race that had the time of 2:43:19?
CREATE TABLE table_2268216_1 (date VARCHAR, race_time VARCHAR)
SELECT date FROM table_2268216_1 WHERE race_time = "2:43:19"
What is the Player that has a To standard of –4?
CREATE TABLE table_name_15 (player VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_15 WHERE to_par = "–4"
What is the wager on August 23, 1992 where vampiro was the winner?
CREATE TABLE table_name_94 (wager VARCHAR, winner VARCHAR, date VARCHAR)
SELECT wager FROM table_name_94 WHERE winner = "vampiro" AND date = "august 23, 1992"
WHAT IS THE POSITION WITH A ROUND LARGER THAN 6, AND OVERALL OF 191?
CREATE TABLE table_name_9 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT position FROM table_name_9 WHERE round > 6 AND overall = 191
In what round did the player who weights 192lb (87kg) play?
CREATE TABLE table_20861261_4 (round INTEGER, weight VARCHAR)
SELECT MAX(round) FROM table_20861261_4 WHERE weight = "192lb (87kg)"
What is the minimum capacity of Dundee United's stadium?
CREATE TABLE table_11208143_9 (capacity INTEGER, team VARCHAR)
SELECT MIN(capacity) FROM table_11208143_9 WHERE team = "Dundee United"
How many golds had a silver of more than 1, rank more than 1, total of more than 4 when the bronze was also more than 4?
CREATE TABLE table_name_12 (gold INTEGER, bronze VARCHAR, total VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT SUM(gold) FROM table_name_12 WHERE silver > 1 AND rank > 1 AND total > 4 AND bronze > 4
Which Number has a Home Club of broomstones, and a Year End smaller than 1999?
CREATE TABLE table_name_79 (number INTEGER, home_club VARCHAR, year_end VARCHAR)
SELECT MIN(number) FROM table_name_79 WHERE home_club = "broomstones" AND year_end < 1999
Who was the home team when the crowd was larger than 13,557?
CREATE TABLE table_name_71 (home_team VARCHAR, crowd INTEGER)
SELECT home_team FROM table_name_71 WHERE crowd > 13 OFFSET 557
What is the value in 2008 for the US Open?
CREATE TABLE table_name_31 (tournament VARCHAR)
SELECT 2008 FROM table_name_31 WHERE tournament = "us open"
What is the average area of the city that has a density less than than 206.2 and an altitude of less than 85?
CREATE TABLE table_name_14 (area__km_2__ INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR)
SELECT AVG(area__km_2__) FROM table_name_14 WHERE density__inhabitants_km_2__ < 206.2 AND altitude__mslm_ < 85
What is the national rank of Windstream?
CREATE TABLE table_21926985_2 (national_rank INTEGER, company_name VARCHAR)
SELECT MIN(national_rank) FROM table_21926985_2 WHERE company_name = "Windstream"
How many goals against were scored when the points were smaller than 13, the wins were smaller than 3, and the goals for were smaller than 15?
CREATE TABLE table_name_73 (goals_against INTEGER, goals_for VARCHAR, points VARCHAR, wins VARCHAR)
SELECT SUM(goals_against) FROM table_name_73 WHERE points < 13 AND wins < 3 AND goals_for < 15
WHAT IS THE TEAM WITH DAVE COGGIN?
CREATE TABLE table_name_32 (team VARCHAR, player VARCHAR)
SELECT team FROM table_name_32 WHERE player = "dave coggin"
What is the latest Year with Marianne Jean-Baptiste as the Golden Globe Actor?
CREATE TABLE table_name_50 (year INTEGER, actor VARCHAR)
SELECT MAX(year) FROM table_name_50 WHERE actor = "marianne jean-baptiste"
Who is the studio host for the game that has Paul Sunderland as play by play commentator and Jack Haley as the Studio Analyst?
CREATE TABLE table_name_19 (studio_host VARCHAR, play_by_play VARCHAR, studio_analysts VARCHAR)
SELECT studio_host FROM table_name_19 WHERE play_by_play = "paul sunderland" AND studio_analysts = "jack haley"
What venue features geelong as the away side?
CREATE TABLE table_name_64 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_64 WHERE away_team = "geelong"
What is the license for Rygel?
CREATE TABLE table_name_11 (license VARCHAR, name VARCHAR)
SELECT license FROM table_name_11 WHERE name = "rygel"
What is the total number of races when there was more than 1 pole, and the fastest number of laps was less than 4?
CREATE TABLE table_name_8 (races INTEGER, poles VARCHAR, fastest_laps VARCHAR)
SELECT SUM(races) FROM table_name_8 WHERE poles > 1 AND fastest_laps < 4
What is the total number of games for the opponent in Washington?
CREATE TABLE table_name_89 (game VARCHAR, opponent VARCHAR)
SELECT COUNT(game) FROM table_name_89 WHERE opponent = "washington"
Which name has a Roll larger than 297, and Years of 7–13?
CREATE TABLE table_name_1 (name VARCHAR, roll VARCHAR, years VARCHAR)
SELECT name FROM table_name_1 WHERE roll > 297 AND years = "7–13"
What is the Netflix number having a series episode of 1-01?
CREATE TABLE table_name_47 (netflix VARCHAR, series_ep VARCHAR)
SELECT netflix FROM table_name_47 WHERE series_ep = "1-01"
Select the names of all the products in the store.
CREATE TABLE Products (Name VARCHAR)
SELECT Name FROM Products
What was the average number of attendance for the game on November 29, 1981 played after week 13?
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT AVG(attendance) FROM table_name_40 WHERE date = "november 29, 1981" AND week > 13
List all times with Kentucky as the home team.
CREATE TABLE table_26842217_6 (time VARCHAR, home_team VARCHAR)
SELECT time FROM table_26842217_6 WHERE home_team = "Kentucky"
How many Wins has a Scored of 27 and Draws smaller than 5?
CREATE TABLE table_name_61 (wins VARCHAR, scored VARCHAR, draws VARCHAR)
SELECT COUNT(wins) FROM table_name_61 WHERE scored = 27 AND draws < 5
Show station names without any trains.
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (name VARCHAR, station_id VARCHAR)
SELECT name FROM station WHERE NOT station_id IN (SELECT station_id FROM train_station)
Which Wrestler has an Entered of 5, and a Pinned of mvp?
CREATE TABLE table_name_23 (wrestler VARCHAR, entered VARCHAR, pinned VARCHAR)
SELECT wrestler FROM table_name_23 WHERE entered = 5 AND pinned = "mvp"
The person who had $126,796 WSOP earnings had how many WSOP cashes?
CREATE TABLE table_23696862_6 (wsop_cashes VARCHAR, wsop_earnings VARCHAR)
SELECT wsop_cashes FROM table_23696862_6 WHERE wsop_earnings = "$126,796"
Name the total number of points for for played
CREATE TABLE table_27293285_4 (points_for VARCHAR)
SELECT COUNT(points_for) FROM table_27293285_4 WHERE "played" = "played"
What college did the player from Liberty County High School attend?
CREATE TABLE table_name_58 (college VARCHAR, school VARCHAR)
SELECT college FROM table_name_58 WHERE school = "liberty county high school"
Find the dates of orders which belong to the customer named "Jeramie".
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE orders (date_order_placed VARCHAR, customer_id VARCHAR)
SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie"
Who had the most points and how many did they have in game 11?
CREATE TABLE table_27733909_5 (high_points VARCHAR, game VARCHAR)
SELECT high_points FROM table_27733909_5 WHERE game = 11
For the teams that had fewer than 1 Byes, what was the lowest number of Draws?
CREATE TABLE table_name_38 (draws INTEGER, byes INTEGER)
SELECT MIN(draws) FROM table_name_38 WHERE byes < 1
Which school has a Player of donte greene?
CREATE TABLE table_name_6 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_6 WHERE player = "donte greene"
What are the order details of the products with price higher than 2000?
CREATE TABLE Products (Product_ID VARCHAR, Product_price INTEGER); CREATE TABLE ORDER_ITEMS (Other_Item_Details VARCHAR, Product_ID VARCHAR)
SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000
What is the fewest number of points associated with more than 8 games?
CREATE TABLE table_name_95 (points INTEGER, games INTEGER)
SELECT MIN(points) FROM table_name_95 WHERE games > 8
What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?
CREATE TABLE table_name_5 (ngc_number INTEGER, declination___j2000__ VARCHAR, apparent_magnitude VARCHAR)
SELECT MAX(ngc_number) FROM table_name_5 WHERE declination___j2000__ = "°04′58″" AND apparent_magnitude > 7.3
What was the attendance when Nakamura (0-1) lost?
CREATE TABLE table_name_77 (attendance VARCHAR, loss VARCHAR)
SELECT attendance FROM table_name_77 WHERE loss = "nakamura (0-1)"
Name the team with best of 58.846
CREATE TABLE table_name_2 (team VARCHAR, best VARCHAR)
SELECT team FROM table_name_2 WHERE best = "58.846"
What is the engine for a vehicle in 1960?
CREATE TABLE table_name_59 (engine VARCHAR, year VARCHAR)
SELECT engine FROM table_name_59 WHERE year = 1960
What is the maximum enrollment across all schools?
CREATE TABLE university (Enrollment INTEGER)
SELECT MAX(Enrollment) FROM university
How many UK events won for the contestant that won under 1 US event?
CREATE TABLE table_name_45 (events_won__uk_series_ VARCHAR, events_won__us_series_ INTEGER)
SELECT events_won__uk_series_ FROM table_name_45 WHERE events_won__us_series_ < 1
Who was the star for the Vara network?
CREATE TABLE table_name_61 (starring VARCHAR, network VARCHAR)
SELECT starring FROM table_name_61 WHERE network = "vara"
Who is Pick #41?
CREATE TABLE table_name_99 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_name_99 WHERE pick__number = "41"
Which class has less in quantity than 174 between the years 1921–23?
CREATE TABLE table_name_43 (class VARCHAR, quantity VARCHAR, date VARCHAR)
SELECT class FROM table_name_43 WHERE quantity < 174 AND date = "1921–23"
What is the IHSAA class for the team located in Middlebury, IN?
CREATE TABLE table_name_95 (ihsaa_class VARCHAR, location VARCHAR)
SELECT ihsaa_class FROM table_name_95 WHERE location = "middlebury, in"
What ranks do we have for faculty?
CREATE TABLE Faculty (rank VARCHAR)
SELECT DISTINCT rank FROM Faculty
What is the place of the player with £140,000 and a 68-68-75-68=279 score?
CREATE TABLE table_name_66 (place VARCHAR, money___£__ VARCHAR, score VARCHAR)
SELECT place FROM table_name_66 WHERE money___£__ = "140,000" AND score = 68 - 68 - 75 - 68 = 279
What was the first series in this list that Jack Orman wrote?
CREATE TABLE table_12564633_1 (series__number INTEGER, written_by VARCHAR)
SELECT MIN(series__number) FROM table_12564633_1 WHERE written_by = "Jack Orman"
How many products are there?
CREATE TABLE products (Id VARCHAR)
SELECT COUNT(*) FROM products
What draw did Nigel Connell?
CREATE TABLE table_name_95 (draw VARCHAR, performer VARCHAR)
SELECT draw FROM table_name_95 WHERE performer = "nigel connell"
What country does Tiger Woods come from?
CREATE TABLE table_name_58 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_58 WHERE player = "tiger woods"
Which Electorate has a State of qld, a Party of national, and a Member of hon evan adermann?
CREATE TABLE table_name_31 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR)
SELECT electorate FROM table_name_31 WHERE state = "qld" AND party = "national" AND member = "hon evan adermann"
state the number of surface where championship is australian open and score in the final is 6–3, 4–6, 11–9
CREATE TABLE table_1918850_2 (surface VARCHAR, championship VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(surface) FROM table_1918850_2 WHERE championship = "Australian Open" AND score_in_the_final = "6–3, 4–6, 11–9"
Tell me what was commissioned december 30, 1965
CREATE TABLE table_name_12 (commissioned VARCHAR, launched VARCHAR)
SELECT commissioned FROM table_name_12 WHERE launched = "december 30, 1965"
What is the Place of the Player with a Score of 73-73-65-73=284?
CREATE TABLE table_name_32 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_32 WHERE score = 73 - 73 - 65 - 73 = 284
Name the Company which has a Tracking Method of cookies via javascript, and a Latest stable release of n/a, and a Name of clicktale?
CREATE TABLE table_name_61 (company VARCHAR, name VARCHAR, tracking_method VARCHAR, latest_stable_release VARCHAR)
SELECT company FROM table_name_61 WHERE tracking_method = "cookies via javascript" AND latest_stable_release = "n/a" AND name = "clicktale"
Name the total number of weeks for at cleveland browns
CREATE TABLE table_14940519_1 (week VARCHAR, opponent VARCHAR)
SELECT COUNT(week) FROM table_14940519_1 WHERE opponent = "at Cleveland Browns"
What is the highest Pick # when the CFL Team is the Toronto Argonauts?
CREATE TABLE table_name_95 (pick__number INTEGER, cfl_team VARCHAR)
SELECT MAX(pick__number) FROM table_name_95 WHERE cfl_team = "toronto argonauts"
Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.
CREATE TABLE exhibition (ticket_price INTEGER, YEAR INTEGER)
SELECT AVG(ticket_price), MIN(ticket_price), MAX(ticket_price) FROM exhibition WHERE YEAR < 2009
What department as 6 years experience?
CREATE TABLE table_name_90 (department VARCHAR, experience VARCHAR)
SELECT department FROM table_name_90 WHERE experience = "6 years"
WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS THAN 1ST PLACE?
CREATE TABLE table_name_46 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
SELECT MAX(bronze) FROM table_name_46 WHERE silver > 1 AND rank > 1
What NHL team does Denis Desgagnes play for?
CREATE TABLE table_1965650_8 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_1965650_8 WHERE player = "Denis Desgagnes"
Which 2005 has a Güzelçamlı’s Lost Panther of the muse?
CREATE TABLE table_name_38 (güzelçamlı’s_lost_panther VARCHAR)
SELECT MAX(2005) FROM table_name_38 WHERE güzelçamlı’s_lost_panther = "the muse"
When in November were they 11-7-3 with over 21 games?
CREATE TABLE table_name_80 (november INTEGER, record VARCHAR, game VARCHAR)
SELECT MAX(november) FROM table_name_80 WHERE record = "11-7-3" AND game > 21