answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT location FROM table_name_20 WHERE rank = 36
What is the location of the mountain ranked at 36?
CREATE TABLE table_name_20 (location VARCHAR, rank VARCHAR)
SELECT event FROM table_name_37 WHERE res = "loss" AND opponent = "josh diekman"
Which event led to a loss against Josh Diekman?
CREATE TABLE table_name_37 (event VARCHAR, res VARCHAR, opponent VARCHAR)
SELECT division FROM table_27274566_2 WHERE result = "0–2"
What is the division where the result was 0–2?
CREATE TABLE table_27274566_2 (division VARCHAR, result VARCHAR)
SELECT city___state FROM table_name_85 WHERE race_title = "oran park"
What is the City/State of the Oran Park race?
CREATE TABLE table_name_85 (city___state VARCHAR, race_title VARCHAR)
SELECT 1993 FROM table_name_15 WHERE 1996 = "atp masters series"
What is the 1993 value of the 1996 atp masters series?
CREATE TABLE table_name_15 (Id VARCHAR)
SELECT position FROM table_1708014_1 WHERE winnings = "$4,228,889"
Which position offers winnings of $4,228,889?
CREATE TABLE table_1708014_1 (position VARCHAR, winnings VARCHAR)
SELECT name FROM table_name_63 WHERE appointment = "october 24, 1997"
Who was appointed on October 24, 1997?
CREATE TABLE table_name_63 (name VARCHAR, appointment VARCHAR)
SELECT date FROM table_16028499_2 WHERE opponent = "New York Jets"
What date did the team play the New York Jets?
CREATE TABLE table_16028499_2 (date VARCHAR, opponent VARCHAR)
SELECT written_by FROM table_26561506_1 WHERE no = 28
Who wrote episode number 28?
CREATE TABLE table_26561506_1 (written_by VARCHAR, no VARCHAR)
SELECT train_no FROM table_name_87 WHERE origin = "secunderabad junction"
What is number of the train that originated in Secunderabad Junction?
CREATE TABLE table_name_87 (train_no VARCHAR, origin VARCHAR)
SELECT round_of_32 FROM table_27294107_11 WHERE athlete = "Fatih Keleş"
What is the round of 32 for fatih keleş?
CREATE TABLE table_27294107_11 (round_of_32 VARCHAR, athlete VARCHAR)
SELECT athletes FROM table_name_44 WHERE rank = "bronze"
Which Athletes have a Rank of bronze?
CREATE TABLE table_name_44 (athletes VARCHAR, rank VARCHAR)
SELECT the_biggest_loser FROM table_name_21 WHERE at_home_winner = "pete thomas"
Who won the season when Pete Thomas was the At-Home winner?
CREATE TABLE table_name_21 (the_biggest_loser VARCHAR, at_home_winner VARCHAR)
SELECT AVG(long) FROM table_name_34 WHERE gp_gs < 14 AND avg_g < 0.8 AND gain < 3 AND loss > 8
What is the average Long that has a GP-GS less than 14, a AVg/G less than 0.8 and a Gain less than 3 and a Loss greater than 8?
CREATE TABLE table_name_34 (long INTEGER, loss VARCHAR, gain VARCHAR, gp_gs VARCHAR, avg_g VARCHAR)
SELECT driver FROM table_2266762_1 WHERE race_time = "3:04:09"
Who was the winning driver in the race that was 3:04:09 long?
CREATE TABLE table_2266762_1 (driver VARCHAR, race_time VARCHAR)
SELECT home_team AS score FROM table_name_93 WHERE home_team = "richmond"
What is richmond's score as the home team?
CREATE TABLE table_name_93 (home_team VARCHAR)
SELECT location FROM table_name_72 WHERE event = "100m butterfly"
What is the Location, when Event is "100m Butterfly"?
CREATE TABLE table_name_72 (location VARCHAR, event VARCHAR)
SELECT try_bonus FROM table_name_98 WHERE tries_for = "39"
What is Try Bonus, when Tries For is "39"?
CREATE TABLE table_name_98 (try_bonus VARCHAR, tries_for VARCHAR)
SELECT position FROM table_22719663_3 WHERE college = "San Jose State"
What position did the player from San Jose State play?
CREATE TABLE table_22719663_3 (position VARCHAR, college VARCHAR)
SELECT bleeding_time FROM table_14006_1 WHERE platelet_count = "Decreased" AND prothrombin_time = "Prolonged"
what's the bleeding time with platelet count being decreased and prothrombin time being prolonged
CREATE TABLE table_14006_1 (bleeding_time VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR)
SELECT nhl_team FROM table_2679061_4 WHERE player = "Esa Tikkanen"
Which team drafted Esa Tikkanen?
CREATE TABLE table_2679061_4 (nhl_team VARCHAR, player VARCHAR)
SELECT distance FROM table_name_27 WHERE bearing = "297°"
what is the distance for bearing 297°?
CREATE TABLE table_name_27 (distance VARCHAR, bearing VARCHAR)
SELECT date_won FROM table_name_5 WHERE location = "bayamón, puerto rico" AND champion_s_ = "bonecrusher"
When did Bonecrusher win the championship at Bayamón, Puerto Rico?
CREATE TABLE table_name_5 (date_won VARCHAR, location VARCHAR, champion_s_ VARCHAR)
SELECT date_of_appointment FROM table_name_80 WHERE name = "nejat biyedić"
What is the date of appointment of nejat biyedić?
CREATE TABLE table_name_80 (date_of_appointment VARCHAR, name VARCHAR)
SELECT long FROM table_name_56 WHERE avg_g = "5.9"
For the Avg/G of 5.9, what was the long?
CREATE TABLE table_name_56 (long VARCHAR, avg_g VARCHAR)
SELECT artist FROM table_name_82 WHERE format = "12 inch vinyl" AND single = "alien rock b/w combat, the remix"
What artist had a single called Alien Rock b/w Combat, The Remix on 12 inch Vinyl format?
CREATE TABLE table_name_82 (artist VARCHAR, format VARCHAR, single VARCHAR)
SELECT album_title FROM table_name_25 WHERE original_label = "popup"
What is the title of the album that has Popup has the original label?
CREATE TABLE table_name_25 (album_title VARCHAR, original_label VARCHAR)
SELECT MAX(founded) FROM table_2076533_1 WHERE enrollment__2005_ = 1285
Name the most founded for enrollment 2005 being 1285
CREATE TABLE table_2076533_1 (founded INTEGER, enrollment__2005_ VARCHAR)
SELECT player FROM table_name_46 WHERE figures = "4/14"
Which player has figures of 4/14?
CREATE TABLE table_name_46 (player VARCHAR, figures VARCHAR)
SELECT COUNT(*), MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode
What is the total number of countries where Spanish is spoken by the largest percentage of people?
CREATE TABLE countrylanguage (Percentage INTEGER, CountryCode VARCHAR, LANGUAGE VARCHAR)
SELECT high_points FROM table_27733909_5 WHERE game = 11
Who had the most points and how many did they have in game 11?
CREATE TABLE table_27733909_5 (high_points VARCHAR, game VARCHAR)
SELECT icao FROM table_name_8 WHERE airline = "asiana airlines"
What is the ICAO for Asiana Airlines?
CREATE TABLE table_name_8 (icao VARCHAR, airline VARCHAR)
SELECT AVG(clean_) & _jerk FROM table_name_8 WHERE total__kg_ > 204 AND snatch > 98
What is the clean & jerk when the total (kg) is more than 204, and snatch is more than 98?
CREATE TABLE table_name_8 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR)
SELECT MAX(week) FROM table_name_29 WHERE visiting_team = "houston texans"
When were the Houston Texans the visiting team later in the season?
CREATE TABLE table_name_29 (week INTEGER, visiting_team VARCHAR)
SELECT MIN(round) FROM table_name_14 WHERE res = "win" AND location = "fort lauderdale, florida, united states" AND time = "3:38"
What is the lowest round for Fort Lauderdale, Florida, United States, with a win and a time of 3:38?
CREATE TABLE table_name_14 (round INTEGER, time VARCHAR, res VARCHAR, location VARCHAR)
SELECT COUNT(pageant) FROM table_1825751_14 WHERE hometown = "San Fernando, Pampanga"
How many pageants were in san fernando, pampanga?
CREATE TABLE table_1825751_14 (pageant VARCHAR, hometown VARCHAR)
SELECT MIN(position) FROM table_name_2 WHERE points = 32 AND wins > 13
What is the minimum position when points are 32 and wins are greater than 13?
CREATE TABLE table_name_2 (position INTEGER, points VARCHAR, wins VARCHAR)
SELECT MIN(area__km_2__) FROM table_name_72 WHERE population__2000_ = "45"
What is the smallest area with 45 population?
CREATE TABLE table_name_72 (area__km_2__ INTEGER, population__2000_ VARCHAR)
SELECT region FROM table_name_57 WHERE catalog = "512335"
Which region is associated with the catalog value of 512335?
CREATE TABLE table_name_57 (region VARCHAR, catalog VARCHAR)
SELECT service_name FROM table_name_53 WHERE owner = "bbc"
What is the Service name of BBC?
CREATE TABLE table_name_53 (service_name VARCHAR, owner VARCHAR)
SELECT score FROM table_name_64 WHERE date = "october 30"
What was the score on October 30?
CREATE TABLE table_name_64 (score VARCHAR, date VARCHAR)
SELECT driver FROM table_name_23 WHERE time_retired = "+5.2684"
Who is the driver with a time/retired of +5.2684?
CREATE TABLE table_name_23 (driver VARCHAR, time_retired VARCHAR)
SELECT COUNT(*) FROM ALBUM
How many albums are there?
CREATE TABLE ALBUM (Id VARCHAR)
SELECT driver FROM table_name_32 WHERE engine = "rotax max" AND class = "rotax heavy" AND chassis = "arrow" AND team = "twr raceline seating"
What is the name of the driver with a rotax max engine, in the rotax heavy class, with arrow as chassis and on the TWR Raceline Seating team?
CREATE TABLE table_name_32 (driver VARCHAR, team VARCHAR, chassis VARCHAR, engine VARCHAR, class VARCHAR)
SELECT SUM(attendance) FROM table_name_62 WHERE date = "8 october 2008"
When the date is 8 october 2008 what is the sum of attendance?
CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR)
SELECT MIN(area__km_2__) FROM table_17416221_1 WHERE largest_city = "Bloemfontein"
what is minimum area where the largest city is bloemfontein?
CREATE TABLE table_17416221_1 (area__km_2__ INTEGER, largest_city VARCHAR)
SELECT COUNT(report) FROM table_10707142_2 WHERE date = "October 16"
how many reports of races took place on october 16?
CREATE TABLE table_10707142_2 (report VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_6 WHERE opponent = "seattle supersonics"
What was the location when the opponent was Seattle Supersonics?
CREATE TABLE table_name_6 (location_attendance VARCHAR, opponent VARCHAR)
SELECT circuit FROM table_24037660_2 WHERE rnd = 3
What circuit had rnd 3?
CREATE TABLE table_24037660_2 (circuit VARCHAR, rnd VARCHAR)
SELECT MIN(year) FROM table_name_22 WHERE opponents_in_final = "shingo kunieda satoshi saida"
What year were the opponents Shingo Kunieda Satoshi Saida?
CREATE TABLE table_name_22 (year INTEGER, opponents_in_final VARCHAR)
SELECT release FROM table_1322904_1 WHERE title = "Sonic Adventure 2"
What was the release date of Sonic Adventure 2?
CREATE TABLE table_1322904_1 (release VARCHAR, title VARCHAR)
SELECT COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = "Kyle"
How many likes does Kyle have?
CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR)
SELECT MAX(rank) FROM table_name_98 WHERE points < 256.6
Which Rank is the highest one that has Points smaller than 256.6?
CREATE TABLE table_name_98 (rank INTEGER, points INTEGER)
SELECT SUM(overs) FROM table_name_33 WHERE runs = 5231 AND matches < 37
How many overs when there are 5231 runs and fewer than 37 matches?
CREATE TABLE table_name_33 (overs INTEGER, runs VARCHAR, matches VARCHAR)
SELECT SUM(total_games) FROM table_name_34 WHERE number_of_seasons < 2 AND draw > 7
What is the number of games for less than 2 seasons and more than 7 draws?
CREATE TABLE table_name_34 (total_games INTEGER, number_of_seasons VARCHAR, draw VARCHAR)
SELECT SUM(losses) FROM table_name_11 WHERE team_name = "burnaby lakers" AND points = 8 AND season = "1998" AND games < 25
How many losses did the Burnaby Lakers accumulate when they scored 8 points in 1998 playing less than 25 games?
CREATE TABLE table_name_11 (losses INTEGER, games VARCHAR, season VARCHAR, team_name VARCHAR, points VARCHAR)
SELECT COUNT(years_owned) FROM table_1553485_1 WHERE station = "KPIX"
How many years has station KPIX been owned?
CREATE TABLE table_1553485_1 (years_owned VARCHAR, station VARCHAR)
SELECT label FROM table_name_48 WHERE catalog = "ch-9196"
Which label had a catalog designation of ch-9196?
CREATE TABLE table_name_48 (label VARCHAR, catalog VARCHAR)
SELECT player FROM table_12962773_16 WHERE year_born = 1983
What player was born in 1983?
CREATE TABLE table_12962773_16 (player VARCHAR, year_born VARCHAR)
SELECT natural_change FROM table_name_96 WHERE crude_birth_rate__per_1000_ < 11.4 AND crude_death_rate__per_1000_ > 12.1 AND deaths = "4 376"
What is the national change where crude birth rate is less than 11.4, crude death rate is more than 12.1 and deaths are 4 376?
CREATE TABLE table_name_96 (natural_change VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR)
SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT MAX(population) FROM country WHERE Continent = "Asia")
What are the African countries that have a population less than any country in Asia?
CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)
SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb , Becker and Wyman'
What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?
CREATE TABLE customer_master_index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE cmi_cross_references (source_system_code VARCHAR, master_customer_id VARCHAR)
SELECT population FROM table_170961_2 WHERE area_km_2 = "113.12"
at the area of 113.12, what was the population?
CREATE TABLE table_170961_2 (population VARCHAR, area_km_2 VARCHAR)
SELECT SUM(wins) FROM table_name_46 WHERE winning_span = "2000–2010"
Which Wins have a Winning span of 2000–2010?
CREATE TABLE table_name_46 (wins INTEGER, winning_span VARCHAR)
SELECT city FROM table_name_77 WHERE state = "svalbard" AND longitude = "15°39′e"
What city in Svalbard has a longitude of 15°39′e?
CREATE TABLE table_name_77 (city VARCHAR, state VARCHAR, longitude VARCHAR)
SELECT surface FROM table_29163303_1 WHERE championship = "Australian Open (6)"
On what surface was the Australian Open (6) played on?
CREATE TABLE table_29163303_1 (surface VARCHAR, championship VARCHAR)
SELECT attendance FROM table_name_85 WHERE opponent = "bye"
What was Bye's opponent's attendance?
CREATE TABLE table_name_85 (attendance VARCHAR, opponent VARCHAR)
SELECT tonnage FROM table_name_69 WHERE date = 1914
What is the listed Tonnage for the Date of 1914?
CREATE TABLE table_name_69 (tonnage VARCHAR, date VARCHAR)
SELECT years_in_orlando FROM table_name_82 WHERE nationality = "lebanon"
What years was Lebanon the nationality?
CREATE TABLE table_name_82 (years_in_orlando VARCHAR, nationality VARCHAR)
SELECT artist FROM table_name_13 WHERE spoofed_title = "the moron downer jr. show"
What is the name of the Artist for the Spoofed Title of the moron downer jr. show?
CREATE TABLE table_name_13 (artist VARCHAR, spoofed_title VARCHAR)
SELECT Name FROM WINE WHERE YEAR = "2008"
Find the names of all wines produced in 2008.
CREATE TABLE WINE (Name VARCHAR, YEAR VARCHAR)
SELECT venue FROM table_name_82 WHERE home_team = "carlton"
Where does Carlton play?
CREATE TABLE table_name_82 (venue VARCHAR, home_team VARCHAR)
SELECT january_15_16 FROM table_25355392_2 WHERE november_3 = "153"
What is january 15-16 when november 3 is 153?
CREATE TABLE table_25355392_2 (january_15_16 VARCHAR, november_3 VARCHAR)
SELECT number FROM table_14125006_1 WHERE astronaut = "Yurchikhin Fyodor Yurchikhin"
What's Yurchikhin Fyodor Yurchikhin's number?
CREATE TABLE table_14125006_1 (number VARCHAR, astronaut VARCHAR)
SELECT record FROM table_name_71 WHERE date = "july 18"
What was the team's record on july 18?
CREATE TABLE table_name_71 (record VARCHAR, date VARCHAR)
SELECT date FROM table_name_69 WHERE country = "united kingdom" AND catalog = "cdzap22"
What is the date for the catalog CDZAP22 in the United Kingdom?
CREATE TABLE table_name_69 (date VARCHAR, country VARCHAR, catalog VARCHAR)
SELECT pop_density__per_km²_ FROM table_1686313_1 WHERE barangay = "Tiptip"
Name the population density when barangay is tiptip
CREATE TABLE table_1686313_1 (pop_density__per_km²_ VARCHAR, barangay VARCHAR)
SELECT bike FROM table_name_13 WHERE grid < 35 AND time = "37:58.607"
Which bike had a grid less than 35 and time at 37:58.607?
CREATE TABLE table_name_13 (bike VARCHAR, grid VARCHAR, time VARCHAR)
SELECT COUNT(outcome) FROM table_26202940_6 WHERE date = "January 31, 2010"
How many outcomes occur on the date of January 31, 2010?
CREATE TABLE table_26202940_6 (outcome VARCHAR, date VARCHAR)
SELECT AVG(pick__number) FROM table_name_8 WHERE overall = 296
What Average Pick # has an Overall of 296?
CREATE TABLE table_name_8 (pick__number INTEGER, overall VARCHAR)
SELECT location FROM table_29728596_1 WHERE away_team = "FK Rudar Ugljevik"
Where was the home match against FK Rudar Ugljevik played?
CREATE TABLE table_29728596_1 (location VARCHAR, away_team VARCHAR)
SELECT COUNT(_number) FROM table_22904752_1 WHERE us_viewers__million_ = "17.44"
What is the # when u.s. viewers (million) is 17.44?
CREATE TABLE table_22904752_1 (_number VARCHAR, us_viewers__million_ VARCHAR)
SELECT club FROM table_name_61 WHERE city = "vila do conde"
What is the club from Vila Do Conde?
CREATE TABLE table_name_61 (club VARCHAR, city VARCHAR)
SELECT margin FROM table_262383_1 WHERE runner_s__up = "Skee Riegel"
what is the space where the next winner is skee riegel
CREATE TABLE table_262383_1 (margin VARCHAR, runner_s__up VARCHAR)
SELECT COUNT(year) FROM table_name_8 WHERE team = "audi sport team joest" AND pos = "3rd"
How many years was Audi Sport Team Joest in 3rd position?
CREATE TABLE table_name_8 (year VARCHAR, team VARCHAR, pos VARCHAR)
SELECT date_of_latest_logon FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh"
What are the dates of the latest logon of the students with family name "Jaskolski" or "Langosh"?
CREATE TABLE Students (date_of_latest_logon VARCHAR, family_name VARCHAR)
SELECT SUM(points) FROM table_name_93 WHERE played < 12
What is the total amount of points when the played number was less than 12?
CREATE TABLE table_name_93 (points INTEGER, played INTEGER)
SELECT name FROM table_name_14 WHERE time = "01:17:01"
What Name has a Time of 01:17:01?
CREATE TABLE table_name_14 (name VARCHAR, time VARCHAR)
SELECT MIN(to_par) FROM table_name_28 WHERE place = "t3" AND money___$__ < 1 OFFSET 500
What is the lowest to par of the player with a t3 place and less than $1,500?
CREATE TABLE table_name_28 (to_par INTEGER, place VARCHAR, money___$__ VARCHAR)
SELECT position FROM table_name_68 WHERE player = "daultan leveille"
What is Daultan Leveille's Position?
CREATE TABLE table_name_68 (position VARCHAR, player VARCHAR)
SELECT MAX(pts) FROM table_name_90 WHERE engine = "ferrari tipo 033 v6 tc" AND year < 1987
How many points have an Engine of ferrari tipo 033 v6 tc, and a Year smaller than 1987?
CREATE TABLE table_name_90 (pts INTEGER, engine VARCHAR, year VARCHAR)
SELECT college_junior_club_team FROM table_name_7 WHERE pick > 70 AND round < 7
Which College/Junior/Club Team has a Pick larger than 70, and a Round smaller than 7?
CREATE TABLE table_name_7 (college_junior_club_team VARCHAR, pick VARCHAR, round VARCHAR)
SELECT place FROM table_name_28 WHERE to_par = "+2" AND player = "johnny miller"
What place is player johnny miller, who has a to par of +2?
CREATE TABLE table_name_28 (place VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT T3.Name, T2.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID ORDER BY T2.Event_Attendance
Show the names of journalists and the names of the events they reported in ascending order
CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Event_ID VARCHAR, journalist_ID VARCHAR); CREATE TABLE event (Name VARCHAR, Event_ID VARCHAR, Event_Attendance 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 company_name FROM table_237199_1 WHERE world_headquarters = "Nagaokakyo, Kyoto"
Which company name has headquarters in nagaokakyo, kyoto?
CREATE TABLE table_237199_1 (company_name VARCHAR, world_headquarters VARCHAR)
SELECT composer FROM table_23829490_1 WHERE name_of_the_media = "Hall Of Dreams"
Who is every composer for the media named Hall of Dreams?
CREATE TABLE table_23829490_1 (composer VARCHAR, name_of_the_media VARCHAR)
SELECT Lieutenant AS governor FROM table_name_21 WHERE left_office = "january 14, 1929"
Who was Lieutenant Governor to the governor that left office on January 14, 1929?
CREATE TABLE table_name_21 (Lieutenant VARCHAR, left_office VARCHAR)
SELECT points FROM table_28201906_1 WHERE pts_agst = 45
How many points does the club that had 45 points against it have?
CREATE TABLE table_28201906_1 (points VARCHAR, pts_agst VARCHAR)
SELECT player FROM table_name_83 WHERE to_par = "–6"
Which player has a To par of –6?
CREATE TABLE table_name_83 (player VARCHAR, to_par VARCHAR)