answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT record FROM table_name_26 WHERE date = "september 27"
What is the record for the game played on September 27?
CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR)
SELECT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds LIMIT 1
What are the forename and surname of the driver who has the smallest laptime?
CREATE TABLE laptimes (driverid VARCHAR, milliseconds VARCHAR); CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR)
SELECT nfl_team FROM table_13758243_1 WHERE player = "Steve Scifres"
What team drafted steve scifres?
CREATE TABLE table_13758243_1 (nfl_team VARCHAR, player VARCHAR)
SELECT AVG(lead_margin) FROM table_name_86 WHERE dates_administered = "november 13-november 19, 2007"
Name the average Lead Margin on november 13-november 19, 2007?
CREATE TABLE table_name_86 (lead_margin INTEGER, dates_administered VARCHAR)
SELECT MAX(top_25) FROM table_name_16 WHERE events > 4 AND wins = 2 AND top_10 < 6
What was the larger number of players that played in 4 events that 2 wins but were less than 6 in the top 10?
CREATE TABLE table_name_16 (top_25 INTEGER, top_10 VARCHAR, events VARCHAR, wins VARCHAR)
SELECT wicket_partnership FROM table_name_91 WHERE season = "1928"
What was the partnership in the season of 1928
CREATE TABLE table_name_91 (wicket_partnership VARCHAR, season VARCHAR)
SELECT MAX(pop_¹) FROM table_name_11 WHERE prefecture = "tottori"
Name the highest pop for tottori
CREATE TABLE table_name_11 (pop_¹ INTEGER, prefecture VARCHAR)
SELECT song FROM table_name_8 WHERE artist = "liam reilly"
What's the song of artist liam reilly?
CREATE TABLE table_name_8 (song VARCHAR, artist VARCHAR)
SELECT MIN(played) FROM table_name_54 WHERE team = "vasco da gama" AND against < 11
Which Played is the lowest one that has a Team of vasco da gama, and an Against smaller than 11?
CREATE TABLE table_name_54 (played INTEGER, team VARCHAR, against VARCHAR)
SELECT sprint_classification FROM table_22713796_14 WHERE winner = "Alejandro Valverde"
Name the sprint classification being alejandro valverde
CREATE TABLE table_22713796_14 (sprint_classification VARCHAR, winner VARCHAR)
SELECT order FROM table_name_9 WHERE olympic_games = "tokyo"
What was the order of the Tokyo olympic games?
CREATE TABLE table_name_9 (order VARCHAR, olympic_games VARCHAR)
SELECT team_record FROM table_24453847_2 WHERE week = 8
What was the Rhein Fire team record on week 8?
CREATE TABLE table_24453847_2 (team_record VARCHAR, week VARCHAR)
SELECT game_site FROM table_name_93 WHERE attendance = "63,336"
What is the location of the game with attendance of 63,336?
CREATE TABLE table_name_93 (game_site VARCHAR, attendance VARCHAR)
SELECT writer_s_ FROM table_10953197_4 WHERE production_code = "2395096"
Who was the writer for the episode with production code 2395096?
CREATE TABLE table_10953197_4 (writer_s_ VARCHAR, production_code VARCHAR)
SELECT AVG(laps) FROM table_name_49 WHERE grid < 17 AND constructor = "williams - bmw" AND driver = "jenson button"
What is the average Laps for a grid smaller than 17, and a Constructor of williams - bmw, driven by jenson button?
CREATE TABLE table_name_49 (laps INTEGER, driver VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT SUM(drawn) FROM table_name_13 WHERE lost > 1 AND games < 5
Name the sum of drawn with lost more than 1 and games less than 5
CREATE TABLE table_name_13 (drawn INTEGER, lost VARCHAR, games VARCHAR)
SELECT organisation FROM table_name_84 WHERE year < 2005 AND award = "best variety show host"
what is the organisation when the year is less than 2005 and the award is the best variety show host?
CREATE TABLE table_name_84 (organisation VARCHAR, year VARCHAR, award VARCHAR)
SELECT country FROM table_name_43 WHERE class = "15 meters" AND qualifying_grand_prix = "soaring grand prix of united kingdom"
What is Country, when Class is "15 meters", and when Qualifying Grand Prix is "Soaring Grand Prix Of United Kingdom"?
CREATE TABLE table_name_43 (country VARCHAR, class VARCHAR, qualifying_grand_prix VARCHAR)
SELECT score FROM table_name_11 WHERE date = "april 9"
Date of april 9 had what score?
CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR)
SELECT opponents FROM table_name_91 WHERE competition = "league cup" AND score = "3-1"
Who was the opponent at the League Cup competition with a score of 3-1?
CREATE TABLE table_name_91 (opponents VARCHAR, competition VARCHAR, score VARCHAR)
SELECT source FROM table_name_8 WHERE attack = "9,77%"
What Source has an Attack of 9,77%?
CREATE TABLE table_name_8 (source VARCHAR, attack VARCHAR)
SELECT title FROM table_name_91 WHERE developer = "2play mobile" AND genre = "action"
What is Title, when Developer is "2Play Mobile", and when Genre is "Action"?
CREATE TABLE table_name_91 (title VARCHAR, developer VARCHAR, genre VARCHAR)
SELECT driver FROM table_name_17 WHERE engine = "era 1.5 l6 s" AND chassis = "era b"
who is the driver with the engine era 1.5 l6 s and the chassis is era b?
CREATE TABLE table_name_17 (driver VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT to_par FROM table_name_34 WHERE player = "bernhard langer"
Which To par has a Player of bernhard langer?
CREATE TABLE table_name_34 (to_par VARCHAR, player VARCHAR)
SELECT COUNT(material_collected) FROM table_19534677_1 WHERE volume_title = "Justice League of America by George Pérez, Vol. 2"
Name the total number of material collected for justice league of america by george pérez, vol. 2
CREATE TABLE table_19534677_1 (material_collected VARCHAR, volume_title VARCHAR)
SELECT player FROM table_11545282_5 WHERE no = "53"
Which player is no. 53?
CREATE TABLE table_11545282_5 (player VARCHAR, no VARCHAR)
SELECT SUM(pts) FROM table_name_96 WHERE wins = 21 AND coach = "bruce arena"
What is the sum of points when Bruce Arena has 21 wins?
CREATE TABLE table_name_96 (pts INTEGER, wins VARCHAR, coach VARCHAR)
SELECT result FROM table_name_78 WHERE date = "30 july 2004"
What is the result of the match on 30 July 2004?
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)
SELECT MIN(year) FROM table_name_42 WHERE venue = "rio de janeiro, brazil"
What is the lowest Year, when Venue is Rio De Janeiro, Brazil?
CREATE TABLE table_name_42 (year INTEGER, venue VARCHAR)
SELECT bleeding_time FROM table_1099080_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura"
What was the bleeding time for the factor x deficiency as seen in amyloid purpura
CREATE TABLE table_1099080_1 (bleeding_time VARCHAR, condition VARCHAR)
SELECT MAX(attendance) FROM table_name_17 WHERE loss = "hiller (3–2)"
What is the Attendance of the game with a Loss of Hiller (3–2)?
CREATE TABLE table_name_17 (attendance INTEGER, loss VARCHAR)
SELECT song FROM table_name_94 WHERE artist = "filipa sousa"
What song has filipa sousa as an artist?
CREATE TABLE table_name_94 (song VARCHAR, artist VARCHAR)
SELECT score FROM table_name_37 WHERE game = 25
What is the score of game 25?
CREATE TABLE table_name_37 (score VARCHAR, game VARCHAR)
SELECT points_for FROM table_name_17 WHERE club = "penallta rfc"
What is the points for of Club of penallta rfc?
CREATE TABLE table_name_17 (points_for VARCHAR, club VARCHAR)
SELECT customer_id, customer_first_name, customer_last_name, customer_phone FROM Customers
Show ids, first names, last names, and phones for all customers.
CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR)
SELECT StuID FROM Student WHERE sex = 'F' INTERSECT SELECT StuID FROM Sportsinfo WHERE sportname = "Football"
Show student ids who are female and play football.
CREATE TABLE Sportsinfo (StuID VARCHAR, sex VARCHAR, sportname VARCHAR); CREATE TABLE Student (StuID VARCHAR, sex VARCHAR, sportname VARCHAR)
SELECT date FROM table_name_53 WHERE result = "w 13-10"
What is the date of the game with a result of W 13-10?
CREATE TABLE table_name_53 (date VARCHAR, result VARCHAR)
SELECT nation FROM table_name_91 WHERE bronze = 3
Which nation had 3 bronze?
CREATE TABLE table_name_91 (nation VARCHAR, bronze VARCHAR)
SELECT producer FROM table_name_32 WHERE director = "bona fajardo"
What is Director Bona Fajardo's Producer?
CREATE TABLE table_name_32 (producer VARCHAR, director VARCHAR)
SELECT MIN(position) FROM table_name_95 WHERE goals_for > 95
For a team having goals for more than 95, what is the lowest position?
CREATE TABLE table_name_95 (position INTEGER, goals_for INTEGER)
SELECT AVG(gold) FROM table_name_2 WHERE nation = "hungary" AND bronze > 1
What is the average Gold, when Nation is Hungary, and when Bronze is greater than 1?
CREATE TABLE table_name_2 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT COUNT(*) FROM products WHERE product_price > (SELECT AVG(product_price) FROM products)
How many products have a price higher than the average?
CREATE TABLE products (product_price INTEGER)
SELECT result FROM table_2062148_2 WHERE jockey = "J. Marshall"
What was the result of the race where the jockey was J. Marshall?
CREATE TABLE table_2062148_2 (result VARCHAR, jockey VARCHAR)
SELECT score FROM table_17140608_11 WHERE date = "April 28"
What score(s) were recorded on april 28?
CREATE TABLE table_17140608_11 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_25 WHERE date = "january 16, 2010"
What was the score on January 16, 2010?
CREATE TABLE table_name_25 (score VARCHAR, date VARCHAR)
SELECT team FROM table_name_72 WHERE car_no = "15"
Which team had car number 15?
CREATE TABLE table_name_72 (team VARCHAR, car_no VARCHAR)
SELECT report FROM table_name_89 WHERE date = "29 november" AND away_team = "melbourne tigers"
What kind of report was for the game played on 29 November with Melbourne Tigers being the away team?
CREATE TABLE table_name_89 (report VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT COUNT(year) FROM table_name_66 WHERE position = "2nd"
How many years have had the position of 2nd?
CREATE TABLE table_name_66 (year VARCHAR, position VARCHAR)
SELECT programming_language_used FROM table_name_52 WHERE first_public_release = "1997"
Which Programming language used has a First public release of 1997?
CREATE TABLE table_name_52 (programming_language_used VARCHAR, first_public_release VARCHAR)
SELECT earnings___$__ FROM table_name_7 WHERE top_10s = 23
What amount of earnings corresponds with a Top 10s rank of 23?
CREATE TABLE table_name_7 (earnings___$__ VARCHAR, top_10s VARCHAR)
SELECT COUNT(goals_against) FROM table_name_17 WHERE position > 1 AND played > 10
How many goals against were scored when the position was higher than 1 and the played was higher than 10?
CREATE TABLE table_name_17 (goals_against VARCHAR, position VARCHAR, played VARCHAR)
SELECT MAX(year) FROM table_name_96 WHERE entrant = "team motul brm" AND chassis = "brm p201" AND points < 0
Name the most year for team motul brm and chassis of brm p201 and points less than 0
CREATE TABLE table_name_96 (year INTEGER, points VARCHAR, entrant VARCHAR, chassis VARCHAR)
SELECT years_of_nba_experience_[a_] FROM table_name_28 WHERE pos = "g" AND team = "portland trail blazers"
How many years of NBA experience does the player who plays position g for the Portland Trail Blazers?
CREATE TABLE table_name_28 (years_of_nba_experience_ VARCHAR, a_ VARCHAR, pos VARCHAR, team VARCHAR)
SELECT score FROM table_name_84 WHERE visitor = "philadelphia"
What was the score of the game where Philadelphia was the visitor?
CREATE TABLE table_name_84 (score VARCHAR, visitor VARCHAR)
SELECT SUM(comp) FROM table_name_33 WHERE comp_percentage = 65.4 AND att < 451
What is the sum of completions that led to completion percentages of 65.4 and attempts under 451?
CREATE TABLE table_name_33 (comp INTEGER, comp_percentage VARCHAR, att VARCHAR)
SELECT MAX(total_score) FROM table_23465011_5 WHERE average_ranking = 7
What is the total score when 7 is the average ranking?
CREATE TABLE table_23465011_5 (total_score INTEGER, average_ranking VARCHAR)
SELECT T1.emp_lname, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'
What is the last name and office of the professor from the history department?
CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE employee (emp_lname VARCHAR, emp_num VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR)
SELECT pinnacle_height FROM table_name_31 WHERE name = "chimney of orot rabin"
What is Pinnacle height of chimney of orot rabin?
CREATE TABLE table_name_31 (pinnacle_height VARCHAR, name VARCHAR)
SELECT prize FROM table_name_31 WHERE year > 2002 AND competition = "camra london and south east regional competition" AND beer_name = "good old boy"
What prize did good old boy win in 2002 at the camra london and south east regional competition?
CREATE TABLE table_name_31 (prize VARCHAR, beer_name VARCHAR, year VARCHAR, competition VARCHAR)
SELECT score FROM table_name_96 WHERE place = "t8"
What was the score when the place was t8?
CREATE TABLE table_name_96 (score VARCHAR, place VARCHAR)
SELECT losses FROM table_name_51 WHERE conference = "western" AND season = "2004–05"
What is the Losses at the western conference and the 2004–05 season?
CREATE TABLE table_name_51 (losses VARCHAR, conference VARCHAR, season VARCHAR)
SELECT team FROM table_name_13 WHERE time = "32:17"
What team was the player that received a penalty at time 32:17 playing for?
CREATE TABLE table_name_13 (team VARCHAR, time VARCHAR)
SELECT score FROM table_17058116_7 WHERE game = 46
What is the score of game 46
CREATE TABLE table_17058116_7 (score VARCHAR, game VARCHAR)
SELECT home_team AS score FROM table_name_95 WHERE venue = "mcg"
What was the Home team's score when the Venue was mcg?
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_38 WHERE away_team = "south melbourne"
What did the team score when playing south melbourne at home?
CREATE TABLE table_name_38 (home_team VARCHAR, away_team VARCHAR)
SELECT opponent FROM table_name_60 WHERE date = "april 28"
Who was the opponent on April 28?
CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR)
SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name
Find the name of amenities Smith Hall dorm have. ordered the results by amenity names.
CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)
SELECT fastest_lap FROM table_name_16 WHERE grand_prix = "belgian grand prix"
What is the fastest lap for Belgian Grand Prix?
CREATE TABLE table_name_16 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT SUM(total) FROM table_name_45 WHERE league_cup < 1 AND fa_cup < 1
What is the total when the league cup is less than 1, and the fa cup is less than 1?
CREATE TABLE table_name_45 (total INTEGER, league_cup VARCHAR, fa_cup VARCHAR)
SELECT place FROM table_name_86 WHERE score = 66 - 68 - 70 = 204
What is the place of the player with a 66-68-70=204 score?
CREATE TABLE table_name_86 (place VARCHAR, score VARCHAR)
SELECT COUNT(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Allied Irish Banks"
Name the total number of tier 1 capital for allied irish banks
CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital VARCHAR, institution VARCHAR)
SELECT MIN(year_joined) FROM table_name_93 WHERE mascot = "pioneers"
Name the lowest Year Joined which has a Mascot of pioneers?
CREATE TABLE table_name_93 (year_joined INTEGER, mascot VARCHAR)
SELECT COUNT(DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Chinese"
What is the number of distinct continents where Chinese is spoken?
CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)
SELECT nationality FROM table_name_13 WHERE ranking < 7 AND name = "tony stenson"
What nationality has a ranking less than 7 with tony stenson as the name?
CREATE TABLE table_name_13 (nationality VARCHAR, ranking VARCHAR, name VARCHAR)
SELECT electorate FROM table_name_37 WHERE member = "dingley brittin category:articles with hcards"
What electorate does Member dingley brittin category:articles with hcards represent?
CREATE TABLE table_name_37 (electorate VARCHAR, member VARCHAR)
SELECT boiler_provider FROM table_28672269_1 WHERE tg_set_provider = "BHEL, India"
What is the boiler provider for Bhel, India's TG Set provider?
CREATE TABLE table_28672269_1 (boiler_provider VARCHAR, tg_set_provider VARCHAR)
SELECT football_conference FROM table_261927_2 WHERE location = "Henniker, New Hampshire"
What is the football conference for Henniker, New Hampshire>?
CREATE TABLE table_261927_2 (football_conference VARCHAR, location VARCHAR)
SELECT COUNT(laps) FROM table_name_25 WHERE grid = 24
how many laps were there when the grid was 24?
CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR)
SELECT catalog FROM table_name_47 WHERE region = "germany"
What Catalog was released in Germany?
CREATE TABLE table_name_47 (catalog VARCHAR, region VARCHAR)
SELECT attendance FROM table_name_37 WHERE date = "13 april 1903"
How many Attendances on 13 april 1903?
CREATE TABLE table_name_37 (attendance VARCHAR, date VARCHAR)
SELECT character FROM table_name_91 WHERE episodes > 22
What character is in over 22 episodes?
CREATE TABLE table_name_91 (character VARCHAR, episodes INTEGER)
SELECT losses FROM table_name_56 WHERE season = "playoffs"
What are the losses of the playoffs season?
CREATE TABLE table_name_56 (losses VARCHAR, season VARCHAR)
SELECT player FROM table_name_81 WHERE college = "arizona state"
who is the player from arizona state?
CREATE TABLE table_name_81 (player VARCHAR, college VARCHAR)
SELECT home__2nd_leg_ FROM table_17968229_1 WHERE aggregate = "0-2"
With an aggregate of 0-2, what is listed for home?
CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)
SELECT country FROM table_name_33 WHERE score = 69 - 71 = 140
Name the country with a score of 69-71=140.
CREATE TABLE table_name_33 (country VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_77 WHERE score = "7–5, 6–3" AND date = "27 july 2003"
On 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3?
CREATE TABLE table_name_77 (outcome VARCHAR, score VARCHAR, date VARCHAR)
SELECT spanish FROM table_26614365_1 WHERE central = "cas [ˈkas]"
What is the Spanish word for cas [ˈkas]?
CREATE TABLE table_26614365_1 (spanish VARCHAR, central VARCHAR)
SELECT system FROM table_name_76 WHERE license = "freeware" AND name = "steem"
Which System's Name is Steem, and has a Freeware License?
CREATE TABLE table_name_76 (system VARCHAR, license VARCHAR, name VARCHAR)
SELECT home_captain FROM table_name_70 WHERE result = "[[|]] by 151 runs"
Who is the home captain of the match that resulted [[|]] by 151 runs?
CREATE TABLE table_name_70 (home_captain VARCHAR, result VARCHAR)
SELECT years_in_orlando FROM table_15621965_10 WHERE position = "Forward"
Name the years in orlando for forward
CREATE TABLE table_15621965_10 (years_in_orlando VARCHAR, position VARCHAR)
SELECT district FROM table_1342338_5 WHERE incumbent = "John E. Miller"
In what district was John E. Miller the incumbent?
CREATE TABLE table_1342338_5 (district VARCHAR, incumbent VARCHAR)
SELECT champion FROM table_name_58 WHERE city = "tucson, arizona"
Which player from Tucson, Arizona won the Championship?
CREATE TABLE table_name_58 (champion VARCHAR, city VARCHAR)
SELECT school_year FROM table_name_9 WHERE cross_country = "lexington" AND soccer = "ashland" AND volleyball = "wooster"
What is School Year, when Cross Country is Lexington, when Soccer is Ashland, and when Volleyball is Wooster?
CREATE TABLE table_name_9 (school_year VARCHAR, volleyball VARCHAR, cross_country VARCHAR, soccer VARCHAR)
SELECT COUNT(vacator) FROM table_224840_4 WHERE district = "Massachusetts 3rd"
How many seats became avaliable in Massachusetts 3rd district?
CREATE TABLE table_224840_4 (vacator VARCHAR, district VARCHAR)
SELECT MIN(crowd) FROM table_name_57 WHERE venue = "princes park"
What is the smallest crowd at princes park?
CREATE TABLE table_name_57 (crowd INTEGER, venue VARCHAR)
SELECT DISTINCT T1.player_name, T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY potential DESC LIMIT 5
List the names and birthdays of the top five players in terms of potential.
CREATE TABLE Player_Attributes (player_api_id VARCHAR); CREATE TABLE Player (player_name VARCHAR, birthday VARCHAR, player_api_id VARCHAR)
SELECT attendance FROM table_name_21 WHERE week < 5 AND date = "no game scheduled"
What was the attendance for weeks prior to 5 when there was no game scheduled?
CREATE TABLE table_name_21 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT country FROM table_name_2 WHERE place = "t10" AND player = "tony jacklin"
Which Country has a Place of t10, and a Player of tony jacklin?
CREATE TABLE table_name_2 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT COUNT(2011) FROM table_name_45 WHERE 2008 > 346.5 AND 2009 = 392 AND 2010 > 354.6
What is the 2011 total with a 2008 value greater than 346.5, a 2009 value of 392, and a 2010 value bigger than 354.6?
CREATE TABLE table_name_45 (Id VARCHAR)
SELECT attendance FROM table_name_54 WHERE date = "1997-12-14"
What was the attendance on 1997-12-14?
CREATE TABLE table_name_54 (attendance VARCHAR, date VARCHAR)