question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is Competition, when Round is "Group A - Match 1"?
CREATE TABLE table_name_59 (competition VARCHAR, round VARCHAR)
SELECT competition FROM table_name_59 WHERE round = "group a - match 1"
What was the top 5 in the year with an average finish of 8.2?
CREATE TABLE table_2182562_2 (top_5 INTEGER, avg_finish VARCHAR)
SELECT MIN(top_5) FROM table_2182562_2 WHERE avg_finish = "8.2"
What is the model number with a release price of $496?
CREATE TABLE table_16400024_1 (model_number VARCHAR, release_price___usd__ VARCHAR)
SELECT model_number FROM table_16400024_1 WHERE release_price___usd__ = "$496"
Who were F–A of 1–0 scorers?
CREATE TABLE table_name_94 (scorers VARCHAR, result_f_a VARCHAR)
SELECT scorers FROM table_name_94 WHERE result_f_a = "1–0"
I want the most top 25 when events are more than 20 and top 10 is more than 21
CREATE TABLE table_name_84 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR)
SELECT MAX(top_25) FROM table_name_84 WHERE events > 20 AND top_10 > 21
Which championship has a final score of 3–6, 4–6, 2–6?
CREATE TABLE table_2201724_1 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT championship FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6"
What is the A-league with 39 saves?
CREATE TABLE table_name_7 (a_league VARCHAR, saves VARCHAR)
SELECT a_league FROM table_name_7 WHERE saves = 39
How much Run 2 has a Run 4 of 57.68, and a Run 3 smaller than 57.9?
CREATE TABLE table_name_53 (run_2 VARCHAR, run_4 VARCHAR, run_3 VARCHAR)
SELECT COUNT(run_2) FROM table_name_53 WHERE run_4 = 57.68 AND run_3 < 57.9
What is the id for the employee called Ebba?
CREATE TABLE Employees (employee_ID VARCHAR, employee_name VARCHAR)
SELECT employee_ID FROM Employees WHERE employee_name = "Ebba"
What is the average win percentage of a season with a GB of 5?
CREATE TABLE table_name_76 (win__percentage INTEGER, gb_ VARCHAR, d_ VARCHAR)
SELECT AVG(win__percentage) FROM table_name_76 WHERE gb_[d_] = "5"
Name the number of names for exeter chiefs
CREATE TABLE table_22977424_8 (name VARCHAR, promoted_from_league VARCHAR)
SELECT COUNT(name) FROM table_22977424_8 WHERE promoted_from_league = "Exeter Chiefs"
Who is the rider whose time/retired is accident?
CREATE TABLE table_name_43 (rider VARCHAR, time_retired VARCHAR)
SELECT rider FROM table_name_43 WHERE time_retired = "accident"
What was the overall record of the game lost by A. Pracher (4-1)?
CREATE TABLE table_27862483_3 (overall_record VARCHAR, loss VARCHAR)
SELECT overall_record FROM table_27862483_3 WHERE loss = "A. Pracher (4-1)"
Count the number of rooms that are not in the Lamberton building.
CREATE TABLE classroom (building VARCHAR)
SELECT COUNT(*) FROM classroom WHERE building <> 'Lamberton'
What is TV Companions Featured, when Author is "William Emms"?
CREATE TABLE table_name_95 (tv_companions_featured VARCHAR, author VARCHAR)
SELECT tv_companions_featured FROM table_name_95 WHERE author = "william emms"
List the names of teachers who have not been arranged to teach courses.
CREATE TABLE course_arrange (Name VARCHAR, Teacher_id VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_id VARCHAR)
SELECT Name FROM teacher WHERE NOT Teacher_id IN (SELECT Teacher_id FROM course_arrange)
Who is the player with 7 years of NBA experience?
CREATE TABLE table_name_23 (player VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
SELECT player FROM table_name_23 WHERE years_of_nba_experience_[a_] = 7
What is the number of games played in the season before 2005?
CREATE TABLE table_name_18 (played INTEGER, first_game INTEGER)
SELECT SUM(played) FROM table_name_18 WHERE first_game < 2005
What College did Player Dorian Finney-Smith play for?
CREATE TABLE table_name_68 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_68 WHERE player = "dorian finney-smith"
what's the points with tries for being 64
CREATE TABLE table_13758945_3 (points VARCHAR, tries_for VARCHAR)
SELECT points FROM table_13758945_3 WHERE tries_for = "64"
what is the name when the nation is soviet union and the points is 185?
CREATE TABLE table_name_4 (name VARCHAR, nation VARCHAR, points VARCHAR)
SELECT name FROM table_name_4 WHERE nation = "soviet union" AND points = 185
Who was the player who placed t10?
CREATE TABLE table_name_4 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_4 WHERE place = "t10"
What was the home team score when the VFL played at Princes Park?
CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_86 WHERE venue = "princes park"
Name the Date when has robert smith (7)?
CREATE TABLE table_name_8 (date VARCHAR, winner__title__number_ VARCHAR)
SELECT date FROM table_name_8 WHERE winner__title__number_ = "robert smith (7)"
I want the NGC number for leo of irregular galaxy
CREATE TABLE table_name_16 (ngc_number VARCHAR, constellation VARCHAR, object_type VARCHAR)
SELECT ngc_number FROM table_name_16 WHERE constellation = "leo" AND object_type = "irregular galaxy"
How many laps did Jackie Oliver do?
CREATE TABLE table_name_41 (laps VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_41 WHERE driver = "jackie oliver"
What years does the school have that's in Makikihi?
CREATE TABLE table_name_23 (years VARCHAR, area VARCHAR)
SELECT years FROM table_name_23 WHERE area = "makikihi"
What is the name of the venue when the competition was friendly, with a Result of 2–3?
CREATE TABLE table_name_98 (venue VARCHAR, competition VARCHAR, result VARCHAR)
SELECT venue FROM table_name_98 WHERE competition = "friendly" AND result = "2–3"
what is the name for seasons 1981 and an order more than 807?
CREATE TABLE table_name_49 (name VARCHAR, seasons VARCHAR, order VARCHAR)
SELECT name FROM table_name_49 WHERE seasons = "1981" AND order > 807
How many locations did the team play at on week 7?
CREATE TABLE table_24123547_2 (location VARCHAR, week VARCHAR)
SELECT COUNT(location) FROM table_24123547_2 WHERE week = 7
What is the average year of an entrant that had fewer than 6 points and a Maserati Straight-6 engine?
CREATE TABLE table_name_25 (year INTEGER, points VARCHAR, engine VARCHAR)
SELECT AVG(year) FROM table_name_25 WHERE points < 6 AND engine = "maserati straight-6"
What is Gold, when Bronze is 11?
CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR)
SELECT gold FROM table_name_71 WHERE bronze = "11"
Who was the lead with Pete Fenson as skip and Joe Polo as second in season 2005–06?
CREATE TABLE table_name_61 (lead VARCHAR, season VARCHAR, skip VARCHAR, second VARCHAR)
SELECT lead FROM table_name_61 WHERE skip = "pete fenson" AND second = "joe polo" AND season = "2005–06"
Name the broadcast date of 6.9 million viewers
CREATE TABLE table_2114308_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT broadcast_date FROM table_2114308_1 WHERE viewers__in_millions_ = "6.9"
What was the result on 8 October 1961?
CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_26 WHERE date = "8 october 1961"
In what format was the release that was dated 7 April 2003 from catalog 584 2112?
CREATE TABLE table_name_18 (format VARCHAR, date VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_18 WHERE date = "7 april 2003" AND catalog = "584 2112"
Which Drawn has a Position smaller than 8, and a Played smaller than 14?
CREATE TABLE table_name_85 (drawn INTEGER, position VARCHAR, played VARCHAR)
SELECT MAX(drawn) FROM table_name_85 WHERE position < 8 AND played < 14
Which win has a loss of IPL?
CREATE TABLE table_name_34 (wins VARCHAR, losses VARCHAR)
SELECT wins FROM table_name_34 WHERE losses = "ipl"
What is every construction date for the registration of HB-HOS?
CREATE TABLE table_22180353_1 (construction VARCHAR, registration VARCHAR)
SELECT construction AS date FROM table_22180353_1 WHERE registration = "HB-HOS"
What is the average Total with a Gold that is larger than 4?
CREATE TABLE table_name_77 (total INTEGER, gold INTEGER)
SELECT AVG(total) FROM table_name_77 WHERE gold > 4
What is the low win total for players ranked below 4?
CREATE TABLE table_name_17 (wins INTEGER, rank INTEGER)
SELECT MIN(wins) FROM table_name_17 WHERE rank > 4
What Wireless LAN had a process technology of 90nm and a Carmel centrino?
CREATE TABLE table_199666_1 (wireless_lan VARCHAR, process_technology VARCHAR, centrino VARCHAR)
SELECT wireless_lan FROM table_199666_1 WHERE process_technology = "90nm" AND centrino = "Carmel"
What is the fewest games lost by Paulistano with more than 39 points?
CREATE TABLE table_name_85 (lost INTEGER, team VARCHAR, points VARCHAR)
SELECT MIN(lost) FROM table_name_85 WHERE team = "paulistano" AND points > 39
Which Class has a Frequency MHz larger than 91.5, and a City of license of hyannis, nebraska?
CREATE TABLE table_name_12 (class VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT class FROM table_name_12 WHERE frequency_mhz > 91.5 AND city_of_license = "hyannis, nebraska"
What is the coverage of the station that was launched on 22 January 1996?
CREATE TABLE table_name_83 (coverage VARCHAR, launched VARCHAR)
SELECT coverage FROM table_name_83 WHERE launched = "22 january 1996"
What is the publication date of the book that is narrated by Michael Maloney?
CREATE TABLE table_2950964_1 (published VARCHAR, audiobook_narrator VARCHAR)
SELECT published FROM table_2950964_1 WHERE audiobook_narrator = "Michael Maloney"
What is Win-Loss, when Win % is .456?
CREATE TABLE table_name_60 (win_loss VARCHAR, win__percentage VARCHAR)
SELECT win_loss FROM table_name_60 WHERE win__percentage = ".456"
What is the lowest place with more than 26 goals scored, 18 goals conceded, and a draw entry of 6?
CREATE TABLE table_name_10 (place INTEGER, goals_scored VARCHAR, draw VARCHAR, goals_conceded VARCHAR)
SELECT MIN(place) FROM table_name_10 WHERE draw = 6 AND goals_conceded = 18 AND goals_scored > 26
When did Hein Vergeer have a distance of 5,000m?
CREATE TABLE table_name_7 (date VARCHAR, distance VARCHAR)
SELECT date FROM table_name_7 WHERE distance = "5,000m"
Which model has a frequency of 750 mhz and a socket of bga2μpga2?
CREATE TABLE table_name_19 (model_number VARCHAR, frequency VARCHAR, socket VARCHAR)
SELECT model_number FROM table_name_19 WHERE frequency = "750 mhz" AND socket = "bga2μpga2"
What is the type earlier than 1968, and a Title of stretchin' out?
CREATE TABLE table_name_42 (type VARCHAR, year VARCHAR, title VARCHAR)
SELECT type FROM table_name_42 WHERE year < 1968 AND title = "stretchin' out"
Which lead has Kirsty Balfour as second?
CREATE TABLE table_name_22 (lead VARCHAR, skip VARCHAR)
SELECT lead FROM table_name_22 WHERE skip = "kirsty balfour"
What Date after 2007 had the San Francisco 49ers as the Visiting Team?
CREATE TABLE table_name_17 (date VARCHAR, visiting_team VARCHAR, year VARCHAR)
SELECT date FROM table_name_17 WHERE visiting_team = "san francisco 49ers" AND year > 2007
What was the crowd size for the away team footscray?
CREATE TABLE table_name_59 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_59 WHERE away_team = "footscray"
What is the highest bronze value with silvers over 2, golds under 16, and in Cycling?
CREATE TABLE table_name_58 (bronze INTEGER, gold VARCHAR, silver VARCHAR, sport VARCHAR)
SELECT MAX(bronze) FROM table_name_58 WHERE silver > 2 AND sport = "cycling" AND gold < 16
Name the total number of material collected for justice league of america by george pérez, vol. 2
CREATE TABLE table_19534677_1 (material_collected VARCHAR, volume_title VARCHAR)
SELECT COUNT(material_collected) FROM table_19534677_1 WHERE volume_title = "Justice League of America by George Pérez, Vol. 2"
What are the ends for the player with a transfer fee of loan?
CREATE TABLE table_name_33 (ends VARCHAR, transfer_fee VARCHAR)
SELECT ends FROM table_name_33 WHERE transfer_fee = "loan"
Name the lowest Crowd of hisense arena on 8 february?
CREATE TABLE table_name_29 (crowd INTEGER, venue VARCHAR, date VARCHAR)
SELECT MIN(crowd) FROM table_name_29 WHERE venue = "hisense arena" AND date = "8 february"
What was the started round for the competition that had the last match on January 16, 2008?
CREATE TABLE table_name_57 (started_round VARCHAR, last_match VARCHAR)
SELECT started_round FROM table_name_57 WHERE last_match = "january 16, 2008"
In the County of Prince, what was the highest Population density when the Area (km²) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135?
CREATE TABLE table_name_93 (population_density INTEGER, population__2011_ VARCHAR, population__2006_ VARCHAR, county VARCHAR, area__km²_ VARCHAR)
SELECT MAX(population_density) FROM table_name_93 WHERE county = "prince" AND area__km²_ > 3.02 AND population__2006_ > 786 AND population__2011_ < 1135
what is the round on 21 february 2009?
CREATE TABLE table_name_54 (round VARCHAR, date VARCHAR)
SELECT round FROM table_name_54 WHERE date = "21 february 2009"
Show the official names of the cities that have hosted more than one competition.
CREATE TABLE farm_competition (Host_city_ID VARCHAR); CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR)
SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1
Which School has an IHSAA Class of aaa, and a Mascot of saints?
CREATE TABLE table_name_76 (school VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT school FROM table_name_76 WHERE ihsaa_class = "aaa" AND mascot = "saints"
What is the Date of the Game with a Record of 46-22?
CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_17 WHERE record = "46-22"
What was the high assists on November 14?
CREATE TABLE table_17325937_5 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_17325937_5 WHERE date = "November 14"
Find the checking balance and saving balance in the Brown’s account.
CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR)
SELECT T2.balance, T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown'
What is Team, when Qual 1 is 1:16.417?
CREATE TABLE table_name_65 (team VARCHAR, qual_1 VARCHAR)
SELECT team FROM table_name_65 WHERE qual_1 = "1:16.417"
What is the total number of Wins, when Draws is less than 5, when Goals is greater than 49, and when Played is greater than 30?
CREATE TABLE table_name_93 (wins VARCHAR, played VARCHAR, draws VARCHAR, goals_against VARCHAR)
SELECT COUNT(wins) FROM table_name_93 WHERE draws < 5 AND goals_against > 49 AND played > 30
What date did the away team Bristol Rovers play?
CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_63 WHERE away_team = "bristol rovers"
Which opponent has a result of 2-0 l?
CREATE TABLE table_name_10 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_10 WHERE result = "2-0 l"
Omar Burleson was the incumbent in what district?
CREATE TABLE table_1342013_42 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342013_42 WHERE incumbent = "Omar Burleson"
What is the latest year with more than 0 points?
CREATE TABLE table_name_13 (year INTEGER, points INTEGER)
SELECT MAX(year) FROM table_name_13 WHERE points > 0
What is the highest kneel with a stand less than 187, and a 197 prone, and a qual more than 576?
CREATE TABLE table_name_59 (kneel INTEGER, qual VARCHAR, stand VARCHAR, prone VARCHAR)
SELECT MAX(kneel) FROM table_name_59 WHERE stand < 187 AND prone = 197 AND qual > 576
How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006?
CREATE TABLE table_name_81 (joint_music_award VARCHAR, year VARCHAR, rthk VARCHAR)
SELECT joint_music_award FROM table_name_81 WHERE year < 2006 AND rthk = "1"
How many games played for the team with 48 points?
CREATE TABLE table_1676073_12 (played VARCHAR, points VARCHAR)
SELECT played FROM table_1676073_12 WHERE points = "48"
What model number uses standard voltage socket?
CREATE TABLE table_name_48 (model_number VARCHAR, socket VARCHAR)
SELECT model_number FROM table_name_48 WHERE socket = "standard voltage"
Which Qual 1 has a Qual 2 of 59.822?
CREATE TABLE table_name_76 (qual_1 VARCHAR, qual_2 VARCHAR)
SELECT qual_1 FROM table_name_76 WHERE qual_2 = "59.822"
Who was driving with a Grid of 13?
CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_45 WHERE grid = 13
What is the largest number for bronze with a rank of 19?
CREATE TABLE table_name_61 (bronze INTEGER, rank VARCHAR)
SELECT MAX(bronze) FROM table_name_61 WHERE rank = "19"
Which race was on the Las Vegas Motor Speedway for 2 hours?
CREATE TABLE table_name_36 (race VARCHAR, circuit VARCHAR, length VARCHAR)
SELECT race FROM table_name_36 WHERE circuit = "las vegas motor speedway" AND length = "2 hours"
Which event has a method of TKO (punches)?
CREATE TABLE table_name_52 (event VARCHAR, method VARCHAR)
SELECT event FROM table_name_52 WHERE method = "tko (punches)"
What is moving from fee in Hun country?
CREATE TABLE table_name_33 (moving_from VARCHAR, country VARCHAR)
SELECT moving_from FROM table_name_33 WHERE country = "hun"
What is total number of the to par of player john mahaffey, who has a total less than 298?
CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR, total VARCHAR)
SELECT COUNT(to_par) FROM table_name_9 WHERE player = "john mahaffey" AND total < 298
What was the qualification with more than 162 laps in 1953?
CREATE TABLE table_name_35 (qual VARCHAR, laps VARCHAR, year VARCHAR)
SELECT qual FROM table_name_35 WHERE laps > 162 AND year = "1953"
What is the to par for the player with winnings of 49,500?
CREATE TABLE table_name_74 (to_par VARCHAR, money___£__ VARCHAR)
SELECT to_par FROM table_name_74 WHERE money___£__ = "49,500"
Which Prothrombin time that has a Partial thromboplastin time of unaffected, and a Condition of thrombocytopenia?
CREATE TABLE table_name_6 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR)
SELECT prothrombin_time FROM table_name_6 WHERE partial_thromboplastin_time = "unaffected" AND condition = "thrombocytopenia"
In which year did Kati Klinzing finish 3rd?
CREATE TABLE table_name_24 (year VARCHAR, third VARCHAR)
SELECT year FROM table_name_24 WHERE third = "kati klinzing"
In what circuit was Bruno Spengler the winning driver?
CREATE TABLE table_25213146_2 (circuit VARCHAR, winning_driver VARCHAR)
SELECT circuit FROM table_25213146_2 WHERE winning_driver = "Bruno Spengler"
What was the away teams score at Glenferrie Oval?
CREATE TABLE table_name_92 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_92 WHERE venue = "glenferrie oval"
How many total medals for the netherlands?
CREATE TABLE table_name_9 (total INTEGER, nation VARCHAR)
SELECT SUM(total) FROM table_name_9 WHERE nation = "netherlands"
How many wins were listed when he had 112 points?
CREATE TABLE table_24998088_1 (wins VARCHAR, points VARCHAR)
SELECT wins FROM table_24998088_1 WHERE points = "112"
How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5?
CREATE TABLE table_name_30 (attendance INTEGER, arena VARCHAR, points VARCHAR)
SELECT SUM(attendance) FROM table_name_30 WHERE arena = "arrowhead pond of anaheim" AND points = 5
What is Career Win-Loss, when 2002 is "A", and when 2001 is "4R"?
CREATE TABLE table_name_70 (career_win_loss VARCHAR)
SELECT career_win_loss FROM table_name_70 WHERE 2002 = "a" AND 2001 = "4r"
How many points have more than 14 wins, a goal difference of 14, and more than 6 draws?
CREATE TABLE table_name_13 (points VARCHAR, draws VARCHAR, wins VARCHAR, goal_difference VARCHAR)
SELECT COUNT(points) FROM table_name_13 WHERE wins > 14 AND goal_difference = 14 AND draws > 6
What is Auckland thats got Otago of 184 R.C. Blunt & W. Hawksworth V (C) 1931/32?
CREATE TABLE table_name_5 (auckland VARCHAR, otago VARCHAR)
SELECT auckland FROM table_name_5 WHERE otago = "184 r.c. blunt & w. hawksworth v (c) 1931/32"
What is the highest attendance among Group E games?
CREATE TABLE table_name_93 (attendance INTEGER, round VARCHAR)
SELECT MAX(attendance) FROM table_name_93 WHERE round = "group e"
In what stadium was the friendly match on 2 June 1992 played in?
CREATE TABLE table_name_2 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT venue FROM table_name_2 WHERE competition = "friendly match" AND date = "2 june 1992"
Name the winnings for 2004
CREATE TABLE table_2463383_2 (winnings VARCHAR, year VARCHAR)
SELECT winnings FROM table_2463383_2 WHERE year = 2004
What is Res., when Event is "KOTC 11 - Domination"?
CREATE TABLE table_name_81 (res VARCHAR, event VARCHAR)
SELECT res FROM table_name_81 WHERE event = "kotc 11 - domination"
How many years have runner-up as the outcome, and indian wells as the championship?
CREATE TABLE table_name_83 (year INTEGER, outcome VARCHAR, championship VARCHAR)
SELECT SUM(year) FROM table_name_83 WHERE outcome = "runner-up" AND championship = "indian wells"