answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT record FROM table_name_76 WHERE loss = "westbrook (1-6)"
What is the record when the loss is westbrook (1-6)?
CREATE TABLE table_name_76 (record VARCHAR, loss VARCHAR)
SELECT COUNT(record) FROM table_13619135_5 WHERE date = "January 14"
How many records are there for the games that took place on January 14.
CREATE TABLE table_13619135_5 (record VARCHAR, date VARCHAR)
SELECT margin FROM table_name_4 WHERE venue = "bellerive oval , hobart" AND season = "2002/03"
What is the Margin that has a Venue of bellerive oval , hobart, and a Season of 2002/03?
CREATE TABLE table_name_4 (margin VARCHAR, venue VARCHAR, season VARCHAR)
SELECT away_team FROM table_name_82 WHERE home_team = "perth wildcats"
Who is the away team that played home team Perth Wildcats?
CREATE TABLE table_name_82 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(result) FROM table_11326124_3 WHERE round = "2R"
How many rounds were 2r?
CREATE TABLE table_11326124_3 (result VARCHAR, round VARCHAR)
SELECT MIN(gold) FROM table_name_7 WHERE bronze = 0 AND silver < 2
Which rank has 0 bronze and 2 silver?
CREATE TABLE table_name_7 (gold INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT chassis FROM table_name_32 WHERE engine = "climax straight-4"
What chassis was paired with climax straight-4?
CREATE TABLE table_name_32 (chassis VARCHAR, engine VARCHAR)
SELECT normal_environment_of_occurrence__in_native_words_ FROM table_name_86 WHERE proto_germanic_origin = "/ai/"
what is the normal environment of occurrence that has a Proto-Germanic origin /ai/
CREATE TABLE table_name_86 (normal_environment_of_occurrence__in_native_words_ VARCHAR, proto_germanic_origin VARCHAR)
SELECT AVG(gold) FROM table_name_60 WHERE "total" > 3 AND rank = "total" AND silver > 8
Which Gold has a Total larger than 3, a Rank of total, and a Silver larger than 8?
CREATE TABLE table_name_60 (gold INTEGER, silver VARCHAR, rank VARCHAR)
SELECT numeric_code FROM table_222771_1 WHERE alpha_3_code = "LIE"
What is the number reference for LIE?
CREATE TABLE table_222771_1 (numeric_code VARCHAR, alpha_3_code VARCHAR)
SELECT COUNT(field_goals) FROM table_24915964_4 WHERE points = 597
How many field goals had 597 points?
CREATE TABLE table_24915964_4 (field_goals VARCHAR, points VARCHAR)
SELECT away_team AS score FROM table_name_6 WHERE home_team = "fitzroy"
What is the away team score when Home team is fitzroy?
CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR)
SELECT opponent FROM table_name_32 WHERE attendance = "73,428"
Which opponent had 73,428 in attendance?
CREATE TABLE table_name_32 (opponent VARCHAR, attendance VARCHAR)
SELECT home FROM table_name_52 WHERE date = "march 5"
Who is the home team on March 5?
CREATE TABLE table_name_52 (home VARCHAR, date VARCHAR)
SELECT venue FROM table_name_31 WHERE against < 7
Which Venue has a Against smaller than 7?
CREATE TABLE table_name_31 (venue VARCHAR, against INTEGER)
SELECT build_date FROM table_name_13 WHERE wheels = "0-6-2 t"
What was the build date of the railway(s) with 0-6-2 t wheels?
CREATE TABLE table_name_13 (build_date VARCHAR, wheels VARCHAR)
SELECT SUM(intake) FROM table_name_54 WHERE faith = "rc" AND dcsf_number > 2428
Can you tell me the sum of Intake that has the Faith of rc, and the DCSF number larger than 2428?
CREATE TABLE table_name_54 (intake INTEGER, faith VARCHAR, dcsf_number VARCHAR)
SELECT COUNT(population) FROM table_157826_1 WHERE city_town = "Arendal"
What is the total population in the city/town of Arendal?
CREATE TABLE table_157826_1 (population VARCHAR, city_town VARCHAR)
SELECT entrant FROM table_name_65 WHERE pts = "0"
What is the entrant that has 0 points?
CREATE TABLE table_name_65 (entrant VARCHAR, pts VARCHAR)
SELECT servedby FROM table_name_1 WHERE local_authority_[a_] = "thurrock" AND station = "ockendon"
Which Servedby has a Local authority [a ] of thurrock, and a Station of ockendon?
CREATE TABLE table_name_1 (servedby VARCHAR, station VARCHAR, local_authority_ VARCHAR, a_ VARCHAR)
SELECT home_team FROM table_name_39 WHERE away_team = "sheffield united" AND date = "sheffield united"
Who was the home team when Sheffield United was the away team and the date was also Sheffield United?
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR, date VARCHAR)
SELECT score FROM table_name_79 WHERE visitor = "philadelphia" AND record = "7–4–0"
What is the score when Philadelphia was the visitor with a Record of 7–4–0?
CREATE TABLE table_name_79 (score VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT COUNT(driver) FROM table_10753917_1 WHERE team = "Williams" AND margin_of_defeat = "2"
How many drivers on the williams team had a margin of defeat of 2?
CREATE TABLE table_10753917_1 (driver VARCHAR, team VARCHAR, margin_of_defeat VARCHAR)
SELECT AVG(cuts_made) FROM table_name_59 WHERE events < 4 AND wins > 0
What is the average number of cuts made for events with under 4 entries and more than 0 wins?
CREATE TABLE table_name_59 (cuts_made INTEGER, events VARCHAR, wins VARCHAR)
SELECT municipality FROM table_name_84 WHERE code = 2401
Which municipality has the code 2401?
CREATE TABLE table_name_84 (municipality VARCHAR, code VARCHAR)
SELECT COUNT(episode_number) FROM table_1590967_6 WHERE coat_of_cash_wearing_celebrity = "Matt Di Angelo"
Name the total number of episodes for coat of cash wearing celebrity is matt di angelo
CREATE TABLE table_1590967_6 (episode_number VARCHAR, coat_of_cash_wearing_celebrity VARCHAR)
SELECT DISTINCT T3.name, T2.title, T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name
For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.
CREATE TABLE Rating (stars VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR)
SELECT COUNT(crowd) FROM table_name_58 WHERE venue = "junction oval"
What was the attendance when the VFL played Junction Oval?
CREATE TABLE table_name_58 (crowd VARCHAR, venue VARCHAR)
SELECT AVG(grid) FROM table_name_33 WHERE manufacturer = "aprilia" AND rider = "bradley smith"
Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith?
CREATE TABLE table_name_33 (grid INTEGER, manufacturer VARCHAR, rider VARCHAR)
SELECT Order_Date FROM BOOKINGS
List the order dates of all the bookings.
CREATE TABLE BOOKINGS (Order_Date VARCHAR)
SELECT margin_of_victory FROM table_name_23 WHERE tournament = "konica san jose classic"
What is the margin of victory when the tournament is konica san jose classic?
CREATE TABLE table_name_23 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT result FROM table_name_45 WHERE venue = "n"
What is the Result with a Venue that is n?
CREATE TABLE table_name_45 (result VARCHAR, venue VARCHAR)
SELECT record FROM table_name_74 WHERE date = "october 30"
What is the record on October 30?
CREATE TABLE table_name_74 (record VARCHAR, date VARCHAR)
SELECT year FROM table_name_41 WHERE nominee = "patricia mcgourty" AND award = "tony award"
What year was Patricia Mcgourty nominated for a Tony award?
CREATE TABLE table_name_41 (year VARCHAR, nominee VARCHAR, award VARCHAR)
SELECT settlement FROM table_2562572_19 WHERE population__2011_ = 1114
In what settlement is the population 1114?
CREATE TABLE table_2562572_19 (settlement VARCHAR, population__2011_ VARCHAR)
SELECT result FROM table_name_9 WHERE attendance > 71 OFFSET 164
What was the result for the 71,164 in attendance?
CREATE TABLE table_name_9 (result VARCHAR, attendance INTEGER)
SELECT region FROM table_name_51 WHERE format_s_ = "cd" AND label = "toshiba emi"
What region is the toshiba emi label with a cd format?
CREATE TABLE table_name_51 (region VARCHAR, format_s_ VARCHAR, label VARCHAR)
SELECT MIN(european_parliament_seats) FROM table_158282_1 WHERE international_affiliation = "Global Greens, EGP"
What is the smallest number of European Parliament sets when the international affiliation is global greens, egp?
CREATE TABLE table_158282_1 (european_parliament_seats INTEGER, international_affiliation VARCHAR)
SELECT MAX(points) FROM table_name_84 WHERE place = "3rd" AND draw > 5
What is the highest point total that placed 3rd and has a draw larger than 5?
CREATE TABLE table_name_84 (points INTEGER, place VARCHAR, draw VARCHAR)
SELECT date FROM table_name_80 WHERE opponent_in_the_final = "amy frazier"
What date was the match played where Amy Frazier was the opponent?
CREATE TABLE table_name_80 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_99 WHERE loss = "drese (2-2)"
What was the score of the game that had a loss of Drese (2-2)?
CREATE TABLE table_name_99 (score VARCHAR, loss VARCHAR)
SELECT event FROM table_name_91 WHERE runner_up_skip = "randy ferbey" AND location = "gander, newfoundland and labrador"
What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?
CREATE TABLE table_name_91 (event VARCHAR, runner_up_skip VARCHAR, location VARCHAR)
SELECT MAX(points) FROM table_name_20 WHERE date = "october 12" AND attendance > 10 OFFSET 701
What was the highest points on October 12, when the attendance where is over 10,701?
CREATE TABLE table_name_20 (points INTEGER, date VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_5 WHERE surface = "clay" AND date = "may 29, 2006"
What was the score on a clay surface on May 29, 2006?
CREATE TABLE table_name_5 (score VARCHAR, surface VARCHAR, date VARCHAR)
SELECT tournament FROM table_11622255_1 WHERE winner = "Raymond Floyd (1)"
what's the tournament where winner is raymond floyd (1)
CREATE TABLE table_11622255_1 (tournament VARCHAR, winner VARCHAR)
SELECT result FROM table_name_33 WHERE score = "48-12" AND city = "perth"
What was the result of the match that took place in Perth, featuring a score of 48-12?
CREATE TABLE table_name_33 (result VARCHAR, score VARCHAR, city VARCHAR)
SELECT visitor FROM table_name_74 WHERE date = "april 30"
What city was a visitor on the date of April 30?
CREATE TABLE table_name_74 (visitor VARCHAR, date VARCHAR)
SELECT winner FROM table_name_7 WHERE date = "november 26"
What is the Winner of the Game on November 26?
CREATE TABLE table_name_7 (winner VARCHAR, date VARCHAR)
SELECT date FROM table_name_43 WHERE week > 6 AND result = "w 65-20"
When was there a result of w 65-20 after week 6?
CREATE TABLE table_name_43 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT MAX(grid) FROM table_name_4 WHERE time_retired = "+6 laps" AND laps < 69
What is the high grid that has a Time/Retired of +6 laps, and under 69 laps?
CREATE TABLE table_name_4 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT result FROM table_name_66 WHERE week = 13
What was the result of the week 13 game?
CREATE TABLE table_name_66 (result VARCHAR, week VARCHAR)
SELECT year FROM table_name_44 WHERE venue = "nikos goumas stadium" AND score = "2–2 4–4 a.e.t. 6–5 pso"
when is the venue nikos goumas stadium and the score is 2–2 4–4 a.e.t. 6–5 pso?
CREATE TABLE table_name_44 (year VARCHAR, venue VARCHAR, score VARCHAR)
SELECT bbi FROM table_28798161_3 WHERE economy = "3.63"
if the economy is 3.63 what is the bbi
CREATE TABLE table_28798161_3 (bbi VARCHAR, economy VARCHAR)
SELECT COUNT(population__2011_) FROM table_2562572_2 WHERE population__2002_ = 29449
What is the number of 2011 populations having a 2002 population of 29449?
CREATE TABLE table_2562572_2 (population__2011_ VARCHAR, population__2002_ VARCHAR)
SELECT record FROM table_27537870_6 WHERE opponent = "Philadelphia Flyers"
If the opponent was the Philadelphia flyers, what was the record?
CREATE TABLE table_27537870_6 (record VARCHAR, opponent VARCHAR)
SELECT MIN(created) FROM table_name_33 WHERE map_number = 10
What is the earliest created year when the map# was 10?
CREATE TABLE table_name_33 (created INTEGER, map_number VARCHAR)
SELECT player FROM table_11545282_17 WHERE years_for_jazz = "2004-05"
What is the player that played 2004-05?
CREATE TABLE table_11545282_17 (player VARCHAR, years_for_jazz VARCHAR)
SELECT record FROM table_name_25 WHERE attendance = "41,573"
What's the record when the attendance was 41,573?
CREATE TABLE table_name_25 (record VARCHAR, attendance VARCHAR)
SELECT MIN(losses) FROM table_name_58 WHERE against < 1464 AND draws < 1 AND wins > 7
Which Losses have an Against smaller than 1464, and Draws smaller than 1, and Wins larger than 7?
CREATE TABLE table_name_58 (losses INTEGER, wins VARCHAR, against VARCHAR, draws VARCHAR)
SELECT high_rebounds FROM table_23281862_9 WHERE game = 64
Who is the high rebounds for game 64?
CREATE TABLE table_23281862_9 (high_rebounds VARCHAR, game VARCHAR)
SELECT AVG(last_cf) FROM table_name_44 WHERE cf_appearances < 4 AND cf_wins < 1 AND team = "st. louis blues"
What is the average last cf of the st. louis blues, who has less than 4 cf appearances and less than 1 cf wins?
CREATE TABLE table_name_44 (last_cf INTEGER, team VARCHAR, cf_appearances VARCHAR, cf_wins VARCHAR)
SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id
Show the names of high schoolers who have likes, and numbers of likes for each.
CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)
SELECT SUM(owgr_pts) FROM table_name_37 WHERE dates = "may 10-13"
Which OWGR pts has Dates of may 10-13?
CREATE TABLE table_name_37 (owgr_pts INTEGER, dates VARCHAR)
SELECT away_team AS score FROM table_name_65 WHERE date = "17 august 1935"
What was the away team score at the game held on 17 August 1935?
CREATE TABLE table_name_65 (away_team VARCHAR, date VARCHAR)
SELECT away_team FROM table_name_75 WHERE score = "139-119"
Who was the away team for the game with a score of 139-119?
CREATE TABLE table_name_75 (away_team VARCHAR, score VARCHAR)
SELECT loss FROM table_name_74 WHERE record = "55-41"
Who got the loss for the game ending in a record of 55-41?
CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR)
SELECT AVG(total_produced) FROM table_name_49 WHERE prime_mover = "12-251c"
What is the average total produced when the prime mover is 12-251c?
CREATE TABLE table_name_49 (total_produced INTEGER, prime_mover VARCHAR)
SELECT COUNT(attendance) FROM table_name_12 WHERE week = 16
Tell me the total number of attendance for week of 16
CREATE TABLE table_name_12 (attendance VARCHAR, week VARCHAR)
SELECT round FROM table_name_23 WHERE venue = "ullevaal"
What is the Round din Ullevaal?
CREATE TABLE table_name_23 (round VARCHAR, venue VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_5 WHERE player = "willie klein" AND to_par > 13
How much money did Willie Klein take home from the game in which he had a to par score larger than 13?
CREATE TABLE table_name_5 (money___ INTEGER, player VARCHAR, to_par VARCHAR)
SELECT AVG(laps) FROM table_name_78 WHERE time_retired = "+1:14.801"
What is the average number of laps associated with a Time/Retired of +1:14.801?
CREATE TABLE table_name_78 (laps INTEGER, time_retired VARCHAR)
SELECT location FROM table_16432543_1 WHERE established = 1923
What is the location of the school established in 1923
CREATE TABLE table_16432543_1 (location VARCHAR, established VARCHAR)
SELECT MAX(attendance) FROM table_name_99 WHERE opponent = "indians" AND record = "13-4"
What was the highest attendance when the opponent was the Indians and the record was 13-4?
CREATE TABLE table_name_99 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_46 WHERE game_site = "the meadowlands" AND week = 14
Who did the Jets play in the Meadowlands on week 14?
CREATE TABLE table_name_46 (opponent VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT framed_size FROM table_name_10 WHERE nickname = "grand central"
What is the frame size that was nicknamed Grand Central?
CREATE TABLE table_name_10 (framed_size VARCHAR, nickname VARCHAR)
SELECT finish FROM table_name_94 WHERE player = "lee janzen"
Name the finish for lee janzen
CREATE TABLE table_name_94 (finish VARCHAR, player VARCHAR)
SELECT director FROM table_name_6 WHERE original_title = "turks fruit"
Who directed Turks Fruit?
CREATE TABLE table_name_6 (director VARCHAR, original_title VARCHAR)
SELECT 2001 FROM table_name_2 WHERE 2007 = "sf"
Name the 2001 with 2007 of sf
CREATE TABLE table_name_2 (Id VARCHAR)
SELECT player FROM table_name_42 WHERE to_par = "+3" AND score = 74 - 71 - 68 = 213
Who is the player with a +3 to par and a 74-71-68=213 score?
CREATE TABLE table_name_42 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T1.Total_Points DESC
Show the ages of gymnasts in descending order of total points.
CREATE TABLE people (Age VARCHAR, People_ID VARCHAR); CREATE TABLE gymnast (Gymnast_ID VARCHAR, Total_Points VARCHAR)
SELECT MAX(overall_pick__number) FROM table_12165135_1 WHERE afl_team = "New York Jets"
What is the largest pick number of the new york jets?
CREATE TABLE table_12165135_1 (overall_pick__number INTEGER, afl_team VARCHAR)
SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = "Fail"
Find the cell mobile number of the candidates whose assessment code is "Fail"?
CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (cell_mobile_number VARCHAR, person_id VARCHAR); CREATE TABLE candidate_assessments (candidate_id VARCHAR, asessment_outcome_code VARCHAR)
SELECT MAX(series_number) FROM table_13505192_3 WHERE episode_title = "Things That Fly"
What number episode in the series is the episode "things that fly"?
CREATE TABLE table_13505192_3 (series_number INTEGER, episode_title VARCHAR)
SELECT builder FROM table_name_71 WHERE br_no = 30782
Which Builder has BR No. 30782?
CREATE TABLE table_name_71 (builder VARCHAR, br_no VARCHAR)
SELECT MAX(average) FROM table_name_87 WHERE highest = 5 OFFSET 078
What is the highest average number in attendance when the most in attendance is 5,078?
CREATE TABLE table_name_87 (average INTEGER, highest VARCHAR)
SELECT country FROM table_name_93 WHERE player = "bob tway"
What country is Bob Tway from?
CREATE TABLE table_name_93 (country VARCHAR, player VARCHAR)
SELECT high_assists FROM table_name_80 WHERE high_rebounds = "dwight howard , rashard lewis (10)"
What is High Assists, when High Rebounds is "Dwight Howard , Rashard Lewis (10)"?
CREATE TABLE table_name_80 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT boxscore FROM table_name_32 WHERE attendance = "54,773"
Which box score has an Attendance of 54,773?
CREATE TABLE table_name_32 (boxscore VARCHAR, attendance VARCHAR)
SELECT country FROM table_name_11 WHERE season = "2006-07"
What is the Country for the 2006-07 season?
CREATE TABLE table_name_11 (country VARCHAR, season VARCHAR)
SELECT tournament FROM table_name_42 WHERE 2009 = "a"
Which tournament has a value of a for 2009?
CREATE TABLE table_name_42 (tournament VARCHAR)
SELECT result FROM table_name_47 WHERE opponent = "brechin city" AND attendance = 656
When the opponent was Brechin City and the attendance was 656, what was the Result?
CREATE TABLE table_name_47 (result VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT population__2011_ FROM table_17971449_2 WHERE country = "Luxembourg"
Name the population 2011 for luxembourg
CREATE TABLE table_17971449_2 (population__2011_ VARCHAR, country VARCHAR)
SELECT place FROM table_name_29 WHERE player = "tom lehman"
In what place did Tom Lehman finish?
CREATE TABLE table_name_29 (place VARCHAR, player VARCHAR)
SELECT proto_germanic_origin FROM table_name_15 WHERE sound__allophone_ = "[[[|k]]]"
What is the Proto-Germanic origin associated with an allophone of [[[|k]]]?
CREATE TABLE table_name_15 (proto_germanic_origin VARCHAR, sound__allophone_ VARCHAR)
SELECT payout___us$__ FROM table_name_59 WHERE bowl_game = "insight bowl"
What was the payout in US dollars at the Insight Bowl?
CREATE TABLE table_name_59 (payout___us$__ VARCHAR, bowl_game VARCHAR)
SELECT 2 AS nd_round FROM table_name_86 WHERE score = "3 - 3" AND team_1 = "fc gueugnon (d2)"
What is the 2nd round with a score of 3 - 3, and a team 1 fc gueugnon (d2)?
CREATE TABLE table_name_86 (score VARCHAR, team_1 VARCHAR)
SELECT away_team AS score FROM table_name_42 WHERE venue = "corio oval"
What was the away team score at Corio Oval?
CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR)
SELECT country FROM table_name_60 WHERE place = "2"
Which Country has a Place of 2?
CREATE TABLE table_name_60 (country VARCHAR, place VARCHAR)
SELECT regular_season FROM table_1243601_1 WHERE year = "2007"
What was the regular season listing in 2007?
CREATE TABLE table_1243601_1 (regular_season VARCHAR, year VARCHAR)
SELECT frequency_mhz FROM table_name_28 WHERE city_of_license = "allapattah, florida"
Give me the MHz Frequency of Allapattah, Florida.
CREATE TABLE table_name_28 (frequency_mhz VARCHAR, city_of_license VARCHAR)