answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_81 WHERE opponents = "sheffield wednesday"
Opponents of sheffield wednesday had what date?
CREATE TABLE table_name_81 (date VARCHAR, opponents VARCHAR)
SELECT MAX(goals) FROM table_1474099_6
At maximum, what are our goals?
CREATE TABLE table_1474099_6 (goals INTEGER)
SELECT record FROM table_name_60 WHERE opponent = "cincinnati royals"
What was the record in the game where the opponent was the cincinnati royals?
CREATE TABLE table_name_60 (record VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_8 WHERE date = "may 12, 2008"
What was the score on May 12, 2008?
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
SELECT club_team FROM table_name_1 WHERE round = 4 AND overall = 119
Which team scores 119 in round 4?
CREATE TABLE table_name_1 (club_team VARCHAR, round VARCHAR, overall VARCHAR)
SELECT result FROM table_name_10 WHERE week > 11 AND date = "december 14, 1986"
What was the Result of the game on December 14, 1986 after Week 11?
CREATE TABLE table_name_10 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT player FROM table_name_5 WHERE club = "omonia nicosia"
Which player was in the Omonia Nicosia club?
CREATE TABLE table_name_5 (player VARCHAR, club VARCHAR)
SELECT COUNT(*) FROM book_club
How many book clubs are there?
CREATE TABLE book_club (Id VARCHAR)
SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs
Which first names are used for professionals or owners but are not used as dog names?
CREATE TABLE Owners (first_name VARCHAR, name VARCHAR); CREATE TABLE Dogs (first_name VARCHAR, name VARCHAR); CREATE TABLE Professionals (first_name VARCHAR, name VARCHAR)
SELECT train_name FROM table_name_44 WHERE frequency__inbound_outbound_ = "daily" AND destination = "rajgir"
What is the train name of the rail with a daily frequency and a destination of Rajgir?
CREATE TABLE table_name_44 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR)
SELECT viewers__in_millions_ FROM table_1785117_1 WHERE run_time = "25:55"
How many million viewers watched the episode that runs 25:55 minutes?
CREATE TABLE table_1785117_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT season FROM table_22383603_1 WHERE finish__incl_championship_ = "April 18"
What season ended on April 18?
CREATE TABLE table_22383603_1 (season VARCHAR, finish__incl_championship_ VARCHAR)
SELECT casualties FROM table_name_43 WHERE nature_of_incident = "hostile" AND date = "2006-06-26"
Name the casualities for nation of incident of hostile on 2006-06-26
CREATE TABLE table_name_43 (casualties VARCHAR, nature_of_incident VARCHAR, date VARCHAR)
SELECT MIN(losses) FROM table_name_53 WHERE wins > 0
What is the lowest number of losses for a team with more than 0 wins?
CREATE TABLE table_name_53 (losses INTEGER, wins INTEGER)
SELECT T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.continent JOIN car_makers AS T3 ON T2.CountryId = T3.Country GROUP BY T1.Continent
How many car makers are there in each continents? List the continent name and the count.
CREATE TABLE COUNTRIES (continent VARCHAR, CountryId VARCHAR); CREATE TABLE CONTINENTS (Continent VARCHAR, ContId VARCHAR); CREATE TABLE car_makers (Country VARCHAR)
SELECT date FROM table_name_60 WHERE location = "vilnius, lithuania"
What is the date of the match in Vilnius, Lithuania?
CREATE TABLE table_name_60 (date VARCHAR, location VARCHAR)
SELECT november_3 FROM table_25355392_2 WHERE june_10_11 = "June 10, 1964"
what is november 3 when june 10-11 is june 10, 1964?
CREATE TABLE table_25355392_2 (november_3 VARCHAR, june_10_11 VARCHAR)
SELECT hazmat FROM table_name_98 WHERE type = "rural" AND tankers = 1
What is the Hazmat, when the Type is Rural, and when the number of Tankers is 1?
CREATE TABLE table_name_98 (hazmat VARCHAR, type VARCHAR, tankers VARCHAR)
SELECT AVG(laps) FROM table_name_76 WHERE grid > 1 AND team = "mexico"
What is the average Laps for the Mexico team with a grid number of more than 1?
CREATE TABLE table_name_76 (laps INTEGER, grid VARCHAR, team VARCHAR)
SELECT MIN(game) FROM table_name_53 WHERE score = "102-104"
What is the lowest game when the score is 102-104?
CREATE TABLE table_name_53 (game INTEGER, score VARCHAR)
SELECT AVG(rank) FROM table_name_55 WHERE lane < 3 AND nationality = "australia"
What is the average Rank for a lane smaller than 3 with a nationality of Australia?
CREATE TABLE table_name_55 (rank INTEGER, lane VARCHAR, nationality VARCHAR)
SELECT COUNT(pick__number) FROM table_name_47 WHERE name = "chad owens"
How many picks does chad owens have?
CREATE TABLE table_name_47 (pick__number VARCHAR, name VARCHAR)
SELECT COUNT(district) FROM table_1979619_3 WHERE representative = "Rob Teplitz"
Name the total number of districts for rob teplitz
CREATE TABLE table_1979619_3 (district VARCHAR, representative VARCHAR)
SELECT model_type FROM table_20866024_2 WHERE model_designation = "97500"
What model type has model designation 97500?
CREATE TABLE table_20866024_2 (model_type VARCHAR, model_designation VARCHAR)
SELECT SUM(total) FROM table_name_34 WHERE gold > 97 AND silver < 332
What nation had more than 97 Gold Medals and fewer than 332 Silver Medals?
CREATE TABLE table_name_34 (total INTEGER, gold VARCHAR, silver VARCHAR)
SELECT name, salary FROM instructor WHERE salary < (SELECT AVG(salary) FROM instructor WHERE dept_name = 'Physics')
Find the name and salary of instructors whose salary is below the average salary of the instructors in the Physics department.
CREATE TABLE instructor (name VARCHAR, salary INTEGER, dept_name VARCHAR)
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T1.name = "Rock" OR T1.name = "Jazz"
List the name of tracks belongs to genre Rock or genre Jazz.
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR)
SELECT date FROM table_name_84 WHERE high_points = "dell curry (17)"
What is the Date when the high points went to Dell Curry (17)?
CREATE TABLE table_name_84 (date VARCHAR, high_points VARCHAR)
SELECT MIN(week) FROM table_name_37 WHERE attendance = "60,894"
Tell me the lowest week for attendance of 60,894
CREATE TABLE table_name_37 (week INTEGER, attendance VARCHAR)
SELECT actor FROM table_name_21 WHERE duration = "20 years" AND soap_opera = "home and away"
Which actor played on Home and Away for 20 years?
CREATE TABLE table_name_21 (actor VARCHAR, duration VARCHAR, soap_opera VARCHAR)
SELECT term_of_office FROM table_name_1 WHERE electorate = "warringah"
What was the term of office for the electorate warringah?
CREATE TABLE table_name_1 (term_of_office VARCHAR, electorate VARCHAR)
SELECT womens_doubles FROM table_27753492_2 WHERE tour = "French Super Series"
Who is the womens doubles on the tour french super series?
CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, tour VARCHAR)
SELECT voges_proskauer FROM table_name_70 WHERE species = "proteus mirabilis"
What is the Voges-Proskauer reading for proteus mirabilis?
CREATE TABLE table_name_70 (voges_proskauer VARCHAR, species VARCHAR)
SELECT COUNT(draws) FROM table_name_7 WHERE losses > 11 AND wins < 4 AND golden_rivers = "wakool"
What is the total number of draws for Wakool when there are more than 11 losses and fewer than 4 wins?
CREATE TABLE table_name_7 (draws VARCHAR, golden_rivers VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT nationality FROM table_10015132_16 WHERE player = "Terrence Ross"
What is terrence ross' nationality
CREATE TABLE table_10015132_16 (nationality VARCHAR, player VARCHAR)
SELECT terms FROM table_name_46 WHERE left_office = "august 4, 1825"
How many terms did the governor that left office on August 4, 1825 serve?
CREATE TABLE table_name_46 (terms VARCHAR, left_office VARCHAR)
SELECT team FROM table_name_34 WHERE day_1 = "3:18.513"
Which team had 3:18.513 on day 1?
CREATE TABLE table_name_34 (team VARCHAR, day_1 VARCHAR)
SELECT position FROM table_14342367_11 WHERE player = "Joe Maddock"
What position did Joe Maddock play?
CREATE TABLE table_14342367_11 (position VARCHAR, player VARCHAR)
SELECT away_team FROM table_name_63 WHERE home_team = "south melbourne"
Which Away team has a Home team of south melbourne?
CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR)
SELECT country FROM table_name_25 WHERE to_par = "+1" AND score = 71 - 76 - 70 = 217
What country has a To par of +1 and the score of 71-76-70=217?
CREATE TABLE table_name_25 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT COUNT(grid) FROM table_name_83 WHERE time = "+34.121" AND laps > 10
How many grids were there races with more than 10 laps and a time of +34.121?
CREATE TABLE table_name_83 (grid VARCHAR, time VARCHAR, laps VARCHAR)
SELECT tyres FROM table_name_10 WHERE driver = "didier pironi"
What is the tyres for Didier pironi?
CREATE TABLE table_name_10 (tyres VARCHAR, driver VARCHAR)
SELECT height FROM table_name_69 WHERE hometown = "renton, wa"
What is the height of the delegate whose hometown is Renton, WA?
CREATE TABLE table_name_69 (height VARCHAR, hometown VARCHAR)
SELECT MAX(opened) FROM table_name_76 WHERE themed_area = "aerial park" AND manufacturer = "zamperla"
Which Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla?
CREATE TABLE table_name_76 (opened INTEGER, themed_area VARCHAR, manufacturer VARCHAR)
SELECT MAX(date) FROM table_name_88 WHERE location_attendance = "los angeles" AND game < 62
What is the latest date at Los Angeles with a game less than 62?
CREATE TABLE table_name_88 (date INTEGER, location_attendance VARCHAR, game VARCHAR)
SELECT previous_conference FROM table_name_88 WHERE conference_joined = "indiana lake shore" AND mascot = "governors"
What was the previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?
CREATE TABLE table_name_88 (previous_conference VARCHAR, conference_joined VARCHAR, mascot VARCHAR)
SELECT SUM(played) FROM table_name_14 WHERE wins > 19
Name the sum of played with wins more than 19
CREATE TABLE table_name_14 (played INTEGER, wins INTEGER)
SELECT COUNT(production_code) FROM table_27988382_1 WHERE no_in_season = 8
How many production codes had a total number in the season of 8?
CREATE TABLE table_27988382_1 (production_code VARCHAR, no_in_season VARCHAR)
SELECT party FROM table_name_85 WHERE minister = "andrea ronchi"
Which party was Andrea Ronchi from?
CREATE TABLE table_name_85 (party VARCHAR, minister VARCHAR)
SELECT AVG(attendance) FROM table_name_50 WHERE date = "june 11"
Name the average attendance from june 11
CREATE TABLE table_name_50 (attendance INTEGER, date VARCHAR)
SELECT runner_up FROM table_13036251_1 WHERE season = "season 13"
what's runner-up with season being season 13
CREATE TABLE table_13036251_1 (runner_up VARCHAR, season VARCHAR)
SELECT _percentage_of_votes_nationally FROM table_1827900_1 WHERE candidates = "Mahmoud Ahmadinejad"
What was the percentage of national votes for Mahmoud Ahmadinejad?
CREATE TABLE table_1827900_1 (_percentage_of_votes_nationally VARCHAR, candidates VARCHAR)
SELECT date FROM table_17782308_1 WHERE opponent = "Miami Dolphins"
What was the date of the game when the opponent was the Miami Dolphins?
CREATE TABLE table_17782308_1 (date VARCHAR, opponent VARCHAR)
SELECT SUM(total_seats) FROM table_name_61 WHERE share_of_votes = "21.8%"
When the share of votes equals 21.8%, what's the sum of the total amount of seats?
CREATE TABLE table_name_61 (total_seats INTEGER, share_of_votes VARCHAR)
SELECT T2.Name, T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC
List the names of wrestlers and the teams in elimination in descending order of days held.
CREATE TABLE elimination (Team VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR, Days_held VARCHAR)
SELECT AVG(week) FROM table_name_91 WHERE result = "l 15-13"
In what week was the Result L 15-13?
CREATE TABLE table_name_91 (week INTEGER, result VARCHAR)
SELECT AVG(pick__number) FROM table_name_50 WHERE college = "simon fraser"
What is the Pick # of the player from Simon Fraser College?
CREATE TABLE table_name_50 (pick__number INTEGER, college VARCHAR)
SELECT winner FROM table_name_82 WHERE prize = "£50,000" AND runner_up = "korosh nejad"
What is Winner, when Prize is "£50,000", and when Runner-Up is "Korosh Nejad"?
CREATE TABLE table_name_82 (winner VARCHAR, prize VARCHAR, runner_up VARCHAR)
SELECT operates FROM table_name_5 WHERE terminus = "downtown transit center" AND name = "bayou blvd./12th avenue"
Where does the Bayou Blvd./12th Avenue route that has a terminus at the downtown transit center operate?
CREATE TABLE table_name_5 (operates VARCHAR, terminus VARCHAR, name VARCHAR)
SELECT score FROM table_name_18 WHERE date = "march 1"
What was the Score on March 1?
CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_63 WHERE 2011 = "3r" AND 2010 = "a"
What is the Tournament with a 3r 2011 and A 2010?
CREATE TABLE table_name_63 (tournament VARCHAR)
SELECT finalist FROM table_name_14 WHERE tournament = "berlin"
Who was the finalist for the tournament in berlin?
CREATE TABLE table_name_14 (finalist VARCHAR, tournament VARCHAR)
SELECT civil_parish FROM table_30120547_1 WHERE area__acres__ = 119
What are the civil parishes of the townlands with an area of 119 acres?
CREATE TABLE table_30120547_1 (civil_parish VARCHAR, area__acres__ VARCHAR)
SELECT SUM(overall) FROM table_name_16 WHERE college = "penn state"
Total overall from penn state?
CREATE TABLE table_name_16 (overall INTEGER, college VARCHAR)
SELECT result FROM table_name_93 WHERE award = "cinemaa awards" AND film = "gabbar singh"
What was the result associated with the cinemaa awards, and gabbar singh film?
CREATE TABLE table_name_93 (result VARCHAR, award VARCHAR, film VARCHAR)
SELECT womens_doubles FROM table_14903841_1 WHERE year = "2000/2001"
What are all values for Womens Doubles in the year 2000/2001?
CREATE TABLE table_14903841_1 (womens_doubles VARCHAR, year VARCHAR)
SELECT qual FROM table_name_74 WHERE laps < 195 AND rank = "25"
Which Qual has Laps smaller than 195, and a Rank of 25?
CREATE TABLE table_name_74 (qual VARCHAR, laps VARCHAR, rank VARCHAR)
SELECT AVG(game) FROM table_name_78 WHERE team = "milwaukee"
What is the average Game, when Team is "Milwaukee"?
CREATE TABLE table_name_78 (game INTEGER, team VARCHAR)
SELECT SUM(year) FROM table_name_81 WHERE name = "leon blevins"
What year was Leon Blevins picked?
CREATE TABLE table_name_81 (year INTEGER, name VARCHAR)
SELECT COUNT(react) FROM table_name_13 WHERE lane = 5
Can you tell me the total number of React that has the Lane of 5?
CREATE TABLE table_name_13 (react VARCHAR, lane VARCHAR)
SELECT COUNT(lost) FROM table_name_83 WHERE win__percentage < 16.7 AND played = 3
How many games were lost where the win percentage is smaller than 16.7 and the played games is 3?
CREATE TABLE table_name_83 (lost VARCHAR, win__percentage VARCHAR, played VARCHAR)
SELECT m939_series FROM table_name_84 WHERE m809_series = "m817" AND wheelbase = "short"
Name the M939 series for short wheelbase and M809 series of m817
CREATE TABLE table_name_84 (m939_series VARCHAR, m809_series VARCHAR, wheelbase VARCHAR)
SELECT time FROM table_name_31 WHERE rank > 3 AND name = "andrey kapralov"
Which time has a Rank larger than 3, and a Name of andrey kapralov?
CREATE TABLE table_name_31 (time VARCHAR, rank VARCHAR, name VARCHAR)
SELECT sat_20_aug FROM table_30058355_2 WHERE fri_26_aug = "19' 30.70 116.023mph"
What shows for sat 20 aug when fri 26 aug is 19' 30.70 116.023mph?
CREATE TABLE table_30058355_2 (sat_20_aug VARCHAR, fri_26_aug VARCHAR)
SELECT frequency FROM table_name_79 WHERE sspec_number = "sl3bn(kc0)sl3e9(kc0)"
What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)?
CREATE TABLE table_name_79 (frequency VARCHAR, sspec_number VARCHAR)
SELECT winning_driver FROM table_1140105_6 WHERE circuit = "Posillipo"
What is the name of the winning driver where the circuit name is posillipo?
CREATE TABLE table_1140105_6 (winning_driver VARCHAR, circuit VARCHAR)
SELECT line FROM table_name_59 WHERE stopping_pattern = "all stations, a, b, p"
Which Line has a Stopping pattern of all stations, A, b, p?
CREATE TABLE table_name_59 (line VARCHAR, stopping_pattern VARCHAR)
SELECT SUM(population) FROM table_name_49 WHERE type = "vl" AND region > 3
How many people have a vl type in a region greater than 3?
CREATE TABLE table_name_49 (population INTEGER, type VARCHAR, region VARCHAR)
SELECT country FROM table_name_23 WHERE score = 72 - 70 - 75 - 72 = 289
What country has a 72-70-75-72=289 score?
CREATE TABLE table_name_23 (country VARCHAR, score VARCHAR)
SELECT years FROM table_name_35 WHERE name = "mount roskill grammar school"
What year was the name mount roskill grammar school?
CREATE TABLE table_name_35 (years VARCHAR, name VARCHAR)
SELECT film FROM table_name_49 WHERE president = "richard nixon" AND year > 1996
What was the film of Richard Nixon as President in a year newer than 1996?
CREATE TABLE table_name_49 (film VARCHAR, president VARCHAR, year VARCHAR)
SELECT position FROM table_14342592_3 WHERE player = "Tom Hammond"
What positions does Tom Hammond play?
CREATE TABLE table_14342592_3 (position VARCHAR, player VARCHAR)
SELECT top_5 FROM table_2182562_1 WHERE avg_finish = "40.3"
What are the top 5 average finishes equalling 40.3?
CREATE TABLE table_2182562_1 (top_5 VARCHAR, avg_finish VARCHAR)
SELECT MIN(lane) FROM table_name_69 WHERE name = "lorenzo vismara" AND time > 49.67
What is the lowest lane with Lorenzo Vismara and a time higher than 49.67?
CREATE TABLE table_name_69 (lane INTEGER, name VARCHAR, time VARCHAR)
SELECT COUNT(*), gender FROM Person WHERE age < 40 GROUP BY gender
Find the number of people who is under 40 for each gender.
CREATE TABLE Person (gender VARCHAR, age INTEGER)
SELECT COUNT(position) FROM table_2840500_4 WHERE player = "Matt Bradley"
How many draft pick positions did Matt Bradley have?
CREATE TABLE table_2840500_4 (position VARCHAR, player VARCHAR)
SELECT COUNT(playoffs) FROM table_245694_4 WHERE concacaf = "Semifinals"
Name the number of playoffs for semifinals
CREATE TABLE table_245694_4 (playoffs VARCHAR, concacaf VARCHAR)
SELECT type FROM table_name_21 WHERE name = "mccormack"
What is the type when McCormack is the name?
CREATE TABLE table_name_21 (type VARCHAR, name VARCHAR)
SELECT serial_format FROM table_name_71 WHERE issued = 1972
What serial format was issued in 1972?
CREATE TABLE table_name_71 (serial_format VARCHAR, issued VARCHAR)
SELECT date_of_designation FROM table_1585609_2 WHERE name = "Kurume"
Name all the date of designations for kurume
CREATE TABLE table_1585609_2 (date_of_designation VARCHAR, name VARCHAR)
SELECT issue_price__bu_[_clarification_needed_] FROM table_name_35 WHERE year > 2002 AND mintage__proof_ = "50,000"
What's the Issue Price (BU) [Clarification Needed] with a Year larger than 2002 and Mintage (Proof) of 50,000?
CREATE TABLE table_name_35 (issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR, year VARCHAR, mintage__proof_ VARCHAR)
SELECT MIN(laps) FROM table_name_99 WHERE driver = "rolf stommelen" AND grid > 18
what is the least laps when the driver is rolf stommelen and the grid is more than 18?
CREATE TABLE table_name_99 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT SUM(saves) FROM table_name_10 WHERE save__percentage = "92.3%" AND goals_against > 217
How many saves did the player with a 92.3% save rate and 217 goals have?
CREATE TABLE table_name_10 (saves INTEGER, save__percentage VARCHAR, goals_against VARCHAR)
SELECT name FROM table_name_39 WHERE teams = "fc sète olympique de marseille"
Which name is on the of fc sète olympique de marseille?
CREATE TABLE table_name_39 (name VARCHAR, teams VARCHAR)
SELECT county_s__represented FROM table_11948857_1 WHERE member_senator = "C. Anthony Muse"
What is the county for senator C. Anthony Muse?
CREATE TABLE table_11948857_1 (county_s__represented VARCHAR, member_senator VARCHAR)
SELECT goal FROM table_name_45 WHERE time = "39:37"
WHAT GOAL HAS A TIME OF 39:37?
CREATE TABLE table_name_45 (goal VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_53 WHERE club_team = "quebec remparts (qmjhl)"
What is the Nationality Club Team of Quebec remparts (qmjhl)?
CREATE TABLE table_name_53 (nationality VARCHAR, club_team VARCHAR)
SELECT COUNT(*) FROM Settlements
How many settlements are there in total?
CREATE TABLE Settlements (Id VARCHAR)
SELECT result FROM table_21091145_1 WHERE black_knights_points = 19
Name the result for 19 black knights points
CREATE TABLE table_21091145_1 (result VARCHAR, black_knights_points VARCHAR)
SELECT regiment FROM table_29458735_5 WHERE county = "Arkansas"
which regimen was in the arkansas county
CREATE TABLE table_29458735_5 (regiment VARCHAR, county VARCHAR)