answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT coach FROM table_name_51 WHERE w_l_percentage > 0.516 AND first_yr < 1925 AND yr_plyf > 2 AND last_yr = 1967
Who is the coach with a w-l% greater than 0.516, a first yr before 1925, a yr plyf greater than 2, and a last yr in 1967?
CREATE TABLE table_name_51 (coach VARCHAR, last_yr VARCHAR, yr_plyf VARCHAR, w_l_percentage VARCHAR, first_yr VARCHAR)
SELECT SUM(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)
Find the total amount claimed in the most recently created document.
CREATE TABLE claim_headers (amount_claimed INTEGER, claim_header_id VARCHAR); CREATE TABLE claims_documents (claim_id VARCHAR, created_date VARCHAR); CREATE TABLE claims_documents (created_date VARCHAR)
SELECT result FROM table_name_75 WHERE score = "8-1"
What is the result when the score is 8-1?
CREATE TABLE table_name_75 (result VARCHAR, score VARCHAR)
SELECT COUNT(top_5) FROM table_name_6 WHERE tournament = "masters tournament" AND top_10 < 2
How many times is the tournament the masters tournament and the top-10 is less than 2?
CREATE TABLE table_name_6 (top_5 VARCHAR, tournament VARCHAR, top_10 VARCHAR)
SELECT MIN(tons___lton__) FROM table_23614702_1 WHERE warship = "Independencia"
How much does the Independencia weight?
CREATE TABLE table_23614702_1 (tons___lton__ INTEGER, warship VARCHAR)
SELECT score FROM table_name_71 WHERE set_2 = "24–26"
What is the Score for Set 2 of 24–26?
CREATE TABLE table_name_71 (score VARCHAR, set_2 VARCHAR)
SELECT primary_sponsor_s_ FROM table_name_45 WHERE driver_s_ = "mike wallace"
Who is Mike Wallace's primary Sponsor(s)?
CREATE TABLE table_name_45 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR)
SELECT venue FROM table_name_75 WHERE score = "1-3"
Name the venue for score of 1-3
CREATE TABLE table_name_75 (venue VARCHAR, score VARCHAR)
SELECT visiting_team FROM table_name_12 WHERE date = "november 12"
What was the visiting team on November 12?
CREATE TABLE table_name_12 (visiting_team VARCHAR, date VARCHAR)
SELECT record FROM table_name_3 WHERE score = "w 107–102 (ot)"
Which Record has a Score of w 107–102 (ot)?
CREATE TABLE table_name_3 (record VARCHAR, score VARCHAR)
SELECT MAX(assists) FROM table_29743928_3 WHERE country = "Panama"
How many is the high assist total for players from panama?
CREATE TABLE table_29743928_3 (assists INTEGER, country VARCHAR)
SELECT loss FROM table_name_50 WHERE attendance > 45 OFFSET 036
How many losses have more than 45,036 attendance?
CREATE TABLE table_name_50 (loss VARCHAR, attendance INTEGER)
SELECT AVG(rating), languages FROM song GROUP BY languages
What is the average rating of songs for each language?
CREATE TABLE song (languages VARCHAR, rating INTEGER)
SELECT venue FROM table_name_19 WHERE away_team = "fitzroy"
At what venue was the away team Fitzroy?
CREATE TABLE table_name_19 (venue VARCHAR, away_team VARCHAR)
SELECT name_in_malay FROM table_name_55 WHERE foundation = "iptura"
What is the name for Malay with a foundation in Iptura?
CREATE TABLE table_name_55 (name_in_malay VARCHAR, foundation VARCHAR)
SELECT 1994 FROM table_name_14 WHERE tournament = "miami"
What is the 1994 finish for the Miami tournament?
CREATE TABLE table_name_14 (tournament VARCHAR)
SELECT MIN(points) FROM table_name_88 WHERE match > 14
What is the lowest points for a match before 14?
CREATE TABLE table_name_88 (points INTEGER, match INTEGER)
SELECT position FROM table_name_79 WHERE overall > 187 AND player = "david nugent"
Which position did David Nugent play with an overall small than 187?
CREATE TABLE table_name_79 (position VARCHAR, overall VARCHAR, player VARCHAR)
SELECT MIN(meas_num) FROM table_256286_23 WHERE description = "Tax Supervising and Conservation Bill"
What is the number of the tax supervising and conservation bill?
CREATE TABLE table_256286_23 (meas_num INTEGER, description VARCHAR)
SELECT MIN(year) FROM table_name_59 WHERE manager = "marty berghammer" AND finish = "1st"
Manager of marty berghammer, and a Finish of 1st involved what lowest year?
CREATE TABLE table_name_59 (year INTEGER, manager VARCHAR, finish VARCHAR)
SELECT date FROM table_name_94 WHERE score = "4–5" AND record = "21–21–3"
When has Score of 4–5, and a Record of 21–21–3?
CREATE TABLE table_name_94 (date VARCHAR, score VARCHAR, record VARCHAR)
SELECT 1993 FROM table_name_67 WHERE 1990 = "2–2"
Who had 1990 of 2–2 in 1993?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT difference FROM table_15400878_1 WHERE drawn > 2.0
Name the difference for when drawn is larger than 2.0
CREATE TABLE table_15400878_1 (difference VARCHAR, drawn INTEGER)
SELECT result FROM table_name_63 WHERE team = "giants"
I want the result for team of giants
CREATE TABLE table_name_63 (result VARCHAR, team VARCHAR)
SELECT category FROM table_name_3 WHERE president = "richard nixon" AND year < 2009
What was the category of Richard Nixon as President in a year prior to 2009?
CREATE TABLE table_name_3 (category VARCHAR, president VARCHAR, year VARCHAR)
SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1
Which continent has the most diverse languages?
CREATE TABLE countrylanguage (CountryCode VARCHAR); CREATE TABLE country (Continent VARCHAR, Code VARCHAR)
SELECT T1.gender, T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1
Return the gender and name of artist who produced the song with the lowest resolution.
CREATE TABLE artist (gender VARCHAR, artist_name VARCHAR); CREATE TABLE song (artist_name VARCHAR, resolution VARCHAR)
SELECT attendance FROM table_name_98 WHERE date = "november 26"
What was the Attendance on November 26?
CREATE TABLE table_name_98 (attendance VARCHAR, date VARCHAR)
SELECT MAX(bush_number) FROM table_1756284_1
What was the highest vote number for Bush?
CREATE TABLE table_1756284_1 (bush_number INTEGER)
SELECT polyunsaturated_fat FROM table_name_96 WHERE total_fat = "100g" AND monounsaturated_fat = "20g (84g in high oleic variety)"
Name the polyunsaturated fat with total fat of 100g and monounsaturated fat of 20g (84g in high oleic variety)
CREATE TABLE table_name_96 (polyunsaturated_fat VARCHAR, total_fat VARCHAR, monounsaturated_fat VARCHAR)
SELECT semifinalists FROM table_name_28 WHERE tournament = "rome"
Which Semifinalists have a Tournament of rome?
CREATE TABLE table_name_28 (semifinalists VARCHAR, tournament VARCHAR)
SELECT team_1 FROM table_name_13 WHERE team_2 = "al tahrir"
What is Team 1 where Team 2 is al tahrir?
CREATE TABLE table_name_13 (team_1 VARCHAR, team_2 VARCHAR)
SELECT location FROM table_1602620_1 WHERE term_ended = "December 2, 1976"
What is the location for the office whose term ended December 2, 1976
CREATE TABLE table_1602620_1 (location VARCHAR, term_ended VARCHAR)
SELECT AVG(attendance) FROM table_name_66 WHERE date = "february 27"
What attendance is dated february 27?
CREATE TABLE table_name_66 (attendance INTEGER, date VARCHAR)
SELECT score FROM table_name_3 WHERE competition = "friendly match" AND date = "24 july 2008"
What is the score of the friendly match competition on 24 July 2008?
CREATE TABLE table_name_3 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT republican_seat_plurality FROM table_name_18 WHERE state_ranked_in_partisan_order = "north carolina"
What is the Republican seat plurality of North Carolina?
CREATE TABLE table_name_18 (republican_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR)
SELECT position FROM table_name_8 WHERE event = "10,000 m" AND competition = "world championships" AND year > 1993
Which Position has an Event of 10,000 m, and a Competition of world championships, and a Year larger than 1993?
CREATE TABLE table_name_8 (position VARCHAR, year VARCHAR, event VARCHAR, competition VARCHAR)
SELECT home_team AS score FROM table_name_74 WHERE venue = "punt road oval"
When the venue was punt road oval, what was the Home teams score?
CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR)
SELECT engine FROM table_name_76 WHERE year = "1999"
What engine was used in 1999?
CREATE TABLE table_name_76 (engine VARCHAR, year VARCHAR)
SELECT nationality FROM table_2679061_4 WHERE player = "Bob Essensa"
What is the nationality of Bob Essensa?
CREATE TABLE table_2679061_4 (nationality VARCHAR, player VARCHAR)
SELECT label FROM table_name_88 WHERE country = "united states"
What is the label on the United States?
CREATE TABLE table_name_88 (label VARCHAR, country VARCHAR)
SELECT us_viewers__millions_ FROM table_13301516_1 WHERE original_air_date = "November 13, 2007"
How many U.S. viewers, in millions, watched the episode that aired on November 13, 2007?
CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, original_air_date VARCHAR)
SELECT T2.apt_number, T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id
Show the apartment numbers, start dates, and end dates of all the apartment bookings.
CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, apt_id VARCHAR); CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR)
SELECT week__number FROM table_21501564_1 WHERE theme = "First Solo"
What week # featured first solo as the theme?
CREATE TABLE table_21501564_1 (week__number VARCHAR, theme VARCHAR)
SELECT COUNT(state_country) FROM table_25595209_1 WHERE skipper = "Grant Wharington"
How many states is Grant Wharington from?
CREATE TABLE table_25595209_1 (state_country VARCHAR, skipper VARCHAR)
SELECT attendance FROM table_name_86 WHERE date = "may 26"
What was the attendance on May 26?
CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR)
SELECT date FROM table_name_77 WHERE game_site = "bye"
What date has a Game site of bye?
CREATE TABLE table_name_77 (date VARCHAR, game_site VARCHAR)
SELECT opponent FROM table_name_91 WHERE week = 12
Who did the Browns play week 12?
CREATE TABLE table_name_91 (opponent VARCHAR, week VARCHAR)
SELECT set_2 FROM table_name_48 WHERE set_1 = "25-23" AND set_5 = "17-19"
What is the set 2 with a 25-23 set 1 and a 17-19 set 5?
CREATE TABLE table_name_48 (set_2 VARCHAR, set_1 VARCHAR, set_5 VARCHAR)
SELECT obesity_rank FROM table_name_87 WHERE overweight__incl_obese__adults = "66.8%" AND state_and_district_of_columbia = "west virginia"
What's the rank in West Virginia when the overweight adult was 66.8%?
CREATE TABLE table_name_87 (obesity_rank VARCHAR, overweight__incl_obese__adults VARCHAR, state_and_district_of_columbia VARCHAR)
SELECT channel FROM table_name_82 WHERE play_by_play = "paul sunderland" AND studio_host = "bill macdonald" AND studio_analysts = "jack haley"
which channel will have play by play commentator Paul Sunderland, Studio Host Bill Macdonald and Studi Analysty Jack Haley?
CREATE TABLE table_name_82 (channel VARCHAR, studio_analysts VARCHAR, play_by_play VARCHAR, studio_host VARCHAR)
SELECT MAX(league_cup_apps) FROM table_name_74 WHERE league_cup_goals = 0 AND name = "jimmy lawson"
What's the most league cup apps for Jimmy Lawson having 0 league cup goals?
CREATE TABLE table_name_74 (league_cup_apps INTEGER, league_cup_goals VARCHAR, name VARCHAR)
SELECT league FROM table_11044765_1 WHERE school = "Galena"
Which leagues is the Galena school in?
CREATE TABLE table_11044765_1 (league VARCHAR, school VARCHAR)
SELECT AVG(points) FROM table_name_87 WHERE laps > 154
What is the average amount of points larger than 154 laps?
CREATE TABLE table_name_87 (points INTEGER, laps INTEGER)
SELECT home_team AS score FROM table_name_37 WHERE away_team = "st kilda"
What is the home team score when the away team is St Kilda?
CREATE TABLE table_name_37 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(nickname) FROM table_1973729_1 WHERE location = "Milton, Massachusetts"
How many nicknames were associated with Milton, Massachusetts?
CREATE TABLE table_1973729_1 (nickname VARCHAR, location VARCHAR)
SELECT date FROM table_name_87 WHERE city = "punta del este"
What is Date, when City is "Punta Del Este"?
CREATE TABLE table_name_87 (date VARCHAR, city VARCHAR)
SELECT composition FROM table_11464746_1 WHERE house_name = "Benue"
What is the benue house made of?
CREATE TABLE table_11464746_1 (composition VARCHAR, house_name VARCHAR)
SELECT rank_by_average FROM table_1354805_6 WHERE number_of_dances = 7
tell the mean of the times competition for the 7 jigs
CREATE TABLE table_1354805_6 (rank_by_average VARCHAR, number_of_dances VARCHAR)
SELECT municipality FROM table_24115349_6 WHERE coakley_votes = 754
What municipality had 754 votes for coakley?
CREATE TABLE table_24115349_6 (municipality VARCHAR, coakley_votes VARCHAR)
SELECT away_team FROM table_name_78 WHERE home_team = "citizen team a"
Who was the away team for the match with a home team of Citizen Team A?
CREATE TABLE table_name_78 (away_team VARCHAR, home_team VARCHAR)
SELECT average_speed__mph_ FROM table_28178756_1 WHERE team = "FILMAR Racing"
What is the average speed for filmar racing?
CREATE TABLE table_28178756_1 (average_speed__mph_ VARCHAR, team VARCHAR)
SELECT 2013 FROM table_name_78 WHERE total = 5 AND 2009 = "5th"
What is the year 2013 with a total of 5, and 5th in 2009?
CREATE TABLE table_name_78 (total VARCHAR)
SELECT other FROM table_25200461_9 WHERE city = "Los Gatos"
What is the other is the city is Los Gatos?
CREATE TABLE table_25200461_9 (other VARCHAR, city VARCHAR)
SELECT name FROM table_142159_1 WHERE builder = "Kerr Stuart"
What is the name with the builder of Kerr Stuart
CREATE TABLE table_142159_1 (name VARCHAR, builder VARCHAR)
SELECT time FROM table_name_96 WHERE notes = "sa/b" AND country = "italy"
What's Italy's time when the notes were SA/B?
CREATE TABLE table_name_96 (time VARCHAR, notes VARCHAR, country VARCHAR)
SELECT batting_partners FROM table_1670921_1 WHERE season = "1997"
Who are the batting partners for the 1997 season?
CREATE TABLE table_1670921_1 (batting_partners VARCHAR, season VARCHAR)
SELECT tv_season FROM table_27553627_2 WHERE viewers__in_millions_ = "14.54"
What tv season year had 14.54 million viewers?
CREATE TABLE table_27553627_2 (tv_season VARCHAR, viewers__in_millions_ VARCHAR)
SELECT district FROM table_name_73 WHERE population < 75 AND name = "st martin's without"
What district is St Martin's Without parish in with a population less than 75?
CREATE TABLE table_name_73 (district VARCHAR, population VARCHAR, name VARCHAR)
SELECT COUNT(aux_in) FROM table_24384861_1 WHERE dock_connection = "FireWire"
How many connections aux in using FIrewire?
CREATE TABLE table_24384861_1 (aux_in VARCHAR, dock_connection VARCHAR)
SELECT score FROM table_name_43 WHERE partner = "florencia labat" AND surface = "clay" AND opponents = "laura golarsa ann grossman"
what is the score when the partner is florencia labat, the surface is clay, the opponents is laura golarsa ann grossman?
CREATE TABLE table_name_43 (score VARCHAR, opponents VARCHAR, partner VARCHAR, surface VARCHAR)
SELECT nebraska FROM table_name_25 WHERE year = "2004"
Which Nebraska has 2004 year?
CREATE TABLE table_name_25 (nebraska VARCHAR, year VARCHAR)
SELECT MIN(number_of_dairy_cows) FROM table_29012710_1 WHERE province = "Ontario"
what is the least amount of milk cattle in ontario
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER, province VARCHAR)
SELECT COUNT(draws) FROM table_name_94 WHERE losses > 5 AND club = "mortlake"
How many draws did Mortlake have when the losses were more than 5?
CREATE TABLE table_name_94 (draws VARCHAR, losses VARCHAR, club VARCHAR)
SELECT prize FROM table_name_37 WHERE runner_up = "simon ehne" AND winner = "david tighe"
What is Prize, when Runner-Up is "Simon Ehne", and when Winner is "David Tighe"?
CREATE TABLE table_name_37 (prize VARCHAR, runner_up VARCHAR, winner VARCHAR)
SELECT match_points FROM table_name_6 WHERE lost = "18" AND bonus_points = "11"
What is the amount of match points for a club that lost 18 and has 11 bonus points?
CREATE TABLE table_name_6 (match_points VARCHAR, lost VARCHAR, bonus_points VARCHAR)
SELECT epicentre__lat, _s_ FROM table_25643046_1 WHERE origin_time = "17:09"
What was the epicenter latitude for the quake that started at 17:09?
CREATE TABLE table_25643046_1 (epicentre__lat VARCHAR, _s_ VARCHAR, origin_time VARCHAR)
SELECT SUM(tries_against) FROM table_name_91 WHERE points_against = 95 AND tries_for > 20
What Tries against that have a Points against of 95 and Tries for larger than 20?
CREATE TABLE table_name_91 (tries_against INTEGER, points_against VARCHAR, tries_for VARCHAR)
SELECT Giant AS slalom FROM table_name_29 WHERE season = 1997
Which Giant Slalom was obtained in the 1997 season?
CREATE TABLE table_name_29 (Giant VARCHAR, season VARCHAR)
SELECT chinese__traditional_ FROM table_name_54 WHERE label = "rock records" AND english_title = "grown up overnight"
What traditional Chinese name would the Rock Records release Grown up Overnight be given?
CREATE TABLE table_name_54 (chinese__traditional_ VARCHAR, label VARCHAR, english_title VARCHAR)
SELECT first_season FROM table_1096793_1 WHERE last_title = "2012"
What was the first season of the club who last won a title in 2012?
CREATE TABLE table_1096793_1 (first_season VARCHAR, last_title VARCHAR)
SELECT COUNT(gold_medals) FROM table_name_3 WHERE ensemble = "mandarins" AND bronze_medals > 1
When the Mandarins won more than 1 bronze medals, how many gold medals did they win?
CREATE TABLE table_name_3 (gold_medals VARCHAR, ensemble VARCHAR, bronze_medals VARCHAR)
SELECT COUNT(successor) FROM table_1446600_4 WHERE district = "Georgia 2nd"
How many successors are from the georgia 2nd district?
CREATE TABLE table_1446600_4 (successor VARCHAR, district VARCHAR)
SELECT episode FROM table_1429629_1 WHERE run_time = "24:01"
What are all the episodes with an episode run time of 24:01?
CREATE TABLE table_1429629_1 (episode VARCHAR, run_time VARCHAR)
SELECT margin FROM table_11570261_1 WHERE runner_s__up = "Phil Mickelson"
what's the margin where runner(s)-up is phil mickelson
CREATE TABLE table_11570261_1 (margin VARCHAR, runner_s__up VARCHAR)
SELECT driver_s_ FROM table_1266602_2 WHERE team = "Phil Parsons Racing"
Who drove for Phil Parsons Racing team?
CREATE TABLE table_1266602_2 (driver_s_ VARCHAR, team VARCHAR)
SELECT date FROM table_name_70 WHERE site = "memorial stadium • minneapolis, mn" AND attendance = "53,192"
what is the date when the site is memorial stadium • minneapolis, mn, and the Attendance is 53,192?
CREATE TABLE table_name_70 (date VARCHAR, site VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_52 WHERE score = "3-2"
Which date had a score of 3-2?
CREATE TABLE table_name_52 (date VARCHAR, score VARCHAR)
SELECT MIN(result) FROM table_name_73 WHERE location = "birmingham" AND rank > 5
What is the smallest Result with a Location of birmingham, and Rank larger than 5?
CREATE TABLE table_name_73 (result INTEGER, location VARCHAR, rank VARCHAR)
SELECT AVG(top_5) FROM table_name_80 WHERE tournament = "totals" AND top_25 > 4
what is the top-5 when the tournament is totals and the top-25 is more than 4?
CREATE TABLE table_name_80 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT AVG(total) FROM table_name_66 WHERE player = "dave stockton"
What is the average total for Dave Stockton?
CREATE TABLE table_name_66 (total INTEGER, player VARCHAR)
SELECT score_in_the_final FROM table_name_96 WHERE date = "april 5, 1995"
On the final date of April 5, 1995, what was the score?
CREATE TABLE table_name_96 (score_in_the_final VARCHAR, date VARCHAR)
SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id
For each product which has problems, what are the number of problems and the product id?
CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_id VARCHAR)
SELECT modern_equivalent FROM table_160510_1 WHERE province = "Hanju"
What are the modern equivalents for the province of "hanju"?
CREATE TABLE table_160510_1 (modern_equivalent VARCHAR, province VARCHAR)
SELECT MAX(round) FROM table_name_60 WHERE college_junior_club_team__league_ = "minnesota junior stars (mjhl)"
What is the highest round for the Minnesota Junior Stars (Mjhl)?
CREATE TABLE table_name_60 (round INTEGER, college_junior_club_team__league_ VARCHAR)
SELECT position FROM table_name_7 WHERE height = "188cm"
What is the Position of the player with a Height off 188cm?
CREATE TABLE table_name_7 (position VARCHAR, height VARCHAR)
SELECT mlb_draft FROM table_name_80 WHERE player = "shaun boyd"
What MLB draft has Shaun Boyd?
CREATE TABLE table_name_80 (mlb_draft VARCHAR, player VARCHAR)
SELECT away_team FROM table_name_9 WHERE home_team = "wycombe wanderers"
What is the Away team when the home team was wycombe wanderers?
CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR)
SELECT updated_in_past_30_days FROM table_name_93 WHERE registration = "open to people 13 and over"
What is Updated In Past 30 Days, when Registration is "Open to people 13 and over"?
CREATE TABLE table_name_93 (updated_in_past_30_days VARCHAR, registration VARCHAR)
SELECT COUNT(grid) FROM table_name_60 WHERE laps = 52
Tell me the total number of grid for laps of 52
CREATE TABLE table_name_60 (grid VARCHAR, laps VARCHAR)