answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT SUM(1978 AS _veteran_membership) FROM table_name_66 WHERE NOT _late_1941 = "macedonia" AND late_1943 < 10 OFFSET 000
CREATE TABLE table_name_66 (late_1943 VARCHAR, _late_1941 VARCHAR)
What is the 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000?
SELECT opponent FROM table_name_3 WHERE season = "2011/12"
CREATE TABLE table_name_3 (opponent VARCHAR, season VARCHAR)
Which opponent has a Season of 2011/12?
SELECT opponent FROM table_name_7 WHERE season = "2010/11"
CREATE TABLE table_name_7 (opponent VARCHAR, season VARCHAR)
Which opponent has a Season of 2010/11?
SELECT competition FROM table_name_56 WHERE season = "2010/11"
CREATE TABLE table_name_56 (competition VARCHAR, season VARCHAR)
Which competition has a Season of 2010/11?
SELECT opponent FROM table_name_20 WHERE result = "–"
CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR)
What Opponent has a Result of –?
SELECT season FROM table_name_71 WHERE result = "6–9"
CREATE TABLE table_name_71 (season VARCHAR, result VARCHAR)
Which season has a Result of 6–9?
SELECT round FROM table_name_53 WHERE venue = "nicosia" AND opponent = "levski sofia zapad"
CREATE TABLE table_name_53 (round VARCHAR, venue VARCHAR, opponent VARCHAR)
Which round has a Venue of nicosia, and a Opponent of levski sofia zapad?
SELECT result FROM table_name_27 WHERE score = "22-21"
CREATE TABLE table_name_27 (result VARCHAR, score VARCHAR)
What resulted in a score of 22-21?
SELECT competition FROM table_name_97 WHERE date = "6/7/03"
CREATE TABLE table_name_97 (competition VARCHAR, date VARCHAR)
What competition was held on the date 6/7/03
SELECT score FROM table_name_84 WHERE date = "15/6/03"
CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR)
What was the score for the date of 15/6/03
SELECT venue FROM table_name_5 WHERE date = "8/6/03"
CREATE TABLE table_name_5 (venue VARCHAR, date VARCHAR)
What venue is on the date of 8/6/03
SELECT result FROM table_name_69 WHERE score = "12-22"
CREATE TABLE table_name_69 (result VARCHAR, score VARCHAR)
What outcome has a score of 12-22?
SELECT date FROM table_name_14 WHERE venue = "jjb stadium" AND result = "w"
CREATE TABLE table_name_14 (date VARCHAR, venue VARCHAR, result VARCHAR)
What date is for Venue of jjb stadium, and a Result of w?
SELECT MAX(laps) FROM table_name_71 WHERE driver = "françois cevert"
CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR)
What is the high lap total for françois cevert?
SELECT constructor FROM table_name_83 WHERE driver = "rolf stommelen"
CREATE TABLE table_name_83 (constructor VARCHAR, driver VARCHAR)
Who constructed rolf stommelen's car?
SELECT driver FROM table_name_91 WHERE time_retired = "engine" AND grid < 9
CREATE TABLE table_name_91 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR)
Who drive the car that retired due to engine failure and a grid of less than 9?
SELECT date FROM table_name_47 WHERE record = "izod indycar series"
CREATE TABLE table_name_47 (date VARCHAR, record VARCHAR)
When was the race that set the record for the Izod Indycar Series?
SELECT driver FROM table_name_61 WHERE record = "qualifying" AND time = "24.761"
CREATE TABLE table_name_61 (driver VARCHAR, record VARCHAR, time VARCHAR)
Which driver set the Qualifying record with a time of 24.761 seconds?
SELECT player FROM table_name_52 WHERE position = "guard" AND school_club_team = "byu"
CREATE TABLE table_name_52 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
What Utah Jazz guard, played at BYU?
SELECT school_club_team FROM table_name_19 WHERE player = "derek fisher"
CREATE TABLE table_name_19 (school_club_team VARCHAR, player VARCHAR)
What college team did Derek Fisher play for?
SELECT nationality FROM table_name_51 WHERE school_club_team = "utep"
CREATE TABLE table_name_51 (nationality VARCHAR, school_club_team VARCHAR)
The Utah Jazz Player from UTEP was what nationality?
SELECT venue FROM table_name_26 WHERE home_team = "richmond"
CREATE TABLE table_name_26 (venue VARCHAR, home_team VARCHAR)
What is the name of the venue when the home team is Richmond?
SELECT home_team AS score FROM table_name_40 WHERE venue = "princes park"
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
What is the home team score when the venue is Princes Park?
SELECT actor FROM table_name_66 WHERE character = "glen cole"
CREATE TABLE table_name_66 (actor VARCHAR, character VARCHAR)
What actor plays glen cole?
SELECT AVG(final_episode) AS Count FROM table_name_99 WHERE character = "maxine valera"
CREATE TABLE table_name_99 (final_episode INTEGER, character VARCHAR)
What is the average number for a final episode featuring maxine valera?
SELECT SUM(laps) FROM table_name_45 WHERE time_retired = "2:54:23.8"
CREATE TABLE table_name_45 (laps INTEGER, time_retired VARCHAR)
How many laps were driven in 2:54:23.8?
SELECT constructor FROM table_name_43 WHERE laps < 100 AND time_retired = "+10 laps"
CREATE TABLE table_name_43 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR)
Which constructor has laps less than 100 and a time/retired +10 laps?
SELECT MAX(laps) FROM table_name_95 WHERE grid = 8
CREATE TABLE table_name_95 (laps INTEGER, grid VARCHAR)
What are the highest number of laps for grid 8?
SELECT MAX(grid) FROM table_name_11 WHERE time_retired = "+0.3"
CREATE TABLE table_name_11 (grid INTEGER, time_retired VARCHAR)
Which grid is the highest and has a time/retired of +0.3?
SELECT driver FROM table_name_61 WHERE constructor = "maserati" AND laps > 23 AND grid > 7
CREATE TABLE table_name_61 (driver VARCHAR, grid VARCHAR, constructor VARCHAR, laps VARCHAR)
Which driver for Maserati has more laps than 23 and a grid greater than 7?
SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "4"
CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR)
Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?
SELECT winner FROM table_name_71 WHERE points_classification = "giuseppe saronni" AND trofeo_fast_team = "bianchi" AND stage = "3"
CREATE TABLE table_name_71 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, trofeo_fast_team VARCHAR)
Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3?
SELECT stage FROM table_name_57 WHERE points_classification = "francesco moser" AND general_classification = "bernard hinault"
CREATE TABLE table_name_57 (stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR)
Which stage had a Points Classification of Francesco Moser and a general classification of Bernard Hinault?
SELECT winner FROM table_name_85 WHERE points_classification = "francesco moser" AND stage = "12"
CREATE TABLE table_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)
Who was the winner of Stage 12 with a Points Classification of Francesco Moser?
SELECT stage FROM table_name_51 WHERE winner = "bernard hinault" AND points_classification = "francesco moser"
CREATE TABLE table_name_51 (stage VARCHAR, winner VARCHAR, points_classification VARCHAR)
Which stage was won by Bernard Hinault and had a Points classification of Francesco Moser?
SELECT loser FROM table_name_5 WHERE date = "december 12" AND year = 1971
CREATE TABLE table_name_5 (loser VARCHAR, date VARCHAR, year VARCHAR)
Who was the loser on December 12, 1971?
SELECT loser FROM table_name_96 WHERE location = "municipal stadium" AND year > 1970
CREATE TABLE table_name_96 (loser VARCHAR, location VARCHAR, year VARCHAR)
Who was the loser at Municipal Stadium after 1970?
SELECT date FROM table_name_95 WHERE year = 1975 AND winner = "oakland raiders"
CREATE TABLE table_name_95 (date VARCHAR, year VARCHAR, winner VARCHAR)
What is the date where the winner was the Oakland Raiders in 1975?
SELECT result FROM table_name_23 WHERE location = "arrowhead stadium" AND loser = "kansas city chiefs"
CREATE TABLE table_name_23 (result VARCHAR, location VARCHAR, loser VARCHAR)
What is result of the game at Arrowhead Stadium where the loser was the Kansas City Chiefs?
SELECT work FROM table_name_54 WHERE category = "best movie"
CREATE TABLE table_name_54 (work VARCHAR, category VARCHAR)
What was nominated for the Best Movie category?
SELECT award FROM table_name_27 WHERE work = "scream" AND year = 1997
CREATE TABLE table_name_27 (award VARCHAR, work VARCHAR, year VARCHAR)
Which award did Scream receive a nomination and/or win for in 1997?
SELECT category FROM table_name_52 WHERE work = "scream" AND award = "international horror guild"
CREATE TABLE table_name_52 (category VARCHAR, work VARCHAR, award VARCHAR)
What category was Scream nominated for at the International Horror Guild?
SELECT time_retired FROM table_name_35 WHERE laps < 54 AND driver = "mark donohue"
CREATE TABLE table_name_35 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
what is the time/retired when the laps is less than 54 and the driver is mark donohue?
SELECT MAX(grid) FROM table_name_39 WHERE driver = "mario andretti" AND laps < 54
CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR, laps VARCHAR)
what is the grid when the driver is mario andretti and the laps is less than 54?
SELECT COUNT(laps) FROM table_name_25 WHERE grid = 24
CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR)
how many laps were there when the grid was 24?
SELECT time_retired FROM table_name_79 WHERE laps = 6 AND grid < 18 AND driver = "clay regazzoni"
CREATE TABLE table_name_79 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni?
SELECT class FROM table_name_33 WHERE quantity < 5 AND gwr_nos = "1322–1323"
CREATE TABLE table_name_33 (class VARCHAR, quantity VARCHAR, gwr_nos VARCHAR)
Which class is smaller than 5 and the GWR is 1322–1323?
SELECT name FROM table_name_74 WHERE province = "central highlands" AND term_expires = 1996
CREATE TABLE table_name_74 (name VARCHAR, province VARCHAR, term_expires VARCHAR)
Whose term expired in 1996 and was from the province of Central Highlands?
SELECT province FROM table_name_79 WHERE party = "national" AND name = "ken wright"
CREATE TABLE table_name_79 (province VARCHAR, party VARCHAR, name VARCHAR)
Ken Wright of the National Party was from which province?
SELECT venue FROM table_name_20 WHERE year = 1967
CREATE TABLE table_name_20 (venue VARCHAR, year VARCHAR)
Which venue hosted a race in 1967?
SELECT tournament FROM table_name_73 WHERE year > 1966
CREATE TABLE table_name_73 (tournament VARCHAR, year INTEGER)
Which tournament was held after 1966?
SELECT venue FROM table_name_78 WHERE year = 1965
CREATE TABLE table_name_78 (venue VARCHAR, year VARCHAR)
Which venue hosted a tournament in 1965?
SELECT result FROM table_name_17 WHERE nominee = "best new musical"
CREATE TABLE table_name_17 (result VARCHAR, nominee VARCHAR)
What is the result for the best new musical nominee?
SELECT COUNT(year) FROM table_name_84 WHERE nominee = "simon baker"
CREATE TABLE table_name_84 (year VARCHAR, nominee VARCHAR)
How many years does simon baker appear as a nominee?
SELECT height_in_ft FROM table_name_44 WHERE years_for_rockets = "2005-06"
CREATE TABLE table_name_44 (height_in_ft VARCHAR, years_for_rockets VARCHAR)
What is the Height for Years of Rockets of 2005-06?
SELECT height_in_ft FROM table_name_78 WHERE years_for_rockets = "2005-06"
CREATE TABLE table_name_78 (height_in_ft VARCHAR, years_for_rockets VARCHAR)
What is the Height for Years for Rockets of 2005-06?
SELECT attendance FROM table_name_99 WHERE date = "august 15"
CREATE TABLE table_name_99 (attendance VARCHAR, date VARCHAR)
What is the Attendance on august 15?
SELECT constructor FROM table_name_1 WHERE fastest_lap = "nigel mansell"
CREATE TABLE table_name_1 (constructor VARCHAR, fastest_lap VARCHAR)
What is the constructor for the race with Nigel Mansell as the fastest lap?
SELECT fastest_lap FROM table_name_82 WHERE location = "estoril"
CREATE TABLE table_name_82 (fastest_lap VARCHAR, location VARCHAR)
What is the fastest lap at estoril?
SELECT race FROM table_name_9 WHERE fastest_lap = "keke rosberg" AND location = "paul ricard"
CREATE TABLE table_name_9 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR)
What is the race in Paul Ricard with Keke Rosberg as the fastest lap?
SELECT race AS Winner FROM table_name_99 WHERE location = "spa-francorchamps"
CREATE TABLE table_name_99 (race VARCHAR, location VARCHAR)
Who was the winner at spa-francorchamps?
SELECT venue FROM table_name_11 WHERE result = "7-2"
CREATE TABLE table_name_11 (venue VARCHAR, result VARCHAR)
Where was the game with result 7-2 played?
SELECT score FROM table_name_54 WHERE competition = "friendly" AND result = "7-2"
CREATE TABLE table_name_54 (score VARCHAR, competition VARCHAR, result VARCHAR)
What was the score of the Friendly competition where the result was 7-2?
SELECT score FROM table_name_15 WHERE date = "27 january 1996"
CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR)
What was the score of the game on 27 January 1996?
SELECT competition FROM table_name_40 WHERE result = "3-2"
CREATE TABLE table_name_40 (competition VARCHAR, result VARCHAR)
What is the event with a result of 3-2?
SELECT SUM(crowd) FROM table_name_30 WHERE venue = "junction oval"
CREATE TABLE table_name_30 (crowd INTEGER, venue VARCHAR)
How big was the crowd size, at the Junction Oval venue?
SELECT away_team AS score FROM table_name_39 WHERE away_team = "melbourne"
CREATE TABLE table_name_39 (away_team VARCHAR)
What is the visiting team of Melbourne's score?
SELECT AVG(crowd) FROM table_name_78 WHERE home_team = "fitzroy"
CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR)
What is the average crowd size of Fitzroy's home team?
SELECT MIN(build_date) FROM table_name_48 WHERE disposal = "scrapped 1941"
CREATE TABLE table_name_48 (build_date INTEGER, disposal VARCHAR)
Which railway had the earliest build date and a disposal of "Scrapped 1941?"
SELECT railway FROM table_name_68 WHERE build_date = 1911 AND loco_name = "pyramus"
CREATE TABLE table_name_68 (railway VARCHAR, build_date VARCHAR, loco_name VARCHAR)
Which railway had a loco name of Pyramus and a build date of 1911?
SELECT build_date FROM table_name_13 WHERE wheels = "0-6-2 t"
CREATE TABLE table_name_13 (build_date VARCHAR, wheels VARCHAR)
What was the build date of the railway(s) with 0-6-2 t wheels?
SELECT disbanded FROM table_name_73 WHERE league = "ahl"
CREATE TABLE table_name_73 (disbanded VARCHAR, league VARCHAR)
Which disbanded is in the ahl league?
SELECT championships FROM table_name_1 WHERE established > 2005
CREATE TABLE table_name_1 (championships VARCHAR, established INTEGER)
Which championship was established after 2005?
SELECT year FROM table_name_62 WHERE player = "j.r. reid"
CREATE TABLE table_name_62 (year VARCHAR, player VARCHAR)
Which year had J.R. Reid as a player?
SELECT hometown FROM table_name_11 WHERE player = "dajuan wagner"
CREATE TABLE table_name_11 (hometown VARCHAR, player VARCHAR)
Which hometown is the played Dajuan Wagner from?
SELECT crowd FROM table_name_29 WHERE home_team = "carlton"
CREATE TABLE table_name_29 (crowd VARCHAR, home_team VARCHAR)
When the home team was carlton how many people were in the crowd?
SELECT away_team FROM table_name_95 WHERE crowd > 23 OFFSET 000
CREATE TABLE table_name_95 (away_team VARCHAR, crowd INTEGER)
Which away team had a crowd of over 23,000 people?
SELECT home_team FROM table_name_39 WHERE venue = "western oval"
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)
What's the home team for the western oval venue?
SELECT home_team AS score FROM table_name_28 WHERE venue = "junction oval"
CREATE TABLE table_name_28 (home_team VARCHAR, venue VARCHAR)
What's the home team for the junction oval venue?
SELECT result FROM table_name_5 WHERE opponent = "fenerbahçe"
CREATE TABLE table_name_5 (result VARCHAR, opponent VARCHAR)
What was the result when the opponent was fenerbahçe?
SELECT apparent_magnitude FROM table_name_14 WHERE ngc_number = "6027d"
CREATE TABLE table_name_14 (apparent_magnitude VARCHAR, ngc_number VARCHAR)
what is the apparent magnitude of NGC number 6027d?
SELECT visitor FROM table_name_77 WHERE home = "grizzlies" AND date = "13 november 2007"
CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR)
What is the visiting team of the game with the home team Grizzlies on 13 November 2007?
SELECT date FROM table_name_98 WHERE home = "mavericks"
CREATE TABLE table_name_98 (date VARCHAR, home VARCHAR)
What is the date of the game when the Mavericks were the home team?
SELECT MIN(year_made) FROM table_name_86 WHERE wheel_arrangement = "0-4-2t"
CREATE TABLE table_name_86 (year_made INTEGER, wheel_arrangement VARCHAR)
Which of the lowest years had a Wheel arrangement that was 0-4-2t?
SELECT AVG(year_made) FROM table_name_85 WHERE iwcr_no = "5" AND year_withdrawn > 1926
CREATE TABLE table_name_85 (year_made INTEGER, iwcr_no VARCHAR, year_withdrawn VARCHAR)
What is the mean Year when the IWCR number was 5 and the Year withdrawn was bigger than 1926?
SELECT sr_no FROM table_name_87 WHERE wheel_arrangement = "0-6-0t" AND year_made > 1874 AND year_withdrawn = 1963
CREATE TABLE table_name_87 (sr_no VARCHAR, year_withdrawn VARCHAR, wheel_arrangement VARCHAR, year_made VARCHAR)
Which SR number had a wheel arrangement of 0-6-0t, the year made was more recent than 1874, and the year withdrawn was 1963?
SELECT COUNT(year_made) FROM table_name_18 WHERE wheel_arrangement = "0-4-0t"
CREATE TABLE table_name_18 (year_made VARCHAR, wheel_arrangement VARCHAR)
What is the sum number of years where the wheel arrangement of 0-4-0t?
SELECT MAX(week) FROM table_name_63 WHERE attendance = "63,001"
CREATE TABLE table_name_63 (week INTEGER, attendance VARCHAR)
What was the latest week of a game that had an attendance of 63,001?
SELECT COUNT(total) FROM table_name_76 WHERE nation = "austria" AND rank > 4
CREATE TABLE table_name_76 (total VARCHAR, nation VARCHAR, rank VARCHAR)
What is the total medals Austria and those with larger than rank 4 have?
SELECT MAX(gold) FROM table_name_96 WHERE rank < 6 AND silver = 1 AND total > 4
CREATE TABLE table_name_96 (gold INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR)
What is the most gold medals that a team ranked higher than 6, have 1 silver medal, and more than 4 total medals have?
SELECT country FROM table_name_76 WHERE opened = 2002 AND model = "spinning coaster" AND park = "disney's animal kingdom"
CREATE TABLE table_name_76 (country VARCHAR, park VARCHAR, opened VARCHAR, model VARCHAR)
Which country has a rollercoaster that opened in 2002, is a spinning coaster, and is located in Disney's Animal Kingdom?
SELECT name FROM table_name_98 WHERE opened = 2000 AND park = "brighton pier"
CREATE TABLE table_name_98 (name VARCHAR, opened VARCHAR, park VARCHAR)
What is the name of the roller coaster that opened in 2000 in Brighton Pier?
SELECT COUNT(attendance) FROM table_name_85 WHERE date = "may 6"
CREATE TABLE table_name_85 (attendance VARCHAR, date VARCHAR)
How many attended on may 6?
SELECT opponent FROM table_name_67 WHERE score = "3-17"
CREATE TABLE table_name_67 (opponent VARCHAR, score VARCHAR)
Who did they lose to 3-17?
SELECT venue FROM table_name_56 WHERE home_team = "richmond"
CREATE TABLE table_name_56 (venue VARCHAR, home_team VARCHAR)
What venue did Richmond play at as the home team?
SELECT home_team FROM table_name_73 WHERE away_team = "footscray"
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
What home team played against Footscray as the away team?
SELECT attendance FROM table_name_84 WHERE away_team = "boreham wood"
CREATE TABLE table_name_84 (attendance VARCHAR, away_team VARCHAR)
what was the attendance when the away team was boreham wood?
SELECT SUM(tie_no) FROM table_name_82 WHERE away_team = "solihull moors"
CREATE TABLE table_name_82 (tie_no INTEGER, away_team VARCHAR)
what is the tie no when the away team is solihull moors?
SELECT away_team FROM table_name_30 WHERE tie_no > 13 AND home_team = "team bath"
CREATE TABLE table_name_30 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
who is the away team when the tie no is more than 13 and the home team is team bath?
SELECT AVG(pick__number) FROM table_name_50 WHERE college = "simon fraser"
CREATE TABLE table_name_50 (pick__number INTEGER, college VARCHAR)
What is the Pick # of the player from Simon Fraser College?