answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT 1968 FROM table_name_76 WHERE 1967 = "1r"
Tell me the 1968 for 1r
CREATE TABLE table_name_76 (Id VARCHAR)
SELECT score FROM table_name_29 WHERE decision = "johnson"
Which score has a Decision of johnson?
CREATE TABLE table_name_29 (score VARCHAR, decision VARCHAR)
SELECT rank FROM table_name_2 WHERE tenure = "2011"
What is the Rank of the Character with Tenure of 2011?
CREATE TABLE table_name_2 (rank VARCHAR, tenure VARCHAR)
SELECT group_a_winner FROM table_1137142_1 WHERE group_d_winner = "Nocerina"
What group a winner was for nocerina?
CREATE TABLE table_1137142_1 (group_a_winner VARCHAR, group_d_winner VARCHAR)
SELECT departure FROM table_name_66 WHERE station_name = "rajendranagar terminal"
What is the Departure time at Rajendranagar Terminal?
CREATE TABLE table_name_66 (departure VARCHAR, station_name VARCHAR)
SELECT team__number2 FROM table_17282875_2 WHERE team__number1 = "Vitória"
Who played against team 1 Vitória?
CREATE TABLE table_17282875_2 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT round FROM table_name_43 WHERE time = "3:01"
Which round has a time of 3:01?
CREATE TABLE table_name_43 (round VARCHAR, time VARCHAR)
SELECT country FROM table_name_30 WHERE gdp__nominal_ = "$29.9 billion"
Which country has a GDP (nominal) of $29.9 billion?
CREATE TABLE table_name_30 (country VARCHAR, gdp__nominal_ VARCHAR)
SELECT AVG(year) FROM table_name_16 WHERE award = "fantasia section award"
What is the average year of the Fantasia Section Award?
CREATE TABLE table_name_16 (year INTEGER, award VARCHAR)
SELECT date FROM table_name_34 WHERE kickoff_[a_] = "4:00" AND opponent = "detroit lions"
Which date has a Kickoff [a] of 4:00, and an Opponent of detroit lions?
CREATE TABLE table_name_34 (date VARCHAR, opponent VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
SELECT club FROM table_name_71 WHERE goals = "143"
What club scored 143 goals?
CREATE TABLE table_name_71 (club VARCHAR, goals VARCHAR)
SELECT title FROM table_name_50 WHERE guest_performer = "black ice" AND time = "5:49"
Which title has a Black Ice for a guest performer and a length of 5:49?
CREATE TABLE table_name_50 (title VARCHAR, guest_performer VARCHAR, time VARCHAR)
SELECT COUNT(*) FROM customers WHERE city = "Prague"
How many customers live in Prague city?
CREATE TABLE customers (city VARCHAR)
SELECT MIN(drawn) FROM table_name_25 WHERE games < 7
What is the fewest ties the team had with fewer than 7 games?
CREATE TABLE table_name_25 (drawn INTEGER, games INTEGER)
SELECT COUNT(car__number) FROM table_1769428_2 WHERE winning_driver = "Rusty Wallace"
How many car numbers were listed for Rusty Wallace?
CREATE TABLE table_1769428_2 (car__number VARCHAR, winning_driver VARCHAR)
SELECT place FROM table_name_32 WHERE player = "mark carnevale"
What place was Mark Carnevale in?
CREATE TABLE table_name_32 (place VARCHAR, player VARCHAR)
SELECT text_symbol FROM table_name_42 WHERE border = "red"
Which sign has a red border?
CREATE TABLE table_name_42 (text_symbol VARCHAR, border VARCHAR)
SELECT COUNT(std_saps) FROM table_name_55 WHERE opt_saps = "0-11"
What is the total number of Std SAPs with 0-11 Opt SAPS?
CREATE TABLE table_name_55 (std_saps VARCHAR, opt_saps VARCHAR)
SELECT T1.pName, T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'
Find the name and hours of the students whose tryout decision is yes.
CREATE TABLE player (pName VARCHAR, HS VARCHAR, pID VARCHAR); CREATE TABLE tryout (pID VARCHAR, decision VARCHAR)
SELECT unit_test FROM table_name_76 WHERE msdn_integration = "full" AND projects_templates = "yes"
Which Unit test has a MSDN integration of full, and a Projects templates of yes?
CREATE TABLE table_name_76 (unit_test VARCHAR, msdn_integration VARCHAR, projects_templates VARCHAR)
SELECT COUNT(shot_pct) FROM table_25381437_2 WHERE pa = 79
How many results are listed for shot PCT Where PA is 79?
CREATE TABLE table_25381437_2 (shot_pct VARCHAR, pa VARCHAR)
SELECT player FROM table_11734041_16 WHERE school_club_team_country = "Long Beach State"
What are the players that attented long beach state?
CREATE TABLE table_11734041_16 (player VARCHAR, school_club_team_country VARCHAR)
SELECT MAX(episodes) FROM table_name_79 WHERE tv_station = "tbs" AND japanese_title = "今夜ひとりのベッドで"
Which Episodes have a TV Station of tbs, and a Japanese Title of 今夜ひとりのベッドで?
CREATE TABLE table_name_79 (episodes INTEGER, tv_station VARCHAR, japanese_title VARCHAR)
SELECT proto_austronesian FROM table_name_53 WHERE proto_polynesian = "*tui"
What is the Proto-Austronesian word for the Proto-Polynesian word *tui?
CREATE TABLE table_name_53 (proto_austronesian VARCHAR, proto_polynesian VARCHAR)
SELECT name FROM table_name_39 WHERE round > 4 AND overall < 338 AND pick < 11 AND college = "virginia tech"
Which Name has a Round larger than 4, an Overall smaller than 338, a Pick smaller than 11, and a College of virginia tech?
CREATE TABLE table_name_39 (name VARCHAR, college VARCHAR, pick VARCHAR, round VARCHAR, overall VARCHAR)
SELECT transfer_window FROM table_name_78 WHERE country = "bel"
What is the transfer window for bel?
CREATE TABLE table_name_78 (transfer_window VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_77 WHERE place = "t6" AND score = 68 - 69 - 70 = 207
What is the To par of the T6 Place Player with a Score of 68-69-70=207?
CREATE TABLE table_name_77 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT environment FROM table_13677808_1 WHERE overall__average_ = "4.7"
What is the environment rating of the country with an overall average rating of 4.7?
CREATE TABLE table_13677808_1 (environment VARCHAR, overall__average_ VARCHAR)
SELECT venue FROM table_name_81 WHERE notes = "7964 pb"
What venue has 7964 pb notes?
CREATE TABLE table_name_81 (venue VARCHAR, notes VARCHAR)
SELECT status FROM table_27615896_20 WHERE points = 3041
What's the status of the player with 3041 points?
CREATE TABLE table_27615896_20 (status VARCHAR, points VARCHAR)
SELECT constructor FROM table_name_62 WHERE grid < 5 AND driver = "michael schumacher"
What Constructor did Michael Schumacher have with a Grid smaller than 5?
CREATE TABLE table_name_62 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT COUNT(DISTINCT program_id) FROM broadcast WHERE time_of_day = 'Night'
find the number of different programs that are broadcast during night time.
CREATE TABLE broadcast (program_id VARCHAR, time_of_day VARCHAR)
SELECT MAX(_number_s_dam_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = "Lake and Peninsula"
How many dams are there in the Lake and Peninsula area?
CREATE TABLE table_17978052_2 (_number_s_dam_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR)
SELECT name FROM table_name_39 WHERE decile = "7" AND area = "upper hutt"
What school with a decile of 7 is in upper hutt?
CREATE TABLE table_name_39 (name VARCHAR, decile VARCHAR, area VARCHAR)
SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1
Which country has the most of TV Channels? List the country and number of TV Channels it has.
CREATE TABLE TV_Channel (Country VARCHAR)
SELECT result FROM table_name_66 WHERE venue = "dairy farmers stadium" AND score = "28-24"
Who won the game at Dairy farmers stadium with a score of 28-24?
CREATE TABLE table_name_66 (result VARCHAR, venue VARCHAR, score VARCHAR)
SELECT candidates FROM table_1342359_15 WHERE district = "Kansas 4"
who are the candidates with district being kansas 4
CREATE TABLE table_1342359_15 (candidates VARCHAR, district VARCHAR)
SELECT driver FROM table_name_99 WHERE chassis = "d6"
Who is driver of the d6 chassis?
CREATE TABLE table_name_99 (driver VARCHAR, chassis VARCHAR)
SELECT name FROM table_name_19 WHERE moving_to = "atlético minero"
What is the name when moving to atlético minero?
CREATE TABLE table_name_19 (name VARCHAR, moving_to VARCHAR)
SELECT year_s__retired FROM table_name_5 WHERE quantity_made = "25"
What is the year retired of the locomotive which had the quantity made of 25?
CREATE TABLE table_name_5 (year_s__retired VARCHAR, quantity_made VARCHAR)
SELECT MAX(goals_conceded) FROM table_name_10 WHERE points = 6 AND draws > 0
Which Goals conceded has Points of 6 and Draws larger than 0?
CREATE TABLE table_name_10 (goals_conceded INTEGER, points VARCHAR, draws VARCHAR)
SELECT longitude FROM table_name_87 WHERE latitude = "73.0s" AND name = "aibarchin planitia"
Which Longitude has a Latitude of 73.0s, and a Name of aibarchin planitia?
CREATE TABLE table_name_87 (longitude VARCHAR, latitude VARCHAR, name VARCHAR)
SELECT modern_equivalent FROM table_160510_1 WHERE province = "Hanju"
What are the modern equivalents for the province of "hanju"?
CREATE TABLE table_160510_1 (modern_equivalent VARCHAR, province VARCHAR)
SELECT dob FROM table_name_44 WHERE surname = "maat"
When was Maat born?
CREATE TABLE table_name_44 (dob VARCHAR, surname VARCHAR)
SELECT COUNT(1 AS st_prize__) AS $__ FROM table_11621747_1 WHERE tournament = "The Transamerica"
How many prizes were there at the transamerica?
CREATE TABLE table_11621747_1 (tournament VARCHAR)
SELECT player FROM table_28628309_9 WHERE category = "3-pt field goal percentage"
What is the name of the player when the category is 3-pt field goal percentage?
CREATE TABLE table_28628309_9 (player VARCHAR, category VARCHAR)
SELECT competition FROM table_name_98 WHERE position = "8th"
What's the name of the competition in 8th position?
CREATE TABLE table_name_98 (competition VARCHAR, position VARCHAR)
SELECT AVG(fighting_spirit) FROM table_name_55 WHERE name = "tsurugamine" AND technique < 10
Which Fighting Spirit has a Name of tsurugamine, and a Technique smaller than 10?
CREATE TABLE table_name_55 (fighting_spirit INTEGER, name VARCHAR, technique VARCHAR)
SELECT AVG(off_reb) FROM table_name_29 WHERE ftm_fta = "16-17" AND steals < 8
What was the average of the Off Reb with steals less than 8 and FTM-FTA of 16-17?
CREATE TABLE table_name_29 (off_reb INTEGER, ftm_fta VARCHAR, steals VARCHAR)
SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 3
what are the top 3 highest support rates?
CREATE TABLE candidate (support_rate VARCHAR)
SELECT MAX(attendance) FROM table_name_95 WHERE opponent = "arsenal"
Whose attendance was the highest when the team played Arsenal?
CREATE TABLE table_name_95 (attendance INTEGER, opponent VARCHAR)
SELECT COUNT(pick__number) FROM table_name_22 WHERE position = "defensive end" AND overall < 33
How many Picks have a Position of defensive end, and an Overall smaller than 33?
CREATE TABLE table_name_22 (pick__number VARCHAR, position VARCHAR, overall VARCHAR)
SELECT graphical FROM table_22915134_2 WHERE engine = "I4"
When i4 is the engine what is the graphical?
CREATE TABLE table_22915134_2 (graphical VARCHAR, engine VARCHAR)
SELECT opponent FROM table_name_26 WHERE loss = "moyer (9–4)"
Who lost to moyer (9–4)?
CREATE TABLE table_name_26 (opponent VARCHAR, loss VARCHAR)
SELECT COUNT(host) FROM table_1149495_1 WHERE fourth_place = "Chenoa"
How many people hosted the show in the year when Chenoa ended up in fourth place?
CREATE TABLE table_1149495_1 (host VARCHAR, fourth_place VARCHAR)
SELECT couple FROM table_26375386_16 WHERE total = 8
What couple had a total of 8?
CREATE TABLE table_26375386_16 (couple VARCHAR, total VARCHAR)
SELECT home_team FROM table_name_65 WHERE venue = "brunswick street oval"
Who was the home team at Brunswick Street Oval?
CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR)
SELECT length FROM table_name_89 WHERE stations = "16"
Stations of 16 is assigned what length?
CREATE TABLE table_name_89 (length VARCHAR, stations VARCHAR)
SELECT raion__district__or_city FROM table_name_58 WHERE bessarabian_bulgarians = "8,600"
What city or Raion (district) has 8,600 Bessarabian Bulgarians?
CREATE TABLE table_name_58 (raion__district__or_city VARCHAR, bessarabian_bulgarians VARCHAR)
SELECT opponent FROM table_name_41 WHERE week < 7 AND date = "september 12, 1988"
Which Opponent that has a Week smaller than 7 on september 12, 1988?
CREATE TABLE table_name_41 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT county FROM table_18600760_3 WHERE latitude = "46.770977"
What was the county with a latitude of 46.770977?
CREATE TABLE table_18600760_3 (county VARCHAR, latitude VARCHAR)
SELECT club FROM table_name_93 WHERE lost = "10"
Which club lost 10 games ?
CREATE TABLE table_name_93 (club VARCHAR, lost VARCHAR)
SELECT 2010 FROM table_name_61 WHERE 2011 = "a" AND 2008 = "1r"
Name the 2010 for 2011 of a and 2008 of 1r
CREATE TABLE table_name_61 (Id VARCHAR)
SELECT period FROM table_name_9 WHERE player = "stanislav chistov"
In which period did Stanislav Chistov get a penalty?
CREATE TABLE table_name_9 (period VARCHAR, player VARCHAR)
SELECT name FROM table_name_88 WHERE term_end = "18 july 1944"
Which Name has a Term end of 18 july 1944?
CREATE TABLE table_name_88 (name VARCHAR, term_end VARCHAR)
SELECT COUNT(*) FROM users WHERE user_login = 1
How many users are logged in?
CREATE TABLE users (user_login VARCHAR)
SELECT attendance FROM table_name_59 WHERE result = "l0-13"
What is the Attendance when the Result is l0-13?
CREATE TABLE table_name_59 (attendance VARCHAR, result VARCHAR)
SELECT branding FROM table_name_55 WHERE owner = "jim pattison group" AND frequency = "fm 94.5"
what is the branding when the owner is jim pattison group and the frequency is fm 94.5?
CREATE TABLE table_name_55 (branding VARCHAR, owner VARCHAR, frequency VARCHAR)
SELECT event FROM table_name_79 WHERE opponent = "wesslan evaristo de oliveira"
What is the Event when the opponent was wesslan evaristo de oliveira?
CREATE TABLE table_name_79 (event VARCHAR, opponent VARCHAR)
SELECT SUM(pick__number) FROM table_name_17 WHERE player = "mike zaher"
How many picks did Mike Zaher have?
CREATE TABLE table_name_17 (pick__number INTEGER, player VARCHAR)
SELECT area__km²___per_sqmi_ FROM table_26769_1 WHERE country_or_territory_with_flag = "Colombia"
What was the area (km²) (per sqmi) of the country Colombia?
CREATE TABLE table_26769_1 (area__km²___per_sqmi_ VARCHAR, country_or_territory_with_flag VARCHAR)
SELECT function__figure_ FROM table_name_30 WHERE real_name = "jean-luc bouvier"
What role did Jean-Luc Bouvier serve?
CREATE TABLE table_name_30 (function__figure_ VARCHAR, real_name VARCHAR)
SELECT 2008 FROM table_name_1 WHERE 2012 = "1r" AND 2010 = "a" AND 2005 = "a"
What was the value in 2008 when 2012 was 1R, 2010 was A, and 2005 was A?
CREATE TABLE table_name_1 (Id VARCHAR)
SELECT COUNT(weekly_rank) FROM table_17004367_3 WHERE total = 1980000
what is the number of weekly rank where the total is 1980000?
CREATE TABLE table_17004367_3 (weekly_rank VARCHAR, total VARCHAR)
SELECT score FROM table_177273_2 WHERE partner = "Françoise Dürr"
What was the score when Françoise Dürr was partner?
CREATE TABLE table_177273_2 (score VARCHAR, partner VARCHAR)
SELECT MIN(goals) FROM table_name_92 WHERE matches = "16" AND scorer = "park sang-in"
Which Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in?
CREATE TABLE table_name_92 (goals INTEGER, matches VARCHAR, scorer VARCHAR)
SELECT points FROM table_12886178_4 WHERE club = "Croesyceiliog RFC"
How many points does Croesyceiliog RFC have?
CREATE TABLE table_12886178_4 (points VARCHAR, club VARCHAR)
SELECT head FROM department GROUP BY departmentID ORDER BY COUNT(departmentID) LIMIT 1
What is the employee id of the head whose department has the least number of employees?
CREATE TABLE department (head VARCHAR, departmentID VARCHAR)
SELECT COUNT(position) FROM table_10812403_4 WHERE pick__number = 30
How many people were pick #30?
CREATE TABLE table_10812403_4 (position VARCHAR, pick__number VARCHAR)
SELECT player FROM table_name_86 WHERE round < 6 AND college_junior_club_team = "hull olympiques (qmjhl)"
Can you tell me the Player that has the Round smaller than 6, and the College/Junior/Club Team of hull olympiques (qmjhl)?
CREATE TABLE table_name_86 (player VARCHAR, round VARCHAR, college_junior_club_team VARCHAR)
SELECT MAX(completed) FROM table_13397394_1 WHERE building = "Delta Bessborough"
what is the maximum completed for delta bessborough
CREATE TABLE table_13397394_1 (completed INTEGER, building VARCHAR)
SELECT AVG(year) FROM table_name_75 WHERE class = "500cc" AND wins < 0
Class of 500cc, and a Wins smaller than 0 had what average year?
CREATE TABLE table_name_75 (year INTEGER, class VARCHAR, wins VARCHAR)
SELECT iata FROM table_name_39 WHERE icao = "eheh"
what's the iata for the icao of eheh?
CREATE TABLE table_name_39 (iata VARCHAR, icao VARCHAR)
SELECT competition FROM table_name_55 WHERE date = "2007-08-22"
Which competition has a Date of 2007-08-22?
CREATE TABLE table_name_55 (competition VARCHAR, date VARCHAR)
SELECT MAX(flap) FROM table_name_5 WHERE class = "500 cc"
What is the highest flap for class 500 cc?
CREATE TABLE table_name_5 (flap INTEGER, class VARCHAR)
SELECT COUNT(champion) FROM table_21584646_10 WHERE runner_up = "Stefan Edberg"
How many champions are shown for the runner-up of stefan edberg?
CREATE TABLE table_21584646_10 (champion VARCHAR, runner_up VARCHAR)
SELECT year FROM table_2597876_2 WHERE avg_start = "27.2"
What is every year with average start of 27.2?
CREATE TABLE table_2597876_2 (year VARCHAR, avg_start VARCHAR)
SELECT song FROM table_name_68 WHERE index = "m6"
What song had an index of m6?
CREATE TABLE table_name_68 (song VARCHAR, index VARCHAR)
SELECT reason FROM table_28898974_3 WHERE electorate = "Peninsula"
When peninsula is the electorate what is the reason?
CREATE TABLE table_28898974_3 (reason VARCHAR, electorate VARCHAR)
SELECT COUNT(wheel_arrangement___whyte_notation__) FROM table_1057316_1 WHERE operational_owner_s_ = "Texas and New Orleans Railroad #319"
How many wheels does the train owned by Texas and New Orleans Railroad #319 have?
CREATE TABLE table_1057316_1 (wheel_arrangement___whyte_notation__ VARCHAR, operational_owner_s_ VARCHAR)
SELECT bush_percentage FROM table_2401326_1 WHERE kerry_percentage = "37.6%"
What's percentage voted for Busg in the county where Kerry got 37.6%?
CREATE TABLE table_2401326_1 (bush_percentage VARCHAR, kerry_percentage VARCHAR)
SELECT partnerships FROM table_name_17 WHERE versus = "namibia" AND runs = "166*"
What is the partnership in the game with 166* runs and an opponent of Namibia?
CREATE TABLE table_name_17 (partnerships VARCHAR, versus VARCHAR, runs VARCHAR)
SELECT akira FROM table_name_94 WHERE tiger_mask_iv = "akira (10:05)"
What is the Akira when Tiger Mask IV is Akira (10:05)?
CREATE TABLE table_name_94 (akira VARCHAR, tiger_mask_iv VARCHAR)
SELECT AVG(played) FROM table_name_48 WHERE first_game = 1997 AND drawn > 0
What is the average number of games played associated with a first game in 1997 and over 0 games drawn?
CREATE TABLE table_name_48 (played INTEGER, first_game VARCHAR, drawn VARCHAR)
SELECT COUNT(high_assists) FROM table_23248940_9 WHERE date = "February 24"
How many different high assists results are there for the game played on February 24?
CREATE TABLE table_23248940_9 (high_assists VARCHAR, date VARCHAR)
SELECT event FROM table_name_66 WHERE time = "0:55"
Which of the events only lasted no more than 0:55?
CREATE TABLE table_name_66 (event VARCHAR, time VARCHAR)
SELECT date FROM table_name_49 WHERE home_team = "north melbourne"
When the Home team was north melbourne what was the Date of the game?
CREATE TABLE table_name_49 (date VARCHAR, home_team VARCHAR)
SELECT first_elected FROM table_2668374_11 WHERE incumbent = "William Kennedy"
When was William Kennedy first elected?
CREATE TABLE table_2668374_11 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(director) FROM table_23141790_1 WHERE original_title = "Vesničko má středisková"
Name the total number of director for vesničko má středisková
CREATE TABLE table_23141790_1 (director VARCHAR, original_title VARCHAR)
SELECT away_team AS score FROM table_name_44 WHERE away_team = "footscray"
What was the Away team score for Footscray?
CREATE TABLE table_name_44 (away_team VARCHAR)