question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the average points won when Carlos had 0 wins?
CREATE TABLE table_name_5 (points INTEGER, wins INTEGER)
SELECT AVG(points) FROM table_name_5 WHERE wins < 0
Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.
CREATE TABLE campuses (campus VARCHAR, LOCATION VARCHAR, county VARCHAR)
SELECT campus FROM campuses WHERE LOCATION = "Northridge" AND county = "Los Angeles" UNION SELECT campus FROM campuses WHERE LOCATION = "San Francisco" AND county = "San Francisco"
What is the innings when the highest score is 72?
CREATE TABLE table_28846752_4 (innings INTEGER, highest_score VARCHAR)
SELECT MAX(innings) FROM table_28846752_4 WHERE highest_score = "72"
What heat and what lane is thi hue pham in?
CREATE TABLE table_name_25 (heat_ VARCHAR, _lane VARCHAR, name VARCHAR)
SELECT heat_ & _lane FROM table_name_25 WHERE name = "thi hue pham"
Which Runner-up has a Last win smaller than 1998, and Wins of 1, and a Rank larger than 13?
CREATE TABLE table_name_71 (runner_up VARCHAR, rank VARCHAR, last_win VARCHAR, wins VARCHAR)
SELECT COUNT(runner_up) FROM table_name_71 WHERE last_win < 1998 AND wins = 1 AND rank > 13
Who directed episodes that had 2.61 million U.S. viewers?
CREATE TABLE table_11111116_7 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT directed_by FROM table_11111116_7 WHERE us_viewers__million_ = "2.61"
What is the highest game number with a record of 12-8-1?
CREATE TABLE table_name_29 (game INTEGER, record VARCHAR)
SELECT MAX(game) FROM table_name_29 WHERE record = "12-8-1"
What was the rating of the episode Wonder Drug?
CREATE TABLE table_name_82 (ratings__5_capital_cities_ VARCHAR, episode_no VARCHAR)
SELECT ratings__5_capital_cities_ FROM table_name_82 WHERE episode_no = "wonder drug"
How much did the baby who name means God knows my journey weigh at birth?
CREATE TABLE table_name_24 (weight_at_birth VARCHAR, meaning VARCHAR)
SELECT weight_at_birth FROM table_name_24 WHERE meaning = "god knows my journey"
Who was the lowest division in the 7th season?
CREATE TABLE table_name_11 (division INTEGER, reg_season VARCHAR)
SELECT MIN(division) FROM table_name_11 WHERE reg_season = "7th"
what is the result on 9 october 2012?
CREATE TABLE table_name_87 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_87 WHERE date = "9 october 2012"
What is the highest average of goals less than 45 for team Real Sociedad?
CREATE TABLE table_name_3 (average INTEGER, goals VARCHAR, team VARCHAR)
SELECT MAX(average) FROM table_name_3 WHERE goals < 45 AND team = "real sociedad"
How many rooms does the Lamberton building have?
CREATE TABLE classroom (building VARCHAR)
SELECT COUNT(*) FROM classroom WHERE building = 'Lamberton'
What is Nationality of daniel goneau?
CREATE TABLE table_name_11 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_11 WHERE player = "daniel goneau"
What game did the Bruins play Santa Clara?
CREATE TABLE table_21058836_1 (game VARCHAR, opponent VARCHAR)
SELECT game FROM table_21058836_1 WHERE opponent = "Santa Clara"
Which match where Hawthorn was the away team had the largest crowd?
CREATE TABLE table_name_58 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_58 WHERE away_team = "hawthorn"
What is the hometown for the player that went to the college of washington
CREATE TABLE table_name_54 (hometown VARCHAR, college VARCHAR)
SELECT hometown FROM table_name_54 WHERE college = "washington"
What is the highest amount of points when the game is less than 2?
CREATE TABLE table_name_31 (high_points VARCHAR, game INTEGER)
SELECT high_points FROM table_name_31 WHERE game < 2
how many first elected with incumbent being william c. lantaff
CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = "William C. Lantaff"
How many laps does luca badoer have?
CREATE TABLE table_name_71 (laps VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_71 WHERE driver = "luca badoer"
what's the mole with airdate being 8 january 2009
CREATE TABLE table_13036251_1 (the_mole VARCHAR, airdate VARCHAR)
SELECT the_mole FROM table_13036251_1 WHERE airdate = "8 January 2009"
Which tie number has Bolton Wanderers as away?
CREATE TABLE table_name_59 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_59 WHERE away_team = "bolton wanderers"
what team scored on november 7
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_65 WHERE date = "november 7"
What is th eswimming status for the school that has yes on indoor track, soccer and tennis?
CREATE TABLE table_name_80 (swimming VARCHAR, tennis VARCHAR, indoor_track VARCHAR, soccer VARCHAR)
SELECT swimming FROM table_name_80 WHERE indoor_track = "yes" AND soccer = "yes" AND tennis = "yes"
How many trains leave from puri?
CREATE TABLE table_12095519_1 (train_name VARCHAR, origin VARCHAR)
SELECT COUNT(train_name) FROM table_12095519_1 WHERE origin = "Puri"
Who was the opponent on the game with a 65,569 attendance before week 12?
CREATE TABLE table_name_62 (opponent VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_62 WHERE week < 12 AND attendance = "65,569"
What is the average week of the game on November 22, 1964 attended by 48,065?
CREATE TABLE table_name_53 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT AVG(week) FROM table_name_53 WHERE date = "november 22, 1964" AND attendance > 48 OFFSET 065
What country is Tom Purtzer from?
CREATE TABLE table_name_45 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_45 WHERE player = "tom purtzer"
What was the score for the match were the opponent in the final was james cerretani todd perry?
CREATE TABLE table_name_95 (score VARCHAR, opponents_in_the_final VARCHAR)
SELECT score FROM table_name_95 WHERE opponents_in_the_final = "james cerretani todd perry"
What is the first year that Mario Lemieux from Canada won playing center?
CREATE TABLE table_name_21 (year INTEGER, player VARCHAR, country VARCHAR, position VARCHAR)
SELECT MIN(year) FROM table_name_21 WHERE country = "canada" AND position = "center" AND player = "mario lemieux"
What year was John m. Belk Arena built?
CREATE TABLE table_name_74 (year_built VARCHAR, venue VARCHAR)
SELECT year_built FROM table_name_74 WHERE venue = "john m. belk arena"
What's the average pct for George Felton when he had losses greater than 7?
CREATE TABLE table_name_4 (pct INTEGER, lost VARCHAR, name VARCHAR)
SELECT AVG(pct) FROM table_name_4 WHERE lost > 7 AND name = "george felton"
When mount gauttier is the peak what is the island?
CREATE TABLE table_18946749_1 (island VARCHAR, peak VARCHAR)
SELECT island FROM table_18946749_1 WHERE peak = "Mount Gauttier"
What Format has the Region of Europe and a Catalog of 74321 45851 2?
CREATE TABLE table_name_86 (format VARCHAR, region VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_86 WHERE region = "europe" AND catalog = "74321 45851 2"
What's the white for a black of Anand, a result of ½–½, 39 moves, and an opening of d37 queen's gambit declined?
CREATE TABLE table_name_20 (white VARCHAR, opening VARCHAR, moves VARCHAR, black VARCHAR, result VARCHAR)
SELECT white FROM table_name_20 WHERE black = "anand" AND result = "½–½" AND moves = 39 AND opening = "d37 queen's gambit declined"
Who was the Republican in the district more than 4?
CREATE TABLE table_name_49 (republican VARCHAR, district INTEGER)
SELECT republican FROM table_name_49 WHERE district > 4
what is the score on may 11, 1997?
CREATE TABLE table_name_10 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_10 WHERE date = "may 11, 1997"
Operation start of 2015 has what gross mw?
CREATE TABLE table_name_56 (gross_mw VARCHAR, operation_start VARCHAR)
SELECT gross_mw FROM table_name_56 WHERE operation_start = "2015"
What is the points when the score was 3–1, and record was 25–19–11?
CREATE TABLE table_name_52 (points VARCHAR, score VARCHAR, record VARCHAR)
SELECT points FROM table_name_52 WHERE score = "3–1" AND record = "25–19–11"
How many games have November 7 as the date, and points greater than 17?
CREATE TABLE table_name_31 (game VARCHAR, november VARCHAR, points VARCHAR)
SELECT COUNT(game) FROM table_name_31 WHERE november = 7 AND points > 17
What is the average crowd size for corio oval?
CREATE TABLE table_name_9 (crowd INTEGER, venue VARCHAR)
SELECT AVG(crowd) FROM table_name_9 WHERE venue = "corio oval"
What is the highest area for locations named Centreville having populations over 532?
CREATE TABLE table_name_84 (area_km_2 INTEGER, population VARCHAR, official_name VARCHAR)
SELECT MAX(area_km_2) FROM table_name_84 WHERE population > 532 AND official_name = "centreville"
What is the listed for the bridge at Daniel in Sublette county?
CREATE TABLE table_name_86 (listed VARCHAR, county VARCHAR, location VARCHAR)
SELECT listed FROM table_name_86 WHERE county = "sublette" AND location = "daniel"
Which Date has a Winning score of −9 (70-64-70=203)?
CREATE TABLE table_name_19 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_19 WHERE winning_score = −9(70 - 64 - 70 = 203)
What is the average points with a year higher than 1989, and a rank of 7th?
CREATE TABLE table_name_60 (points INTEGER, year VARCHAR, rank VARCHAR)
SELECT AVG(points) FROM table_name_60 WHERE year > 1989 AND rank = "7th"
What was the box score for the game that had the Cairns Taipans as home team?
CREATE TABLE table_name_23 (Box VARCHAR, home_team VARCHAR)
SELECT Box AS score FROM table_name_23 WHERE home_team = "cairns taipans"
What is the Team with a Player that is david cooper?
CREATE TABLE table_name_86 (team VARCHAR, player VARCHAR)
SELECT team FROM table_name_86 WHERE player = "david cooper"
I want the attendance which has a result of l 49–21
CREATE TABLE table_name_12 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_12 WHERE result = "l 49–21"
What is the month and year less than 5 German submarines were lost, less than 6893 were sunk by warship or raider, less than 133746 were sunk by aircraft, and more than 111263 were sunk by U-boat?
CREATE TABLE table_name_24 (month VARCHAR, _year VARCHAR, sunk_by_u_boat VARCHAR, sunk_by_aircraft VARCHAR, german_submarines_lost VARCHAR, sunk_by_warship_or_raider VARCHAR)
SELECT month, _year FROM table_name_24 WHERE german_submarines_lost < 5 AND sunk_by_warship_or_raider < 6893 AND sunk_by_aircraft < 133746 AND sunk_by_u_boat > 111263
Which away team has a Tie no of 14?
CREATE TABLE table_name_67 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_67 WHERE tie_no = "14"
How many reporters for the year 1993?
CREATE TABLE table_22514845_3 (reporters VARCHAR, year VARCHAR)
SELECT COUNT(reporters) FROM table_22514845_3 WHERE year = 1993
What is josé maría olazábal's country?
CREATE TABLE table_name_39 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_39 WHERE player = "josé maría olazábal"
What is Sum of Round, when College/Junior/Club Team is Brandon Wheat Kings ( WHL ), when Player is Mike Perovich (D), and when Pick is less than 23?
CREATE TABLE table_name_40 (round INTEGER, pick VARCHAR, college_junior_club_team VARCHAR, player VARCHAR)
SELECT SUM(round) FROM table_name_40 WHERE college_junior_club_team = "brandon wheat kings ( whl )" AND player = "mike perovich (d)" AND pick < 23
What is the highest Stolen Ends when ludmila privivkova shows for skip?
CREATE TABLE table_name_54 (stolen_ends INTEGER, skip VARCHAR)
SELECT MAX(stolen_ends) FROM table_name_54 WHERE skip = "ludmila privivkova"
What was the result for City of the Sun?
CREATE TABLE table_22032599_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT result FROM table_22032599_1 WHERE film_title_used_in_nomination = "City of the Sun"
What was the record on April 8?
CREATE TABLE table_name_53 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_53 WHERE date = "april 8"
In which discipline was non-championship under Championship?
CREATE TABLE table_name_45 (discipline VARCHAR, championship VARCHAR)
SELECT discipline FROM table_name_45 WHERE championship = "non-championship"
What is the build date of the locomotive with a fa-2 model?
CREATE TABLE table_name_55 (build_date VARCHAR, model VARCHAR)
SELECT build_date FROM table_name_55 WHERE model = "fa-2"
What duration has rosa gonzalez as the character?
CREATE TABLE table_name_60 (duration VARCHAR, character VARCHAR)
SELECT duration FROM table_name_60 WHERE character = "rosa gonzalez"
Where is the University that plays in the American Athletic Conference?
CREATE TABLE table_19210115_1 (location VARCHAR, conference VARCHAR)
SELECT location FROM table_19210115_1 WHERE conference = "American Athletic conference"
Which driver has a Time/Retired of +1 lap?
CREATE TABLE table_name_66 (driver VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_66 WHERE time_retired = "+1 lap"
Which college/junior/club team did the player play on that played for the Buffalo Sabres in NHL?
CREATE TABLE table_1473672_3 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT college_junior_club_team FROM table_1473672_3 WHERE nhl_team = "Buffalo Sabres"
What team did James Vanderberg belong to when the Completions had a status of redshirt?
CREATE TABLE table_name_21 (team VARCHAR, completions VARCHAR)
SELECT team FROM table_name_21 WHERE completions = "redshirt"
What was the report in the race where the winning team was Roush Fenway Racing?
CREATE TABLE table_2220432_1 (report VARCHAR, team VARCHAR)
SELECT report FROM table_2220432_1 WHERE team = "Roush Fenway Racing"
Name the D 44 √ for when it has D 41 √ of r 41 +
CREATE TABLE table_name_93 (d_44_√ VARCHAR, d_41_√ VARCHAR)
SELECT d_44_√ FROM table_name_93 WHERE d_41_√ = "r 41 +"
What is the gold when the total is less than 2, and rank is 3 and Canada is the nation?
CREATE TABLE table_name_29 (gold VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR)
SELECT gold FROM table_name_29 WHERE total < 2 AND rank = 3 AND nation = "canada"
what circuit is in italy
CREATE TABLE table_name_25 (circuit VARCHAR, round VARCHAR)
SELECT circuit FROM table_name_25 WHERE round = "italy"
Name the most finish for 2006
CREATE TABLE table_name_9 (finish INTEGER, year VARCHAR)
SELECT MAX(finish) FROM table_name_9 WHERE year = 2006
What is the highest attendance of the match with a 2:0 score and vida as the away team?
CREATE TABLE table_name_59 (attendance INTEGER, score VARCHAR, away VARCHAR)
SELECT MAX(attendance) FROM table_name_59 WHERE score = "2:0" AND away = "vida"
Name the date with catalog of alca-9198
CREATE TABLE table_name_66 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_66 WHERE catalog = "alca-9198"
What's the highest capacity for a position of 5 in 2004?
CREATE TABLE table_name_81 (capacity INTEGER, position_in_2004 VARCHAR)
SELECT MAX(capacity) FROM table_name_81 WHERE position_in_2004 = "5"
Show the number of customers for each gender.
CREATE TABLE Customers (gender VARCHAR)
SELECT gender, COUNT(*) FROM Customers GROUP BY gender
what is the date when the away team is newport county?
CREATE TABLE table_name_98 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_98 WHERE away_team = "newport county"
Name the most game for record 4-0
CREATE TABLE table_22815259_1 (game INTEGER, record VARCHAR)
SELECT MAX(game) FROM table_22815259_1 WHERE record = "4-0"
What is the rank for Murphy Oil?
CREATE TABLE table_21926985_2 (state_rank_by_revenue VARCHAR, company_name VARCHAR)
SELECT state_rank_by_revenue FROM table_21926985_2 WHERE company_name = "Murphy Oil"
What place was the player from Italy in ?
CREATE TABLE table_name_32 (place VARCHAR, country VARCHAR)
SELECT place FROM table_name_32 WHERE country = "italy"
How many were in attendance when the score was † 4–4 †?
CREATE TABLE table_name_33 (attendance VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_33 WHERE score = "† 4–4 †"
List the names of people that have not been on the affirmative side of debates.
CREATE TABLE debate_people (Name VARCHAR, People_id VARCHAR, Affirmative VARCHAR); CREATE TABLE people (Name VARCHAR, People_id VARCHAR, Affirmative VARCHAR)
SELECT Name FROM people WHERE NOT People_id IN (SELECT Affirmative FROM debate_people)
june 10-11 when november 3 is 133?
CREATE TABLE table_25355501_2 (june_10_11 VARCHAR, november_3 VARCHAR)
SELECT june_10_11 FROM table_25355501_2 WHERE november_3 = "133"
When was the school in Philadelphia, Pennsylvania founded?
CREATE TABLE table_1969577_3 (founded VARCHAR, location VARCHAR)
SELECT founded FROM table_1969577_3 WHERE location = "Philadelphia, Pennsylvania"
How many hectars of land is in Kaxholmen?
CREATE TABLE table_16796625_1 (land_area__hectares_ VARCHAR, urban_area__locality_ VARCHAR)
SELECT land_area__hectares_ FROM table_16796625_1 WHERE urban_area__locality_ = "Kaxholmen"
What is the away team from st kilda?
CREATE TABLE table_name_89 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_89 WHERE home_team = "st kilda"
Who answered the 20 questions on 10-07?
CREATE TABLE table_1566852_8 (date VARCHAR)
SELECT 20 AS _questions FROM table_1566852_8 WHERE date = "10-07"
What is the lowest win number of the competitor who had 90 points before 1994?
CREATE TABLE table_name_41 (wins INTEGER, points VARCHAR, year VARCHAR)
SELECT MIN(wins) FROM table_name_41 WHERE points = 90 AND year < 1994
What is the date of the Greater Greensboro Chrysler Classic?
CREATE TABLE table_name_88 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_88 WHERE tournament = "greater greensboro chrysler classic"
What is the total number of points when draw is 4?
CREATE TABLE table_name_71 (points VARCHAR, draw VARCHAR)
SELECT COUNT(points) FROM table_name_71 WHERE draw = 4
How many total wins did the team ranked lower than 1 with a run ratio less than 5.85 and more than 4 losses have?
CREATE TABLE table_name_87 (wins VARCHAR, losses VARCHAR, rank VARCHAR, run_ratio VARCHAR)
SELECT COUNT(wins) FROM table_name_87 WHERE rank > 1 AND run_ratio < 5.85 AND losses > 4
Which Record has a December smaller than 28, and Points smaller than 38, and a Game smaller than 26, and a Score of 0–1 ot?
CREATE TABLE table_name_53 (record VARCHAR, score VARCHAR, game VARCHAR, december VARCHAR, points VARCHAR)
SELECT record FROM table_name_53 WHERE december < 28 AND points < 38 AND game < 26 AND score = "0–1 ot"
What was Olga Govortsova's score when she played on a clay surface on 19 May 2008?
CREATE TABLE table_name_11 (score VARCHAR, surface VARCHAR, date VARCHAR)
SELECT score FROM table_name_11 WHERE surface = "clay" AND date = "19 may 2008"
What is the best finish for the player whose earnings was $421050?
CREATE TABLE table_29504351_2 (best_finish VARCHAR, earnings__$_ VARCHAR)
SELECT best_finish FROM table_29504351_2 WHERE earnings__$_ = 421050
What was the average bronze when gold was larger than 1 and silver was larger than 2?
CREATE TABLE table_name_42 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_42 WHERE gold > 1 AND silver > 2
What was the official ITV1 rating in millions of the Live Final Results episode?
CREATE TABLE table_27319183_5 (official_itv1_rating__millions_ VARCHAR, episode VARCHAR)
SELECT official_itv1_rating__millions_ FROM table_27319183_5 WHERE episode = "Live final results"
Which result has a Location of canada, and a Record of 3-3?
CREATE TABLE table_name_77 (res VARCHAR, location VARCHAR, record VARCHAR)
SELECT res FROM table_name_77 WHERE location = "canada" AND record = "3-3"
WHAT IS THE DEVICE WITH MTS MOBILITY?
CREATE TABLE table_name_18 (device VARCHAR, carrier VARCHAR)
SELECT device FROM table_name_18 WHERE carrier = "mts mobility"
What was the attendance for the North Melbourne's home game?
CREATE TABLE table_name_31 (crowd VARCHAR, home_team VARCHAR)
SELECT crowd FROM table_name_31 WHERE home_team = "north melbourne"
On what date was the game played where the opponent was Stanford, ranked #5?
CREATE TABLE table_name_24 (date VARCHAR, rank__number VARCHAR, opponent_number VARCHAR)
SELECT date FROM table_name_24 WHERE rank__number = "5" AND opponent_number = "stanford"
Which Surplus(Deficit) has an Expenditure larger than 45.8, and a Year smaller than 2011, and a % GDP of (0.9%)?
CREATE TABLE table_name_88 (surplus_deficit_ VARCHAR, _percentage_gdp VARCHAR, expenditure VARCHAR, year VARCHAR)
SELECT surplus_deficit_ FROM table_name_88 WHERE expenditure > 45.8 AND year < 2011 AND _percentage_gdp = "(0.9%)"
what is the capacity when the home city is zagreb and the manager is zlatko kranjčar?
CREATE TABLE table_name_88 (capacity INTEGER, home_city VARCHAR, manager VARCHAR)
SELECT AVG(capacity) FROM table_name_88 WHERE home_city = "zagreb" AND manager = "zlatko kranjčar"
In what years did Salina Kosgei compete in Singapore?
CREATE TABLE table_name_70 (year VARCHAR, venue VARCHAR)
SELECT COUNT(year) FROM table_name_70 WHERE venue = "singapore"
What is the eastern word for "light"?
CREATE TABLE table_26614365_1 (eastern VARCHAR, english VARCHAR)
SELECT eastern FROM table_26614365_1 WHERE english = "light"