answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT injured FROM table_name_16 WHERE country = "venezuela"
CREATE TABLE table_name_16 (injured VARCHAR, country VARCHAR)
What was the injured entry for Venezuela?
SELECT ages FROM table_name_48 WHERE dance = "cha-cha-cha" AND pair = "mitchell & jessica"
CREATE TABLE table_name_48 (ages VARCHAR, dance VARCHAR, pair VARCHAR)
How old were Mitchell & Jessica when they danced the Cha-Cha-Cha?
SELECT pair FROM table_name_2 WHERE dance = "cha-cha-cha" AND date = "november 18, 2008"
CREATE TABLE table_name_2 (pair VARCHAR, dance VARCHAR, date VARCHAR)
Who danced the Cha-Cha-Cha on November 18, 2008?
SELECT pair FROM table_name_14 WHERE date = "october 14, 2008" AND dance = "samba"
CREATE TABLE table_name_14 (pair VARCHAR, date VARCHAR, dance VARCHAR)
Who danced the Samba on October 14, 2008?
SELECT AVG(pick) FROM table_name_38 WHERE nationality = "canada" AND year < 1974 AND player = "yvon bouillon"
CREATE TABLE table_name_38 (pick INTEGER, player VARCHAR, nationality VARCHAR, year VARCHAR)
What was the pic for Canada for player Yvon Bouillon earlier than 1974?
SELECT competition FROM table_name_33 WHERE score = "3-0"
CREATE TABLE table_name_33 (competition VARCHAR, score VARCHAR)
What was the competition when the score was 3-0?
SELECT position FROM table_name_18 WHERE round < 7 AND name = "akin ayodele"
CREATE TABLE table_name_18 (position VARCHAR, round VARCHAR, name VARCHAR)
Akin Ayodele drafted before round 7 plays what position?
SELECT SUM(overall) FROM table_name_60 WHERE round < 4 AND college = "tennessee" AND pick__number > 9
CREATE TABLE table_name_60 (overall INTEGER, pick__number VARCHAR, round VARCHAR, college VARCHAR)
What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9?
SELECT AVG(pick__number) FROM table_name_40 WHERE round < 7 AND college = "tennessee"
CREATE TABLE table_name_40 (pick__number INTEGER, round VARCHAR, college VARCHAR)
What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee?
SELECT visitor FROM table_name_48 WHERE home = "chicago black hawks" AND record = "1-1"
CREATE TABLE table_name_48 (visitor VARCHAR, home VARCHAR, record VARCHAR)
What visiting team played at the home of the Chicago Black Hawks with a record of 1-1?
SELECT home FROM table_name_7 WHERE record = "4-3"
CREATE TABLE table_name_7 (home VARCHAR, record VARCHAR)
What home team has a record of 4-3?
SELECT visitor FROM table_name_49 WHERE record = "4-3"
CREATE TABLE table_name_49 (visitor VARCHAR, record VARCHAR)
What visiting team has a record of 4-3?
SELECT MAX(league_cup) FROM table_name_99 WHERE championship < 3 AND total < 2 AND fa_cup > 0
CREATE TABLE table_name_99 (league_cup INTEGER, fa_cup VARCHAR, championship VARCHAR, total VARCHAR)
What is the highest league up with less than 3 championships, a total less than 2, and a FA cup larger than 0?
SELECT AVG(total) FROM table_name_59 WHERE championship < 1
CREATE TABLE table_name_59 (total INTEGER, championship INTEGER)
What is the average total for less than 1 championship?
SELECT COUNT(total) FROM table_name_9 WHERE championship < 2 AND league_cup > 1
CREATE TABLE table_name_9 (total VARCHAR, championship VARCHAR, league_cup VARCHAR)
What i the total number of championships less than 2, and a league cup larger than 1?
SELECT home_team FROM table_name_10 WHERE score = "2–1" AND away_team = "telford united"
CREATE TABLE table_name_10 (home_team VARCHAR, score VARCHAR, away_team VARCHAR)
What home team has a score of 2–1, when the away team was Telford United?
SELECT score FROM table_name_12 WHERE away_team = "wrexham"
CREATE TABLE table_name_12 (score VARCHAR, away_team VARCHAR)
What was the score when the way team was Wrexham?
SELECT home_team FROM table_name_32 WHERE tie_no = "1"
CREATE TABLE table_name_32 (home_team VARCHAR, tie_no VARCHAR)
What is the home team when the Tie no is 1?
SELECT score FROM table_name_59 WHERE player = "eduardo romero"
CREATE TABLE table_name_59 (score VARCHAR, player VARCHAR)
What was Eduardo Romero's score?
SELECT place FROM table_name_26 WHERE score = 67 - 71 - 70 = 208
CREATE TABLE table_name_26 (place VARCHAR, score VARCHAR)
Where was the score 67-71-70=208?
SELECT score FROM table_name_26 WHERE country = "united states" AND place = "t9" AND player = "fred couples"
CREATE TABLE table_name_26 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
What was the score when Fred Couples played in the United States and placed t9?
SELECT country FROM table_name_15 WHERE player = "gary koch"
CREATE TABLE table_name_15 (country VARCHAR, player VARCHAR)
What country does Gary Koch play for?
SELECT player FROM table_name_7 WHERE country = "zimbabwe"
CREATE TABLE table_name_7 (player VARCHAR, country VARCHAR)
Who plays for Zimbabwe?
SELECT to_par FROM table_name_60 WHERE place = "4"
CREATE TABLE table_name_60 (to_par VARCHAR, place VARCHAR)
What was the To par when the place was 4?
SELECT current_club FROM table_name_45 WHERE position = "sg/sf" AND height < 1.96
CREATE TABLE table_name_45 (current_club VARCHAR, position VARCHAR, height VARCHAR)
What is the current club with a position of sg/sf and a height less than 1.96?
SELECT year_born__age_ FROM table_name_18 WHERE player = "rowan barrett"
CREATE TABLE table_name_18 (year_born__age_ VARCHAR, player VARCHAR)
What year was Rowan Barrett born?
SELECT MIN(height) FROM table_name_37 WHERE player = "rans brempong"
CREATE TABLE table_name_37 (height INTEGER, player VARCHAR)
What is the lowest height for Rans Brempong?
SELECT date FROM table_name_48 WHERE result = "0–3"
CREATE TABLE table_name_48 (date VARCHAR, result VARCHAR)
When was the result 0–3?
SELECT result FROM table_name_95 WHERE date = "9 september 2009"
CREATE TABLE table_name_95 (result VARCHAR, date VARCHAR)
What is the result of the match on 9 September 2009?
SELECT name FROM table_name_34 WHERE date_from = "13 august 2008"
CREATE TABLE table_name_34 (name VARCHAR, date_from VARCHAR)
What is the name of the player that was loaned out on 13 August 2008 ?
SELECT date_to FROM table_name_12 WHERE name = "febian brandy" AND date_from = "2 february 2009"
CREATE TABLE table_name_12 (date_to VARCHAR, name VARCHAR, date_from VARCHAR)
When was febian brandy loaned out until, when was loaned out on 2 february 2009.?
SELECT date_to FROM table_name_78 WHERE name = "james chester"
CREATE TABLE table_name_78 (date_to VARCHAR, name VARCHAR)
When was james chester loaned out until ?
SELECT moving_to FROM table_name_65 WHERE date_from = "27 november 2008"
CREATE TABLE table_name_65 (moving_to VARCHAR, date_from VARCHAR)
Where did the player loaned out on 27 november 2008 move to ?
SELECT date_to FROM table_name_90 WHERE name = "ron-robert zieler"
CREATE TABLE table_name_90 (date_to VARCHAR, name VARCHAR)
When was ron-robert zieler loaned out until ?
SELECT moving_to FROM table_name_18 WHERE date_to = "30 june 2009" AND pos = "mf"
CREATE TABLE table_name_18 (moving_to VARCHAR, date_to VARCHAR, pos VARCHAR)
Where did the player in Pos mf, move to until 30 june 2009 ?
SELECT name FROM table_name_87 WHERE replacement = "michael skibbe"
CREATE TABLE table_name_87 (name VARCHAR, replacement VARCHAR)
What is the name of the manager who was replaced by michael skibbe?
SELECT club FROM table_name_22 WHERE replacement = "aykut kocaman"
CREATE TABLE table_name_22 (club VARCHAR, replacement VARCHAR)
What is the club the used aykut kocaman as the replacement?
SELECT date_of_appointment FROM table_name_80 WHERE name = "nejat biyedić"
CREATE TABLE table_name_80 (date_of_appointment VARCHAR, name VARCHAR)
What is the date of appointment of nejat biyedić?
SELECT date FROM table_name_75 WHERE location_attendance = "wachovia center"
CREATE TABLE table_name_75 (date VARCHAR, location_attendance VARCHAR)
When did they play at the wachovia center?
SELECT game FROM table_name_86 WHERE location_attendance = "amway arena"
CREATE TABLE table_name_86 (game VARCHAR, location_attendance VARCHAR)
What game number was played at amway arena?
SELECT COUNT(total) FROM table_name_18 WHERE silver = 1 AND rank < 2
CREATE TABLE table_name_18 (total VARCHAR, silver VARCHAR, rank VARCHAR)
How many medals were won total for the country that won 1 silver and was ranked 2 or lower?
SELECT COUNT(silver) FROM table_name_65 WHERE gold > 0 AND rank > 1 AND total < 4
CREATE TABLE table_name_65 (silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR)
How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?
SELECT SUM(bronze) FROM table_name_25 WHERE total > 5
CREATE TABLE table_name_25 (bronze INTEGER, total INTEGER)
How many bronzes were won by the country with a total higher than 5?
SELECT SUM(bronze) FROM table_name_34 WHERE rank > 3 AND silver > 0
CREATE TABLE table_name_34 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0?
SELECT MAX(other) FROM table_name_28 WHERE us_open_cup > 0 AND concacaf = 0
CREATE TABLE table_name_28 (other INTEGER, us_open_cup VARCHAR, concacaf VARCHAR)
What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0?
SELECT subregion FROM table_name_41 WHERE no_p = 4 AND pop_area__1_km²_ = 534
CREATE TABLE table_name_41 (subregion VARCHAR, no_p VARCHAR, pop_area__1_km²_ VARCHAR)
Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534?
SELECT AVG(pop_area__1_km²_) FROM table_name_84 WHERE no_p > 1 AND name = "albergaria-a-velha"
CREATE TABLE table_name_84 (pop_area__1_km²_ INTEGER, no_p VARCHAR, name VARCHAR)
Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha?
SELECT MIN(area__km²_) FROM table_name_39 WHERE pop = 17 OFFSET 089
CREATE TABLE table_name_39 (area__km²_ INTEGER, pop VARCHAR)
Which Area (km²) is the lowest one that has a Population of 17,089?
SELECT home_team FROM table_name_68 WHERE tie_no = "replay" AND date = "4 february 1987" AND away_team = "luton town"
CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR)
Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?
SELECT away_team FROM table_name_51 WHERE date = "31 january 1987" AND home_team = "wimbledon"
CREATE TABLE table_name_51 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
Who was the away team on 31 January 1987 when the home team was Wimbledon?
SELECT height__ft_ FROM table_name_53 WHERE country = "macedonia"
CREATE TABLE table_name_53 (height__ft_ VARCHAR, country VARCHAR)
How high is Macedonia's highest point?
SELECT theme FROM table_name_96 WHERE winner = "dani"
CREATE TABLE table_name_96 (theme VARCHAR, winner VARCHAR)
What is the theme with dani as the winner?
SELECT notes FROM table_name_76 WHERE theme = "patience"
CREATE TABLE table_name_76 (notes VARCHAR, theme VARCHAR)
What are the notes of the patience theme?
SELECT MAX(round) FROM table_name_85 WHERE position = "(c)"
CREATE TABLE table_name_85 (round INTEGER, position VARCHAR)
what is the round when the position is (c)?
SELECT AVG(round) FROM table_name_3 WHERE player = "jake gardiner"
CREATE TABLE table_name_3 (round INTEGER, player VARCHAR)
what is the round for jake gardiner?
SELECT college_junior_club_team__league_ FROM table_name_27 WHERE round > 1 AND nationality = "canada" AND position = "(d)"
CREATE TABLE table_name_27 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR, nationality VARCHAR)
what is the college/junior/club team (league) when the round is higher than 1, the nationality is canada and the position is (d)?
SELECT position FROM table_name_13 WHERE round > 3 AND nationality = "united states" AND player = "nick pryor"
CREATE TABLE table_name_13 (position VARCHAR, player VARCHAR, round VARCHAR, nationality VARCHAR)
what is the position when the round is higher than 3, the nationality is united states and the player is nick pryor?
SELECT college_junior_club_team__league_ FROM table_name_52 WHERE position = "(c)" AND round > 2
CREATE TABLE table_name_52 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)
what is the college/junior/club team (league) when the position is (c) and the round is higher than 2?
SELECT MAX(byes) FROM table_name_38 WHERE south_west_dfl = "heathmere" AND wins > 11
CREATE TABLE table_name_38 (byes INTEGER, south_west_dfl VARCHAR, wins VARCHAR)
When the team Heathmere of the South West DFL won more than 11 games, what is the maximum byes?
SELECT MAX(losses) FROM table_name_9 WHERE draws > 0 AND against > 1401
CREATE TABLE table_name_9 (losses INTEGER, draws VARCHAR, against VARCHAR)
What is the most games lost when the against is greater than 1401, and the draws greater than 0?
SELECT MAX(draws) FROM table_name_52 WHERE against < 2514 AND byes < 0
CREATE TABLE table_name_52 (draws INTEGER, against VARCHAR, byes VARCHAR)
What is the maximum draws when less than 2514 is the against, and less than 0 byes?
SELECT AVG(wins) FROM table_name_83 WHERE losses = 17
CREATE TABLE table_name_83 (wins INTEGER, losses VARCHAR)
What is the wins average when 17 games were lost?
SELECT stadium FROM table_name_81 WHERE city = "debrecen"
CREATE TABLE table_name_81 (stadium VARCHAR, city VARCHAR)
What stadium is in the city of Debrecen?
SELECT SUM(silver) FROM table_name_69 WHERE rank = "5" AND bronze < 14
CREATE TABLE table_name_69 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
What is the number of silver when rank was 5, and a bronze was smaller than 14?
SELECT MAX(bronze) FROM table_name_92 WHERE silver = 0 AND total < 1
CREATE TABLE table_name_92 (bronze INTEGER, silver VARCHAR, total VARCHAR)
What is the highest bronze number when silver is 0, and the total is smaller than 1?
SELECT COUNT(total) FROM table_name_4 WHERE nation = "argentina" AND gold < 0
CREATE TABLE table_name_4 (total VARCHAR, nation VARCHAR, gold VARCHAR)
What is the total when the nation was Argentina, and a Goldwas smaller than 0?
SELECT nation FROM table_name_96 WHERE bronze < 7 AND gold > 0 AND total > 7 AND silver < 3
CREATE TABLE table_name_96 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR)
What is the nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3?
SELECT date FROM table_name_22 WHERE h___a = "a" AND league_position = "2nd" AND opponents = "manchester city"
CREATE TABLE table_name_22 (date VARCHAR, opponents VARCHAR, h___a VARCHAR, league_position VARCHAR)
What date was the game against manchester city when they had a league position of 2nd?
SELECT result_f___a FROM table_name_95 WHERE date = "6 march 1993"
CREATE TABLE table_name_95 (result_f___a VARCHAR, date VARCHAR)
What is the result F-A of the game on 6 march 1993?
SELECT result_f___a FROM table_name_93 WHERE date = "3 may 1993"
CREATE TABLE table_name_93 (result_f___a VARCHAR, date VARCHAR)
What is the result F-A of the game on 3 may 1993?
SELECT tie_no FROM table_name_32 WHERE date = "18 nov 1989" AND home_team = "doncaster rovers"
CREATE TABLE table_name_32 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR)
What is Tie no, when Date is "18 Nov 1989", and when Home Team is "Doncaster Rovers"?
SELECT score FROM table_name_43 WHERE away_team = "yeovil town"
CREATE TABLE table_name_43 (score VARCHAR, away_team VARCHAR)
What is Score, when Away Team is "Yeovil Town"?
SELECT home_team FROM table_name_46 WHERE tie_no = "27"
CREATE TABLE table_name_46 (home_team VARCHAR, tie_no VARCHAR)
What is Home Team, when Tie no is "27"?
SELECT date FROM table_name_97 WHERE tie_no = "37"
CREATE TABLE table_name_97 (date VARCHAR, tie_no VARCHAR)
What is Date, when Tie no is "37"?
SELECT home_team FROM table_name_85 WHERE date = "22 nov 1989" AND away_team = "bath city"
CREATE TABLE table_name_85 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"?
SELECT year FROM table_name_84 WHERE play_by_play = "don earle"
CREATE TABLE table_name_84 (year VARCHAR, play_by_play VARCHAR)
What year was the play-by-play for Don Earle?
SELECT to_par FROM table_name_92 WHERE score = 68 AND player = "tom kite"
CREATE TABLE table_name_92 (to_par VARCHAR, score VARCHAR, player VARCHAR)
What is Tom Kite with a Score of 68's To Par?
SELECT place FROM table_name_78 WHERE player = "tom kite"
CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR)
What is Tom Kite's Place?
SELECT televote_points FROM table_name_49 WHERE jury_points = "0" AND draw = 23
CREATE TABLE table_name_49 (televote_points VARCHAR, jury_points VARCHAR, draw VARCHAR)
What is the televote points for 0 jury points and 23 draws?
SELECT district FROM table_name_98 WHERE first_elected = 2000 AND party = "republican"
CREATE TABLE table_name_98 (district VARCHAR, first_elected VARCHAR, party VARCHAR)
What district was a republican first elected in 2000?
SELECT district FROM table_name_99 WHERE first_elected > 2000 AND incumbent = "russ carnahan"
CREATE TABLE table_name_99 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
In what district was incumbent Russ Carnahan elected after 2000?
SELECT venue FROM table_name_29 WHERE loser = "leicester city"
CREATE TABLE table_name_29 (venue VARCHAR, loser VARCHAR)
For which venue did Leicester City lose?
SELECT season FROM table_name_13 WHERE winner = "stoke city"
CREATE TABLE table_name_13 (season VARCHAR, winner VARCHAR)
What season did Stoke City win?
SELECT attendance FROM table_name_17 WHERE venue = "st andrew's"
CREATE TABLE table_name_17 (attendance VARCHAR, venue VARCHAR)
What was the attendance for St Andrew's?
SELECT season FROM table_name_5 WHERE winner = "wolverhampton wanderers"
CREATE TABLE table_name_5 (season VARCHAR, winner VARCHAR)
What season did Wolverhampton Wanderers win?
SELECT call_sign FROM table_name_23 WHERE erp_w = 75
CREATE TABLE table_name_23 (call_sign VARCHAR, erp_w VARCHAR)
Which Call sign has an ERP W of 75?
SELECT class FROM table_name_19 WHERE facility_id > 85076 AND call_sign = "k289au"
CREATE TABLE table_name_19 (class VARCHAR, facility_id VARCHAR, call_sign VARCHAR)
Which Class has a Facility ID greater than 85076 and a Call Sign of K289au?
SELECT year FROM table_name_77 WHERE nominee = "jack cole"
CREATE TABLE table_name_77 (year VARCHAR, nominee VARCHAR)
What year was jack cole nominated?
SELECT award_ceremony FROM table_name_10 WHERE nominee = "howard bay and patton campbell"
CREATE TABLE table_name_10 (award_ceremony VARCHAR, nominee VARCHAR)
What award ceremony was howard bay and patton campbell nominated?
SELECT visitor FROM table_name_13 WHERE date = "may 9"
CREATE TABLE table_name_13 (visitor VARCHAR, date VARCHAR)
What is Visitor, when Date is "May 9"?
SELECT score FROM table_name_79 WHERE home = "montreal canadiens" AND date = "may 16"
CREATE TABLE table_name_79 (score VARCHAR, home VARCHAR, date VARCHAR)
What is Score, when Home is "Montreal Canadiens", and when Date is "May 16"?
SELECT score FROM table_name_97 WHERE date = "may 11"
CREATE TABLE table_name_97 (score VARCHAR, date VARCHAR)
What is Score, when Date is "May 11"?
SELECT visitor FROM table_name_77 WHERE home = "chicago black hawks" AND date = "may 4"
CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR)
What is Visitor, when Home is "Chicago Black Hawks", and when Date is "May 4"?
SELECT score FROM table_name_95 WHERE record = "2-0"
CREATE TABLE table_name_95 (score VARCHAR, record VARCHAR)
What is Score, when Record is "2-0"?
SELECT tournament FROM table_name_70 WHERE date = "14 may"
CREATE TABLE table_name_70 (tournament VARCHAR, date VARCHAR)
Which tournament included the round played on 14 May?
SELECT round FROM table_name_91 WHERE date = "10 may"
CREATE TABLE table_name_91 (round VARCHAR, date VARCHAR)
Which round was played on 10 May?
SELECT language FROM table_name_24 WHERE points > 119 AND place > 5
CREATE TABLE table_name_24 (language VARCHAR, points VARCHAR, place VARCHAR)
what is the language when the points is more than 119 and the place is higher than 5?
SELECT MAX(place) FROM table_name_37 WHERE national_final = "4th" AND points < 139
CREATE TABLE table_name_37 (place INTEGER, national_final VARCHAR, points VARCHAR)
what is the highest place when the national final is 4th and the points is less than 139?
SELECT MIN(place) FROM table_name_95 WHERE language = "croatian"
CREATE TABLE table_name_95 (place INTEGER, language VARCHAR)
what is the lowest place when the language is croatian?
SELECT language FROM table_name_18 WHERE english_translation = "come to me"
CREATE TABLE table_name_18 (language VARCHAR, english_translation VARCHAR)
what is the language when the english translation is come to me?