answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MAX(byes) FROM table_name_87 WHERE lexton_plains = "skipton"
CREATE TABLE table_name_87 (byes INTEGER, lexton_plains VARCHAR)
Which Byes have a Lexton Plains of skipton?
SELECT lost FROM table_name_33 WHERE drawn = "0" AND tries_against = "41"
CREATE TABLE table_name_33 (lost VARCHAR, drawn VARCHAR, tries_against VARCHAR)
What is the value for Lost when Drawn is 0, and Tries against is 41?
SELECT drawn FROM table_name_47 WHERE club = "furnace united rfc"
CREATE TABLE table_name_47 (drawn VARCHAR, club VARCHAR)
What is the drawn value for furnace united rfc?
SELECT tries_against FROM table_name_87 WHERE club = "burry port rfc"
CREATE TABLE table_name_87 (tries_against VARCHAR, club VARCHAR)
What tries against value does burry port rfc have?
SELECT MIN(staterooms) FROM table_name_44 WHERE comments = "diesel-electric hybrid engines" AND length = "443 feet" AND guests > 190
CREATE TABLE table_name_44 (staterooms INTEGER, guests VARCHAR, comments VARCHAR, length VARCHAR)
Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms?
SELECT wins FROM table_name_47 WHERE year > 1987 AND points < 188
CREATE TABLE table_name_47 (wins VARCHAR, year VARCHAR, points VARCHAR)
How many wins for the year that is later than 1987 and has points less than 188?
SELECT machine FROM table_name_59 WHERE rank = "4th" AND wins = 2
CREATE TABLE table_name_59 (machine VARCHAR, rank VARCHAR, wins VARCHAR)
What is the name of the machine that ranked 4th and has 2 wins?
SELECT SUM(wins) FROM table_name_20 WHERE year = 1994
CREATE TABLE table_name_20 (wins INTEGER, year VARCHAR)
How many wins were there in 1994?
SELECT rank FROM table_name_34 WHERE wins > 2 AND points > 204
CREATE TABLE table_name_34 (rank VARCHAR, wins VARCHAR, points VARCHAR)
What is the rank associated with the team that has more than 2 wins and has greater than 204 points?
SELECT SUM(pick) FROM table_name_80 WHERE player = "pong escobal"
CREATE TABLE table_name_80 (pick INTEGER, player VARCHAR)
How many picks have a Player of pong escobal?
SELECT pba_team FROM table_name_61 WHERE college = "nu"
CREATE TABLE table_name_61 (pba_team VARCHAR, college VARCHAR)
Which PBA team has a College of nu?
SELECT place_of_birth FROM table_name_65 WHERE elevator = "lucius iii" AND cardinalatial_title = "deacon of s. giorgio in velabro"
CREATE TABLE table_name_65 (place_of_birth VARCHAR, elevator VARCHAR, cardinalatial_title VARCHAR)
What is the birth place for someone elevated by Lucius III, and has the Cardinalatial title of Deacon of S. Giorgio in Velabro?
SELECT place_of_birth FROM table_name_94 WHERE elector = "laborante de panormo"
CREATE TABLE table_name_94 (place_of_birth VARCHAR, elector VARCHAR)
What is the place of birth for the elector Laborante de Panormo?
SELECT elector FROM table_name_86 WHERE cardinalatial_title = "deacon of ss. cosma e damiano"
CREATE TABLE table_name_86 (elector VARCHAR, cardinalatial_title VARCHAR)
Who is the elector that has the cardinalatial title of Deacon of SS. Cosma e Damiano?
SELECT elevator FROM table_name_14 WHERE cardinalatial_title = "deacon of ss. sergio e bacco"
CREATE TABLE table_name_14 (elevator VARCHAR, cardinalatial_title VARCHAR)
Who is the elevator with the cardinalatial title of Deacon of SS. Sergio e Bacco?
SELECT SUM(premier_league) FROM table_name_20 WHERE fa_cup = 0 AND total = 1 AND UEfa_cup > 1
CREATE TABLE table_name_20 (premier_league INTEGER, UEfa_cup VARCHAR, fa_cup VARCHAR, total VARCHAR)
How much Premier League has an FA Cup of 0, and a Total of 1, and a UEFA Cup larger than 1?
SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0
CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR)
How many totals have a Premier League smaller than 6, and a League Cup larger than 0?
SELECT AVG(fa_cup) FROM table_name_24 WHERE total < 1
CREATE TABLE table_name_24 (fa_cup INTEGER, total INTEGER)
Which FA Cup has a Total smaller than 1?
SELECT COUNT(week) FROM table_name_26 WHERE attendance = "68,932" AND opponent = "indianapolis colts"
CREATE TABLE table_name_26 (week VARCHAR, attendance VARCHAR, opponent VARCHAR)
What week is the opponent the Indianapolis Colts with an attendance of 68,932?
SELECT attendance FROM table_name_86 WHERE week < 10 AND result = "l 12-15"
CREATE TABLE table_name_86 (attendance VARCHAR, week VARCHAR, result VARCHAR)
What was the attendance for the week before 10 with a result of L 12-15
SELECT MAX(week) FROM table_name_17 WHERE result = "l 17-31"
CREATE TABLE table_name_17 (week INTEGER, result VARCHAR)
What week has a result of L 17-31 first?
SELECT result FROM table_name_24 WHERE attendance = "70,721"
CREATE TABLE table_name_24 (result VARCHAR, attendance VARCHAR)
What was the score for the game that attendance was 70,721?
SELECT SUM(week) FROM table_name_8 WHERE result = "safe" AND dance = "salsa"
CREATE TABLE table_name_8 (week INTEGER, result VARCHAR, dance VARCHAR)
What week was she safe for a salsa dance?
SELECT opponent FROM table_name_37 WHERE result = "loss" AND location = "westbury, ny"
CREATE TABLE table_name_37 (opponent VARCHAR, result VARCHAR, location VARCHAR)
Who was the opponent with the loss in Westbury, NY?
SELECT date FROM table_name_4 WHERE "type" = "type"
CREATE TABLE table_name_4 (date VARCHAR)
What is the date where the type is type?
SELECT COUNT(rank) FROM table_name_2 WHERE silver < 2 AND gold = 4 AND bronze > 2
CREATE TABLE table_name_2 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
What is the total rank for the player with less than 2 silvers, 4 golds, and more than 2 bronze?
SELECT SUM(rank) FROM table_name_78 WHERE silver > 1 AND gold = 1 AND total < 6
CREATE TABLE table_name_78 (rank INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
What is the sum of rank with more than 1 silver medal, 1 gold medal, and less than 6?
SELECT date FROM table_name_21 WHERE circuit = "winton motor raceway"
CREATE TABLE table_name_21 (date VARCHAR, circuit VARCHAR)
What's the date of the circuit Winton Motor Raceway?
SELECT city___state FROM table_name_16 WHERE circuit = "hidden valley raceway"
CREATE TABLE table_name_16 (city___state VARCHAR, circuit VARCHAR)
What's the city/state of Hidden Valley Raceway?
SELECT date FROM table_name_95 WHERE circuit = "bahrain international circuit"
CREATE TABLE table_name_95 (date VARCHAR, circuit VARCHAR)
What's the date of Bahrain International Circuit?
SELECT circuit FROM table_name_11 WHERE winner = "event cancelled"
CREATE TABLE table_name_11 (circuit VARCHAR, winner VARCHAR)
What's the circuit that had an event cancelled?
SELECT distance FROM table_name_57 WHERE feature = "ridge"
CREATE TABLE table_name_57 (distance VARCHAR, feature VARCHAR)
what is the distance for ridge?
SELECT latitude FROM table_name_70 WHERE distance = "42.5km"
CREATE TABLE table_name_70 (latitude VARCHAR, distance VARCHAR)
what is the latitude when the distance is 42.5km?
SELECT feature FROM table_name_60 WHERE name = "bird ridge"
CREATE TABLE table_name_60 (feature VARCHAR, name VARCHAR)
what is the feature named bird ridge?
SELECT distance FROM table_name_89 WHERE name = "mjåkollen"
CREATE TABLE table_name_89 (distance VARCHAR, name VARCHAR)
what is the distance for mjåkollen?
SELECT distance FROM table_name_27 WHERE bearing = "297°"
CREATE TABLE table_name_27 (distance VARCHAR, bearing VARCHAR)
what is the distance for bearing 297°?
SELECT platform_s_ FROM table_name_8 WHERE year = 2007
CREATE TABLE table_name_8 (platform_s_ VARCHAR, year VARCHAR)
What platform has a year of 2007?
SELECT game FROM table_name_13 WHERE year = 2011
CREATE TABLE table_name_13 (game VARCHAR, year VARCHAR)
Which game was released in 2011?
SELECT platform_s_ FROM table_name_38 WHERE year < 2009 AND game = "wii sports"
CREATE TABLE table_name_38 (platform_s_ VARCHAR, year VARCHAR, game VARCHAR)
What platform came out before 2009 with the game wii sports?
SELECT nationality FROM table_name_32 WHERE lane < 6 AND rank = 1
CREATE TABLE table_name_32 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)
What nationality has a lane less than 6, with 1 as the rank?
SELECT time FROM table_name_63 WHERE lane < 5 AND nationality = "poland"
CREATE TABLE table_name_63 (time VARCHAR, lane VARCHAR, nationality VARCHAR)
What time has a lane less than 5, with Poland as the nationality?
SELECT COUNT(lane) FROM table_name_62 WHERE time = "1:53.70"
CREATE TABLE table_name_62 (lane VARCHAR, time VARCHAR)
How many lanes have 1:53.70 as the time?
SELECT SUM(rank) FROM table_name_22 WHERE name = "chen yin" AND lane > 8
CREATE TABLE table_name_22 (rank INTEGER, name VARCHAR, lane VARCHAR)
How many ranks have chen yin as the name, with a lane greater than 8?
SELECT nationality FROM table_name_96 WHERE time = "1:55.35"
CREATE TABLE table_name_96 (nationality VARCHAR, time VARCHAR)
What nationality has 1:55.35 as the time?
SELECT SUM(lane) FROM table_name_25 WHERE rank > 8
CREATE TABLE table_name_25 (lane INTEGER, rank INTEGER)
How many lanes have a rank greater than 8?
SELECT home FROM table_name_14 WHERE country = "sweden"
CREATE TABLE table_name_14 (home VARCHAR, country VARCHAR)
Where in Sweden is the home of the Swedish team?
SELECT third FROM table_name_23 WHERE second = "xu xiaoming"
CREATE TABLE table_name_23 (third VARCHAR, second VARCHAR)
Who is third to Xu Xiaoming at second?
SELECT lead FROM table_name_84 WHERE home = "saskatoon, saskatchewan"
CREATE TABLE table_name_84 (lead VARCHAR, home VARCHAR)
Who is the lead for the team from Saskatoon, Saskatchewan?
SELECT second FROM table_name_38 WHERE lead = "euan byers"
CREATE TABLE table_name_38 (second VARCHAR, lead VARCHAR)
Who is second on the team with Euan Byers at lead?
SELECT third FROM table_name_23 WHERE home = "madison, wisconsin" AND skip = "craig brown"
CREATE TABLE table_name_23 (third VARCHAR, home VARCHAR, skip VARCHAR)
Who is the third on the team from Madison, Wisconsin that has Craig Brown as skip?
SELECT date FROM table_name_54 WHERE opponent = "chicago bears"
CREATE TABLE table_name_54 (date VARCHAR, opponent VARCHAR)
On which date was the opponent the Chicago Bears?
SELECT SUM(week) FROM table_name_40 WHERE date = "october 30, 1983"
CREATE TABLE table_name_40 (week INTEGER, date VARCHAR)
Which week was on october 30, 1983?
SELECT mascot FROM table_name_13 WHERE previous_conference = "independent" AND location = "leo"
CREATE TABLE table_name_13 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR)
What is the Mascot for the team from leo that had a Previous Conference value of independent?
SELECT school FROM table_name_81 WHERE ihsaa_class__football_class = "3a/2a"
CREATE TABLE table_name_81 (school VARCHAR, ihsaa_class__football_class VARCHAR)
What School had 3a/2a as the value for IHSAA Class/ Football Class?
SELECT COUNT(july_1), _2013_projection FROM table_name_58 WHERE rank = "27"
CREATE TABLE table_name_58 (_2013_projection VARCHAR, july_1 VARCHAR, rank VARCHAR)
How many July 1, 2013 projections have a Rank of 27?
SELECT format FROM table_name_94 WHERE call_sign = "cite-fm-1"
CREATE TABLE table_name_94 (format VARCHAR, call_sign VARCHAR)
What is the format for the one which has a call sign of cite-fm-1?
SELECT COUNT(dolphins_points) FROM table_name_80 WHERE attendance = 52 OFFSET 860
CREATE TABLE table_name_80 (dolphins_points VARCHAR, attendance VARCHAR)
What'd the total Dolphin points when there was an attendance of 52,860?
SELECT MAX(attendance) FROM table_name_77 WHERE dolphins_points < 24 AND opponent = "new england patriots"
CREATE TABLE table_name_77 (attendance INTEGER, dolphins_points VARCHAR, opponent VARCHAR)
What's the most in attendance when the Dolphins points were less than 24 and, they played the New England Patriots?
SELECT district FROM table_name_2 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "169"
CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
Which district had SC reserved and 169 Constituents?
SELECT reserved_for___sc___st__none_ FROM table_name_72 WHERE constituency_number = "169"
CREATE TABLE table_name_72 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
What was reserved in the district that has 169 constituents?
SELECT 1995 FROM table_name_81 WHERE 1997 = "lq" AND 1989 = "1r"
CREATE TABLE table_name_81 (Id VARCHAR)
What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R?
SELECT 1996 FROM table_name_4 WHERE 1994 = "lq" AND 1992 = "3r"
CREATE TABLE table_name_4 (Id VARCHAR)
What is 1996 Grand Slam Tournament if 1994 is LQ and 1992 is 3R?
SELECT 1994 FROM table_name_88 WHERE 1993 = "grand slam tournaments"
CREATE TABLE table_name_88 (Id VARCHAR)
What is 1994 Grand Slam Tournament if 1993 is also grand slam tournaments?
SELECT 1995 FROM table_name_96 WHERE 1990 = "lq"
CREATE TABLE table_name_96 (Id VARCHAR)
What is 1995 Grand Slam Tournament if 1990 is LQ?
SELECT 1990 FROM table_name_33 WHERE 1996 = "grand slam tournaments"
CREATE TABLE table_name_33 (Id VARCHAR)
What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments?
SELECT 1987 FROM table_name_71 WHERE 1989 = "grand slam tournaments"
CREATE TABLE table_name_71 (Id VARCHAR)
What is 1987 Grand Slam Tournament if 1989 is also grand slam tournaments?
SELECT SUM(attendance) FROM table_name_61 WHERE opponent = "new york jets"
CREATE TABLE table_name_61 (attendance INTEGER, opponent VARCHAR)
How many people attended the home game against the New York Jets?
SELECT COUNT(attendance) FROM table_name_28 WHERE date = "september 14, 1968"
CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR)
How many people attended the September 14, 1968 game?
SELECT director FROM table_name_51 WHERE production_number = "9368"
CREATE TABLE table_name_51 (director VARCHAR, production_number VARCHAR)
Who is the director of the production number 9368?
SELECT title FROM table_name_78 WHERE director = "chuck jones" AND production_number = "9537"
CREATE TABLE table_name_78 (title VARCHAR, director VARCHAR, production_number VARCHAR)
What is the title with chuck jones as the director and the production number 9537?
SELECT release_date FROM table_name_40 WHERE series = "mm" AND title = "tom thumb in trouble"
CREATE TABLE table_name_40 (release_date VARCHAR, series VARCHAR, title VARCHAR)
What is the release date of the mm series, which has the title tom thumb in trouble?
SELECT release_date FROM table_name_92 WHERE series = "mm" AND title = "confederate honey"
CREATE TABLE table_name_92 (release_date VARCHAR, series VARCHAR, title VARCHAR)
What is the release date of the mm series which has the title confederate honey?
SELECT AVG(start) FROM table_name_33 WHERE team = "andretti green racing" AND finish > 3 AND year < 2007
CREATE TABLE table_name_33 (start INTEGER, year VARCHAR, team VARCHAR, finish VARCHAR)
What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007?
SELECT MIN(start) FROM table_name_62 WHERE year > 2008
CREATE TABLE table_name_62 (start INTEGER, year INTEGER)
What is the lowest start in a year after 2008?
SELECT finish FROM table_name_73 WHERE start < 25
CREATE TABLE table_name_73 (finish VARCHAR, start INTEGER)
What finish has a start smaller than 25?
SELECT COUNT(start) FROM table_name_53 WHERE team = "rahal letterman" AND year = 2006
CREATE TABLE table_name_53 (start VARCHAR, team VARCHAR, year VARCHAR)
Where did the team of Rahal Letterman in 2006 start?
SELECT year FROM table_name_51 WHERE chassis = "dallara" AND team = "andretti green racing" AND finish < 8
CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR)
What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?
SELECT director FROM table_name_93 WHERE release_date = "2004-03-31" AND characters = "daffy (as duck dodgers)"
CREATE TABLE table_name_93 (director VARCHAR, release_date VARCHAR, characters VARCHAR)
What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character?
SELECT title FROM table_name_98 WHERE characters = "daffy (as duck dodgers)"
CREATE TABLE table_name_98 (title VARCHAR, characters VARCHAR)
What title has daffy (as duck dodgers) as the character?
SELECT series FROM table_name_46 WHERE director = "dan povenmire" AND title = "museum scream"
CREATE TABLE table_name_46 (series VARCHAR, director VARCHAR, title VARCHAR)
What series has dan povenmire as the director, with museum scream as the title?
SELECT MAX(number_of_electorates__2009_) FROM table_name_86 WHERE district = "raisen" AND constituency_number = "142"
CREATE TABLE table_name_86 (number_of_electorates__2009_ INTEGER, district VARCHAR, constituency_number VARCHAR)
What was the highest number of 2009 electorates for Raisen when the consituency number was 142?
SELECT COUNT(population_density__per_km²_) FROM table_name_98 WHERE name = "total northern villages" AND population__2006_ > 11414
CREATE TABLE table_name_98 (population_density__per_km²_ VARCHAR, name VARCHAR, population__2006_ VARCHAR)
How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?
SELECT MAX(population_density__per_km²_) FROM table_name_90 WHERE change___percentage_ > 4.9 AND land_area__km²_ < 15.59 AND population__2011_ > 790
CREATE TABLE table_name_90 (population_density__per_km²_ INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, land_area__km²_ VARCHAR)
Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790?
SELECT SUM(population__2011_) FROM table_name_28 WHERE land_area__km²_ > 15.69 AND population_density__per_km²_ > 57.3
CREATE TABLE table_name_28 (population__2011_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR)
How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than 57.3?
SELECT MAX(land_area__km²_) FROM table_name_12 WHERE population_density__per_km²_ > 112.6 AND population__2006_ > 785 AND name = "pinehouse"
CREATE TABLE table_name_12 (land_area__km²_ INTEGER, name VARCHAR, population_density__per_km²_ VARCHAR, population__2006_ VARCHAR)
Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?
SELECT MAX(withdrawn) FROM table_name_18 WHERE number = "32 (2nd)" AND converted < 1966
CREATE TABLE table_name_18 (withdrawn INTEGER, number VARCHAR, converted VARCHAR)
With a converted less than 1966 and a number of 32 (2nd), what is the largest number listed for withdrawn?
SELECT average FROM table_name_47 WHERE matches = "11"
CREATE TABLE table_name_47 (average VARCHAR, matches VARCHAR)
What is the average when the matches are 11?
SELECT overs FROM table_name_88 WHERE matches = "10"
CREATE TABLE table_name_88 (overs VARCHAR, matches VARCHAR)
What is the overs when the matches are 10?
SELECT MIN(car__number) FROM table_name_39 WHERE driver = "ryan newman" AND pos > 10
CREATE TABLE table_name_39 (car__number INTEGER, driver VARCHAR, pos VARCHAR)
Which Car # has a Driver of ryan newman, and a Position larger than 10?
SELECT AVG(car__number) FROM table_name_95 WHERE team = "hendrick motorsports" AND driver = "mark martin" AND pos > 4
CREATE TABLE table_name_95 (car__number INTEGER, pos VARCHAR, team VARCHAR, driver VARCHAR)
Which Car # has a Team of hendrick motorsports, and a Driver of mark martin, and a Position larger than 4?
SELECT time FROM table_name_24 WHERE local_networked = "local" AND ad_freq = "20 minutes" AND news_freq = "n/a after 7pm news"
CREATE TABLE table_name_24 (time VARCHAR, news_freq VARCHAR, local_networked VARCHAR, ad_freq VARCHAR)
Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news?
SELECT time FROM table_name_84 WHERE news_freq = "1 hour" AND show_name = "best mix overnight"
CREATE TABLE table_name_84 (time VARCHAR, news_freq VARCHAR, show_name VARCHAR)
Which time has a news frequency of 1 hour and show name of Best Mix Overnight?
SELECT ad_freq FROM table_name_58 WHERE show_name = "health matters"
CREATE TABLE table_name_58 (ad_freq VARCHAR, show_name VARCHAR)
What is the ad frequency for the show named Health Matters?
SELECT news_freq FROM table_name_73 WHERE show_name = "locker room"
CREATE TABLE table_name_73 (news_freq VARCHAR, show_name VARCHAR)
What is the news frequency for the show Locker Room?
SELECT local_networked FROM table_name_38 WHERE ad_freq = "n/a"
CREATE TABLE table_name_38 (local_networked VARCHAR, ad_freq VARCHAR)
What is the local/networked value for the show with an ad frequency of N/A?
SELECT time FROM table_name_94 WHERE rank > 2 AND country = "france"
CREATE TABLE table_name_94 (time VARCHAR, rank VARCHAR, country VARCHAR)
When france had a rank larger than 2, what was their time?
SELECT time FROM table_name_13 WHERE country = "kazakhstan"
CREATE TABLE table_name_13 (time VARCHAR, country VARCHAR)
What was the time for the country of kazakhstan?
SELECT athletes FROM table_name_82 WHERE country = "germany"
CREATE TABLE table_name_82 (athletes VARCHAR, country VARCHAR)
What athletes represented the country of germany?
SELECT AVG(rank) FROM table_name_38 WHERE time = "1:42.054"
CREATE TABLE table_name_38 (rank INTEGER, time VARCHAR)
What was the rank for the finish time of 1:42.054?
SELECT country FROM table_name_81 WHERE rank < 7 AND time = "1:43.189"
CREATE TABLE table_name_81 (country VARCHAR, rank VARCHAR, time VARCHAR)
Which country had a rank smaller than 7 and a time of 1:43.189?