answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT play FROM table_name_67 WHERE author = "aeschylus" AND base = "athens"
CREATE TABLE table_name_67 (play VARCHAR, author VARCHAR, base VARCHAR)
What play has a base of Athens and was written by Aeschylus?
SELECT company FROM table_name_45 WHERE country = "greece" AND author = "aeschylus"
CREATE TABLE table_name_45 (company VARCHAR, country VARCHAR, author VARCHAR)
What is the company from Greece with author Aeschylus?
SELECT coaster_name FROM table_name_40 WHERE year_opened = "1978" AND track = "wooden"
CREATE TABLE table_name_40 (coaster_name VARCHAR, year_opened VARCHAR, track VARCHAR)
What is the coaster name that was opened in 1978, and have wooden track?
SELECT year_opened FROM table_name_57 WHERE coaster_name = "le monstre"
CREATE TABLE table_name_57 (year_opened VARCHAR, coaster_name VARCHAR)
Which year opened has le monstre coaster?
SELECT coaster_name FROM table_name_87 WHERE location = "sandusky, ohio"
CREATE TABLE table_name_87 (coaster_name VARCHAR, location VARCHAR)
Which coaster is located in sandusky, Ohio?
SELECT year_opened FROM table_name_50 WHERE location = "west mifflin, pennsylvania"
CREATE TABLE table_name_50 (year_opened VARCHAR, location VARCHAR)
Which year opened is located in west mifflin, pennsylvania?
SELECT MIN(league_cup_goals) FROM table_name_14 WHERE fa_cup_goals > 0 AND fa_cup_apps > 2
CREATE TABLE table_name_14 (league_cup_goals INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)
What is the lowest league cup goals for the entry with fa cup goals greater than 0 and FA cup apps larger than 2?
SELECT SUM(league_cup_apps) FROM table_name_63 WHERE fa_cup_goals > 0 AND fa_cup_apps < 2
CREATE TABLE table_name_63 (league_cup_apps INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)
What is the sum of league cup appearances for the players with FA cup goals larger than 0 and FA cup appearances less than 2?
SELECT MAX(league_cup_apps) FROM table_name_81 WHERE league_cup_goals = 0 AND fa_cup_apps = 2 AND league_goals = 4
CREATE TABLE table_name_81 (league_cup_apps INTEGER, league_goals VARCHAR, league_cup_goals VARCHAR, fa_cup_apps VARCHAR)
What is the highest league cup appearances for the player with league cup goals of 0, and FA cup appearances of 2, and 4 league goals?
SELECT game FROM table_name_32 WHERE location_attendance = "omni coliseum" AND score = "w 105-95"
CREATE TABLE table_name_32 (game VARCHAR, location_attendance VARCHAR, score VARCHAR)
What game was played at Omni Coliseum with a w 105-95 score?
SELECT date FROM table_name_26 WHERE record = "10-8"
CREATE TABLE table_name_26 (date VARCHAR, record VARCHAR)
When did the team have a 10-8 record?
SELECT date FROM table_name_43 WHERE record = "11-8"
CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR)
When was 11-8 the record?
SELECT COUNT(position) FROM table_name_24 WHERE drawn < 2 AND lost < 9 AND points > 24
CREATE TABLE table_name_24 (position VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR)
What is the total number for the position that has less than 2 draws, less than 9 losses and more than 24?
SELECT MAX(played) FROM table_name_62 WHERE drawn > 0 AND lost < 3 AND points < 27
CREATE TABLE table_name_62 (played INTEGER, points VARCHAR, drawn VARCHAR, lost VARCHAR)
What is the highest played with more than 0 draws, less than 3 losses, and less than 27 points?
SELECT COUNT(played) FROM table_name_90 WHERE points = 8 AND position > 6
CREATE TABLE table_name_90 (played VARCHAR, points VARCHAR, position VARCHAR)
What is the total number played with 8 points and a position more than 6?
SELECT COUNT(played) FROM table_name_71 WHERE drawn = 1 AND points < 7
CREATE TABLE table_name_71 (played VARCHAR, drawn VARCHAR, points VARCHAR)
What is the total number played with 1 drawn, and less than 7 points?
SELECT MAX(silver) FROM table_name_40 WHERE bronze > 1 AND total > 48
CREATE TABLE table_name_40 (silver INTEGER, bronze VARCHAR, total VARCHAR)
What is the most silver when bronze is more than 1 and total is more than 48?
SELECT MAX(bronze) FROM table_name_94 WHERE total = 9
CREATE TABLE table_name_94 (bronze INTEGER, total VARCHAR)
what is the most bronze when the total is 9?
SELECT MIN(bronze) FROM table_name_51 WHERE nation = "soviet union" AND total < 11
CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR, total VARCHAR)
what is the least bronze when the nation is soviet union and the total is less than 11?
SELECT category FROM table_name_84 WHERE nominee_s_ = "hy conrad" AND year = 2003
CREATE TABLE table_name_84 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
What is the category when Hy Conrad nominated in 2003?
SELECT AVG(long) FROM table_name_28 WHERE gain < 0
CREATE TABLE table_name_28 (long INTEGER, gain INTEGER)
What is the long figure when gain is less than 0?
SELECT AVG(loss) FROM table_name_12 WHERE avg_g < 16.7 AND long > 4 AND gain = 104
CREATE TABLE table_name_12 (loss INTEGER, gain VARCHAR, avg_g VARCHAR, long VARCHAR)
What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4?
SELECT time FROM table_name_9 WHERE notes = "sc/d" AND country = "estonia"
CREATE TABLE table_name_9 (time VARCHAR, notes VARCHAR, country VARCHAR)
What is the time for Estonia with sc/d notes?
SELECT time FROM table_name_55 WHERE notes = "sc/d" AND rank > 5
CREATE TABLE table_name_55 (time VARCHAR, notes VARCHAR, rank VARCHAR)
What is the time for the rank after 5 with sc/d notes?
SELECT time FROM table_name_26 WHERE athlete = "law hiu fung"
CREATE TABLE table_name_26 (time VARCHAR, athlete VARCHAR)
What was Law Hiu Fung's time?
SELECT time FROM table_name_27 WHERE notes = "sc/d" AND rank > 5
CREATE TABLE table_name_27 (time VARCHAR, notes VARCHAR, rank VARCHAR)
What is the time for the rank after 5 with sc/d notes?
SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:52.70"
CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR)
What is the highest rank for a 6:52.70 time and notes of sa/b?
SELECT MIN(rank) FROM table_name_31 WHERE name = "paul biedermann"
CREATE TABLE table_name_31 (rank INTEGER, name VARCHAR)
What is the lowest rank that has paul biedermann as the name?
SELECT nationality FROM table_name_32 WHERE rank = 2
CREATE TABLE table_name_32 (nationality VARCHAR, rank VARCHAR)
What nationality has 2 as the rank?
SELECT MAX(lane) FROM table_name_38 WHERE name = "nimrod shapira bar-or"
CREATE TABLE table_name_38 (lane INTEGER, name VARCHAR)
What is the highest lane that has nimrod shapira bar-or as the name?
SELECT MAX(year) FROM table_name_44 WHERE result = "nominated"
CREATE TABLE table_name_44 (year INTEGER, result VARCHAR)
What is the latest year they were nominated?
SELECT result FROM table_name_22 WHERE category = "choice tv actor: drama"
CREATE TABLE table_name_22 (result VARCHAR, category VARCHAR)
What is the result of the choice tv actor: drama category?
SELECT MAX(drawn) FROM table_name_85 WHERE position < 8 AND played < 14
CREATE TABLE table_name_85 (drawn INTEGER, position VARCHAR, played VARCHAR)
Which Drawn has a Position smaller than 8, and a Played smaller than 14?
SELECT MAX(points) FROM table_name_24 WHERE drawn < 2 AND lost = 12 AND name = "ev bad wörishofen"
CREATE TABLE table_name_24 (points INTEGER, name VARCHAR, drawn VARCHAR, lost VARCHAR)
Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name of ev bad wörishofen?
SELECT place FROM table_name_74 WHERE player = "lee westwood"
CREATE TABLE table_name_74 (place VARCHAR, player VARCHAR)
What place did Lee Westwood finish in?
SELECT to_par FROM table_name_15 WHERE score = 67 - 68 = 135
CREATE TABLE table_name_15 (to_par VARCHAR, score VARCHAR)
What is the to par score of the player that had a score of 67-68=135?
SELECT televote_points FROM table_name_43 WHERE final_points = "2"
CREATE TABLE table_name_43 (televote_points VARCHAR, final_points VARCHAR)
What Televote Points had a Final Points score of 2?
SELECT COUNT(draw) FROM table_name_43 WHERE televote_points = "8"
CREATE TABLE table_name_43 (draw VARCHAR, televote_points VARCHAR)
Which Draw had 8 Televote Points?
SELECT jury_points FROM table_name_5 WHERE televote_points = "3"
CREATE TABLE table_name_5 (jury_points VARCHAR, televote_points VARCHAR)
What was the Jury Points value when there were 3 Televote Points?
SELECT player FROM table_name_3 WHERE to_par = "+4" AND year_s__won = "1995"
CREATE TABLE table_name_3 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR)
Which player was +4 to par and won the Open in 1995?
SELECT player FROM table_name_81 WHERE to_par = "+8"
CREATE TABLE table_name_81 (player VARCHAR, to_par VARCHAR)
Which player has a to par of +8?
SELECT country FROM table_name_16 WHERE rank < 2
CREATE TABLE table_name_16 (country VARCHAR, rank INTEGER)
What country is ranked smaller than 2?
SELECT rank FROM table_name_70 WHERE time = "6:50.48"
CREATE TABLE table_name_70 (rank VARCHAR, time VARCHAR)
What is the rank when the time is 6:50.48?
SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:39.07"
CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR)
What is the highest rank with the notes of sa/b, and a time of 6:39.07?
SELECT notes FROM table_name_31 WHERE rank > 4 AND country = "south korea"
CREATE TABLE table_name_31 (notes VARCHAR, rank VARCHAR, country VARCHAR)
What shows for notes when rank is more than 4, and country is South Korea?
SELECT first_issue FROM table_name_89 WHERE title = "bamboo blade"
CREATE TABLE table_name_89 (first_issue VARCHAR, title VARCHAR)
What is the First Issue date of Bamboo Blade?
SELECT first_issue FROM table_name_1 WHERE last_issue = "july 2010"
CREATE TABLE table_name_1 (first_issue VARCHAR, last_issue VARCHAR)
What is the First issue date of the title with a Last Issue of July 2010?
SELECT first_issue FROM table_name_85 WHERE title = "soul eater"
CREATE TABLE table_name_85 (first_issue VARCHAR, title VARCHAR)
What is the First Issue date of Soul Eater?
SELECT author FROM table_name_87 WHERE first_issue = "september 2010"
CREATE TABLE table_name_87 (author VARCHAR, first_issue VARCHAR)
What is the Author of the Title with a First Issue of September 2010?
SELECT author FROM table_name_1 WHERE last_issue = "ongoing"
CREATE TABLE table_name_1 (author VARCHAR, last_issue VARCHAR)
What is the Author of the Title with an Ongoing Last Issue?
SELECT MAX(losses) FROM table_name_61 WHERE team = "presidente hayes" AND draws > 4
CREATE TABLE table_name_61 (losses INTEGER, team VARCHAR, draws VARCHAR)
What is the highest number of losses for Presidente Hayes, when the draws were more than 4?
SELECT COUNT(wins) FROM table_name_90 WHERE position > 6 AND conceded < 19
CREATE TABLE table_name_90 (wins VARCHAR, position VARCHAR, conceded VARCHAR)
What is the number of wins when position was larger than 6, and conceded was smaller than 19?
SELECT losses FROM table_name_36 WHERE draws < 4 AND points = 9
CREATE TABLE table_name_36 (losses VARCHAR, draws VARCHAR, points VARCHAR)
What is the number of losses when there were less than 4 draws, and points were 9?
SELECT SUM(wins) FROM table_name_25 WHERE scored < 26 AND conceded > 23
CREATE TABLE table_name_25 (wins INTEGER, scored VARCHAR, conceded VARCHAR)
What is the number of wins when scored was less than 26, and conceded was larger than 23?
SELECT series FROM table_name_61 WHERE season = 2009
CREATE TABLE table_name_61 (series VARCHAR, season VARCHAR)
What was the series in season 2009?
SELECT MIN(wins) FROM table_name_67 WHERE points = 97 AND season < 2009
CREATE TABLE table_name_67 (wins INTEGER, points VARCHAR, season VARCHAR)
What was the lowest amount of wins before season 2009 for 97 points?
SELECT COUNT(wins) FROM table_name_29 WHERE season > 2008 AND podiums > 6
CREATE TABLE table_name_29 (wins VARCHAR, season VARCHAR, podiums VARCHAR)
How many wins had a podium larger than 6 after season 2008?
SELECT date FROM table_name_23 WHERE week > 1 AND opponent = "detroit lions"
CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR, opponent VARCHAR)
what is the date for the week larger than 1 and the opponent detroit lions?
SELECT MIN(week) FROM table_name_41 WHERE attendance = 54 OFFSET 714
CREATE TABLE table_name_41 (week INTEGER, attendance VARCHAR)
what is the lowest week when the attendance is 54,714?
SELECT athlete FROM table_name_9 WHERE react = 0.248
CREATE TABLE table_name_9 (athlete VARCHAR, react VARCHAR)
Which Athlete has a Reaction of 0.248?
SELECT MAX(rank) FROM table_name_98 WHERE react = 0.198 AND time < 46.3
CREATE TABLE table_name_98 (rank INTEGER, react VARCHAR, time VARCHAR)
Which Rank has a Reaction of 0.198, and a Time smaller than 46.3?
SELECT AVG(lane) FROM table_name_8 WHERE time > 47.83
CREATE TABLE table_name_8 (lane INTEGER, time INTEGER)
Which Lane has a Time larger than 47.83?
SELECT AVG(react) FROM table_name_16 WHERE rank < 4 AND nationality = "trinidad and tobago" AND time > 45.13
CREATE TABLE table_name_16 (react INTEGER, time VARCHAR, rank VARCHAR, nationality VARCHAR)
Which Reaction has a Rank smaller than 4, and a Nationality of trinidad and tobago, and a Time larger than 45.13?
SELECT COUNT(rank_final) FROM table_name_68 WHERE year > 2008 AND apparatus = "balance beam" AND rank_qualifying > 4
CREATE TABLE table_name_68 (rank_final VARCHAR, rank_qualifying VARCHAR, year VARCHAR, apparatus VARCHAR)
Count the Rank-Final which has a Year larger than 2008, and an Apparatus of balance beam, and a Rank-Qualifying larger than 4?
SELECT MIN(score_final) FROM table_name_26 WHERE rank_final = 7 AND year > 2009
CREATE TABLE table_name_26 (score_final INTEGER, rank_final VARCHAR, year VARCHAR)
Which the lowest Score-Fina has a Rank-Final of 7 and a Year larger than 2009?
SELECT AVG(year) FROM table_name_8 WHERE rank_final < 2 AND apparatus = "team" AND score_qualifying < 248.275
CREATE TABLE table_name_8 (year INTEGER, score_qualifying VARCHAR, rank_final VARCHAR, apparatus VARCHAR)
Name the Year with a Rank-Final smaller than 2, an Apparatus of team, and a Score-Qualifying smaller than 248.275?
SELECT pick FROM table_name_54 WHERE position = "defensive end" AND team = "new york jets"
CREATE TABLE table_name_54 (pick VARCHAR, position VARCHAR, team VARCHAR)
What's the pick for the New York jets with a defensive end?
SELECT pick FROM table_name_94 WHERE college = "georgia tech"
CREATE TABLE table_name_94 (pick VARCHAR, college VARCHAR)
What's the pick for Georgia tech?
SELECT player FROM table_name_54 WHERE position = "halfback"
CREATE TABLE table_name_54 (player VARCHAR, position VARCHAR)
Who plays halfback?
SELECT team FROM table_name_1 WHERE college = "washington"
CREATE TABLE table_name_1 (team VARCHAR, college VARCHAR)
Who is the team for Washington College?
SELECT COUNT(rank) FROM table_name_98 WHERE attendance = 93 OFFSET 039
CREATE TABLE table_name_98 (rank VARCHAR, attendance VARCHAR)
What is the Rank of the game with an Attendance of 93,039?
SELECT fuel_system FROM table_name_60 WHERE model = "diesel engines"
CREATE TABLE table_name_60 (fuel_system VARCHAR, model VARCHAR)
What fuel system does the diesel engines model have?
SELECT displacement FROM table_name_64 WHERE model = "petrol engines"
CREATE TABLE table_name_64 (displacement VARCHAR, model VARCHAR)
What is the displacement for the petrol engines model?
SELECT number_of_electorates__2009_ FROM table_name_94 WHERE name = "gwalior rural"
CREATE TABLE table_name_94 (number_of_electorates__2009_ VARCHAR, name VARCHAR)
What is the size of the 2009 electorate for Gwalior Rural?
SELECT eliminated FROM table_name_74 WHERE entered > 3 AND time = "35:55"
CREATE TABLE table_name_74 (eliminated VARCHAR, entered VARCHAR, time VARCHAR)
Who was eliminated that entered after number 3 and lasted 35:55?
SELECT AVG(year) FROM table_name_30 WHERE position = "13th"
CREATE TABLE table_name_30 (year INTEGER, position VARCHAR)
What is the average year in which the finish position was 13th?
SELECT AVG(year) FROM table_name_68 WHERE competition = "olympic games"
CREATE TABLE table_name_68 (year INTEGER, competition VARCHAR)
What is the average year for the Olympic Games?
SELECT label FROM table_name_22 WHERE catalog = "rtradcd491" AND date = "september 20, 2008"
CREATE TABLE table_name_22 (label VARCHAR, catalog VARCHAR, date VARCHAR)
What is the Label of the September 20, 2008 release with Catalog number RTRADCD491?
SELECT format FROM table_name_41 WHERE catalog = "rtradcd491" AND date = "september 22, 2008"
CREATE TABLE table_name_41 (format VARCHAR, catalog VARCHAR, date VARCHAR)
What is the Format of the September 22, 2008 release with Catalog number RTRADCD491?
SELECT format FROM table_name_15 WHERE catalog = "rtradlp491"
CREATE TABLE table_name_15 (format VARCHAR, catalog VARCHAR)
What is the Format of the release with Catalog number RTRADLP491?
SELECT label FROM table_name_51 WHERE catalog = "2508668"
CREATE TABLE table_name_51 (label VARCHAR, catalog VARCHAR)
What is the Label of the Release with Catalog number 2508668?
SELECT format FROM table_name_86 WHERE catalog = "2508668"
CREATE TABLE table_name_86 (format VARCHAR, catalog VARCHAR)
What is the Format of the release with Catalog number 2508668?
SELECT region FROM table_name_29 WHERE label = "warner music canada"
CREATE TABLE table_name_29 (region VARCHAR, label VARCHAR)
What is the Region of the Warner Music Canada Label release?
SELECT developer_s_ FROM table_name_68 WHERE game = "portal"
CREATE TABLE table_name_68 (developer_s_ VARCHAR, game VARCHAR)
Who were the developers for Portal?
SELECT developer_s_ FROM table_name_71 WHERE year > 2010 AND genre = "action rpg"
CREATE TABLE table_name_71 (developer_s_ VARCHAR, year VARCHAR, genre VARCHAR)
Who were the developers for the Action RPG made after 2010?
SELECT callsign FROM table_name_4 WHERE iata = "tr"
CREATE TABLE table_name_4 (callsign VARCHAR, iata VARCHAR)
Which Callsign has an IATA of tr?
SELECT commenced_operations FROM table_name_10 WHERE airline = "valuair"
CREATE TABLE table_name_10 (commenced_operations VARCHAR, airline VARCHAR)
Which Commenced operations have an Airline of valuair?
SELECT MAX(commenced_operations) FROM table_name_39 WHERE airline = "valuair"
CREATE TABLE table_name_39 (commenced_operations INTEGER, airline VARCHAR)
Which Commenced operations have an Airline of valuair?
SELECT iata FROM table_name_14 WHERE icao = "slk"
CREATE TABLE table_name_14 (iata VARCHAR, icao VARCHAR)
Which IATA has a ICAO of slk?
SELECT SUM(viewers) FROM table_name_71 WHERE rank < 2
CREATE TABLE table_name_71 (viewers INTEGER, rank INTEGER)
How many Viewers have a Rank smaller than 2?
SELECT COUNT(longitude) FROM table_name_20 WHERE ansi_code < 1036534 AND water__sqmi_ = 0 AND geo_id > 3809959540
CREATE TABLE table_name_20 (longitude VARCHAR, geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR)
What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540?
SELECT COUNT(pop__2010_) FROM table_name_24 WHERE longitude = -97.578927
CREATE TABLE table_name_24 (pop__2010_ VARCHAR, longitude VARCHAR)
What is the population in 2010 for the longitude of -97.578927?
SELECT SUM(pop__2010_) FROM table_name_17 WHERE land___sqmi__ < 34.424 AND county = "mountrail" AND geo_id < 3806159940
CREATE TABLE table_name_17 (pop__2010_ INTEGER, geo_id VARCHAR, land___sqmi__ VARCHAR, county VARCHAR)
What is the total population in 2010 for the township located in Mountrail which has land less than 34.424 sq miles and a GEO ID less than 3806159940?
SELECT MAX(latitude) FROM table_name_4 WHERE ansi_code > 1759541 AND pop__2010_ = 72
CREATE TABLE table_name_4 (latitude INTEGER, ansi_code VARCHAR, pop__2010_ VARCHAR)
What is the highest recorded latitude for the township that has an ANSI code greater than 1759541 and a population in 2010 of 72?
SELECT athlete FROM table_name_97 WHERE rank > 1 AND lane > 7 AND nationality = "china"
CREATE TABLE table_name_97 (athlete VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)
Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china?
SELECT SUM(lane) FROM table_name_36 WHERE time > 13.59 AND rank > 8
CREATE TABLE table_name_36 (lane INTEGER, time VARCHAR, rank VARCHAR)
How many Lanes have a Time larger than 13.59, and a Rank larger than 8?
SELECT SUM(lane) FROM table_name_92 WHERE nationality = "france" AND rank > 8
CREATE TABLE table_name_92 (lane INTEGER, nationality VARCHAR, rank VARCHAR)
How many lanes have a Nationality of france, and a Rank larger than 8?
SELECT game FROM table_name_92 WHERE developer_s_ = "nintendo" AND platform_s_ = "gamecube"
CREATE TABLE table_name_92 (game VARCHAR, developer_s_ VARCHAR, platform_s_ VARCHAR)
What game was developed by Nintendo for the Gamecube platform?
SELECT genre FROM table_name_50 WHERE game = "super mario galaxy"
CREATE TABLE table_name_50 (genre VARCHAR, game VARCHAR)
What is the genre of Super Mario Galaxy?
SELECT MAX(population) FROM table_name_57 WHERE rank_among_provinces < 5
CREATE TABLE table_name_57 (population INTEGER, rank_among_provinces INTEGER)
What is the highest population for the province having a rank under 5?