answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MIN(number_of_dances) FROM table_name_93 WHERE rank_by_average > 4 AND place = 8
CREATE TABLE table_name_93 (number_of_dances INTEGER, rank_by_average VARCHAR, place VARCHAR)
What is the lowest number of dances with a rank larger than 4 and a place of 8?
SELECT MIN(number_of_dances) FROM table_name_83 WHERE place < 2 AND average < 27.5
CREATE TABLE table_name_83 (number_of_dances INTEGER, place VARCHAR, average VARCHAR)
What is the lowest number of dances with a less than 2 place and an average smaller than 27.5?
SELECT SUM(diff) FROM table_name_38 WHERE played < 6
CREATE TABLE table_name_38 (diff INTEGER, played INTEGER)
What is the total difference for teams that played less than 6 games?
SELECT MAX(played) FROM table_name_52 WHERE lost > 5 AND against = 228
CREATE TABLE table_name_52 (played INTEGER, lost VARCHAR, against VARCHAR)
What is the highest number of games played for teams that lost over 5 games and had an against total of 228?
SELECT COUNT(lost) FROM table_name_65 WHERE points < 4 AND against > 340
CREATE TABLE table_name_65 (lost VARCHAR, points VARCHAR, against VARCHAR)
How many games lost for team(s) with less than 4 paints and against total of over 340?
SELECT week FROM table_name_34 WHERE attendance = "24,242"
CREATE TABLE table_name_34 (week VARCHAR, attendance VARCHAR)
What week was the game that had an attendance of 24,242?
SELECT attendance FROM table_name_8 WHERE result = "l 35–14"
CREATE TABLE table_name_8 (attendance VARCHAR, result VARCHAR)
What was the attendance of the game that had a score of l 35–14?
SELECT date FROM table_name_98 WHERE week < 10 AND attendance = "38,865"
CREATE TABLE table_name_98 (date VARCHAR, week VARCHAR, attendance VARCHAR)
When was the pre-Week 10 game that had an attendance of over 38,865?
SELECT location FROM table_name_26 WHERE ppv_buyrate = "775,000"
CREATE TABLE table_name_26 (location VARCHAR, ppv_buyrate VARCHAR)
Which Location has a PPV Buyrate of 775,000?
SELECT venue FROM table_name_62 WHERE away_team = "geelong"
CREATE TABLE table_name_62 (venue VARCHAR, away_team VARCHAR)
Where did Geelong play as the away team?
SELECT away_team AS score FROM table_name_23 WHERE away_team = "hawthorn"
CREATE TABLE table_name_23 (away_team VARCHAR)
What was the away team's score against Hawthorn?
SELECT away_team AS score FROM table_name_33 WHERE home_team = "fitzroy"
CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR)
When Fitzroy was the home team, what was the away team's score?
SELECT MAX(crowd) FROM table_name_73 WHERE venue = "arden street oval"
CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR)
How big was the largest crowd recorded at the Arden Street Oval venue?
SELECT MIN(attendance) FROM table_name_76 WHERE week = 1
CREATE TABLE table_name_76 (attendance INTEGER, week VARCHAR)
What is the smallest attendance in week 1?
SELECT MAX(week) FROM table_name_14 WHERE date = "august 9, 1968" AND attendance < 64 OFFSET 020
CREATE TABLE table_name_14 (week INTEGER, date VARCHAR, attendance VARCHAR)
What is the larges week for the date august 9, 1968 and less than 64,020 in attendance?
SELECT MIN(attendance) FROM table_name_45 WHERE date = "august 9, 1968"
CREATE TABLE table_name_45 (attendance INTEGER, date VARCHAR)
What is the smallest attendance number for august 9, 1968?
SELECT result FROM table_name_69 WHERE date = "august 30, 1968"
CREATE TABLE table_name_69 (result VARCHAR, date VARCHAR)
What was the result of the game on august 30, 1968?
SELECT class FROM table_name_13 WHERE call_sign = "w267an"
CREATE TABLE table_name_13 (class VARCHAR, call_sign VARCHAR)
What is the class of the w267an call sign?
SELECT MIN(erp_w) FROM table_name_54 WHERE facility_id = 67829
CREATE TABLE table_name_54 (erp_w INTEGER, facility_id VARCHAR)
What is the lowest ERP W of the 67829 Facility ID?
SELECT fcc_info FROM table_name_52 WHERE frequency_mhz = 101.3 AND erp_w > 10 AND facility_id < 87027
CREATE TABLE table_name_52 (fcc_info VARCHAR, facility_id VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
What is the FCC info for the call sign with a frequency MHz of 101.3, a ERP W over 10, and a Facility ID smaller than 87027?
SELECT AVG(off_reb) FROM table_name_29 WHERE ftm_fta = "16-17" AND steals < 8
CREATE TABLE table_name_29 (off_reb INTEGER, ftm_fta VARCHAR, steals VARCHAR)
What was the average of the Off Reb with steals less than 8 and FTM-FTA of 16-17?
SELECT song FROM table_name_86 WHERE release_info = "heavenly (hvn152)"
CREATE TABLE table_name_86 (song VARCHAR, release_info VARCHAR)
Which song released on heavenly (hvn152)?
SELECT album FROM table_name_56 WHERE release_info = "heavenly (hvn95)"
CREATE TABLE table_name_56 (album VARCHAR, release_info VARCHAR)
Which album had a release of heavenly (hvn95)?
SELECT COUNT(round) FROM table_name_8 WHERE college = "florida state"
CREATE TABLE table_name_8 (round VARCHAR, college VARCHAR)
What is the sum of all the rounds when a Florida State player was drafted?
SELECT AVG(round) FROM table_name_41 WHERE position = "safety" AND overall > 89
CREATE TABLE table_name_41 (round INTEGER, position VARCHAR, overall VARCHAR)
What is the average round in which a Safety with an overall rank higher than 89 was drafted?
SELECT venue FROM table_name_18 WHERE silver = "united states" AND year = 2010
CREATE TABLE table_name_18 (venue VARCHAR, silver VARCHAR, year VARCHAR)
Where was 2010 tournament where the United States received the silver?
SELECT venue FROM table_name_22 WHERE bronze = "finland" AND silver = "united states"
CREATE TABLE table_name_22 (venue VARCHAR, bronze VARCHAR, silver VARCHAR)
Where was the tournament where Finland received the bronze and the United States received the silver?
SELECT gold FROM table_name_58 WHERE silver = "czech republic" AND venue = "bratislava"
CREATE TABLE table_name_58 (gold VARCHAR, silver VARCHAR, venue VARCHAR)
Who received the gold at the tournament at bratislava where the Czech Republic received the silver?
SELECT venue FROM table_name_40 WHERE year > 1991 AND bronze = "czech republic" AND silver = "russia"
CREATE TABLE table_name_40 (venue VARCHAR, silver VARCHAR, year VARCHAR, bronze VARCHAR)
Where was the post 1991 tournament where the Czech Republic received the bronze and Russia received the silver?
SELECT away_team FROM table_name_99 WHERE venue = "kardinia park"
CREATE TABLE table_name_99 (away_team VARCHAR, venue VARCHAR)
Who was the away team at the game at Kardinia Park?
SELECT MIN(crowd) FROM table_name_83 WHERE away_team = "melbourne"
CREATE TABLE table_name_83 (crowd INTEGER, away_team VARCHAR)
What was the smallest crowd for a Melbourne away game?
SELECT date FROM table_name_55 WHERE week = 8
CREATE TABLE table_name_55 (date VARCHAR, week VARCHAR)
What day did the team play on week 8?
SELECT AVG(crowd) FROM table_name_28 WHERE venue = "corio oval"
CREATE TABLE table_name_28 (crowd INTEGER, venue VARCHAR)
What was the average size of the crowd for matches held at Corio Oval?
SELECT home_team FROM table_name_68 WHERE away_team = "st kilda"
CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR)
What home team played against St Kilda?
SELECT venue FROM table_name_87 WHERE home_team = "south melbourne"
CREATE TABLE table_name_87 (venue VARCHAR, home_team VARCHAR)
At what venue was South Melbourne the home team?
SELECT home_team AS score FROM table_name_24 WHERE home_team = "hawthorn"
CREATE TABLE table_name_24 (home_team VARCHAR)
What was Hawthorn's score when they were the home team?
SELECT home_team AS score FROM table_name_96 WHERE venue = "lake oval"
CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR)
What was the home team's score when they played at Lake Oval?
SELECT income_inequality_1994_2011__latest_available_ FROM table_name_91 WHERE population_2011 = "21,315,135"
CREATE TABLE table_name_91 (income_inequality_1994_2011__latest_available_ VARCHAR, population_2011 VARCHAR)
What is the latest available income inequality for the country with a population of 21,315,135?
SELECT ief_2011 FROM table_name_96 WHERE fsi_2012 = "99.2"
CREATE TABLE table_name_96 (ief_2011 VARCHAR, fsi_2012 VARCHAR)
What is the IEF 2011 of the country with an FSI 2012 of 99.2?
SELECT income_inequality_1994_2011__latest_available_ FROM table_name_15 WHERE country = "seychelles"
CREATE TABLE table_name_15 (income_inequality_1994_2011__latest_available_ VARCHAR, country VARCHAR)
What is the current income inequality for the country of Seychelles?
SELECT hdi_2011 FROM table_name_54 WHERE di_2011 = "7.63"
CREATE TABLE table_name_54 (hdi_2011 VARCHAR, di_2011 VARCHAR)
What is the HDI 2011 of the country with a DI 2011 of 7.63?
SELECT country FROM table_name_46 WHERE ief_2011 = "45.3"
CREATE TABLE table_name_46 (country VARCHAR, ief_2011 VARCHAR)
What country has an IEF 2011 of 45.3?
SELECT date FROM table_name_79 WHERE away_team = "south melbourne"
CREATE TABLE table_name_79 (date VARCHAR, away_team VARCHAR)
What date did South Melbourne play as the Away team?
SELECT venue FROM table_name_95 WHERE home_team = "essendon"
CREATE TABLE table_name_95 (venue VARCHAR, home_team VARCHAR)
Where did Essendon play as the home team?
SELECT position FROM table_name_54 WHERE school_country = "arkansas"
CREATE TABLE table_name_54 (position VARCHAR, school_country VARCHAR)
What position does the player from arkansas play?
SELECT away_team FROM table_name_90 WHERE venue = "glenferrie oval"
CREATE TABLE table_name_90 (away_team VARCHAR, venue VARCHAR)
Who is the away side at glenferrie oval?
SELECT away_team AS score FROM table_name_3 WHERE home_team = "richmond"
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
What is the away side's score when richmond is at home?
SELECT crowd FROM table_name_43 WHERE home_team = "collingwood"
CREATE TABLE table_name_43 (crowd VARCHAR, home_team VARCHAR)
What was the crowd size at Collingwood's match?
SELECT crowd FROM table_name_51 WHERE venue = "arden street oval"
CREATE TABLE table_name_51 (crowd VARCHAR, venue VARCHAR)
What was the crowd size at Arden Street Oval?
SELECT status_of_match FROM table_name_70 WHERE fixture = "scotland v northern ireland"
CREATE TABLE table_name_70 (status_of_match VARCHAR, fixture VARCHAR)
What is the status of the match between Scotland v Northern Ireland?
SELECT AVG(week) FROM table_name_54 WHERE date = "august 10, 1956"
CREATE TABLE table_name_54 (week INTEGER, date VARCHAR)
In what week was the game on August 10, 1956 played?
SELECT attendance FROM table_name_9 WHERE week = 6
CREATE TABLE table_name_9 (attendance VARCHAR, week VARCHAR)
What was the attendance of the game in week 6?
SELECT MAX(week) FROM table_name_10 WHERE date = "august 24, 1956" AND attendance > 40 OFFSET 175
CREATE TABLE table_name_10 (week INTEGER, date VARCHAR, attendance VARCHAR)
In what week was the game on August 24, 1956 played in front of 40,175 fans?
SELECT signal_quality FROM table_name_96 WHERE station_call_letters = "kcal-dt"
CREATE TABLE table_name_96 (signal_quality VARCHAR, station_call_letters VARCHAR)
What signal quality does the KCAL-DT channel have?
SELECT original_channel FROM table_name_39 WHERE b_mountain_channel = "9"
CREATE TABLE table_name_39 (original_channel VARCHAR, b_mountain_channel VARCHAR)
What original channel is associated with B Mountain Channel 9?
SELECT b_mountain_channel FROM table_name_75 WHERE station_call_letters = "k41go"
CREATE TABLE table_name_75 (b_mountain_channel VARCHAR, station_call_letters VARCHAR)
What B Mountain Channel has station call letters of k41go?
SELECT laurel_mountain_channel FROM table_name_51 WHERE b_mountain_channel = "7"
CREATE TABLE table_name_51 (laurel_mountain_channel VARCHAR, b_mountain_channel VARCHAR)
What Laurel Mountain Channel is associated with B Mountain Channel of 7?
SELECT translator_call_letters FROM table_name_94 WHERE station_call_letters = "kcop-dt"
CREATE TABLE table_name_94 (translator_call_letters VARCHAR, station_call_letters VARCHAR)
What are the translator call letters for station call letters of KCOP-DT?
SELECT date FROM table_name_2 WHERE home_team = "fitzroy"
CREATE TABLE table_name_2 (date VARCHAR, home_team VARCHAR)
What date was fitzroy the home team?
SELECT away_team AS score FROM table_name_75 WHERE home_team = "richmond"
CREATE TABLE table_name_75 (away_team VARCHAR, home_team VARCHAR)
What was the score for the away team when the home team was richmond?
SELECT venue FROM table_name_57 WHERE home_team = "footscray"
CREATE TABLE table_name_57 (venue VARCHAR, home_team VARCHAR)
What is the venue where the home team is Footscray?
SELECT venue FROM table_name_96 WHERE date = "1 june 1929" AND away_team = "richmond"
CREATE TABLE table_name_96 (venue VARCHAR, date VARCHAR, away_team VARCHAR)
What is the venue for the game on 1 June 1929 where Richmond was the away team?
SELECT speed FROM table_name_24 WHERE points = 1
CREATE TABLE table_name_24 (speed VARCHAR, points VARCHAR)
What was the speed of the rider that earned 1 point?
SELECT away_team FROM table_name_22 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_22 (away_team VARCHAR, venue VARCHAR)
What away team is playing at the Brunswick Street Oval Venue?
SELECT date FROM table_name_32 WHERE home_team = "richmond"
CREATE TABLE table_name_32 (date VARCHAR, home_team VARCHAR)
What date does the Home team of Richmond have?
SELECT home_team FROM table_name_62 WHERE date = "20 april 1957" AND venue = "victoria park"
CREATE TABLE table_name_62 (home_team VARCHAR, date VARCHAR, venue VARCHAR)
Who is the home team at Victoria Park on 20 April 1957?
SELECT municipality FROM table_name_58 WHERE station = "harmon cove"
CREATE TABLE table_name_58 (municipality VARCHAR, station VARCHAR)
What municipality is the Harmon Cove station located in?
SELECT municipality FROM table_name_53 WHERE station = "benson street"
CREATE TABLE table_name_53 (municipality VARCHAR, station VARCHAR)
What municipality is the Benson Street station located in?
SELECT date FROM table_name_99 WHERE partner = "corrado barazzutti"
CREATE TABLE table_name_99 (date VARCHAR, partner VARCHAR)
What date shows corrado barazzutti's partner?
SELECT date FROM table_name_74 WHERE outcome = "runner-up" AND opponents_in_the_final = "tom gullikson butch walts"
CREATE TABLE table_name_74 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)
Which date has the tom gullikson butch walts final, and who was the runner-up?
SELECT home_team FROM table_name_96 WHERE away_team = "essendon"
CREATE TABLE table_name_96 (home_team VARCHAR, away_team VARCHAR)
Who is the home team of the game against Essendon?
SELECT color_commentator_s_ FROM table_name_70 WHERE network = "espn"
CREATE TABLE table_name_70 (color_commentator_s_ VARCHAR, network VARCHAR)
Who is the color commentator for ESPN from 1990 to 1992?
SELECT sideline_reporter_s_ FROM table_name_8 WHERE year < 1993
CREATE TABLE table_name_8 (sideline_reporter_s_ VARCHAR, year INTEGER)
Who was the sideline reporter prior to 1993?
SELECT play_by_play FROM table_name_61 WHERE network = "abc" AND year > 1998
CREATE TABLE table_name_61 (play_by_play VARCHAR, network VARCHAR, year VARCHAR)
Who was the play by play commentator for ABC after 1998?
SELECT MIN(year) FROM table_name_99 WHERE play_by_play = "al michaels" AND sideline_reporter_s_ = "lesley visser and dan fouts"
CREATE TABLE table_name_99 (year INTEGER, play_by_play VARCHAR, sideline_reporter_s_ VARCHAR)
What's the earliest year that Al Michaels was the play-by-play commentator, in which Lesley Visser and Dan Fouts were also sideline reporters?
SELECT COUNT(year) FROM table_name_61 WHERE color_commentator_s_ = "frank gifford and dan dierdorf"
CREATE TABLE table_name_61 (year VARCHAR, color_commentator_s_ VARCHAR)
For how many years combined were Frank Gifford and Dan Dierdorf color commentators?
SELECT sideline_reporter_s_ FROM table_name_17 WHERE color_commentator_s_ = "frank gifford and dan dierdorf"
CREATE TABLE table_name_17 (sideline_reporter_s_ VARCHAR, color_commentator_s_ VARCHAR)
Which sideline reporters worked alongside Frank Gifford and Dan Dierdorf?
SELECT withdrawn FROM table_name_49 WHERE name = "lundy"
CREATE TABLE table_name_49 (withdrawn VARCHAR, name VARCHAR)
When was the Lundy withdrawn?
SELECT whenbuilt FROM table_name_28 WHERE name = "fighter command"
CREATE TABLE table_name_28 (whenbuilt VARCHAR, name VARCHAR)
When was the locomotive named fighter command built?
SELECT MAX(total) FROM table_name_42 WHERE rank = "2" AND silver < 6
CREATE TABLE table_name_42 (total INTEGER, rank VARCHAR, silver VARCHAR)
Which country has a rand of 2 and a silver less than 6?
SELECT MIN(total) FROM table_name_46 WHERE gold = 3 AND silver < 3
CREATE TABLE table_name_46 (total INTEGER, gold VARCHAR, silver VARCHAR)
What is the lowest total of medals that has a gold of 3 and a silver less than 3?
SELECT home_team AS score FROM table_name_61 WHERE venue = "mcg"
CREATE TABLE table_name_61 (home_team VARCHAR, venue VARCHAR)
What was the home team score for the game played at MCG?
SELECT away_team FROM table_name_4 WHERE venue = "windy hill"
CREATE TABLE table_name_4 (away_team VARCHAR, venue VARCHAR)
For the game played at Windy Hill, who was the away team?
SELECT venue FROM table_name_7 WHERE away_team = "north melbourne"
CREATE TABLE table_name_7 (venue VARCHAR, away_team VARCHAR)
For the game where the away team was North Melbourne, what was the venue?
SELECT weight FROM table_name_45 WHERE name = "billy miller category:articles with hcards"
CREATE TABLE table_name_45 (weight VARCHAR, name VARCHAR)
What is the Weight for the Name Billy Miller Category:Articles with hcards?
SELECT 2012 AS _club FROM table_name_55 WHERE name = "billy miller category:articles with hcards"
CREATE TABLE table_name_55 (name VARCHAR)
What is the 2012 club for the Billy Miller Category:Articles with hcards (Name)?
SELECT MIN(total) FROM table_name_87 WHERE nation = "china"
CREATE TABLE table_name_87 (total INTEGER, nation VARCHAR)
How many medals did China receive?
SELECT AVG(_number_of_candidates) FROM table_name_36 WHERE _percentage_of_popular_vote = "41.37%"
CREATE TABLE table_name_36 (_number_of_candidates INTEGER, _percentage_of_popular_vote VARCHAR)
What is the # of candidates that have a popular vote of 41.37%?
SELECT AVG(_number_of_candidates) FROM table_name_81 WHERE result = "liberal majority" AND _number_of_seats_won = 51 AND general_election > 2008
CREATE TABLE table_name_81 (_number_of_candidates INTEGER, general_election VARCHAR, result VARCHAR, _number_of_seats_won VARCHAR)
What is the # of candidates of liberal majority with 51 wins and larger number of 2008 in general elections?
SELECT COUNT(general_election) FROM table_name_95 WHERE _number_of_seats_won < 23 AND _number_of_candidates > 108
CREATE TABLE table_name_95 (general_election VARCHAR, _number_of_seats_won VARCHAR, _number_of_candidates VARCHAR)
How many general elections that have won smaller than 23 with candidates larger than 108?
SELECT venue FROM table_name_52 WHERE away_team = "melbourne"
CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR)
What venue did melbourne play at as the away team?
SELECT home_team AS score FROM table_name_25 WHERE home_team = "essendon"
CREATE TABLE table_name_25 (home_team VARCHAR)
What was the essendon score when they were at home?
SELECT venue FROM table_name_60 WHERE away_team = "melbourne"
CREATE TABLE table_name_60 (venue VARCHAR, away_team VARCHAR)
What venue did melbourne play at as the away team?
SELECT years FROM table_name_24 WHERE goals = 82
CREATE TABLE table_name_24 (years VARCHAR, goals VARCHAR)
What Years have a Goal of 82?
SELECT COUNT(overall) FROM table_name_26 WHERE position = "safety" AND round > 1
CREATE TABLE table_name_26 (overall VARCHAR, position VARCHAR, round VARCHAR)
What is the total of overall values with a safety position in a round greater than 1?
SELECT AVG(overall) FROM table_name_32 WHERE round < 4 AND college = "georgia"
CREATE TABLE table_name_32 (overall INTEGER, round VARCHAR, college VARCHAR)
What is the average overall value for a round less than 4 associated with the College of Georgia?
SELECT AVG(attendance) FROM table_name_58 WHERE week > 16
CREATE TABLE table_name_58 (attendance INTEGER, week INTEGER)
What was the average attendance in weeks after 16?
SELECT MAX(killed) FROM table_name_48 WHERE incident_no = "14"
CREATE TABLE table_name_48 (killed INTEGER, incident_no VARCHAR)
What is the highest number killed in incident #14?
SELECT MAX(crowd) FROM table_name_85 WHERE venue = "arden street oval"
CREATE TABLE table_name_85 (crowd INTEGER, venue VARCHAR)
What was the largest crowd at Arden Street Oval?
SELECT home_team AS score FROM table_name_50 WHERE venue = "arden street oval"
CREATE TABLE table_name_50 (home_team VARCHAR, venue VARCHAR)
What was the home teams score at Arden Street Oval?