answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT score FROM table_name_72 WHERE place = "t9" AND player = "laura diaz"
What was Laura Diaz's score for place t9?
CREATE TABLE table_name_72 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT COUNT(record) FROM table_11960407_4 WHERE game = 39
How many times was the game 39?
CREATE TABLE table_11960407_4 (record VARCHAR, game VARCHAR)
SELECT venue FROM table_name_82 WHERE event = "4x400m relay" AND year > 2002 AND position = "4th"
Is there a Venus that's a year later than 2002, with an Event of 4x400m relay in 4th Position?
CREATE TABLE table_name_82 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR)
SELECT country FROM table_name_66 WHERE rank > 4
What is the country is ranked more than 4?
CREATE TABLE table_name_66 (country VARCHAR, rank INTEGER)
SELECT institution FROM table_1973842_1 WHERE location = "Chestnut Hill, Massachusetts"
What school is located in Chestnut Hill, Massachusetts?
CREATE TABLE table_1973842_1 (institution VARCHAR, location VARCHAR)
SELECT result FROM table_name_24 WHERE game_site = "memorial stadium" AND week = 15
What was the result for the game at Memorial Stadium in week 15?
CREATE TABLE table_name_24 (result VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT COUNT(location) FROM table_1231316_7 WHERE fastest_time__s_ = "11.13"
What is the number of locations with the fastest times of 11.13?
CREATE TABLE table_1231316_7 (location VARCHAR, fastest_time__s_ VARCHAR)
SELECT SUM(season) FROM table_name_40 WHERE score = "1:3" AND venue = "national stadium, maldives"
Which season was there a game with the score of 1:3 played at the venue of national stadium, maldives?
CREATE TABLE table_name_40 (season INTEGER, score VARCHAR, venue VARCHAR)
SELECT MIN(drawn) FROM table_name_36 WHERE lost < 2
What is the lowest number drawn with less than 2 lost?
CREATE TABLE table_name_36 (drawn INTEGER, lost INTEGER)
SELECT name_[b_] FROM table_name_63 WHERE Pwin_percentage = 0.696
What is the name of the person with a PWin% of .696?
CREATE TABLE table_name_63 (name_ VARCHAR, b_ VARCHAR, Pwin_percentage VARCHAR)
SELECT arena FROM table_name_2 WHERE points > 28 AND date = "december 14"
Which Arena has Points larger than 28, and a Date of december 14?
CREATE TABLE table_name_2 (arena VARCHAR, points VARCHAR, date 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 venue FROM table_name_39 WHERE league = "wnba"
What are the venues that host WNBA games?
CREATE TABLE table_name_39 (venue VARCHAR, league VARCHAR)
SELECT COUNT(silver) FROM table_name_35 WHERE total < 1
What is the number of silver when the total is less than 1?
CREATE TABLE table_name_35 (silver VARCHAR, total INTEGER)
SELECT position FROM table_name_13 WHERE round > 5 AND selection = 168
Which Position has a Round larger than 5, and a Selection of 168?
CREATE TABLE table_name_13 (position VARCHAR, round VARCHAR, selection VARCHAR)
SELECT opponent FROM table_name_37 WHERE week = "4"
Who did the Texan's play on Week 4?
CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR)
SELECT MAX(episodes) FROM table_name_79 WHERE tv_station = "tbs" AND japanese_title = "今夜ひとりのベッドで"
Which Episodes have a TV Station of tbs, and a Japanese Title of 今夜ひとりのベッドで?
CREATE TABLE table_name_79 (episodes INTEGER, tv_station VARCHAR, japanese_title VARCHAR)
SELECT COUNT(year) FROM table_name_69 WHERE balance_sheet_total = "€125,359,000"
What year did the company have a balance sheet total of €125,359,000?
CREATE TABLE table_name_69 (year VARCHAR, balance_sheet_total VARCHAR)
SELECT founder FROM table_11256021_1 WHERE date = "c. 1900"
who is the founder where date is c. 1900
CREATE TABLE table_11256021_1 (founder VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_11 WHERE place = "t2" AND country = "united states"
What To par has a Place of t2, and a Country of united states?
CREATE TABLE table_name_11 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT high_rebounds FROM table_name_83 WHERE score = "w 76-66"
What was the high rebounds for the game that had a score of w 76-66?
CREATE TABLE table_name_83 (high_rebounds VARCHAR, score VARCHAR)
SELECT title FROM table_1130632_1 WHERE us_viewers__million_ = "19.48"
What are the title that have 19.48 million u.s. viewers?
CREATE TABLE table_1130632_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT MAX(pick) FROM table_name_13 WHERE college = "texas a&i" AND overall < 28
What is the highest pick of the player from texas a&i with an overall less than 28?
CREATE TABLE table_name_13 (pick INTEGER, college VARCHAR, overall VARCHAR)
SELECT AVG(cuts_made) FROM table_name_31 WHERE top_5 > 1
How many cuts made when the top-5 is greater than 1?
CREATE TABLE table_name_31 (cuts_made INTEGER, top_5 INTEGER)
SELECT round FROM table_name_32 WHERE method = "decision (unanimous)" AND event = "ufc 145"
Which Round has a Method of decision (unanimous), and an Event of ufc 145?
CREATE TABLE table_name_32 (round VARCHAR, method VARCHAR, event VARCHAR)
SELECT japanese_title FROM table_name_44 WHERE disc < 12 AND artist = "kōzō murashita"
Which Japanese title has a Disc smaller than 12, and an Artist of kōzō murashita?
CREATE TABLE table_name_44 (japanese_title VARCHAR, disc VARCHAR, artist VARCHAR)
SELECT urban_settlement FROM table_2562572_7 WHERE city___municipality = "Kovin"
What was the urban settlement when the city / municipality was kovin?
CREATE TABLE table_2562572_7 (urban_settlement VARCHAR, city___municipality VARCHAR)
SELECT position FROM table_name_74 WHERE goals = 0 AND points = 28 AND player = "mike forshaw"
Mike Forshaw had 0 goals and 28 points. What is his position?
CREATE TABLE table_name_74 (position VARCHAR, player VARCHAR, goals VARCHAR, points VARCHAR)
SELECT winning_constructor FROM table_name_71 WHERE circuit = "parioli"
Who was the winning constructor at the circuit of parioli?
CREATE TABLE table_name_71 (winning_constructor VARCHAR, circuit VARCHAR)
SELECT instant_messaging FROM table_name_26 WHERE telephony = "yes with integrated sametime"
What is Instant Messaging, when Telephony is "Yes with integrated Sametime"?
CREATE TABLE table_name_26 (instant_messaging VARCHAR, telephony VARCHAR)
SELECT 1 AS st_member FROM table_name_51 WHERE dissolved = "23 february 1510"
Who was the 1st member of the parliament that was dissolved 23 february 1510?
CREATE TABLE table_name_51 (dissolved VARCHAR)
SELECT MIN(kazakhstan) FROM table_name_20 WHERE kyrghizstan = 4.62 AND belarus < 2.46
Tell me the lowest kazakhstan for kyrghizstan of 4.62 and belarus less than 2.46
CREATE TABLE table_name_20 (kazakhstan INTEGER, kyrghizstan VARCHAR, belarus VARCHAR)
SELECT season FROM table_name_7 WHERE average < 28 AND rank < 10 AND professional_partner = "janja lesar"
Which season had an average under 28, a rank under 10, and a partner of Janja Lesar?
CREATE TABLE table_name_7 (season VARCHAR, professional_partner VARCHAR, average VARCHAR, rank VARCHAR)
SELECT preliminary_average FROM table_16323766_3 WHERE state = "Mississippi"
What was the preliminary average for Miss Mississippi?
CREATE TABLE table_16323766_3 (preliminary_average VARCHAR, state VARCHAR)
SELECT population FROM table_101196_1 WHERE county = "county Mayo" AND english_name = "Carrowteige"
What is the population for County Mayo with the English Name Carrowteige?
CREATE TABLE table_101196_1 (population VARCHAR, county VARCHAR, english_name VARCHAR)
SELECT fname, lname FROM student WHERE major <> (SELECT major FROM student GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1)
Find the first and last name of students who are not in the largest major.
CREATE TABLE student (fname VARCHAR, lname VARCHAR, major VARCHAR)
SELECT score FROM table_name_65 WHERE date = "june 30"
What was the score for the game on June 30?
CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
SELECT no FROM table_17015_2 WHERE population__2010_ = 171906
Name the number where population 2010 is 171906
CREATE TABLE table_17015_2 (no VARCHAR, population__2010_ VARCHAR)
SELECT college FROM table_28059992_6 WHERE cfl_team = "Calgary"
What college did the player who was drafted by Calgary go to?
CREATE TABLE table_28059992_6 (college VARCHAR, cfl_team VARCHAR)
SELECT loss FROM table_name_74 WHERE record = "77–67"
What was the loss of the Red Sox game when they had a record of 77–67?
CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR)
SELECT region FROM table_name_6 WHERE catalog = "38xa-5"
What was the region for the 38xa-5 catalog?
CREATE TABLE table_name_6 (region VARCHAR, catalog VARCHAR)
SELECT MAX(first_elected) FROM table_name_56 WHERE district = "pennsylvania 10"
What is the greatest first elected for Pennsylvania 10?
CREATE TABLE table_name_56 (first_elected INTEGER, district VARCHAR)
SELECT AVG(wins) FROM table_name_32 WHERE points < 19
What is the average Wins, when Points is less than "19"?
CREATE TABLE table_name_32 (wins INTEGER, points INTEGER)
SELECT SUM(goals_against) FROM table_name_85 WHERE goals_for = 46 AND played < 38
WHAT GOALS AGAINST HAD A GOAL FOR OF 46, AND PLAYED LESS THAN 38?
CREATE TABLE table_name_85 (goals_against INTEGER, goals_for VARCHAR, played VARCHAR)
SELECT score FROM table_name_8 WHERE home = "chicago black hawks" AND record = "3-3"
What is the Score when the Home team is Chicago Black Hawks and the Record is 3-3?
CREATE TABLE table_name_8 (score VARCHAR, home VARCHAR, record VARCHAR)
SELECT civil_parish FROM table_30121082_1 WHERE townland = "Loughmarsh"
What are the civil parishes of the Loughmarsh townland?
CREATE TABLE table_30121082_1 (civil_parish VARCHAR, townland VARCHAR)
SELECT COUNT(miss_universe) FROM table_28634206_1 WHERE country = "South Africa"
How many miss universes did south africa have?
CREATE TABLE table_28634206_1 (miss_universe VARCHAR, country VARCHAR)
SELECT SUM(gold) FROM table_name_34 WHERE bronze > 0 AND total < 2
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 MIN(played) FROM table_name_57 WHERE blackpool < 0
Which Played is the lowest one that has a Blackpool smaller than 0?
CREATE TABLE table_name_57 (played INTEGER, blackpool INTEGER)
SELECT COUNT(poles) FROM table_24466191_1 WHERE position = "15th"
Name the number of poles for 15th position
CREATE TABLE table_24466191_1 (poles VARCHAR, position VARCHAR)
SELECT home_team FROM table_name_60 WHERE score = "102-87"
What home team scored 102-87?
CREATE TABLE table_name_60 (home_team VARCHAR, score VARCHAR)
SELECT family_families FROM table_19897294_8 WHERE no_overall = "UK31"
Name the family for uk31
CREATE TABLE table_19897294_8 (family_families VARCHAR, no_overall VARCHAR)
SELECT venue FROM table_name_89 WHERE date = "15 august 2006"
Name the venue for 15 august 2006
CREATE TABLE table_name_89 (venue VARCHAR, date VARCHAR)
SELECT robin FROM table_21234111_10 WHERE result = "Eliminated"
What was Robin's score when she was eliminated?
CREATE TABLE table_21234111_10 (robin VARCHAR, result VARCHAR)
SELECT airport FROM table_name_56 WHERE iata = "sea"
What Airport's IATA is SEA?
CREATE TABLE table_name_56 (airport VARCHAR, iata VARCHAR)
SELECT COUNT(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE country = 'Canada'
Find the number of routes whose destination airports are in Canada.
CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (apid VARCHAR)
SELECT windows FROM table_1322914_1 WHERE title = "Icewind Dale"
Is icewind dale available for windows
CREATE TABLE table_1322914_1 (windows VARCHAR, title VARCHAR)
SELECT country, COUNT(*) FROM stadium GROUP BY country
How many stadiums does each country have?
CREATE TABLE stadium (country VARCHAR)
SELECT SUM(lane) FROM table_name_43 WHERE heat = 3 AND name = "sara isakovič"
What's Sara Isakovič's lane number that had a heat of 3?
CREATE TABLE table_name_43 (lane INTEGER, heat VARCHAR, name VARCHAR)
SELECT game_site FROM table_name_90 WHERE opponent = "miami dolphins"
What Game site has an Opponent of Miami Dolphins?
CREATE TABLE table_name_90 (game_site VARCHAR, opponent VARCHAR)
SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters
Show the different headquarters and number of companies at each headquarter.
CREATE TABLE company (Headquarters VARCHAR)
SELECT no_of_hc_climbs FROM table_name_35 WHERE no_of_times_visited = 1 AND most_recent > 1984 AND first_time_as_hc_climb < 1994 AND height__m_ = "1900"
How many HC climbs had 1 visit more recently than 1984, a first HC climb before 1994, and a height of 1900?
CREATE TABLE table_name_35 (no_of_hc_climbs VARCHAR, height__m_ VARCHAR, first_time_as_hc_climb VARCHAR, no_of_times_visited VARCHAR, most_recent VARCHAR)
SELECT award FROM table_name_36 WHERE category = "choice tv: breakout star female"
What is the award for the Choice TV: Breakout Star Female category?
CREATE TABLE table_name_36 (award VARCHAR, category VARCHAR)
SELECT away_team AS score FROM table_name_59 WHERE venue = "princes park"
What was the score of the away team in the match at Princes Park?
CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR)
SELECT audition_city FROM table_22897967_1 WHERE callback_venue = "Hyatt Regency Chicago"
Name the audition city for hyatt regency chicago
CREATE TABLE table_22897967_1 (audition_city VARCHAR, callback_venue VARCHAR)
SELECT date FROM table_name_2 WHERE home_team = "reading"
When did Reading play at home?
CREATE TABLE table_name_2 (date VARCHAR, home_team VARCHAR)
SELECT total_fat FROM table_name_60 WHERE smoke_point = "°c ()" AND saturated_fat = "25g"
What is the total fat with a smoke point of °c (), 25g of saturated fat?
CREATE TABLE table_name_60 (total_fat VARCHAR, smoke_point VARCHAR, saturated_fat VARCHAR)
SELECT 2009 AS _season FROM table_name_17 WHERE group = "group b" AND stadium = "cancha del mystic" AND club = "el tecal"
When in 2009 season has a Group of group b, and cancha del mystic with a Club of el tecal?
CREATE TABLE table_name_17 (club VARCHAR, group VARCHAR, stadium VARCHAR)
SELECT time FROM table_name_98 WHERE rank > 2 AND notes = "fb" AND country = "belarus"
What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?
CREATE TABLE table_name_98 (time VARCHAR, country VARCHAR, rank VARCHAR, notes VARCHAR)
SELECT artist FROM table_name_42 WHERE issue > 74 AND spoofed_title = "genteel ben"
Who was the artist for Spoofed title Genteel Ben in an issue later than 74?
CREATE TABLE table_name_42 (artist VARCHAR, issue VARCHAR, spoofed_title VARCHAR)
SELECT AVG(attendance) FROM table_name_10 WHERE season < 1986 AND margin = 6 AND score = "13.16 (94) – 13.10 (88)"
What is the average attendnace for seasons before 1986, a margin of 6, and a Score of 13.16 (94) – 13.10 (88)?
CREATE TABLE table_name_10 (attendance INTEGER, score VARCHAR, season VARCHAR, margin VARCHAR)
SELECT result FROM table_name_29 WHERE week = 14
What was the result for week 14?
CREATE TABLE table_name_29 (result VARCHAR, week VARCHAR)
SELECT institution FROM table_1974482_1 WHERE nickname = "Yellowjackets"
Name the institution for yellowjackets
CREATE TABLE table_1974482_1 (institution VARCHAR, nickname VARCHAR)
SELECT 2010 FROM table_name_93 WHERE 2012 = "2r" AND tournament = "miami masters"
WHAT IS THE 2010 WITH 2012 OF 2R AT MIAMI MASTERS?
CREATE TABLE table_name_93 (tournament VARCHAR)
SELECT driver FROM table_name_27 WHERE grid > 19
What driver has a grid greater than 19?
CREATE TABLE table_name_27 (driver VARCHAR, grid INTEGER)
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 institution FROM table_15438337_1 WHERE country = "London, United Kingdom"
Which company was based in London, United Kingdom?
CREATE TABLE table_15438337_1 (institution VARCHAR, country VARCHAR)
SELECT MAX(game) FROM table_21091162_1 WHERE record = "3-4-0"
How many games have a record of 3-4-0?
CREATE TABLE table_21091162_1 (game INTEGER, record VARCHAR)
SELECT nurse FROM on_call WHERE blockfloor = 1 AND blockcode = 1
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 AVG(year) FROM table_name_12 WHERE date = "5–6 february"
Which Year has a Date of 5–6 february?
CREATE TABLE table_name_12 (year INTEGER, date VARCHAR)
SELECT COUNT(rank) FROM table_name_11 WHERE points > 282.5
How much Rank has Points larger than 282.5?
CREATE TABLE table_name_11 (rank VARCHAR, points INTEGER)
SELECT MAX(new_zealand) FROM table_name_47 WHERE hong_kong < 0
What is the highest New Zealand value with a Hong Kong value less than 0?
CREATE TABLE table_name_47 (new_zealand INTEGER, hong_kong INTEGER)
SELECT guanay_municipality FROM table_2509202_2 WHERE combaya_municipality = "0"
What is the number for the guanay municipality when combaya municipality is 0?
CREATE TABLE table_2509202_2 (guanay_municipality VARCHAR, combaya_municipality VARCHAR)
SELECT institution FROM table_261927_2 WHERE primary_conference = "Merged into the University of Massachusetts Boston"
Which institutions primary conference is merged into the university of Massachusetts boston?
CREATE TABLE table_261927_2 (institution VARCHAR, primary_conference VARCHAR)
SELECT MIN(al_wehdat_wins) FROM table_2985714_2 WHERE _number = 2
When the number is 2 what is the lowest amount of al-wedhat wins?
CREATE TABLE table_2985714_2 (al_wehdat_wins INTEGER, _number VARCHAR)
SELECT winner FROM table_name_27 WHERE circuit = "adelaide international raceway"
Who was the winner of the Adelaide International Raceway circuit?
CREATE TABLE table_name_27 (winner VARCHAR, circuit VARCHAR)
SELECT MAX(year) FROM table_20193855_2 WHERE author_s__or_editor_s_ = "Delia Sherman"
In which year were the authors or editors Delia Sherman?
CREATE TABLE table_20193855_2 (year INTEGER, author_s__or_editor_s_ VARCHAR)
SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1
Show the name of the shop that have the largest quantity of devices in stock.
CREATE TABLE stock (Shop_ID VARCHAR, quantity INTEGER); CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR)
SELECT away_team FROM table_24887326_6 WHERE tie_no = 11
Who is the away team for tie no 11?
CREATE TABLE table_24887326_6 (away_team VARCHAR, tie_no VARCHAR)
SELECT japanese_title FROM table_name_26 WHERE tv_station = "nhk" AND average_ratings = "9.2%"
What Japanese show on NHK had average ratings of 9.2%?
CREATE TABLE table_name_26 (japanese_title VARCHAR, tv_station VARCHAR, average_ratings VARCHAR)
SELECT result FROM table_name_15 WHERE arena = "a" AND league = "sl" AND match > 16
What was the result at A Arena, the SL league, and a match number over 16?
CREATE TABLE table_name_15 (result VARCHAR, match VARCHAR, arena VARCHAR, league VARCHAR)
SELECT DISTINCT country FROM artist
What are all distinct country for artists?
CREATE TABLE artist (country VARCHAR)
SELECT wasatch FROM table_name_31 WHERE total_time = "122:13:40"
What Wasatch time corresponds to a total time of 122:13:40?
CREATE TABLE table_name_31 (wasatch VARCHAR, total_time VARCHAR)
SELECT MAX(3620) FROM table_name_34 WHERE 5432 = 5432 AND 15122 > 15122
What is the highest 3620 value with a 5432 of 5432 and a 15122 greater than 15122?
CREATE TABLE table_name_34 (Id VARCHAR)
SELECT money_spent, _3q FROM table_name_19 WHERE after_debt = "$1,757,936"
How much money was spent when the amount after debt was $1,757,936?
CREATE TABLE table_name_19 (money_spent VARCHAR, _3q VARCHAR, after_debt VARCHAR)
SELECT episode FROM table_26250199_1 WHERE order__number = "10"
In which episode is the order number 10?
CREATE TABLE table_26250199_1 (episode VARCHAR, order__number VARCHAR)
SELECT first_elected FROM table_2668378_18 WHERE incumbent = "John Smith"
When was someone first elected in the district with incumbent john smith?
CREATE TABLE table_2668378_18 (first_elected VARCHAR, incumbent VARCHAR)
SELECT country FROM table_name_40 WHERE of_1 = "locotenent"
What country has OF-1 Locotenent?
CREATE TABLE table_name_40 (country VARCHAR, of_1 VARCHAR)
SELECT semifinalists FROM table_name_29 WHERE tournament = "cincinnati"
What is the Semifinalists that has a Tournament of Cincinnati?
CREATE TABLE table_name_29 (semifinalists VARCHAR, tournament VARCHAR)
SELECT opponent FROM table_name_36 WHERE date = "december 10, 2000"
Who was the opponent on December 10, 2000?
CREATE TABLE table_name_36 (opponent VARCHAR, date VARCHAR)