question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the average number of draws for the team that had more than 0 wins?
CREATE TABLE table_name_13 (draws INTEGER, wins INTEGER)
SELECT AVG(draws) FROM table_name_13 WHERE wins > 0
Which package/option has sky wwe 24/7 television service?
CREATE TABLE table_name_99 (package_option VARCHAR, television_service VARCHAR)
SELECT package_option FROM table_name_99 WHERE television_service = "sky wwe 24/7"
What nurses are on call with block floor 1 and block code 1? Tell me their names.
CREATE TABLE on_call (nurse VARCHAR, blockfloor VARCHAR, blockcode VARCHAR)
SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1
What is the record for March 10?
CREATE TABLE table_name_17 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_17 WHERE date = "march 10"
What is the total years for roots and branches?
CREATE TABLE table_name_5 (year INTEGER, album VARCHAR)
SELECT SUM(year) FROM table_name_5 WHERE album = "roots and branches"
What was the start of the competitor with a qualifying time of 84.300?
CREATE TABLE table_name_20 (start VARCHAR, qual VARCHAR)
SELECT start FROM table_name_20 WHERE qual = "84.300"
Which Second has a Third of athanassios pantios?
CREATE TABLE table_name_56 (second VARCHAR, third VARCHAR)
SELECT second FROM table_name_56 WHERE third = "athanassios pantios"
Which locations had their first year in 2001?
CREATE TABLE table_29788320_2 (location VARCHAR, first_year VARCHAR)
SELECT location FROM table_29788320_2 WHERE first_year = 2001
When 1. fc köln is the team what is the date of appointment?
CREATE TABLE table_24162080_3 (date_of_appointment VARCHAR, team VARCHAR)
SELECT date_of_appointment FROM table_24162080_3 WHERE team = "1. FC Köln"
What was the round number for March 22?
CREATE TABLE table_name_92 (round VARCHAR, date VARCHAR)
SELECT round FROM table_name_92 WHERE date = "march 22"
Which season has Zach Jacobson in third?
CREATE TABLE table_name_30 (season VARCHAR, third VARCHAR)
SELECT season FROM table_name_30 WHERE third = "zach jacobson"
What is the name of the episode that was directed by Dennis Smith?
CREATE TABLE table_2828803_1 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_2828803_1 WHERE directed_by = "Dennis Smith"
When the record was 4-4, how many people attended?
CREATE TABLE table_name_64 (attendance VARCHAR, record VARCHAR)
SELECT attendance FROM table_name_64 WHERE record = "4-4"
What is Opponent in Final, when Date is "13 January 1992"?
CREATE TABLE table_name_12 (opponent_in_final VARCHAR, date VARCHAR)
SELECT opponent_in_final FROM table_name_12 WHERE date = "13 january 1992"
Which Delivery has a Name of quince?
CREATE TABLE table_name_80 (delivery VARCHAR, name VARCHAR)
SELECT delivery FROM table_name_80 WHERE name = "quince"
Which 1977 is the lowest one that has a County of zzz bucharest, and a 2011 smaller than 1883425?
CREATE TABLE table_name_23 (county VARCHAR)
SELECT MIN(1977) FROM table_name_23 WHERE county = "zzz bucharest" AND 2011 < 1883425
What is the original United States air date of the episode written by Mike Ferris?
CREATE TABLE table_29087004_2 (united_states_original_airdate VARCHAR, written_by VARCHAR)
SELECT united_states_original_airdate FROM table_29087004_2 WHERE written_by = "Mike Ferris"
What is the average Draw when the Place is larger than 5?
CREATE TABLE table_name_65 (draw INTEGER, place INTEGER)
SELECT AVG(draw) FROM table_name_65 WHERE place > 5
What is the Lost with a Losing Bonus that is 4?
CREATE TABLE table_name_30 (lost VARCHAR, losing_bonus VARCHAR)
SELECT lost FROM table_name_30 WHERE losing_bonus = "4"
Show all paragraph ids and texts for the document with name 'Welcome to NY'.
CREATE TABLE Documents (document_id VARCHAR, Document_Name VARCHAR); CREATE TABLE Paragraphs (paragraph_id VARCHAR, paragraph_text VARCHAR, document_id VARCHAR)
SELECT T1.paragraph_id, T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'
What is the Pinyin transcription for "Alas for the Days Gone By"?
CREATE TABLE table_1805919_1 (transcription__based_on_pinyin_ VARCHAR, english_translation VARCHAR)
SELECT transcription__based_on_pinyin_ FROM table_1805919_1 WHERE english_translation = "Alas for the Days Gone By"
What is the voltage of the Pentiumiii866 microprocessor with a socket 370?
CREATE TABLE table_name_8 (voltage VARCHAR, socket VARCHAR, model_number VARCHAR)
SELECT voltage FROM table_name_8 WHERE socket = "socket 370" AND model_number = "pentiumiii866"
What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?
CREATE TABLE table_name_50 (fa_cup_apps VARCHAR, fa_cup_goals VARCHAR, total_apps VARCHAR, league_apps VARCHAR)
SELECT COUNT(fa_cup_apps) FROM table_name_50 WHERE total_apps > 12 AND league_apps > 38 AND fa_cup_goals > 1
What is the sum of gold values that have bronze values over 0 and totals under 2?
CREATE TABLE table_name_34 (gold INTEGER, bronze VARCHAR, total VARCHAR)
SELECT SUM(gold) FROM table_name_34 WHERE bronze > 0 AND total < 2
What is Tom Gillis' score?
CREATE TABLE table_name_33 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_33 WHERE player = "tom gillis"
What is the nationality associated with 0 minutes, position of MF, and an Athletica career of 2009?
CREATE TABLE table_23963781_1 (nationality VARCHAR, athletica_career VARCHAR, minutes VARCHAR, position VARCHAR)
SELECT nationality FROM table_23963781_1 WHERE minutes = 0 AND position = "MF" AND athletica_career = "2009"
What is the total pick number from round 2?
CREATE TABLE table_name_60 (pick VARCHAR, round VARCHAR)
SELECT COUNT(pick) FROM table_name_60 WHERE round = "2"
What is the highest round number of a Pick after 209.
CREATE TABLE table_name_31 (round INTEGER, pick INTEGER)
SELECT MAX(round) FROM table_name_31 WHERE pick > 209
Show all sport name and the number of students.
CREATE TABLE Sportsinfo (sportname VARCHAR)
SELECT sportname, COUNT(*) FROM Sportsinfo GROUP BY sportname
Find the total credits of courses provided by different department.
CREATE TABLE course (dept_name VARCHAR, credits INTEGER)
SELECT SUM(credits), dept_name FROM course GROUP BY dept_name
What is Record, when Game is "36"?
CREATE TABLE table_name_79 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_79 WHERE game = 36
What is the time for the bike (40km) when the swim (1.5km) is 19:56?
CREATE TABLE table_name_38 (bike__40km_ VARCHAR, swim__15km_ VARCHAR)
SELECT bike__40km_ FROM table_name_38 WHERE swim__15km_ = "19:56"
Tell me the place of action for sergeant rank and 5th company, 2nd marines unit
CREATE TABLE table_name_80 (place_of_action VARCHAR, rank VARCHAR, unit VARCHAR)
SELECT place_of_action FROM table_name_80 WHERE rank = "sergeant" AND unit = "5th company, 2nd marines"
Which location did the Tigers have?
CREATE TABLE table_name_90 (location VARCHAR, nickname VARCHAR)
SELECT location FROM table_name_90 WHERE nickname = "tigers"
What is the English name given to the city of St. John's?
CREATE TABLE table_1008653_1 (capital___exonym__ VARCHAR, capital___endonym__ VARCHAR)
SELECT capital___exonym__ FROM table_1008653_1 WHERE capital___endonym__ = "St. John's"
What is the show's time slot during season 3?
CREATE TABLE table_15358729_6 (timeslot VARCHAR, season VARCHAR)
SELECT timeslot FROM table_15358729_6 WHERE season = 3
How many Points against that have a Team of harlequins and Tries against smaller than 8?
CREATE TABLE table_name_37 (points_against INTEGER, team VARCHAR, tries_against VARCHAR)
SELECT SUM(points_against) FROM table_name_37 WHERE team = "harlequins" AND tries_against < 8
Name the least game for october 21
CREATE TABLE table_name_42 (game INTEGER, october VARCHAR)
SELECT MIN(game) FROM table_name_42 WHERE october = 21
What is 6-2 Martina Wood's Position?
CREATE TABLE table_name_52 (position VARCHAR, height VARCHAR, name VARCHAR)
SELECT position FROM table_name_52 WHERE height = "6-2" AND name = "martina wood"
How tall is Dylan Postl?
CREATE TABLE table_name_69 (height VARCHAR, name VARCHAR)
SELECT height FROM table_name_69 WHERE name = "dylan postl"
Name the result when the incumbent was george h. mahon
CREATE TABLE table_1341663_44 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341663_44 WHERE incumbent = "George H. Mahon"
What place did the singer in atomic kitten finish?
CREATE TABLE table_name_91 (finished VARCHAR, famous_for VARCHAR)
SELECT finished FROM table_name_91 WHERE famous_for = "singer in atomic kitten"
How many laps have an average speed of 141.911?
CREATE TABLE table_2226343_1 (laps VARCHAR, average_speed__mph_ VARCHAR)
SELECT laps FROM table_2226343_1 WHERE average_speed__mph_ = "141.911"
Name the nationality of number 9
CREATE TABLE table_15621965_1 (nationality VARCHAR, no VARCHAR)
SELECT nationality FROM table_15621965_1 WHERE no = 9
Can you tell me the lowest Played that has the Position larger than 2, and the Draws smaller than 2, and the Goals against smaller than 18?
CREATE TABLE table_name_90 (played INTEGER, goals_against VARCHAR, position VARCHAR, draws VARCHAR)
SELECT MIN(played) FROM table_name_90 WHERE position > 2 AND draws < 2 AND goals_against < 18
WHAT IS THE 2ND LEG WITH TEAM 1 OF SPORTING?
CREATE TABLE table_name_22 (team_1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_22 WHERE team_1 = "sporting"
what is the competition for the event team all-round in the year before 1913?
CREATE TABLE table_name_38 (competition VARCHAR, event VARCHAR, year VARCHAR)
SELECT competition FROM table_name_38 WHERE event = "team all-round" AND year < 1913
Can you tell me the sum of FLap that has the Pole larger than 0, and the Podiums of 6?
CREATE TABLE table_name_40 (flap INTEGER, pole VARCHAR, podiums VARCHAR)
SELECT SUM(flap) FROM table_name_40 WHERE pole > 0 AND podiums = 6
Olga Blahotová was the opponent in the final at what tournament?
CREATE TABLE table_name_42 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT tournament FROM table_name_42 WHERE opponent_in_the_final = "olga blahotová"
Name the Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial?
CREATE TABLE table_name_90 (provider VARCHAR, transmission VARCHAR, free_or_pay VARCHAR, years VARCHAR)
SELECT provider FROM table_name_90 WHERE free_or_pay = "pay" AND years = "2006–" AND transmission = "iptv and digital terrestrial"
If the number of barangays is 19, what is the population density?
CREATE TABLE table_232458_1 (pop_density__per_km²_ VARCHAR, no_of_barangays VARCHAR)
SELECT pop_density__per_km²_ FROM table_232458_1 WHERE no_of_barangays = 19
Which format is released on May 27, 2009?
CREATE TABLE table_name_31 (format VARCHAR, date VARCHAR)
SELECT format FROM table_name_31 WHERE date = "may 27, 2009"
Who was the opponent when they played at Delta Center with a record of 27-13?
CREATE TABLE table_name_7 (opponent VARCHAR, location_attendance VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_7 WHERE location_attendance = "delta center" AND record = "27-13"
What is the value in 2012 if it is 2R in 2013, 1R in 2005, and 1R in 2008?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT 2012 FROM table_name_84 WHERE 2013 = "2r" AND 2005 = "1r" AND 2008 = "1r"
Which Year is the highest one that has a Venue of blackwolf run, composite course, and a Score of 281?
CREATE TABLE table_name_48 (year INTEGER, venue VARCHAR, score VARCHAR)
SELECT MAX(year) FROM table_name_48 WHERE venue = "blackwolf run, composite course" AND score = "281"
what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello?
CREATE TABLE table_name_21 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT MIN(grid) FROM table_name_21 WHERE laps > 7 AND driver = "rubens barrichello"
What is the Race on July 30, 1950 with a Formula 2 Fia, non-championship?
CREATE TABLE table_name_47 (race VARCHAR, category VARCHAR, date VARCHAR)
SELECT race FROM table_name_47 WHERE category = "formula 2 fia, non-championship" AND date = "july 30, 1950"
Who was the High Assist in game 1?
CREATE TABLE table_17323042_11 (high_assists VARCHAR, game VARCHAR)
SELECT high_assists FROM table_17323042_11 WHERE game = 1
Name the qual for rank of 9
CREATE TABLE table_name_78 (qual VARCHAR, rank VARCHAR)
SELECT qual FROM table_name_78 WHERE rank = "9"
What is Mean Free Path, when Vacuum Range is "medium vacuum"?
CREATE TABLE table_name_28 (mean_free_path VARCHAR, vacuum_range VARCHAR)
SELECT mean_free_path FROM table_name_28 WHERE vacuum_range = "medium vacuum"
List the names and birthdays of the top five players in terms of potential.
CREATE TABLE Player_Attributes (player_api_id VARCHAR); CREATE TABLE Player (player_name VARCHAR, birthday VARCHAR, player_api_id VARCHAR)
SELECT DISTINCT T1.player_name, T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5
What is the original air date of the episode directed by Paul Marcus?
CREATE TABLE table_15026994_3 (original_air_date VARCHAR, director VARCHAR)
SELECT original_air_date FROM table_15026994_3 WHERE director = "Paul Marcus"
When tus rosenberg is the oberpfalz what is the oberbayern b?
CREATE TABLE table_23224961_1 (oberbayern_b VARCHAR, oberpfalz VARCHAR)
SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = "TuS Rosenberg"
What is the score for the United States in place T1 for David Duval?
CREATE TABLE table_name_80 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT score FROM table_name_80 WHERE country = "united states" AND place = "t1" AND player = "david duval"
What is the Finish of the Reno Bighorns Wins?
CREATE TABLE table_name_41 (finish VARCHAR, wins VARCHAR)
SELECT finish FROM table_name_41 WHERE wins = "reno bighorns"
What is the name for Charleston County with a CERCLIS ID of scd980711279?
CREATE TABLE table_name_44 (name VARCHAR, county VARCHAR, cerclis_id VARCHAR)
SELECT name FROM table_name_44 WHERE county = "charleston" AND cerclis_id = "scd980711279"
Score of 3 - 2 had what record?
CREATE TABLE table_name_93 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_93 WHERE score = "3 - 2"
Who is the original performer when the episode is casting?
CREATE TABLE table_29547777_1 (original_performer VARCHAR, episode VARCHAR)
SELECT original_performer FROM table_29547777_1 WHERE episode = "Casting"
What is the country for the player Tiger Woods?
CREATE TABLE table_name_3 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_3 WHERE player = "tiger woods"
What is the round?
CREATE TABLE table_20872722_1 (round INTEGER)
SELECT MIN(round) FROM table_20872722_1
Which player had a pick under 6 and a new WNBA team of the Minnesota Lynx?
CREATE TABLE table_name_33 (player VARCHAR, pick VARCHAR, new_wnba_team VARCHAR)
SELECT player FROM table_name_33 WHERE pick < 6 AND new_wnba_team = "minnesota lynx"
WHICH 2/3 (P) has a Verb of khêla?
CREATE TABLE table_name_76 (verb VARCHAR)
SELECT 2 AS _3__p_ FROM table_name_76 WHERE verb = "khêla"
What is the 2007 estimate when the rank (csa) is 4
CREATE TABLE table_12720275_1 (rank__csa_ VARCHAR)
SELECT 2007 AS _estimate FROM table_12720275_1 WHERE rank__csa_ = "4"
What's the tallest height for c position in current club unicaja malaga?
CREATE TABLE table_name_19 (height INTEGER, position VARCHAR, current_club VARCHAR)
SELECT MAX(height) FROM table_name_19 WHERE position = "c" AND current_club = "unicaja malaga"
What was the minimum % funded of the project that was closed on 2012-05-18?
CREATE TABLE table_27155990_1 (_percentage_funded INTEGER, closing_date VARCHAR)
SELECT MIN(_percentage_funded) FROM table_27155990_1 WHERE closing_date = "2012-05-18"
Whose attendance was the highest when the team played Arsenal?
CREATE TABLE table_name_95 (attendance INTEGER, opponent VARCHAR)
SELECT MAX(attendance) FROM table_name_95 WHERE opponent = "arsenal"
What is the record for the game with an attendance of 11,141?
CREATE TABLE table_name_26 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_26 WHERE attendance = "11,141"
What tournament is played on a carpet surface?
CREATE TABLE table_name_99 (tournament VARCHAR, surface VARCHAR)
SELECT tournament FROM table_name_99 WHERE surface = "carpet"
What is the sum of Away Losses with a No Result of more than 0, losses of more than 6, and matches of more than 91?
CREATE TABLE table_name_64 (Away INTEGER, matches VARCHAR, no_result VARCHAR, losses VARCHAR)
SELECT SUM(Away) AS losses FROM table_name_64 WHERE no_result > 0 AND losses > 6 AND matches > 91
How many writers are listed for the episode with a production code of 5008?
CREATE TABLE table_17482534_1 (written_by VARCHAR, production_code VARCHAR)
SELECT COUNT(written_by) FROM table_17482534_1 WHERE production_code = "5008"
What is the Tie number of when Wigan Athletic was the away team?
CREATE TABLE table_name_34 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_34 WHERE away_team = "wigan athletic"
What is Rating, when Event is Johnson Vs. Dodson?
CREATE TABLE table_name_23 (rating VARCHAR, event VARCHAR)
SELECT rating FROM table_name_23 WHERE event = "johnson vs. dodson"
How many laps was qualifier of 138.212?
CREATE TABLE table_name_4 (laps VARCHAR, qual VARCHAR)
SELECT laps FROM table_name_4 WHERE qual = "138.212"
what is the total number of player where years for rockets is 1975-79
CREATE TABLE table_11734041_20 (player VARCHAR, years_for_rockets VARCHAR)
SELECT COUNT(player) FROM table_11734041_20 WHERE years_for_rockets = "1975-79"
what is the name and position of the head whose department has least number of employees?
CREATE TABLE department (head VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, EmployeeID VARCHAR)
SELECT T2.name, T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID GROUP BY departmentID ORDER BY COUNT(departmentID) LIMIT 1
What is the total number of silver medals for countries of rank 14, with less than 1 total medals?
CREATE TABLE table_name_66 (silver INTEGER, rank VARCHAR, total VARCHAR)
SELECT SUM(silver) FROM table_name_66 WHERE rank = "14" AND total < 1
What was the position of the team that used an oldsmobile engine and DNQ?
CREATE TABLE table_name_10 (finish VARCHAR, engine VARCHAR, start VARCHAR)
SELECT finish FROM table_name_10 WHERE engine = "oldsmobile" AND start = "dnq"
What is the average tourism receipts in millions of US dollars in 2011 with less than 1.141 million of 2011 tourist arrivals and more than 1,449 tourism receipts in 2011 US dollars per arrival?
CREATE TABLE table_name_41 (tourism_receipts__2011___millions_of_us INTEGER, tourist_arrivals__2011___millions_ VARCHAR, tourism_receipts__2011___us$_per_arrival_ VARCHAR)
SELECT AVG(tourism_receipts__2011___millions_of_us) AS $_ FROM table_name_41 WHERE tourist_arrivals__2011___millions_ < 1.141 AND tourism_receipts__2011___us$_per_arrival_ > 1 OFFSET 449
Driving Force EX of 25cm (10-inch) involves what feature?
CREATE TABLE table_name_46 (feature VARCHAR, driving_force_ex VARCHAR)
SELECT feature FROM table_name_46 WHERE driving_force_ex = "25cm (10-inch)"
What is the time of 12 December 2009 with record start?
CREATE TABLE table_name_81 (time VARCHAR, record VARCHAR, date VARCHAR)
SELECT time FROM table_name_81 WHERE record = "start" AND date = "12 december 2009"
Who is the Director of Fish Tales?
CREATE TABLE table_name_94 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_94 WHERE title = "fish tales"
What is the batting style of Makhaya Ntini?
CREATE TABLE table_name_85 (batting_style VARCHAR, player VARCHAR)
SELECT batting_style FROM table_name_85 WHERE player = "makhaya ntini"
What are the highest number of points with an Entrant of warsteiner brewery?
CREATE TABLE table_name_8 (points INTEGER, entrant VARCHAR)
SELECT MAX(points) FROM table_name_8 WHERE entrant = "warsteiner brewery"
Which Total has a Year(s) won of 1991?
CREATE TABLE table_name_9 (total INTEGER, year_s__won VARCHAR)
SELECT MIN(total) FROM table_name_9 WHERE year_s__won = "1991"
Which artist had a 4x platinum?
CREATE TABLE table_name_42 (artist VARCHAR, certification VARCHAR)
SELECT artist FROM table_name_42 WHERE certification = "4x platinum"
What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up?
CREATE TABLE table_name_24 (score VARCHAR, year VARCHAR, winners VARCHAR, runners_up VARCHAR)
SELECT score FROM table_name_24 WHERE winners = "galatasaray" AND runners_up = "trabzonspor" AND year = 1990
Which report shows that Frank Lockhart was a winning driver?
CREATE TABLE table_name_79 (report VARCHAR, winning_drivers VARCHAR)
SELECT report FROM table_name_79 WHERE winning_drivers = "frank lockhart"
Which home team played at Glenferrie Oval?
CREATE TABLE table_name_67 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_67 WHERE venue = "glenferrie oval"
What is John Kerry, when John Edwards is "20%"?
CREATE TABLE table_name_94 (john_kerry VARCHAR, john_edwards VARCHAR)
SELECT john_kerry FROM table_name_94 WHERE john_edwards = "20%"
What is the partition id of the user named "Iron Man".
CREATE TABLE user_profiles (partitionid VARCHAR, name VARCHAR)
SELECT partitionid FROM user_profiles WHERE name = 'Iron Man'