question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the grid for the driver who earned 14 points?
CREATE TABLE table_17304504_1 (grid VARCHAR, points VARCHAR)
SELECT grid FROM table_17304504_1 WHERE points = "14"
How many points did the Toronto Downtown Dingos score?
CREATE TABLE table_26200568_16 (points_for INTEGER, club VARCHAR)
SELECT MIN(points_for) FROM table_26200568_16 WHERE club = "Toronto Downtown Dingos"
Who is in November where February is willy rey?
CREATE TABLE table_name_48 (november VARCHAR, february VARCHAR)
SELECT november FROM table_name_48 WHERE february = "willy rey"
List all episode air dates that auditioned at Nego Quirido Sambadrome?
CREATE TABLE table_27615445_1 (episode_air_date VARCHAR, audition_venue VARCHAR)
SELECT episode_air_date FROM table_27615445_1 WHERE audition_venue = "Nego Quirido Sambadrome"
What was the points with 7 races?
CREATE TABLE table_name_34 (points VARCHAR, races VARCHAR)
SELECT points FROM table_name_34 WHERE races = "7"
What is the 2007 value for the 2006 wta premier tournaments?
CREATE TABLE table_name_25 (Id VARCHAR)
SELECT 2007 FROM table_name_25 WHERE 2006 = "wta premier tournaments"
Which label has the catalog CDZAP22?
CREATE TABLE table_name_65 (label VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_65 WHERE catalog = "cdzap22"
Which team 1 has team 2, Gomera?
CREATE TABLE table_name_54 (team_1 VARCHAR, team_2 VARCHAR)
SELECT team_1 FROM table_name_54 WHERE team_2 = "gomera"
what is the least amount of milk cattle in ontario
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)
SELECT MIN(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "Ontario"
Name the score for april 28
CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_66 WHERE date = "april 28"
What Result has a Location of atlanta, and Rank smaller than 4?
CREATE TABLE table_name_11 (result INTEGER, location VARCHAR, rank VARCHAR)
SELECT AVG(result) FROM table_name_11 WHERE location = "atlanta" AND rank < 4
Who was the opponent at the game with a loss of Sele (0-1)?
CREATE TABLE table_name_36 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_36 WHERE loss = "sele (0-1)"
Show first name and id for all customers with at least 2 accounts.
CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR)
SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2
Gold smaller than 2, and a Rank of 4, and a Nation of hungary (hun), and a Bronze smaller than 1 had what total number of silver?
CREATE TABLE table_name_48 (silver VARCHAR, bronze VARCHAR, nation VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT COUNT(silver) FROM table_name_48 WHERE gold < 2 AND rank = "4" AND nation = "hungary (hun)" AND bronze < 1
What was the incumbent of texas 3?
CREATE TABLE table_1341663_44 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341663_44 WHERE district = "Texas 3"
find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.
CREATE TABLE gas_station (location VARCHAR, Representative_Name VARCHAR, station_id VARCHAR); CREATE TABLE station_company (company_id VARCHAR, station_id VARCHAR); CREATE TABLE company (company_id VARCHAR, Assets_billion VARCHAR)
SELECT T3.location, T3.Representative_Name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id ORDER BY T2.Assets_billion DESC LIMIT 3
Who is the visitor on March 24?
CREATE TABLE table_name_62 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_62 WHERE date = "march 24"
Which duchess was born on 9 october 1574?
CREATE TABLE table_name_34 (ceased_to_be_duchess VARCHAR, birth VARCHAR)
SELECT ceased_to_be_duchess FROM table_name_34 WHERE birth = "9 october 1574"
WHAT ARE THE RACES WITH A POLE SMALLER THAN 2 IN 2007?
CREATE TABLE table_name_93 (races INTEGER, pole VARCHAR, season VARCHAR)
SELECT MIN(races) FROM table_name_93 WHERE pole < 2 AND season = "2007"
What is High Rebounds, when Game is greater than 33, and when Score is "W 132-101"?
CREATE TABLE table_name_44 (high_rebounds VARCHAR, game VARCHAR, score VARCHAR)
SELECT high_rebounds FROM table_name_44 WHERE game > 33 AND score = "w 132-101"
Who played on clay on 3 march 2012?
CREATE TABLE table_name_16 (opponent VARCHAR, surface VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_16 WHERE surface = "clay" AND date = "3 march 2012"
What is the score of match 15?
CREATE TABLE table_name_30 (score VARCHAR, match_no VARCHAR)
SELECT score FROM table_name_30 WHERE match_no = "15"
Where was the home court on April 14?
CREATE TABLE table_name_34 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_34 WHERE date = "april 14"
How many different classes of verbs are there whose part 3 is lucon?
CREATE TABLE table_1745843_6 (class VARCHAR, part_3 VARCHAR)
SELECT COUNT(class) FROM table_1745843_6 WHERE part_3 = "lucon"
WHo won men's singles in 1994?
CREATE TABLE table_14904221_1 (mens_singles VARCHAR, year VARCHAR)
SELECT mens_singles FROM table_14904221_1 WHERE year = 1994
Which 2006 has a 2012 of a, and a 2011 of 3r?
CREATE TABLE table_name_76 (Id VARCHAR)
SELECT 2006 FROM table_name_76 WHERE 2012 = "a" AND 2011 = "3r"
What date has a status of 1995 rugby world cup and an against of 20?
CREATE TABLE table_name_21 (date VARCHAR, status VARCHAR, against VARCHAR)
SELECT date FROM table_name_21 WHERE status = "1995 rugby world cup" AND against = 20
What is the number of silver when rank was 5, and a bronze was smaller than 14?
CREATE TABLE table_name_69 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT SUM(silver) FROM table_name_69 WHERE rank = "5" AND bronze < 14
When has a Record of 9–1, and a Tournament Champion of duke?
CREATE TABLE table_name_50 (year VARCHAR, record VARCHAR, tournament_champion VARCHAR)
SELECT year FROM table_name_50 WHERE record = "9–1" AND tournament_champion = "duke"
What is the total gold with a total less than 1?
CREATE TABLE table_name_2 (gold INTEGER, total INTEGER)
SELECT SUM(gold) FROM table_name_2 WHERE total < 1
What teams do the players from TPS (Finland) play for?
CREATE TABLE table_1013129_11 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT nhl_team FROM table_1013129_11 WHERE college_junior_club_team = "TPS (Finland)"
What city was a visitor on the date of April 30?
CREATE TABLE table_name_74 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_74 WHERE date = "april 30"
What team raced with a Foyt engine in the Texas Grand Prix?
CREATE TABLE table_1405704_1 (team VARCHAR, race_name VARCHAR, engine VARCHAR)
SELECT team FROM table_1405704_1 WHERE race_name = "Texas Grand Prix" AND engine = "Foyt"
What is the record of the game when Los Angeles was the home team?
CREATE TABLE table_name_38 (record VARCHAR, home VARCHAR)
SELECT record FROM table_name_38 WHERE home = "los angeles"
What is the nationality of the swimmer with a rank over 2 with a time of 55.77?
CREATE TABLE table_name_47 (nationality VARCHAR, rank VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_47 WHERE rank > 2 AND time = "55.77"
How tall is the building built in 1985 with 22 floors?
CREATE TABLE table_name_44 (height_ft__m_ VARCHAR, floors VARCHAR, year VARCHAR)
SELECT height_ft__m_ FROM table_name_44 WHERE floors = 22 AND year = 1985
What date was Rica head of household?
CREATE TABLE table_name_35 (date_given VARCHAR, head_of_household VARCHAR)
SELECT date_given FROM table_name_35 WHERE head_of_household = "rica"
What is Method, when Opponent is "Thiago Alves"?
CREATE TABLE table_name_19 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_19 WHERE opponent = "thiago alves"
What is the result of the World Race Walking Cup tournament played before the year 2010?
CREATE TABLE table_name_20 (result VARCHAR, year VARCHAR, tournament VARCHAR)
SELECT result FROM table_name_20 WHERE year > 2010 AND tournament = "world race walking cup"
Which Cashes has a Match Play smaller than 13, and a Events of 7?
CREATE TABLE table_name_97 (cashes VARCHAR, match_play VARCHAR, events VARCHAR)
SELECT COUNT(cashes) FROM table_name_97 WHERE match_play < 13 AND events = 7
What was the date of appointment when Jürgen Kohler was the outgoing manager?
CREATE TABLE table_17085981_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT date_of_appointment FROM table_17085981_2 WHERE outgoing_manager = "Jürgen Kohler"
What is the 2011 value of the French Open, which has a 2006 value of A?
CREATE TABLE table_name_2 (tournament VARCHAR)
SELECT 2011 FROM table_name_2 WHERE 2006 = "a" AND tournament = "french open"
Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.
CREATE TABLE Treatments (professional_id VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR, state VARCHAR)
SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2
How many events for bob murphy?
CREATE TABLE table_name_34 (events INTEGER, player VARCHAR)
SELECT MAX(events) FROM table_name_34 WHERE player = "bob murphy"
How man innings were there during the period with a career average of 41.43?
CREATE TABLE table_21100348_10 (innings VARCHAR, average VARCHAR)
SELECT innings FROM table_21100348_10 WHERE average = "41.43"
What is the name of the head coach of 1974?
CREATE TABLE table_name_96 (name VARCHAR, years VARCHAR)
SELECT name FROM table_name_96 WHERE years = "1974"
Name the profits for market value of 11.8
CREATE TABLE table_19112_3 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)
SELECT profits__billion_$_ FROM table_19112_3 WHERE market_value__billion_$_ = "11.8"
Why did the change happen in the state where the formal installation happen on February 14, 1859?
CREATE TABLE table_1802760_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT reason_for_change FROM table_1802760_3 WHERE date_of_successors_formal_installation = "February 14, 1859"
Which season had a home 2-3?
CREATE TABLE table_name_2 (season VARCHAR, home VARCHAR)
SELECT season FROM table_name_2 WHERE home = "2-3"
Who corned the most points for the game that ended with a score of l 85–94 (ot)?
CREATE TABLE table_27734577_2 (high_points VARCHAR, score VARCHAR)
SELECT high_points FROM table_27734577_2 WHERE score = "L 85–94 (OT)"
What is the donor payment in Belgium?
CREATE TABLE table_16175217_1 (donor_payment VARCHAR, country VARCHAR)
SELECT donor_payment FROM table_16175217_1 WHERE country = "Belgium"
What is his highest number of top 25s when eh played over 2 events and under 0 wins?
CREATE TABLE table_name_28 (top_25 INTEGER, events VARCHAR, wins VARCHAR)
SELECT MAX(top_25) FROM table_name_28 WHERE events > 2 AND wins < 0
Which Description has a Year of Issue of 1983, and a Weight of 3.50grams?
CREATE TABLE table_name_67 (description VARCHAR, year_of_issue VARCHAR, weight VARCHAR)
SELECT description FROM table_name_67 WHERE year_of_issue = 1983 AND weight = "3.50grams"
What is the sum of the weeks during which the Redskins played against the Houston Oilers and had more than 54,582 fans in attendance?
CREATE TABLE table_name_97 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT SUM(week) FROM table_name_97 WHERE opponent = "houston oilers" AND attendance > 54 OFFSET 582
Who was played against in the final on November 14, 1994?
CREATE TABLE table_name_17 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_17 WHERE date = "november 14, 1994"
Which Rider has a Grid larger than 6, and has Laps of 28, and a Time of +39.476?
CREATE TABLE table_name_42 (rider VARCHAR, time VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT rider FROM table_name_42 WHERE grid > 6 AND laps = 28 AND time = "+39.476"
What is Score, when Player is "Ernie Els"?
CREATE TABLE table_name_15 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_15 WHERE player = "ernie els"
how many for christer tornell where the total is 30?
CREATE TABLE table_28677723_11 (christer_tornell VARCHAR, total VARCHAR)
SELECT COUNT(christer_tornell) FROM table_28677723_11 WHERE total = 30
what is the number of the average of the drama titled 魚躍在花見
CREATE TABLE table_29633639_1 (average INTEGER, chinese_title VARCHAR)
SELECT MAX(average) FROM table_29633639_1 WHERE chinese_title = "魚躍在花見"
Which Locomotive Entered Service in November 1984 and has an Operator of Southern Shorthaul Railroad?
CREATE TABLE table_name_59 (locomotive VARCHAR, operator VARCHAR, entered_service VARCHAR)
SELECT locomotive FROM table_name_59 WHERE operator = "southern shorthaul railroad" AND entered_service = "november 1984"
What are the names of gymnasts?
CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
What is the Surface of the match with a Score of 2–6, 6–4, 7–6?
CREATE TABLE table_name_30 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_30 WHERE score = "2–6, 6–4, 7–6"
What is the lowest 2004 population when there were 5158 households?
CREATE TABLE table_name_8 (population__2004_ INTEGER, households VARCHAR)
SELECT MIN(population__2004_) FROM table_name_8 WHERE households = 5158
How many venues had a race called the Australia Stakes?
CREATE TABLE table_14981555_3 (venue VARCHAR, race VARCHAR)
SELECT COUNT(venue) FROM table_14981555_3 WHERE race = "Australia Stakes"
Who had the most points in the game where the score was w 97–92 (ot)?
CREATE TABLE table_23285849_7 (high_points VARCHAR, score VARCHAR)
SELECT high_points FROM table_23285849_7 WHERE score = "W 97–92 (OT)"
When did the Browns play the Pittsburgh Steelers?
CREATE TABLE table_name_80 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_80 WHERE opponent = "pittsburgh steelers"
On which apparatus did Kanayeva have a final score smaller than 75.5 and a qualifying score smaller than 18.7?
CREATE TABLE table_name_68 (apparatus VARCHAR, score_final VARCHAR, score_qualifying VARCHAR)
SELECT apparatus FROM table_name_68 WHERE score_final < 75.5 AND score_qualifying < 18.7
What date did the episode air that had n/a for it's bbc three weekly ranking?
CREATE TABLE table_24399615_4 (airdate VARCHAR, bbc_three_weekly_ranking VARCHAR)
SELECT airdate FROM table_24399615_4 WHERE bbc_three_weekly_ranking = "N/A"
What was the score for the game in which the Edmonton Oilers were visitors?
CREATE TABLE table_name_4 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_4 WHERE visitor = "edmonton oilers"
what is the unemployment rate where the market income per capita is $16,406?
CREATE TABLE table_22815568_13 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR)
SELECT unemployment_rate FROM table_22815568_13 WHERE market_income_per_capita = "$16,406"
Who was the opponent after week 16?
CREATE TABLE table_name_43 (opponent VARCHAR, week INTEGER)
SELECT opponent FROM table_name_43 WHERE week > 16
What is the total number of 3-dart average when legs lost is larger than 41, and played is larger than 7?
CREATE TABLE table_name_1 (legs_lost VARCHAR, played VARCHAR)
SELECT COUNT(3 AS _dart_average) FROM table_name_1 WHERE legs_lost > 41 AND played > 7
Name the loans received for 2Q having total receipts of $25,328,694
CREATE TABLE table_name_95 (loans_received VARCHAR, _2q VARCHAR, total_receipts VARCHAR)
SELECT loans_received, _2q FROM table_name_95 WHERE total_receipts = "$25,328,694"
Which Radon has Neon of 4.79?
CREATE TABLE table_name_62 (radon VARCHAR, neon VARCHAR)
SELECT radon FROM table_name_62 WHERE neon = "4.79"
What is the average number of points for a team that played 17 games and had more than 15 losses?
CREATE TABLE table_name_37 (points INTEGER, games VARCHAR, losses VARCHAR)
SELECT AVG(points) FROM table_name_37 WHERE games = 17 AND losses > 15
What time has q as the notes, and Australia as the country?
CREATE TABLE table_name_95 (time VARCHAR, notes VARCHAR, country VARCHAR)
SELECT time FROM table_name_95 WHERE notes = "q" AND country = "australia"
I want the score for 28 march 1979
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_37 WHERE date = "28 march 1979"
Name the horsepwer for compression ratio of 9.00:1 and carburetor of 2-barrel and engine 302-2v windsor v8
CREATE TABLE table_name_19 (horsepower VARCHAR, engine VARCHAR, compression_ratio VARCHAR, carburetor VARCHAR)
SELECT horsepower FROM table_name_19 WHERE compression_ratio = "9.00:1" AND carburetor = "2-barrel" AND engine = "302-2v windsor v8"
Which railway was built in 1920?
CREATE TABLE table_name_69 (railway VARCHAR, built VARCHAR)
SELECT railway FROM table_name_69 WHERE built = "1920"
What is the area of Mangamahu primary school?
CREATE TABLE table_name_54 (area VARCHAR, name VARCHAR)
SELECT area FROM table_name_54 WHERE name = "mangamahu primary school"
what is the turbo when the frequency is 2.2 ghz?
CREATE TABLE table_name_63 (turbo VARCHAR, frequency VARCHAR)
SELECT turbo FROM table_name_63 WHERE frequency = "2.2 ghz"
Who is the Member when the Party is Alp, and when the Electorate is Grey?
CREATE TABLE table_name_66 (member VARCHAR, party VARCHAR, electorate VARCHAR)
SELECT member FROM table_name_66 WHERE party = "alp" AND electorate = "grey"
What were the sales for Dj Casper when he was in a position lower than 13?
CREATE TABLE table_name_51 (sales VARCHAR, position VARCHAR, artist VARCHAR)
SELECT sales FROM table_name_51 WHERE position < 13 AND artist = "dj casper"
How many people voted in Cabarrus county?
CREATE TABLE table_20350118_1 (total INTEGER, county VARCHAR)
SELECT MIN(total) FROM table_20350118_1 WHERE county = "Cabarrus"
Name the loss for june 22
CREATE TABLE table_name_8 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_8 WHERE date = "june 22"
What is the number of distinct teams that suffer elimination?
CREATE TABLE elimination (team VARCHAR)
SELECT COUNT(DISTINCT team) FROM elimination
What is the total rank of the airport that has 79,290 passengers?
CREATE TABLE table_name_63 (rank VARCHAR, passengers VARCHAR)
SELECT COUNT(rank) FROM table_name_63 WHERE passengers = 79 OFFSET 290
Which round has a record of 5-3 (1)?
CREATE TABLE table_name_51 (round INTEGER, record VARCHAR)
SELECT MIN(round) FROM table_name_51 WHERE record = "5-3 (1)"
Who was the visiting team when the home team was Seattle?
CREATE TABLE table_name_22 (visitor VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_22 WHERE home = "seattle"
What is the average number lost when the against value is less than 5?
CREATE TABLE table_name_86 (lost INTEGER, against INTEGER)
SELECT AVG(lost) FROM table_name_86 WHERE against < 5
Which Record has a Home of edmonton oilers, and a Score of 3–6?
CREATE TABLE table_name_49 (record VARCHAR, home VARCHAR, score VARCHAR)
SELECT record FROM table_name_49 WHERE home = "edmonton oilers" AND score = "3–6"
At what stadium was the final score 31-28?
CREATE TABLE table_name_60 (stadium VARCHAR, final_score VARCHAR)
SELECT stadium FROM table_name_60 WHERE final_score = "31-28"
What is the highest yards for a rating larger than 52.8 and more than 13 games?
CREATE TABLE table_name_47 (yards INTEGER, rating VARCHAR, games VARCHAR)
SELECT MAX(yards) FROM table_name_47 WHERE rating > 52.8 AND games > 13
What is the total number of Mark, when Country is "Russia", and when React is less than 0.165?
CREATE TABLE table_name_65 (mark VARCHAR, country VARCHAR, react VARCHAR)
SELECT COUNT(mark) FROM table_name_65 WHERE country = "russia" AND react < 0.165
What is the Nationality of the swimmer with a Time of 1:08.80?
CREATE TABLE table_name_6 (nationality VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_6 WHERE time = "1:08.80"
What position did the team with the total score of 41/60 get?
CREATE TABLE table_18278508_2 (position VARCHAR, total_score_week VARCHAR)
SELECT position FROM table_18278508_2 WHERE total_score_week = "41/60"
How many parks are there in Atlanta city?
CREATE TABLE park (city VARCHAR)
SELECT COUNT(*) FROM park WHERE city = 'Atlanta'
Which qualifying schools were in the Patriot conference?
CREATE TABLE table_16295365_1 (school VARCHAR, conference VARCHAR)
SELECT school FROM table_16295365_1 WHERE conference = "Patriot"
What is the Overall with a Date that is february 4, 1964?
CREATE TABLE table_name_95 (overall VARCHAR, date VARCHAR)
SELECT overall FROM table_name_95 WHERE date = "february 4, 1964"
Who is on the David's Team for the episode with the Lees Team of Jack Dee and Peter Serafinowicz
CREATE TABLE table_23575917_4 (davids_team VARCHAR, lees_team VARCHAR)
SELECT davids_team FROM table_23575917_4 WHERE lees_team = "Jack Dee and Peter Serafinowicz"