answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT team FROM table_17327458_1 WHERE date_of_appointment = "12 June"
What team appointed a manager on 12 June?
CREATE TABLE table_17327458_1 (team VARCHAR, date_of_appointment VARCHAR)
SELECT COUNT(loses) FROM table_18018214_2 WHERE club = "Tauras Tauragė"
List total loses forh the tauras tauragė team.
CREATE TABLE table_18018214_2 (loses VARCHAR, club VARCHAR)
SELECT state FROM table_name_71 WHERE frequency = "90.1 fm" AND city_of_license = "new castle"
What state is the radio station in that has a frequency of 90.1 FM and a city license in New Castle?
CREATE TABLE table_name_71 (state VARCHAR, frequency VARCHAR, city_of_license VARCHAR)
SELECT place FROM table_name_10 WHERE player = "tommy bolt"
What is Tommy Bolt's place?
CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR)
SELECT director FROM table_name_97 WHERE year > 1949 AND role = "eula goodnight"
Who directed the eula goodnight movie after 1949?
CREATE TABLE table_name_97 (director VARCHAR, year VARCHAR, role VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_47 WHERE year__ceremony_ = "1968 (41st)"
What is Film title used in nomination, when Year (Ceremony) is 1968 (41st)?
CREATE TABLE table_name_47 (film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR)
SELECT record FROM table_name_87 WHERE week = "hf"
Tell me thee record for week of hf
CREATE TABLE table_name_87 (record VARCHAR, week VARCHAR)
SELECT place FROM table_name_57 WHERE player = "corey pavin"
What place was Corey Pavin in?
CREATE TABLE table_name_57 (place VARCHAR, player VARCHAR)
SELECT date FROM table_name_62 WHERE week > 13 AND attendance = "41,862"
What is the date of the game later than week 13 and 41,862 people attended?
CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_74 WHERE record = "77–67"
What was the loss of the Red Sox game when they had a record of 77–67?
CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR)
SELECT calendar FROM table_name_95 WHERE user_selectable_themes = "user-selectable themes"
Which Calendar has a User-selectable themes of user-selectable themes?
CREATE TABLE table_name_95 (calendar VARCHAR, user_selectable_themes VARCHAR)
SELECT SUM(week) FROM table_name_75 WHERE date = "december 6, 1964"
What was the week of the game played December 6, 1964?
CREATE TABLE table_name_75 (week INTEGER, date VARCHAR)
SELECT MAX(year) FROM table_name_79 WHERE competition = "europe/africa zone group i group b" AND result = "lost"
What was the highest year that Europe/Africa Zone Group I Group B lost?
CREATE TABLE table_name_79 (year INTEGER, competition VARCHAR, result VARCHAR)
SELECT SUM(total_region) FROM table_name_2 WHERE year = 1954 AND nebo > 447
What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 447?
CREATE TABLE table_name_2 (total_region INTEGER, year VARCHAR, nebo VARCHAR)
SELECT COUNT(DISTINCT i_id) FROM review
How many different items were reviewed by some users?
CREATE TABLE review (i_id VARCHAR)
SELECT MAX(top_5) FROM table_1671401_2 WHERE avg_finish = "5.0"
Name the max top 5 for 5.0 avg finish
CREATE TABLE table_1671401_2 (top_5 INTEGER, avg_finish VARCHAR)
SELECT barrel_length FROM table_12834315_8 WHERE rear_sight = "Weaver" AND barrel_profile = "A2"
How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2?
CREATE TABLE table_12834315_8 (barrel_length VARCHAR, rear_sight VARCHAR, barrel_profile VARCHAR)
SELECT collaboration FROM table_name_63 WHERE indication = "non-hodgkin lymphoma"
What company collaborated in non-hodgkin lymphoma?
CREATE TABLE table_name_63 (collaboration VARCHAR, indication VARCHAR)
SELECT COUNT(bronze) FROM table_name_97 WHERE gold < 2 AND silver > 1
What is the total number of bronze that has less than 2 gold, and more than 1 silver?
CREATE TABLE table_name_97 (bronze VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT COUNT(matches) FROM table_name_24 WHERE runs < 6106 AND inns < 146
Runs smaller than 6106, and Inns smaller than 146 has what total number of matches?
CREATE TABLE table_name_24 (matches VARCHAR, runs VARCHAR, inns VARCHAR)
SELECT rider FROM table_name_71 WHERE laps < 23 AND grid > 21 AND time_retired = "+1 lap"
Who was the rider for laps less than 23 with grid greater than 21 that had a time of +1 lap?
CREATE TABLE table_name_71 (rider VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT week_2 FROM table_name_90 WHERE week_4 = "diane deluna"
When Diane Deluna was the cyber girl in week 4 who was the cyber girl in week 2?
CREATE TABLE table_name_90 (week_2 VARCHAR, week_4 VARCHAR)
SELECT engine FROM table_name_17 WHERE entrant = "colt racing"
What is a colt racing entrant engine?
CREATE TABLE table_name_17 (engine VARCHAR, entrant VARCHAR)
SELECT party FROM table_1341453_34 WHERE incumbent = "John McHugh"
What party is John McHugh a member of?
CREATE TABLE table_1341453_34 (party VARCHAR, incumbent VARCHAR)
SELECT SUM(game) FROM table_name_29 WHERE date = "february 24"
What was the number of the game played on February 24?
CREATE TABLE table_name_29 (game INTEGER, date VARCHAR)
SELECT margin_of_victory FROM table_name_67 WHERE winning_score = −12(66 - 67 - 64 - 71 = 268)
What was the margin of victory when the winning score was −12 (66-67-64-71=268)?
CREATE TABLE table_name_67 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT driver FROM table_name_99 WHERE entrant = "tourtel larrousse f1"
Which driver drove the Tourtel Larrousse F1?
CREATE TABLE table_name_99 (driver VARCHAR, entrant VARCHAR)
SELECT MAX(crowd) FROM table_name_50 WHERE venue = "windy hill"
What was the highest crowd size at Windy Hill?
CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR)
SELECT COUNT(sales) FROM table_name_31 WHERE peak_position = 1 AND certification = "6x platinum"
How many sales had a peak position of 1 and a certification of 6x platinum?
CREATE TABLE table_name_31 (sales VARCHAR, peak_position VARCHAR, certification VARCHAR)
SELECT district FROM table_1341930_24 WHERE incumbent = "John Bell Williams"
In what district is the incumbent John Bell Williams?
CREATE TABLE table_1341930_24 (district VARCHAR, incumbent VARCHAR)
SELECT AVG(wkts) FROM table_name_61 WHERE player = "beau casson" AND ovrs > 32
What is the average Wkts, when Player is Beau Casson, and when Ovrs is greater than 32?
CREATE TABLE table_name_61 (wkts INTEGER, player VARCHAR, ovrs VARCHAR)
SELECT MIN(crowd) FROM table_name_10 WHERE venue = "punt road oval"
What is the smallest crowd at punt road oval?
CREATE TABLE table_name_10 (crowd INTEGER, venue VARCHAR)
SELECT COUNT(2011 AS _1h) FROM table_name_9 WHERE 2006 = 27.4 AND 2007 > 27.7
How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7?
CREATE TABLE table_name_9 (Id VARCHAR)
SELECT dept_name FROM course GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 3
Find the names of the top 3 departments that provide the largest amount of courses?
CREATE TABLE course (dept_name VARCHAR)
SELECT config_core_1 FROM table_26860595_2 WHERE processing_power_gflops = "432"
What is the config core 1 of the model with a processing power GFLOPs of 432?
CREATE TABLE table_26860595_2 (config_core_1 VARCHAR, processing_power_gflops VARCHAR)
SELECT tries_against FROM table_name_47 WHERE try_bonus = "8"
With a Try Bonus of 8, what is the Tries Against?
CREATE TABLE table_name_47 (tries_against VARCHAR, try_bonus VARCHAR)
SELECT pos FROM table_name_66 WHERE year = 2006
What was the position in 2006?
CREATE TABLE table_name_66 (pos VARCHAR, year VARCHAR)
SELECT opposition FROM table_name_22 WHERE date = "july 29"
Who was the opposition in the game on July 29?
CREATE TABLE table_name_22 (opposition VARCHAR, date VARCHAR)
SELECT years_in_orlando FROM table_15621965_16 WHERE school_club_team = "Clemson"
What years did the player who's school is Clemson spend in Orlando?
CREATE TABLE table_15621965_16 (years_in_orlando VARCHAR, school_club_team VARCHAR)
SELECT leading_scorer FROM table_name_44 WHERE date = "20 february 2008"
Who was the leading scorer of the game on 20 February 2008?
CREATE TABLE table_name_44 (leading_scorer VARCHAR, date VARCHAR)
SELECT total FROM table_name_79 WHERE league_cup_goals = "4" AND fa_cup_goals = "0"
What is the sum of goals when the league cup goals are 4 and the FA cup goals are 0?
CREATE TABLE table_name_79 (total VARCHAR, league_cup_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT high_points FROM table_17311797_10 WHERE game = 79
Which player had the highest points in game 79?
CREATE TABLE table_17311797_10 (high_points VARCHAR, game VARCHAR)
SELECT MIN(game) FROM table_name_95 WHERE date = "april 12"
What is the lowest Game, when Date is "April 12"?
CREATE TABLE table_name_95 (game INTEGER, date VARCHAR)
SELECT voice_actor__english_1998___pioneer_ FROM table_name_36 WHERE voice_actor__english_1997___saban_ = "dave ward"
what character did dave ward play
CREATE TABLE table_name_36 (voice_actor__english_1998___pioneer_ VARCHAR, voice_actor__english_1997___saban_ VARCHAR)
SELECT release_date FROM table_name_18 WHERE publisher = "microsoft game studios" AND title = "amped: freestyle snowboarding"
When Did Microsoft Game Studios release Amped: Freestyle Snowboarding?
CREATE TABLE table_name_18 (release_date VARCHAR, publisher VARCHAR, title VARCHAR)
SELECT home FROM table_name_77 WHERE record = "24–16–6"
What team was home, when the record was 24–16–6?
CREATE TABLE table_name_77 (home VARCHAR, record VARCHAR)
SELECT SUM(goals) FROM table_name_52 WHERE assists = 12 AND apps < 291
What is the total goals with 12 assists, and less than 291 apps?
CREATE TABLE table_name_52 (goals INTEGER, assists VARCHAR, apps VARCHAR)
SELECT cross_country FROM table_name_90 WHERE school_year = "2012-13"
What is Cross Country, when School Year is 2012-13?
CREATE TABLE table_name_90 (cross_country VARCHAR, school_year VARCHAR)
SELECT opponent FROM table_name_44 WHERE week = "9"
who was the opponent when the week was 9?
CREATE TABLE table_name_44 (opponent VARCHAR, week VARCHAR)
SELECT COUNT(air_date) FROM table_16072430_1 WHERE weekly_rank = "73"
What broadcast dates have a weekly rank of 73?
CREATE TABLE table_16072430_1 (air_date VARCHAR, weekly_rank VARCHAR)
SELECT MIN(pick__number) FROM table_1965650_4 WHERE nhl_team = "Minnesota North Stars"
What's the smallest pick number of a player playing in Minnesota North Stars?
CREATE TABLE table_1965650_4 (pick__number INTEGER, nhl_team VARCHAR)
SELECT home_team FROM table_name_97 WHERE away_team = "carlton"
Who was the home team when Carlton was the away team?
CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR)
SELECT formula FROM table_name_63 WHERE refractive_index_es__5893nm = "1.97"
Which formula has a refractive index 589.3 at 1.97?
CREATE TABLE table_name_63 (formula VARCHAR, refractive_index_es__5893nm VARCHAR)
SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
What is the most common nationality of people?
CREATE TABLE people (Nationality VARCHAR)
SELECT COUNT(game_site) FROM table_25380472_2 WHERE team_record = "1–7"
How many game sites are there where the team record is 1–7?
CREATE TABLE table_25380472_2 (game_site VARCHAR, team_record VARCHAR)
SELECT MIN(total) FROM table_name_88 WHERE player = "mark o'meara"
What is the total of Mark O'meara?
CREATE TABLE table_name_88 (total INTEGER, player VARCHAR)
SELECT MAX(round) FROM table_name_31 WHERE pick > 209
What is the highest round number of a Pick after 209.
CREATE TABLE table_name_31 (round INTEGER, pick INTEGER)
SELECT opponent FROM table_name_13 WHERE date = "september 28"
Who is the opponent from September 28?
CREATE TABLE table_name_13 (opponent VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_38 WHERE record = "47–63"
How many people attended when the record was broken with 47–63?
CREATE TABLE table_name_38 (attendance VARCHAR, record VARCHAR)
SELECT city___state FROM table_name_48 WHERE circuit = "mallala motor sport park"
What city was the circuit of mallala motor sport park?
CREATE TABLE table_name_48 (city___state VARCHAR, circuit VARCHAR)
SELECT COUNT(original_airdate) FROM table_27547668_4 WHERE written_by = "Allan Hawco"
what is the number of original airdate written by allan hawco?
CREATE TABLE table_27547668_4 (original_airdate VARCHAR, written_by VARCHAR)
SELECT MIN(overall) FROM table_name_26 WHERE name = "derrick harvey" AND round > 1
What is the overall pick number that Derrick Harvey was when he was picked in a round after round 1?
CREATE TABLE table_name_26 (overall INTEGER, name VARCHAR, round VARCHAR)
SELECT result FROM table_name_86 WHERE venue = "kinnarps arena" AND date = "thursday, february 19"
Which Result has a Venue of kinnarps arena, and a Date of thursday, february 19?
CREATE TABLE table_name_86 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT republican_ticket FROM table_name_49 WHERE democratic_ticket = "matthew j. merritt"
Who's the Republican ticket with a Democratic ticket of matthew j. merritt?
CREATE TABLE table_name_49 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT champion_s_ FROM table_name_4 WHERE previous_champion_s_ = "lash"
Who is the champion of the title previously held by Lash?
CREATE TABLE table_name_4 (champion_s_ VARCHAR, previous_champion_s_ VARCHAR)
SELECT player FROM table_name_29 WHERE weight = 235
What player weight 235?
CREATE TABLE table_name_29 (player VARCHAR, weight VARCHAR)
SELECT tie_no FROM table_name_7 WHERE home_team = "queens park rangers"
What was the tie number of the game when the queens park rangers were the home team?
CREATE TABLE table_name_7 (tie_no VARCHAR, home_team VARCHAR)
SELECT street_address FROM table_name_9 WHERE floors = "5"
What is the street address of the building with 5 floors?
CREATE TABLE table_name_9 (street_address VARCHAR, floors VARCHAR)
SELECT week_1 FROM table_name_24 WHERE week_8 = "not eligible" AND week_9 = "no nominations" AND week_3 = "cyril"
What kind of Week 1 has a Week 8 of not eligible, and a Week 9 of no nominations, and a Week 3 of cyril? Question 3
CREATE TABLE table_name_24 (week_1 VARCHAR, week_3 VARCHAR, week_8 VARCHAR, week_9 VARCHAR)
SELECT appearances FROM table_name_18 WHERE position_[f_] = "defender" AND date_to_[h_] = "1938"
What is Appearances, when Postion [F ] is "Defender", and when Date to [H ] is "1938"?
CREATE TABLE table_name_18 (appearances VARCHAR, position_ VARCHAR, f_ VARCHAR, date_to_ VARCHAR, h_ VARCHAR)
SELECT malaysian_team_classification FROM table_22464308_2 WHERE points_classification = "Mohd Nur Rizuan Zainal"
Which malaysian team classification had mohd nur rizuan zainal as points classification?
CREATE TABLE table_22464308_2 (malaysian_team_classification VARCHAR, points_classification VARCHAR)
SELECT virtual_channel FROM table_name_25 WHERE station_ownership = "eicb tv" AND call_sign = "ktcj-ld"
Station Ownership of eicb tv, and a Call sign of ktcj-ld is what virtual network?
CREATE TABLE table_name_25 (virtual_channel VARCHAR, station_ownership VARCHAR, call_sign VARCHAR)
SELECT MIN(pick) FROM table_name_51 WHERE position = "back" AND player = "chuck morris"
When was chuck morris, back, drafted?
CREATE TABLE table_name_51 (pick INTEGER, position VARCHAR, player VARCHAR)
SELECT name FROM table_name_47 WHERE license = "gpl" AND platform = "windows"
Which name has a License of gpl, and a Platform of windows?
CREATE TABLE table_name_47 (name VARCHAR, license VARCHAR, platform VARCHAR)
SELECT lengths_behind FROM table_name_73 WHERE jockey = "jeremy rose"
What is the lengths behind of Jeremy Rose?
CREATE TABLE table_name_73 (lengths_behind VARCHAR, jockey VARCHAR)
SELECT MAX(crowd) FROM table_name_71 WHERE away_team = "south melbourne"
What is the highest crowd number of the game where the away team was south melbourne?
CREATE TABLE table_name_71 (crowd INTEGER, away_team VARCHAR)
SELECT points_for FROM table_name_97 WHERE points_against = "450"
Name the points for when points against is of 450
CREATE TABLE table_name_97 (points_for VARCHAR, points_against VARCHAR)
SELECT planet FROM table_14850099_18 WHERE cardinal_direction = "South"
What is the planet associated with the direction of south?
CREATE TABLE table_14850099_18 (planet VARCHAR, cardinal_direction VARCHAR)
SELECT production_code FROM table_24938621_3 WHERE us_viewers__million_ = "5.43"
What is the production code of the episode that had 5.43 million viewers?
CREATE TABLE table_24938621_3 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT MAX(assists) FROM table_28461589_2 WHERE games_played = 25
What is the most number of assists for players with exactly 25 games played?
CREATE TABLE table_28461589_2 (assists INTEGER, games_played VARCHAR)
SELECT bats FROM table_name_90 WHERE first = "josh" AND throws = "r" AND surname = "cakebread"
Which Bats have a First of josh, and Throws of r, and a Surname of cakebread?
CREATE TABLE table_name_90 (bats VARCHAR, surname VARCHAR, first VARCHAR, throws VARCHAR)
SELECT home_team FROM table_name_9 WHERE away_team = "hawthorn"
Which Home team faced the Away team, Hawthorn?
CREATE TABLE table_name_9 (home_team VARCHAR, away_team VARCHAR)
SELECT finish FROM table_name_17 WHERE laps > 200
Name the finish with Laps more than 200
CREATE TABLE table_name_17 (finish VARCHAR, laps INTEGER)
SELECT frequency FROM table_23910822_1 WHERE callsign = "DYMY"
Which frequency is DYMY?
CREATE TABLE table_23910822_1 (frequency VARCHAR, callsign VARCHAR)
SELECT outcome FROM table_name_22 WHERE score = "6–1, 6–1"
What is the Outcome of the match with a Score of 6–1, 6–1?
CREATE TABLE table_name_22 (outcome VARCHAR, score VARCHAR)
SELECT alabama FROM table_name_76 WHERE mississippi_st = "walt harris"
Who was the Alabama player associated with Walt Harris?
CREATE TABLE table_name_76 (alabama VARCHAR, mississippi_st VARCHAR)
SELECT date FROM table_name_76 WHERE partner = "peter nyborg"
When did he play with peter nyborg?
CREATE TABLE table_name_76 (date VARCHAR, partner VARCHAR)
SELECT year__ceremony_ FROM table_name_66 WHERE director = "wang siu-di"
What is Year (Ceremony), when Director is "Wang Siu-Di"?
CREATE TABLE table_name_66 (year__ceremony_ VARCHAR, director VARCHAR)
SELECT status FROM table_142159_1 WHERE location = "Museum"
Whats the status of the trains at location Museum
CREATE TABLE table_142159_1 (status VARCHAR, location VARCHAR)
SELECT COUNT(year) FROM table_name_52 WHERE chassis = "talbot-lago t26c" AND points < 3
Name the total number of years for talbot-lago t26c and points less than 3
CREATE TABLE table_name_52 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT MAX(game) FROM table_21091162_1 WHERE opponent = "Air Force"
How many games have Air Force as the opponent?
CREATE TABLE table_21091162_1 (game INTEGER, opponent VARCHAR)
SELECT COUNT(championship) FROM table_2009095_2 WHERE outcome = "Winner" AND opponents = "Judy Tegart Dalton Lesley Turner Bowrey"
Name the championship for winner and judy tegart dalton lesley turner bowrey
CREATE TABLE table_2009095_2 (championship VARCHAR, outcome VARCHAR, opponents VARCHAR)
SELECT pop_density_people_km_2 FROM table_1606824_1 WHERE population__percentage_of_eu = "1.1%" AND member_state = "Slovakia"
Name the population density where population % is 1.1% for slovakia
CREATE TABLE table_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR, member_state VARCHAR)
SELECT runner_s__up FROM table_name_64 WHERE margin_of_victory = "1 stroke" AND date = "jan 30, 2000"
Who was the runnerup when the margin of victory was 1 stroke on jan 30, 2000?
CREATE TABLE table_name_64 (runner_s__up VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
SELECT MIN(lane) FROM table_name_43 WHERE time = "2:05.90" AND heat > 3
What is the lowest lane with a time of 2:05.90, and a Heat larger than 3?
CREATE TABLE table_name_43 (lane INTEGER, time VARCHAR, heat VARCHAR)
SELECT AVG(capacity) FROM table_name_46 WHERE suites = "150"
What is the average capacity for 150 suites?
CREATE TABLE table_name_46 (capacity INTEGER, suites VARCHAR)
SELECT player FROM table_name_89 WHERE strike_rate = "79.62"
Which player has 79.62 as the strike rate?
CREATE TABLE table_name_89 (player VARCHAR, strike_rate VARCHAR)
SELECT COUNT(number) FROM table_name_62 WHERE school_club_team = "de la salle"
How many total players came from the school/club team of De La Salle?
CREATE TABLE table_name_62 (number VARCHAR, school_club_team VARCHAR)
SELECT MIN(first_elected) FROM table_1341472_20
What is the first election year listed?
CREATE TABLE table_1341472_20 (first_elected INTEGER)
SELECT COUNT(area__km²_) FROM table_14986292_1 WHERE population_density_2010___km²_ = 514
Name the number of area where population density 2010 for 514
CREATE TABLE table_14986292_1 (area__km²_ VARCHAR, population_density_2010___km²_ VARCHAR)