question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What city has the home team of the brisbane broncos?
CREATE TABLE table_name_88 (city VARCHAR, home_team_s VARCHAR)
SELECT city FROM table_name_88 WHERE home_team_s = "brisbane broncos"
What is the earliest closed year in the country of france?
CREATE TABLE table_name_94 (closed__as_a_rl_stadium_ INTEGER, country VARCHAR)
SELECT MIN(closed__as_a_rl_stadium_) FROM table_name_94 WHERE country = "france"
What is the result for the event that lasted 2:20?
CREATE TABLE table_name_7 (res VARCHAR, time VARCHAR)
SELECT res FROM table_name_7 WHERE time = "2:20"
Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?
CREATE TABLE table_name_54 (opponent VARCHAR, res VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_54 WHERE res = "loss" AND event = "gladiator challenge 87: collision course"
For the Cage Combat Fighting Championships: Mayhem, what was the record?
CREATE TABLE table_name_13 (record VARCHAR, event VARCHAR)
SELECT record FROM table_name_13 WHERE event = "cage combat fighting championships: mayhem"
Who was the designer for The Grapefruit Moon?
CREATE TABLE table_name_89 (designer VARCHAR, restaurant_name VARCHAR)
SELECT designer FROM table_name_89 WHERE restaurant_name = "the grapefruit moon"
Who is the chef at Lakes Bar and Grill?
CREATE TABLE table_name_21 (chef VARCHAR, restaurant_name VARCHAR)
SELECT chef FROM table_name_21 WHERE restaurant_name = "lakes bar and grill"
What is the name of the Cobourg, ON restaurant that had Robin de Groot as designer?
CREATE TABLE table_name_85 (restaurant_name VARCHAR, designer VARCHAR, location VARCHAR)
SELECT restaurant_name FROM table_name_85 WHERE designer = "robin de groot" AND location = "cobourg, on"
What European competitions have a tier of 2 and a position of 3?
CREATE TABLE table_name_48 (european_competitions VARCHAR, tier VARCHAR, pos VARCHAR)
SELECT european_competitions FROM table_name_48 WHERE tier = 2 AND pos = 3
Which Nation won 5 Silver, and more than 4 Gold?
CREATE TABLE table_name_2 (nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT nation FROM table_name_2 WHERE silver = 5 AND gold > 4
What is the sum of heat for christophe lebon when lane is less than 4?
CREATE TABLE table_name_74 (heat VARCHAR, lane VARCHAR, name VARCHAR)
SELECT COUNT(heat) FROM table_name_74 WHERE lane < 4 AND name = "christophe lebon"
Who is from the united states, has a rank less than 9, and heat more than 5?
CREATE TABLE table_name_79 (name VARCHAR, nationality VARCHAR, rank VARCHAR, heat VARCHAR)
SELECT name FROM table_name_79 WHERE rank < 9 AND heat > 5 AND nationality = "united states"
Serbia has a heat less than 2 and what sum of rank?
CREATE TABLE table_name_38 (rank VARCHAR, nationality VARCHAR, heat VARCHAR)
SELECT COUNT(rank) FROM table_name_38 WHERE nationality = "serbia" AND heat < 2
When rank is 33, what is the smallest lane?
CREATE TABLE table_name_38 (lane INTEGER, rank VARCHAR)
SELECT MIN(lane) FROM table_name_38 WHERE rank = 33
Which Model has a Number of CPUs of 1–10, and a Performance (MIPS) of 49–447?
CREATE TABLE table_name_6 (model VARCHAR, number_of_cpus VARCHAR, performance__mips_ VARCHAR)
SELECT model FROM table_name_6 WHERE number_of_cpus = "1–10" AND performance__mips_ = "49–447"
Which Year Introduced has a Memory (GB) of 0.125–2?
CREATE TABLE table_name_26 (year_introduced INTEGER, memory__gb_ VARCHAR)
SELECT MAX(year_introduced) FROM table_name_26 WHERE memory__gb_ = "0.125–2"
Which Number of CPUs has a Memory (GB) of 0.5–16?
CREATE TABLE table_name_59 (number_of_cpus VARCHAR, memory__gb_ VARCHAR)
SELECT number_of_cpus FROM table_name_59 WHERE memory__gb_ = "0.5–16"
Which Memory (GB) has a Number of CPUs of 1–6?
CREATE TABLE table_name_57 (memory__gb_ VARCHAR, number_of_cpus VARCHAR)
SELECT memory__gb_ FROM table_name_57 WHERE number_of_cpus = "1–6"
Which Fuel Type that has a mpg-US Extra-Urban larger than 53.5, and a mpg-US Combined larger than 50 from renault?
CREATE TABLE table_name_62 (fuel_type VARCHAR, manufacturer VARCHAR, mpg_us_extra_urban VARCHAR, mpg_us_combined VARCHAR)
SELECT fuel_type FROM table_name_62 WHERE mpg_us_extra_urban > 53.5 AND mpg_us_combined > 50 AND manufacturer = "renault"
What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56?
CREATE TABLE table_name_26 (country VARCHAR, rank VARCHAR, time VARCHAR)
SELECT country FROM table_name_26 WHERE rank > 4 AND time = "5:59.56"
What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?
CREATE TABLE table_name_98 (time VARCHAR, country VARCHAR, rank VARCHAR, notes VARCHAR)
SELECT time FROM table_name_98 WHERE rank > 2 AND notes = "fb" AND country = "belarus"
What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?
CREATE TABLE table_name_75 (time VARCHAR, notes VARCHAR, rank VARCHAR)
SELECT time FROM table_name_75 WHERE notes = "fa" AND rank < 2
Who are the Rowers from Poland?
CREATE TABLE table_name_66 (rowers VARCHAR, country VARCHAR)
SELECT rowers FROM table_name_66 WHERE country = "poland"
Who are the Rowers with a Time of 5:56.38?
CREATE TABLE table_name_14 (rowers VARCHAR, time VARCHAR)
SELECT rowers FROM table_name_14 WHERE time = "5:56.38"
What's the title of the film with the release date of 1954-12-18?
CREATE TABLE table_name_95 (title VARCHAR, release_date VARCHAR)
SELECT title FROM table_name_95 WHERE release_date = "1954-12-18"
What is the production number for Bell Hoppy in the MM Series?
CREATE TABLE table_name_21 (production_number VARCHAR, series VARCHAR, title VARCHAR)
SELECT COUNT(production_number) FROM table_name_21 WHERE series = "mm" AND title = "bell hoppy"
How much Scored has Losses smaller than 0?
CREATE TABLE table_name_75 (scored INTEGER, losses INTEGER)
SELECT SUM(scored) FROM table_name_75 WHERE losses < 0
Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?
CREATE TABLE table_name_98 (wins INTEGER, played VARCHAR, losses VARCHAR, position VARCHAR)
SELECT MIN(wins) FROM table_name_98 WHERE losses < 6 AND position = 4 AND played > 9
How much Conceded has Wins smaller than 3, and Points larger than 11?
CREATE TABLE table_name_77 (conceded VARCHAR, wins VARCHAR, points VARCHAR)
SELECT COUNT(conceded) FROM table_name_77 WHERE wins < 3 AND points > 11
Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1?
CREATE TABLE table_name_91 (draws INTEGER, wins VARCHAR, position VARCHAR, points VARCHAR, conceded VARCHAR)
SELECT MIN(draws) FROM table_name_91 WHERE points < 15 AND conceded > 10 AND position > 8 AND wins = 1
How many losses have 11 points?
CREATE TABLE table_name_62 (losses VARCHAR, points VARCHAR)
SELECT COUNT(losses) FROM table_name_62 WHERE points = 11
What is the song title sung by Sonu Nigam with lyricists of Dev Kohli/Biddu, and number over 8?
CREATE TABLE table_name_3 (song_title VARCHAR, number VARCHAR, singer_s_ VARCHAR, lyricist VARCHAR)
SELECT song_title FROM table_name_3 WHERE singer_s_ = "sonu nigam" AND lyricist = "dev kohli/biddu" AND number > 8
Who was the singer for the song numbered 3, with lyricist Dev Kohli?
CREATE TABLE table_name_97 (singer_s_ VARCHAR, lyricist VARCHAR, number VARCHAR)
SELECT singer_s_ FROM table_name_97 WHERE lyricist = "dev kohli" AND number = 3
What is the average number for the song "O Sudha"?
CREATE TABLE table_name_75 (number INTEGER, song_title VARCHAR)
SELECT AVG(number) FROM table_name_75 WHERE song_title = "o sudha"
What is the average length for the song "Ma Ke Jaisi"?
CREATE TABLE table_name_53 (length VARCHAR, song_title VARCHAR)
SELECT length FROM table_name_53 WHERE song_title = "ma ke jaisi"
Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?
CREATE TABLE table_name_83 (name VARCHAR, total_goals VARCHAR, fa_cup_goals VARCHAR, league_cup_goals VARCHAR)
SELECT name FROM table_name_83 WHERE fa_cup_goals = 0 AND league_cup_goals < 2 AND total_goals = 2
what is the fa cup goals when total apps is 10 (4)?
CREATE TABLE table_name_12 (fa_cup_goals INTEGER, total_apps VARCHAR)
SELECT SUM(fa_cup_goals) FROM table_name_12 WHERE total_apps = "10 (4)"
how many times is the fa cup apps more than 0, the position mf and the league goals 4?
CREATE TABLE table_name_52 (total_goals VARCHAR, league_goals VARCHAR, fa_cup_apps VARCHAR, position VARCHAR)
SELECT COUNT(total_goals) FROM table_name_52 WHERE fa_cup_apps > 0 AND position = "mf" AND league_goals = 4
What is the total number of electorates in 2009 with a constituency of 193?
CREATE TABLE table_name_83 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR)
SELECT COUNT(number_of_electorates__2009_) FROM table_name_83 WHERE constituency_number = "193"
What is the reserved for the constituency of 192?
CREATE TABLE table_name_34 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_34 WHERE constituency_number = "192"
Which Artist has a Percentage of 11.32%?
CREATE TABLE table_name_79 (artist VARCHAR, percentage VARCHAR)
SELECT artist FROM table_name_79 WHERE percentage = "11.32%"
What is the week for November 28, 1982?
CREATE TABLE table_name_14 (week INTEGER, date VARCHAR)
SELECT MIN(week) FROM table_name_14 WHERE date = "november 28, 1982"
What is the attendance number when the result is l 41-37?
CREATE TABLE table_name_32 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_32 WHERE result = "l 41-37"
What is the attendance in a week earlier than 4, and result is w 31-20?
CREATE TABLE table_name_5 (attendance INTEGER, week VARCHAR, result VARCHAR)
SELECT AVG(attendance) FROM table_name_5 WHERE week < 4 AND result = "w 31-20"
What is the opponent in a week larger than 1, with a result of l 21-20?
CREATE TABLE table_name_31 (opponent VARCHAR, week VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_31 WHERE week > 1 AND result = "l 21-20"
What sport was played by the team founded in 2010?
CREATE TABLE table_name_3 (sport VARCHAR, founded VARCHAR)
SELECT sport FROM table_name_3 WHERE founded = 2010
What club team was founded before 2011 and plays at the champion window field?
CREATE TABLE table_name_27 (club VARCHAR, founded VARCHAR, venue VARCHAR)
SELECT club FROM table_name_27 WHERE founded < 2011 AND venue = "champion window field"
How many different dates are there for founded teams for the venue of champion window field?
CREATE TABLE table_name_77 (founded VARCHAR, venue VARCHAR)
SELECT COUNT(founded) FROM table_name_77 WHERE venue = "champion window field"
What club team plays at the champion window field?
CREATE TABLE table_name_40 (club VARCHAR, venue VARCHAR)
SELECT club FROM table_name_40 WHERE venue = "champion window field"
Which Inflation Index (2000=100) has a Per Capita Income (as % of USA) of 10.65, and a Year smaller than 1990?
CREATE TABLE table_name_67 (inflation_index__2000 INTEGER, per_capita_income__as__percentage_of_usa_ VARCHAR, year VARCHAR)
SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_67 WHERE per_capita_income__as__percentage_of_usa_ = 10.65 AND year < 1990
What release date has 6998 as the production num.?
CREATE TABLE table_name_77 (release_date VARCHAR, production_num VARCHAR)
SELECT release_date FROM table_name_77 WHERE production_num = "6998"
What director has lt as the series, with 6982 as the production num.?
CREATE TABLE table_name_40 (director VARCHAR, series VARCHAR, production_num VARCHAR)
SELECT director FROM table_name_40 WHERE series = "lt" AND production_num = "6982"
What series has 1935-07-13 as the release date?
CREATE TABLE table_name_12 (series VARCHAR, release_date VARCHAR)
SELECT series FROM table_name_12 WHERE release_date = "1935-07-13"
What title has lt as the series, ben hardaway as the director, with 6612 as the production num.?
CREATE TABLE table_name_66 (title VARCHAR, production_num VARCHAR, series VARCHAR, director VARCHAR)
SELECT title FROM table_name_66 WHERE series = "lt" AND director = "ben hardaway" AND production_num = "6612"
What is the song title from 1963 on the Pacific Jazz label, and a Label-Nr of st-81?
CREATE TABLE table_name_26 (title VARCHAR, label VARCHAR, year VARCHAR, Nr VARCHAR, st VARCHAR)
SELECT title FROM table_name_26 WHERE label = "pacific jazz" AND year = 1963 AND label - Nr = st - 81
What is the earliest year with a label-Nr of st-43?
CREATE TABLE table_name_37 (year INTEGER, label VARCHAR, Nr VARCHAR, st VARCHAR)
SELECT MIN(year) FROM table_name_37 WHERE label - Nr = st - 43
What is the song title on the Pacific Jazz label, and a Label-Nr of st-20124?
CREATE TABLE table_name_3 (title VARCHAR, label VARCHAR, Nr VARCHAR, st VARCHAR)
SELECT title FROM table_name_3 WHERE label = "pacific jazz" AND label - Nr = st - 20124
What is the type earlier than 1968, and a Title of stretchin' out?
CREATE TABLE table_name_42 (type VARCHAR, year VARCHAR, title VARCHAR)
SELECT type FROM table_name_42 WHERE year < 1968 AND title = "stretchin' out"
what is the team that is pick 31?
CREATE TABLE table_name_19 (team VARCHAR, pick VARCHAR)
SELECT team FROM table_name_19 WHERE pick = 31
what is the position when the pick is higher than 32 and the team is atlanta braves?
CREATE TABLE table_name_8 (position VARCHAR, pick VARCHAR, team VARCHAR)
SELECT position FROM table_name_8 WHERE pick > 32 AND team = "atlanta braves"
what is the position when the pick is higher than 33 and the school is tottenville hs (staten island, ny)?
CREATE TABLE table_name_16 (position VARCHAR, pick VARCHAR, school VARCHAR)
SELECT position FROM table_name_16 WHERE pick > 33 AND school = "tottenville hs (staten island, ny)"
What is the Attendance of the game in Week 12?
CREATE TABLE table_name_99 (attendance INTEGER, week VARCHAR)
SELECT MAX(attendance) FROM table_name_99 WHERE week = 12
What is the Opponent on December 3, 1979?
CREATE TABLE table_name_25 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_25 WHERE date = "december 3, 1979"
What is the Result of the game against Philadelphia Eagles?
CREATE TABLE table_name_62 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_62 WHERE opponent = "philadelphia eagles"
What is the score March 27?
CREATE TABLE table_name_55 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_55 WHERE date = "march 27"
What is the score for the game larger than 4 in series 3-2?
CREATE TABLE table_name_77 (score VARCHAR, game VARCHAR, series VARCHAR)
SELECT score FROM table_name_77 WHERE game > 4 AND series = "3-2"
What is the game number for series 4-2?
CREATE TABLE table_name_56 (game VARCHAR, series VARCHAR)
SELECT COUNT(game) FROM table_name_56 WHERE series = "4-2"
What date has a game smaller than 4, and a score of 116-114?
CREATE TABLE table_name_73 (date VARCHAR, game VARCHAR, score VARCHAR)
SELECT date FROM table_name_73 WHERE game < 4 AND score = "116-114"
What is the game number on April 7?
CREATE TABLE table_name_43 (game VARCHAR, date VARCHAR)
SELECT COUNT(game) FROM table_name_43 WHERE date = "april 7"
Which Opposing Team has an Against smaller than 19, and a Date of 20/05/1979?
CREATE TABLE table_name_34 (opposing_team VARCHAR, against VARCHAR, date VARCHAR)
SELECT opposing_team FROM table_name_34 WHERE against < 19 AND date = "20/05/1979"
What was the production number of the episode titel of pre-hysterical hare?
CREATE TABLE table_name_76 (production_number VARCHAR, title VARCHAR)
SELECT COUNT(production_number) FROM table_name_76 WHERE title = "pre-hysterical hare"
What director had a production number of 1490?
CREATE TABLE table_name_27 (director VARCHAR, production_number VARCHAR)
SELECT director FROM table_name_27 WHERE production_number = 1490
Which title was directed by chuck jones and released on 1958-04-12?
CREATE TABLE table_name_56 (title VARCHAR, director VARCHAR, release_date VARCHAR)
SELECT title FROM table_name_56 WHERE director = "chuck jones" AND release_date = "1958-04-12"
Which Name has a Time larger than 53.06, and a Lane smaller than 8, and a Rank larger than 2, and a Nationality of japan?
CREATE TABLE table_name_96 (name VARCHAR, nationality VARCHAR, rank VARCHAR, time VARCHAR, lane VARCHAR)
SELECT name FROM table_name_96 WHERE time > 53.06 AND lane < 8 AND rank > 2 AND nationality = "japan"
How many lanes have a Time of 53.61, and a Rank larger than 3?
CREATE TABLE table_name_32 (lane INTEGER, time VARCHAR, rank VARCHAR)
SELECT SUM(lane) FROM table_name_32 WHERE time = 53.61 AND rank > 3
What is the finish position in the year prior to 2009?
CREATE TABLE table_name_64 (finish_position VARCHAR, year INTEGER)
SELECT finish_position FROM table_name_64 WHERE year < 2009
Which #/ County has a Location of ossian?
CREATE TABLE table_name_88 (_number___county VARCHAR, location VARCHAR)
SELECT _number___county FROM table_name_88 WHERE location = "ossian"
How much Enrollment has an IHSAA Class of aaaaa, and a Mascot of spartans?
CREATE TABLE table_name_79 (enrollment VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT COUNT(enrollment) FROM table_name_79 WHERE ihsaa_class = "aaaaa" AND mascot = "spartans"
How much Enrollment has a School of fort wayne homestead?
CREATE TABLE table_name_5 (enrollment INTEGER, school VARCHAR)
SELECT SUM(enrollment) FROM table_name_5 WHERE school = "fort wayne homestead"
Which IHSAA Class has a Location of columbia city?
CREATE TABLE table_name_49 (ihsaa_class VARCHAR, location VARCHAR)
SELECT ihsaa_class FROM table_name_49 WHERE location = "columbia city"
Who was the opponent at the game with a score of 111-106?
CREATE TABLE table_name_78 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_78 WHERE score = "111-106"
What was the location of the game with a score of 113-106?
CREATE TABLE table_name_13 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_name_13 WHERE score = "113-106"
What is the highest pick number for a pick drafted by the denver broncos?
CREATE TABLE table_name_52 (pick INTEGER, team VARCHAR)
SELECT MAX(pick) FROM table_name_52 WHERE team = "denver broncos"
What opponent has l 27-7 as the result?
CREATE TABLE table_name_83 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_83 WHERE result = "l 27-7"
How many weeks has 54,187 as the attendance?
CREATE TABLE table_name_87 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_87 WHERE attendance = 54 OFFSET 187
What tournament had Alberta Brianti as an opponent with a score of 6-4 2-6 6-2?
CREATE TABLE table_name_96 (tournament VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_96 WHERE opponent = "alberta brianti" AND score = "6-4 2-6 6-2"
When was the score 3-6 4-6?
CREATE TABLE table_name_3 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_3 WHERE score = "3-6 4-6"
What is the Rank of the Swimmer with a Time of 2:25.65 in a Lane larger than 3?
CREATE TABLE table_name_36 (rank INTEGER, time VARCHAR, lane VARCHAR)
SELECT AVG(rank) FROM table_name_36 WHERE time = "2:25.65" AND lane > 3
What is the Rank of Qi Hui?
CREATE TABLE table_name_52 (rank VARCHAR, name VARCHAR)
SELECT COUNT(rank) FROM table_name_52 WHERE name = "qi hui"
How many Forfeits have Wins smaller than 8, and Losses larger than 16?
CREATE TABLE table_name_84 (forfeits VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT COUNT(forfeits) FROM table_name_84 WHERE wins < 8 AND losses > 16
How many Losses have a Millewa of nangiloc?
CREATE TABLE table_name_13 (losses VARCHAR, millewa VARCHAR)
SELECT COUNT(losses) FROM table_name_13 WHERE millewa = "nangiloc"
How many Losses have Draws larger than 0?
CREATE TABLE table_name_58 (losses INTEGER, draws INTEGER)
SELECT MAX(losses) FROM table_name_58 WHERE draws > 0
What is the average rank of Elise Matthysen in lanes under 8?
CREATE TABLE table_name_46 (rank INTEGER, name VARCHAR, lane VARCHAR)
SELECT AVG(rank) FROM table_name_46 WHERE name = "elise matthysen" AND lane < 8
What is the time of Yuliya Yefimova?
CREATE TABLE table_name_53 (time VARCHAR, name VARCHAR)
SELECT time FROM table_name_53 WHERE name = "yuliya yefimova"
Who was from Great Britain in lanes under number 3?
CREATE TABLE table_name_1 (name VARCHAR, lane VARCHAR, nationality VARCHAR)
SELECT name FROM table_name_1 WHERE lane < 3 AND nationality = "great britain"
What wheel arrangement was made in 1910?
CREATE TABLE table_name_1 (wheel_arrangement VARCHAR, year_made VARCHAR)
SELECT wheel_arrangement FROM table_name_1 WHERE year_made = "1910"
What year were the retired serial numbers 27317–27336?
CREATE TABLE table_name_32 (year_s__retired VARCHAR, serial_numbers VARCHAR)
SELECT year_s__retired FROM table_name_32 WHERE serial_numbers = "27317–27336"
Which Surface has a score of 7-5, 5-7, 6-3?
CREATE TABLE table_name_16 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_16 WHERE score = "7-5, 5-7, 6-3"
Which tournament has a Score of 6-4, 6-4?
CREATE TABLE table_name_30 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_30 WHERE score = "6-4, 6-4"
What was the Surface on during 10 November 2006?
CREATE TABLE table_name_41 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_41 WHERE date = "10 november 2006"