answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT time FROM table_name_15 WHERE event = "call to arms i"
CREATE TABLE table_name_15 (time VARCHAR, event VARCHAR)
Which Time has an Event of call to arms i?
SELECT opponent FROM table_name_58 WHERE date = "april 9"
CREATE TABLE table_name_58 (opponent VARCHAR, date VARCHAR)
what team played on april 9
SELECT MIN(frequency__khz_) FROM table_name_61 WHERE licensed_location = "longview"
CREATE TABLE table_name_61 (frequency__khz_ INTEGER, licensed_location VARCHAR)
What is the smallest frequency (kHz) that is in the location of Longview?
SELECT licensed_location FROM table_name_44 WHERE frequency__khz_ > 1370
CREATE TABLE table_name_44 (licensed_location VARCHAR, frequency__khz_ INTEGER)
What is the location with a frequency (kHz) greater than 1370?
SELECT COUNT(capacity) FROM table_name_27 WHERE venue = "yunost"
CREATE TABLE table_name_27 (capacity VARCHAR, venue VARCHAR)
What is the capacity number for Yunost?
SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_68 WHERE tournament = "canadian open"
CREATE TABLE table_name_68 (tournament VARCHAR)
What is the total number of first prizes in USD for the Canadian Open?
SELECT drawn FROM table_name_61 WHERE lost = "19"
CREATE TABLE table_name_61 (drawn VARCHAR, lost VARCHAR)
Which Drawn has a Lost of 19?
SELECT played FROM table_name_94 WHERE "club" = "club"
CREATE TABLE table_name_94 (played VARCHAR)
Which Played has a Club of club?
SELECT club FROM table_name_18 WHERE losing_bonus = "1"
CREATE TABLE table_name_18 (club VARCHAR, losing_bonus VARCHAR)
Which Club has 1 Losing bonus?
SELECT losing_bonus FROM table_name_65 WHERE points_for = "571"
CREATE TABLE table_name_65 (losing_bonus VARCHAR, points_for VARCHAR)
What is the Losing bonus of 571 Points ?
SELECT lost FROM table_name_78 WHERE tries_for = "75"
CREATE TABLE table_name_78 (lost VARCHAR, tries_for VARCHAR)
Which Lost has a Tries for of 75?
SELECT opponent_in_the_final FROM table_name_24 WHERE date = "19 february 2006"
CREATE TABLE table_name_24 (opponent_in_the_final VARCHAR, date VARCHAR)
Who is the opponent in the final of the match on 19 February 2006?
SELECT opponent_in_the_final FROM table_name_49 WHERE date = "26 march 2006"
CREATE TABLE table_name_49 (opponent_in_the_final VARCHAR, date VARCHAR)
Who is the opponent in the final of the match on 26 March 2006?
SELECT SUM(overall) FROM table_name_54 WHERE college = "utah" AND pick__number < 7
CREATE TABLE table_name_54 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
What is the overall number of the player from Utah with a pick # higher than 7?
SELECT MAX(round) FROM table_name_83 WHERE pick__number > 34
CREATE TABLE table_name_83 (round INTEGER, pick__number INTEGER)
What is the highest round of the player with a pick number lower than 34?
SELECT SUM(round) FROM table_name_50 WHERE name = "mitch davis" AND overall < 118
CREATE TABLE table_name_50 (round INTEGER, name VARCHAR, overall VARCHAR)
What round did Mitch Davis, with an overall higher than 118, have?
SELECT MAX(overall) FROM table_name_54 WHERE college = "georgia"
CREATE TABLE table_name_54 (overall INTEGER, college VARCHAR)
What is the highest overall of the player from Georgia?
SELECT position FROM table_name_70 WHERE overall = 45
CREATE TABLE table_name_70 (position VARCHAR, overall VARCHAR)
What is the position of the player with an overall of 45?
SELECT AVG(wins) FROM table_name_54 WHERE team = "nsu" AND points > 2
CREATE TABLE table_name_54 (wins INTEGER, team VARCHAR, points VARCHAR)
How many wins for team nsu and over 2 points?
SELECT MIN(year) FROM table_name_55 WHERE wins < 0
CREATE TABLE table_name_55 (year INTEGER, wins INTEGER)
What is the earliest year associated with under 0 wins?
SELECT SUM(wins) FROM table_name_59 WHERE team = "mv agusta" AND points > 10 AND year > 1957
CREATE TABLE table_name_59 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR)
How many wins for team mv agusta, over 10 points, and after 1957?
SELECT college_junior_club_team__league_ FROM table_name_32 WHERE round = 3
CREATE TABLE table_name_32 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
What College/Junior/Club Team (League) has a round of 3?
SELECT player FROM table_name_6 WHERE round > 1 AND nationality = "austria"
CREATE TABLE table_name_6 (player VARCHAR, round VARCHAR, nationality VARCHAR)
What player has a round larger than 1 in Austria?
SELECT player FROM table_name_83 WHERE nationality = "sweden"
CREATE TABLE table_name_83 (player VARCHAR, nationality VARCHAR)
Which player's nationality is from Sweden?
SELECT college_junior_club_team__league_ FROM table_name_52 WHERE nationality = "canada" AND round < 3
CREATE TABLE table_name_52 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR)
What College/Junior/Club Team (League) from Canada has a round smaller than 3?
SELECT distance FROM table_name_71 WHERE year = 1997
CREATE TABLE table_name_71 (distance VARCHAR, year VARCHAR)
What was the distance in 1997?
SELECT opponents_in_the_final FROM table_name_19 WHERE surface = "hard" AND date = "january 5, 2003"
CREATE TABLE table_name_19 (opponents_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
Who was the opponents in the final on January 5, 2003, on a hard surface?
SELECT score_in_the_final FROM table_name_46 WHERE date = "february 19, 2012"
CREATE TABLE table_name_46 (score_in_the_final VARCHAR, date VARCHAR)
What was the final score on the February 19, 2012 final?
SELECT MIN(attendance__away_) FROM table_name_99 WHERE venue = "away" AND date = "24 august 2007"
CREATE TABLE table_name_99 (attendance__away_ INTEGER, venue VARCHAR, date VARCHAR)
Name the least attendance with venue of away on 24 august 2007
SELECT AVG(attendance__away_) FROM table_name_82 WHERE result = "won 2-0" AND date = "2 november 2007"
CREATE TABLE table_name_82 (attendance__away_ INTEGER, result VARCHAR, date VARCHAR)
Name the average attendance with result of won 2-0 on 2 november 2007
SELECT MIN(uni_number) FROM table_name_25 WHERE surname = "wiltshire"
CREATE TABLE table_name_25 (uni_number INTEGER, surname VARCHAR)
What is the uniform number of the player whose last name is Wiltshire?
SELECT fourth_quarter FROM table_name_86 WHERE rank > 3 AND second_quarter = "johnson & johnson 156,515.9"
CREATE TABLE table_name_86 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR)
When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter?
SELECT second_quarter FROM table_name_69 WHERE rank = 2
CREATE TABLE table_name_69 (second_quarter VARCHAR, rank VARCHAR)
With a rank of 2 what is the second quarter?
SELECT rank FROM table_name_45 WHERE third_quarter = "china mobile 195,680.4"
CREATE TABLE table_name_45 (rank VARCHAR, third_quarter VARCHAR)
When the third quarter is China Mobile 195,680.4, what is the rank?
SELECT rank FROM table_name_15 WHERE first_quarter = "procter & gamble 138,013"
CREATE TABLE table_name_15 (rank VARCHAR, first_quarter VARCHAR)
When the first quarter is procter & gamble 138,013, what is the rank?
SELECT fourth_quarter FROM table_name_27 WHERE rank < 4 AND second_quarter = "exxon mobil 341,140.3"
CREATE TABLE table_name_27 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR)
When the rank is less than 4, and has a second quarter of exxon mobil 341,140.3, what is the fourth quarter?
SELECT term_end FROM table_name_74 WHERE party = "united australia" AND term_in_office = "184 days"
CREATE TABLE table_name_74 (term_end VARCHAR, party VARCHAR, term_in_office VARCHAR)
What is the Term end that has a Party of united australia and 184 days in office?
SELECT SUM(average) FROM table_name_5 WHERE yards = 23
CREATE TABLE table_name_5 (average INTEGER, yards VARCHAR)
What is the sum of average values for 23 yards?
SELECT MAX(yards) FROM table_name_27 WHERE sacks = 2 AND average > 0
CREATE TABLE table_name_27 (yards INTEGER, sacks VARCHAR, average VARCHAR)
What are the most yards for 2 sacks and an average greater than 0?
SELECT bronze FROM table_name_6 WHERE location = "bangkok" AND year = 1978
CREATE TABLE table_name_6 (bronze VARCHAR, location VARCHAR, year VARCHAR)
What is listed for the Bronze, with the Location of Bangkok, and the Year of 1978?
SELECT MIN(year) FROM table_name_51 WHERE silver = "kim kyung-ho"
CREATE TABLE table_name_51 (year INTEGER, silver VARCHAR)
What's listed for the lowest Year that a Silver of Kim Kyung-Ho?
SELECT gold FROM table_name_61 WHERE bronze = "kim sun-bin"
CREATE TABLE table_name_61 (gold VARCHAR, bronze VARCHAR)
What's the Gold that also has Bronze of Kim Sun-Bin?
SELECT bronze FROM table_name_75 WHERE gold = "kim woo-jin"
CREATE TABLE table_name_75 (bronze VARCHAR, gold VARCHAR)
What's the Bronze that's also got a Godl of Kim Woo-Jin?
SELECT MAX(year) FROM table_name_1 WHERE bronze = "wataru haraguchi"
CREATE TABLE table_name_1 (year INTEGER, bronze VARCHAR)
What is listed as the highest Year that's also got a Bronze of Wataru Haraguchi?
SELECT score FROM table_name_58 WHERE record = "35–23–15"
CREATE TABLE table_name_58 (score VARCHAR, record VARCHAR)
What was the score when their record was 35–23–15?
SELECT home FROM table_name_90 WHERE score = "5 – 6"
CREATE TABLE table_name_90 (home VARCHAR, score VARCHAR)
Which home team has a score of 5 – 6?
SELECT county FROM table_name_17 WHERE school = "merrillville"
CREATE TABLE table_name_17 (county VARCHAR, school VARCHAR)
In what county is the school of Merrillville?
SELECT previous_conference FROM table_name_41 WHERE school = "portage"
CREATE TABLE table_name_41 (previous_conference VARCHAR, school VARCHAR)
The school of Portage was in what conference previous?
SELECT school FROM table_name_37 WHERE location = "valparaiso"
CREATE TABLE table_name_37 (school VARCHAR, location VARCHAR)
What is the name of the school that is in Valparaiso?
SELECT MAX(fa_cup) FROM table_name_25 WHERE malaysia_cup = 0 AND player = "ahmad fouzee masuri" AND total > 0
CREATE TABLE table_name_25 (fa_cup INTEGER, total VARCHAR, malaysia_cup VARCHAR, player VARCHAR)
Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player of ahmad fouzee masuri, and a Total larger than 0?
SELECT COUNT(total) FROM table_name_37 WHERE player = "ahmad fouzee masuri" AND fa_cup > 0
CREATE TABLE table_name_37 (total VARCHAR, player VARCHAR, fa_cup VARCHAR)
How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0?
SELECT AVG(fa_cup) FROM table_name_62 WHERE player = "khairan ezuan razali" AND total < 0
CREATE TABLE table_name_62 (fa_cup INTEGER, player VARCHAR, total VARCHAR)
Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0?
SELECT COUNT(malaysia_cup) FROM table_name_8 WHERE total > 3 AND player = "ivan yusoff" AND league < 2
CREATE TABLE table_name_8 (malaysia_cup VARCHAR, league VARCHAR, total VARCHAR, player VARCHAR)
How many Malaysia Cups have a Total larger than 3, and a Player of ivan yusoff, and a League smaller than 2?
SELECT SUM(fa_cup) FROM table_name_44 WHERE malaysia_cup > 0 AND total = 8
CREATE TABLE table_name_44 (fa_cup INTEGER, malaysia_cup VARCHAR, total VARCHAR)
Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8?
SELECT MAX(year) FROM table_name_50 WHERE venue = "edmonton, canada"
CREATE TABLE table_name_50 (year INTEGER, venue VARCHAR)
Which Year is the highest one that has a Venue of edmonton, canada?
SELECT position FROM table_name_27 WHERE competition = "world championships" AND year > 1997
CREATE TABLE table_name_27 (position VARCHAR, competition VARCHAR, year VARCHAR)
Which Position has a Competition of world championships, and a Year larger than 1997?
SELECT venue FROM table_name_20 WHERE notes = "heptathlon" AND year = 1991
CREATE TABLE table_name_20 (venue VARCHAR, notes VARCHAR, year VARCHAR)
Which Venue has a Notes of heptathlon, and a Year of 1991?
SELECT days_held FROM table_name_95 WHERE wrestler = "noiz"
CREATE TABLE table_name_95 (days_held VARCHAR, wrestler VARCHAR)
What days held has noiz as the wrestler?
SELECT location FROM table_name_14 WHERE wrestler = "tatsuhito takaiwa"
CREATE TABLE table_name_14 (location VARCHAR, wrestler VARCHAR)
What location has tatsuhito takaiwa as the wrestler?
SELECT event FROM table_name_33 WHERE days_held = "8"
CREATE TABLE table_name_33 (event VARCHAR, days_held VARCHAR)
What event has 8 as the days held?
SELECT event FROM table_name_98 WHERE days_held = "unknown"
CREATE TABLE table_name_98 (event VARCHAR, days_held VARCHAR)
What event has unknown as the days held.?
SELECT displacement FROM table_name_87 WHERE engine = "iveco f1ce3481e"
CREATE TABLE table_name_87 (displacement VARCHAR, engine VARCHAR)
What is the Displacement of the Iveco F1CE3481E Engine?
SELECT displacement FROM table_name_68 WHERE model = "180 multijet power/3.0 hdi"
CREATE TABLE table_name_68 (displacement VARCHAR, model VARCHAR)
What is the Displacement of the 180 Multijet Power/3.0 HDI Model?
SELECT valvetrain FROM table_name_12 WHERE model = "diesel engines"
CREATE TABLE table_name_12 (valvetrain VARCHAR, model VARCHAR)
What is the Valvetrain of the Diesel Engines Model?
SELECT AVG(total) FROM table_name_6 WHERE year_s__won = "1994 , 1997"
CREATE TABLE table_name_6 (total INTEGER, year_s__won VARCHAR)
Year(s) won of 1994 , 1997 has what average total?
SELECT AVG(total) FROM table_name_41 WHERE player = "corey pavin" AND to_par > 5
CREATE TABLE table_name_41 (total INTEGER, player VARCHAR, to_par VARCHAR)
Player of corey pavin, and a To par larger than 5 has what average total?
SELECT player FROM table_name_29 WHERE total < 285 AND to_par > 1
CREATE TABLE table_name_29 (player VARCHAR, total VARCHAR, to_par VARCHAR)
Total smaller than 285, and a To par larger than 1 belongs to what player?
SELECT player FROM table_name_83 WHERE total > 285 AND finish = "t30"
CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, finish VARCHAR)
Total larger than 285, and a Finish of t30 belongs to what player?
SELECT high_rebounds FROM table_name_38 WHERE record = "18-20"
CREATE TABLE table_name_38 (high_rebounds VARCHAR, record VARCHAR)
Which player for a team with an 18-20 record had the most rebounds in a game?
SELECT COUNT(frequency_mhz) FROM table_name_54 WHERE class = "d" AND call_sign = "k201bm" AND erp_w < 74
CREATE TABLE table_name_54 (frequency_mhz VARCHAR, erp_w VARCHAR, class VARCHAR, call_sign VARCHAR)
Name the total number of frequency Mhz with class of d and call sign of k201bm and ERP W less than 74
SELECT MIN(frequency_mhz) FROM table_name_24 WHERE call_sign = "k202ag"
CREATE TABLE table_name_24 (frequency_mhz INTEGER, call_sign VARCHAR)
Name the least frequency Mhz with call sign of k202ag
SELECT class FROM table_name_2 WHERE call_sign = "k220cp"
CREATE TABLE table_name_2 (class VARCHAR, call_sign VARCHAR)
Name the class with call sign of k220cp
SELECT record FROM table_name_51 WHERE opponent = "winnipeg jets"
CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR)
What is the Winnipeg Jets record?
SELECT home FROM table_name_26 WHERE date = "november 8"
CREATE TABLE table_name_26 (home VARCHAR, date VARCHAR)
What's the stadium on November 8?
SELECT visitor FROM table_name_53 WHERE date = "march 17"
CREATE TABLE table_name_53 (visitor VARCHAR, date VARCHAR)
Who was the visitor on March 17?
SELECT score FROM table_name_49 WHERE home = "toronto maple leafs" AND date = "november 10"
CREATE TABLE table_name_49 (score VARCHAR, home VARCHAR, date VARCHAR)
What's the score for Toronto Maple Leafs on November 10?
SELECT visitor FROM table_name_75 WHERE date = "october 31"
CREATE TABLE table_name_75 (visitor VARCHAR, date VARCHAR)
Who was the visitor on October 31?
SELECT rank FROM table_name_42 WHERE wins = 0 AND class = "350cc"
CREATE TABLE table_name_42 (rank VARCHAR, wins VARCHAR, class VARCHAR)
What is the rank associated with 0 wins and a 350cc class?
SELECT run_2 FROM table_name_73 WHERE country = "australia" AND run_1 < 53.75
CREATE TABLE table_name_73 (run_2 VARCHAR, country VARCHAR, run_1 VARCHAR)
What is the run 2 of the athlete from Australia with a run 1 less than 53.75?
SELECT SUM(run_2) FROM table_name_24 WHERE country = "russia" AND athlete = "maria orlova"
CREATE TABLE table_name_24 (run_2 INTEGER, country VARCHAR, athlete VARCHAR)
What is the run 2 of athlete Maria Orlova from Russia?
SELECT SUM(run_3) FROM table_name_5 WHERE run_1 > 53.75 AND run_2 < 52.91
CREATE TABLE table_name_5 (run_3 INTEGER, run_1 VARCHAR, run_2 VARCHAR)
What is the run 3 of the athlete with a run 1 more than 53.75 and a run 2 less than 52.91?
SELECT MIN(run_3) FROM table_name_30 WHERE run_2 < 53.72 AND run_1 = 53.1
CREATE TABLE table_name_30 (run_3 INTEGER, run_2 VARCHAR, run_1 VARCHAR)
What is the lowest run 3 an athlete with a run 2 less than 53.72 and a run 1 of 53.1 has?
SELECT MIN(run_2) FROM table_name_90 WHERE run_1 = 52.44 AND run_3 < 52.35
CREATE TABLE table_name_90 (run_2 INTEGER, run_1 VARCHAR, run_3 VARCHAR)
What is the lowest run 2 of the athlete with a run 1 of 52.44 and a run 3 less than 52.35?
SELECT COUNT(points) FROM table_name_39 WHERE poles < 0
CREATE TABLE table_name_39 (points VARCHAR, poles INTEGER)
How many points are associated with 0 poles?
SELECT MIN(game__number) FROM table_name_93 WHERE home = "detroit"
CREATE TABLE table_name_93 (game__number INTEGER, home VARCHAR)
What is the first game that has a home team of Detroit?
SELECT home FROM table_name_14 WHERE points > 92
CREATE TABLE table_name_14 (home VARCHAR, points INTEGER)
Which home team has higher than 92 points?
SELECT team FROM table_name_42 WHERE score = "101"
CREATE TABLE table_name_42 (team VARCHAR, score VARCHAR)
what team's score is 101?
SELECT team FROM table_name_11 WHERE year = 1999 AND versus = "zimbabwe"
CREATE TABLE table_name_11 (team VARCHAR, year VARCHAR, versus VARCHAR)
what team played against zimbabwe in 1999?
SELECT team FROM table_name_70 WHERE year = 2006
CREATE TABLE table_name_70 (team VARCHAR, year VARCHAR)
what is the team that played in 2006?
SELECT MIN(points) FROM table_name_49 WHERE driver = "romain grosjean" AND average_pre_2010 < 0
CREATE TABLE table_name_49 (points INTEGER, driver VARCHAR, average_pre_2010 VARCHAR)
What is the lowest amount of points driver Romain Grosjean, who has an average pre-2010 less than 0, has?
SELECT AVG(entries) FROM table_name_27 WHERE driver = "mark webber" AND points > 1014.5
CREATE TABLE table_name_27 (entries INTEGER, driver VARCHAR, points VARCHAR)
What is the average number of entries driver Mark Webber, who has more than 1014.5 points, has?
SELECT MAX(average_points_per_race_entered) FROM table_name_75 WHERE points < 969 AND average_pre_2010 < 0
CREATE TABLE table_name_75 (average_points_per_race_entered INTEGER, points VARCHAR, average_pre_2010 VARCHAR)
What is the highest average points per race of the driver with less than 969 points and an average pre-2010 less than 0?
SELECT MIN(average_points_per_race_entered) FROM table_name_3 WHERE driver = "kimi räikkönen" AND entries > 194
CREATE TABLE table_name_3 (average_points_per_race_entered INTEGER, driver VARCHAR, entries VARCHAR)
What is the lowest average points per race entered of driver kimi räikkönen, who has more than 194 entries?
SELECT MIN(game) FROM table_name_92 WHERE opponent = "chicago black hawks"
CREATE TABLE table_name_92 (game INTEGER, opponent VARCHAR)
What is the first game played against the Chicago Black Hawks?
SELECT opponent FROM table_name_19 WHERE date = "9 november 1991"
CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR)
Name the opponent for 9 november 1991
SELECT MIN(losses) FROM table_name_92 WHERE wins < 0
CREATE TABLE table_name_92 (losses INTEGER, wins INTEGER)
Which Losses is the lowest one that has Wins smaller than 0?
SELECT losses FROM table_name_95 WHERE season > 1941 AND team = "hamilton wildcats" AND ties = 0
CREATE TABLE table_name_95 (losses VARCHAR, ties VARCHAR, season VARCHAR, team VARCHAR)
Which Losses have a Season larger than 1941, and a Team of hamilton wildcats, and Ties of 0?
SELECT SUM(season) FROM table_name_42 WHERE ties < 1 AND team = "vancouver grizzlies" AND wins < 1
CREATE TABLE table_name_42 (season INTEGER, wins VARCHAR, ties VARCHAR, team VARCHAR)
Which Season has Ties smaller than 1, and a Team of vancouver grizzlies, and Wins smaller than 1?
SELECT COUNT(ties) FROM table_name_41 WHERE wins < 1 AND games = 6 AND losses = 6 AND season > 1941
CREATE TABLE table_name_41 (ties VARCHAR, season VARCHAR, losses VARCHAR, wins VARCHAR, games VARCHAR)
How many Ties have Wins smaller than 1, and Games of 6, and Losses of 6, and a Season larger than 1941?
SELECT AVG(wins) FROM table_name_56 WHERE team = "winnipeg blue bombers" AND season > 1964
CREATE TABLE table_name_56 (wins INTEGER, team VARCHAR, season VARCHAR)
Which Wins have a Team of winnipeg blue bombers, and a Season larger than 1964?