answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT name FROM table_name_54 WHERE rank = 15
Which Name had the Rank, 15?
CREATE TABLE table_name_54 (name VARCHAR, rank VARCHAR)
SELECT 1 AS st_leg FROM table_1061075_1 WHERE opponents = "Galatasaray"
what's the 1st leg where opponents is galatasaray
CREATE TABLE table_1061075_1 (opponents VARCHAR)
SELECT other__percentage FROM table_13625792_1 WHERE bush__number = 4333
In the country where Bush won 4333 votes, what percentage did other receive?
CREATE TABLE table_13625792_1 (other__percentage VARCHAR, bush__number VARCHAR)
SELECT AVG(earnings___) AS $__ FROM table_name_58 WHERE country = "united states" AND score = 72 - 68 - 74 - 72 = 286
What is the average earnings of a United States player who had a score of 72-68-74-72=286?
CREATE TABLE table_name_58 (earnings___ INTEGER, country VARCHAR, score VARCHAR)
SELECT strain FROM table_name_24 WHERE species = "thiomicrospira crunogena"
What is the Strain name of Species Thiomicrospira crunogena?
CREATE TABLE table_name_24 (strain VARCHAR, species VARCHAR)
SELECT AVG(decile) FROM table_name_5 WHERE name = "westport south school"
What is the average decile of Westport South School?
CREATE TABLE table_name_5 (decile INTEGER, name VARCHAR)
SELECT COUNT(maghreb) FROM table_22860_1 WHERE mediterranean_europe = "Siciliense"
How many values for Maghreb with Mediterranean Europe is Siciliense?
CREATE TABLE table_22860_1 (maghreb VARCHAR, mediterranean_europe VARCHAR)
SELECT MIN(pick__number) FROM table_21321804_5 WHERE college = "McGill"
What is the smallest pick number for McGill?
CREATE TABLE table_21321804_5 (pick__number INTEGER, college VARCHAR)
SELECT sunk_by FROM table_name_67 WHERE flag = "norway"
Who sunk the ship with the flag of Norway?
CREATE TABLE table_name_67 (sunk_by VARCHAR, flag VARCHAR)
SELECT nationality FROM table_name_24 WHERE college_junior_club_team = "michigan state university (ncaa)" AND player = "mark hirth"
What nationality is Mark Hirth from Michigan State University (NCAA)?
CREATE TABLE table_name_24 (nationality VARCHAR, college_junior_club_team VARCHAR, player VARCHAR)
SELECT result FROM table_name_41 WHERE nfl_recap = "recap" AND game_site = "bank of america stadium"
What is the Result with an NFL Recap, played at bank of america stadium?
CREATE TABLE table_name_41 (result VARCHAR, nfl_recap VARCHAR, game_site VARCHAR)
SELECT event FROM table_name_90 WHERE winner__title__number_ = "parker bohn iii (31)"
Name the Event which has a Winner (Title #) of parker bohn iii (31)?
CREATE TABLE table_name_90 (event VARCHAR, winner__title__number_ VARCHAR)
SELECT original_name FROM table_name_22 WHERE director = "gert fredholm"
What is the real name of the movie directed by gert fredholm?
CREATE TABLE table_name_22 (original_name VARCHAR, director VARCHAR)
SELECT MIN(year) FROM table_name_53 WHERE engine = "honda" AND finish = 4
What is the earliest year of the Honda Engine with a finish of 4?
CREATE TABLE table_name_53 (year INTEGER, engine VARCHAR, finish VARCHAR)
SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1
When was the school with the largest enrollment founded?
CREATE TABLE university (founded VARCHAR, enrollment VARCHAR)
SELECT distance FROM table_name_89 WHERE name = "mjåkollen"
what is the distance for mjåkollen?
CREATE TABLE table_name_89 (distance VARCHAR, name VARCHAR)
SELECT score FROM table_name_8 WHERE record = "68-39"
What was the score of the game when the record was 68-39?
CREATE TABLE table_name_8 (score VARCHAR, record VARCHAR)
SELECT date FROM table_name_58 WHERE result = "86-87"
Which Date has Result of 86-87?
CREATE TABLE table_name_58 (date VARCHAR, result VARCHAR)
SELECT city_of_license FROM table_name_42 WHERE frequency_mhz = "91.5 fm"
Which City of license has a Frequency MHz of 91.5 fm?
CREATE TABLE table_name_42 (city_of_license VARCHAR, frequency_mhz VARCHAR)
SELECT title FROM table_name_29 WHERE year > 1986 AND format_s_ = "album"
Which title has a year later than 1986 with an album as the format?
CREATE TABLE table_name_29 (title VARCHAR, year VARCHAR, format_s_ VARCHAR)
SELECT position FROM table_name_14 WHERE school_club_team = "tampa"
What is the position of the player from Tampa?
CREATE TABLE table_name_14 (position VARCHAR, school_club_team VARCHAR)
SELECT season FROM table_27631002_1 WHERE f_laps = 0 AND races = 2
Which season had f/laps is 0 and races is 2?
CREATE TABLE table_27631002_1 (season VARCHAR, f_laps VARCHAR, races VARCHAR)
SELECT margin_of_victory FROM table_1121352_2 WHERE date = "Mar 28, 2004"
Where is the margin of victory dated mar 28, 2004?
CREATE TABLE table_1121352_2 (margin_of_victory VARCHAR, date VARCHAR)
SELECT away_team AS score FROM table_name_37 WHERE home_team = "footscray"
What did the away team score when playing Footscray?
CREATE TABLE table_name_37 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(laps) FROM table_name_58 WHERE time_retired = "+6.643" AND grid < 2
What is the highest number of laps with a time of +6.643 and grid less than 2?
CREATE TABLE table_name_58 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT AVG(bronze) FROM table_name_66 WHERE silver < 7 AND nation = "montenegro" AND gold > 4
What was Montenegro's average bronze with less than 7 silver and more than 4 golds?
CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT builder FROM table_name_21 WHERE date = "1925"
What is Builder, when Date is 1925?
CREATE TABLE table_name_21 (builder VARCHAR, date VARCHAR)
SELECT record FROM table_name_21 WHERE opponent = "julio paulino"
What is terry's record when he fights julio paulino?
CREATE TABLE table_name_21 (record VARCHAR, opponent VARCHAR)
SELECT high_rebounds FROM table_17058226_5 WHERE high_assists = "Craig Smith (4)"
Who performed all the high rebounds when craig smith (4) was the lead for high assists?
CREATE TABLE table_17058226_5 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT studio FROM table_name_49 WHERE gross = "$81,198,894"
WHAT IS THE STUDIO WITH A GROSS $81,198,894?
CREATE TABLE table_name_49 (studio VARCHAR, gross VARCHAR)
SELECT score FROM table_name_17 WHERE opponent = "florida panthers" AND game = 2
What was the score of Game 2 in the series against the Florida Panthers?
CREATE TABLE table_name_17 (score VARCHAR, opponent VARCHAR, game VARCHAR)
SELECT silver FROM table_name_17 WHERE location = "guangzhou"
What Silver has the Location of Guangzhou?
CREATE TABLE table_name_17 (silver VARCHAR, location VARCHAR)
SELECT MIN(silver) FROM table_name_3 WHERE rank = 6 AND bronze < 3
Which Silver has a Rank of 6, and a Bronze smaller than 3?
CREATE TABLE table_name_3 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT artist FROM table_19523708_1 WHERE original = "Shake It, Europe"
Who was the artist for the origin Shake it, Europe?
CREATE TABLE table_19523708_1 (artist VARCHAR, original VARCHAR)
SELECT withdrawn FROM table_name_72 WHERE gsr_class = "296"
What is withdrawn with a GSR Class of 296?
CREATE TABLE table_name_72 (withdrawn VARCHAR, gsr_class VARCHAR)
SELECT overall FROM table_name_71 WHERE plyff = "(0-1)" AND away = "(1-1)"
Which Overall has a playoff record of (0-1) and an away record of (1-1)?
CREATE TABLE table_name_71 (overall VARCHAR, plyff VARCHAR, away VARCHAR)
SELECT country FROM table_name_97 WHERE rank = 2
What Country is in Rank 2?
CREATE TABLE table_name_97 (country VARCHAR, rank VARCHAR)
SELECT location FROM table_name_15 WHERE peak = "pico basilé"
Where is the peak Pico Basilé located?
CREATE TABLE table_name_15 (location VARCHAR, peak VARCHAR)
SELECT country FROM table_name_50 WHERE town = "dubai"
what country is dubai in
CREATE TABLE table_name_50 (country VARCHAR, town VARCHAR)
SELECT COUNT(week) FROM table_24918268_2 WHERE opponent = "Barcelona Dragons"
How many weeks are teams playing agains the Barcelona dragons?
CREATE TABLE table_24918268_2 (week VARCHAR, opponent VARCHAR)
SELECT written_by FROM table_2226817_2 WHERE original_air_date = "April 5, 1987"
Who wrote when the original airdate is April 5, 1987?
CREATE TABLE table_2226817_2 (written_by VARCHAR, original_air_date VARCHAR)
SELECT best_dancer FROM table_name_47 WHERE worst_dancer = "jerry springer" AND best_score = 29 AND dance = "quickstep"
Who is the Best dancer with the Worst dancer of Jerry Springer, a Best score of 29, and the Dance was the Quickstep?
CREATE TABLE table_name_47 (best_dancer VARCHAR, dance VARCHAR, worst_dancer VARCHAR, best_score VARCHAR)
SELECT director_s_ FROM table_name_92 WHERE title = "star wars episode ii: attack of the clones"
Director for Star Wars Episode II: attack of the clones?
CREATE TABLE table_name_92 (director_s_ VARCHAR, title VARCHAR)
SELECT name, phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING COUNT(*) > 1
what are name and phone number of patients who had more than one appointment?
CREATE TABLE appointment (patient VARCHAR); CREATE TABLE patient (ssn VARCHAR)
SELECT MIN(no_result) FROM table_name_57 WHERE year = "2012" AND wins > 10
What is the smallest no result when the year was 2012 and there were more than 10 wins?
CREATE TABLE table_name_57 (no_result INTEGER, year VARCHAR, wins VARCHAR)
SELECT nationality FROM table_name_20 WHERE college_junior_club_team__league_ = "ohio state university (ncaa)"
What is the nationality of the player from the Ohio State University (NCAA) Team?
CREATE TABLE table_name_20 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT kentucky FROM table_18461045_1 WHERE indiana = "Brownsburg LL Brownsburg" AND wisconsin = "Merrill LL Merrill"
What was the little league team from Kentucky when the little league team from Indiana and Wisconsin were Brownsburg LL Brownsburg and Merrill LL Merrill?
CREATE TABLE table_18461045_1 (kentucky VARCHAR, indiana VARCHAR, wisconsin VARCHAR)
SELECT minister FROM table_name_35 WHERE term_start = "4 may 2006"
Whose term started on 4 May 2006?
CREATE TABLE table_name_35 (minister VARCHAR, term_start VARCHAR)
SELECT original_air_date FROM table_15431959_1 WHERE written_by = "Peter DeLuise"
What was the original air date of Stargate SG-1 written by Peter Deluise?
CREATE TABLE table_15431959_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT takeover_date FROM table_name_19 WHERE fa_division_s_ = "mitre"
What is the takeover date of the FA division mitre?
CREATE TABLE table_name_19 (takeover_date VARCHAR, fa_division_s_ VARCHAR)
SELECT score FROM table_name_12 WHERE tournament = "cordenons"
What is the score for the Tournament of Cordenons?
CREATE TABLE table_name_12 (score VARCHAR, tournament VARCHAR)
SELECT faisaly FROM table_26173063_2 WHERE wehdat = "XXX"
what is faisaly when wehdat is xxx?
CREATE TABLE table_26173063_2 (faisaly VARCHAR, wehdat VARCHAR)
SELECT AVG(pick) FROM table_name_32 WHERE school = "washington state"
What is the average pick number for Washington State?
CREATE TABLE table_name_32 (pick INTEGER, school VARCHAR)
SELECT team_classification FROM table_22410316_17 WHERE combativity_prize = "Ricardo Serrano"
what team had ricardo serrano for combativity prize?
CREATE TABLE table_22410316_17 (team_classification VARCHAR, combativity_prize VARCHAR)
SELECT tournament FROM table_name_63 WHERE opponent = "daniel elsner"
What Tournament was against Daniel Elsner?
CREATE TABLE table_name_63 (tournament VARCHAR, opponent VARCHAR)
SELECT season FROM table_name_50 WHERE club = "werder bremen" AND round = "2r"
Which season has the Werder Bremen Club and is in Round 2r?
CREATE TABLE table_name_50 (season VARCHAR, club VARCHAR, round VARCHAR)
SELECT MAX(year_left) FROM table_name_25 WHERE mascot = "roughriders"
What is the year that the Roughriders left the conference?
CREATE TABLE table_name_25 (year_left INTEGER, mascot VARCHAR)
SELECT COUNT(interview) FROM table_17088705_2 WHERE preliminary = "8.895"
Number of participants with a score 8.895 in preliminary
CREATE TABLE table_17088705_2 (interview VARCHAR, preliminary VARCHAR)
SELECT COUNT(local_title) FROM table_13779832_1 WHERE television_network = "TV Nova Website"
how many local title with televbeingion network being tv nova website
CREATE TABLE table_13779832_1 (local_title VARCHAR, television_network VARCHAR)
SELECT MIN(first_elected) FROM table_1341395_22 WHERE district = "Massachusetts 3"
What was the earliest year someone was first elected from Massachusetts 3
CREATE TABLE table_1341395_22 (first_elected INTEGER, district VARCHAR)
SELECT place FROM table_name_11 WHERE score = 69 - 68 - 69 - 70 = 276
What place did the golfer who had a score of 69-68-69-70=276 finish in?
CREATE TABLE table_name_11 (place VARCHAR, score VARCHAR)
SELECT MAX(ansi_code) FROM table_name_98 WHERE latitude > 47.623288 AND geo_id > 3805508060 AND land___sqmi__ > 35.66 AND longitude < -102.054248
what is the highest ANSI code with a latitude more than 47.623288 and a geo id more than 3805508060 with land (sqmi) more than 35.66 and a longitude less than -102.054248
CREATE TABLE table_name_98 (ansi_code INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR, latitude VARCHAR, geo_id VARCHAR)
SELECT COUNT(no_in_season) FROM table_name_73 WHERE directed_by = "robert berlinger" AND no_in_series = 30
What is the total number in the season for the #30 Robert Berlinger series?
CREATE TABLE table_name_73 (no_in_season VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)
SELECT publisher FROM table_10875694_11 WHERE product_no = "SCUS-97265"
What publishers were involved with product number SCUS-97265?
CREATE TABLE table_10875694_11 (publisher VARCHAR, product_no VARCHAR)
SELECT AVG(week) FROM table_name_12 WHERE opponent = "baltimore colts" AND attendance < 41 OFFSET 062
What is the average week for the game against baltimore colts with less than 41,062 in attendance?
CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT saka_era FROM table_169955_1 WHERE in_malayalam = "മിഥുനം"
Name the saka era for malayalam മിഥുനം
CREATE TABLE table_169955_1 (saka_era VARCHAR, in_malayalam VARCHAR)
SELECT score FROM table_name_62 WHERE result = "win" AND date = "13 november 2009"
Can you tell me the Score that has the Result of win, and the Date of 13 november 2009?
CREATE TABLE table_name_62 (score VARCHAR, result VARCHAR, date VARCHAR)
SELECT season FROM table_14242137_11 WHERE regionalliga_west_südwest = "Arminia Bielefeld"
what's the season with regionalliga west/südwest being arminia bielefeld
CREATE TABLE table_14242137_11 (season VARCHAR, regionalliga_west_südwest VARCHAR)
SELECT class FROM table_20626467_1 WHERE winner_2nd = "2nd - Portillo"
What class was the 2nd - portillo?
CREATE TABLE table_20626467_1 (class VARCHAR, winner_2nd VARCHAR)
SELECT time FROM table_name_94 WHERE epicenter = "bam"
What is the Time when the Epicenter was Bam?
CREATE TABLE table_name_94 (time VARCHAR, epicenter VARCHAR)
SELECT SUM(total) FROM table_name_20 WHERE player = "rich beem" AND to_par > 17
What is the sum of the total of player rich beem, who has a to par greater than 17?
CREATE TABLE table_name_20 (total INTEGER, player VARCHAR, to_par VARCHAR)
SELECT AVG(earnings___) AS $__ FROM table_name_49 WHERE player = "greg norman"
What is the average earnings made by Greg Norman?
CREATE TABLE table_name_49 (earnings___ INTEGER, player VARCHAR)
SELECT score FROM table_name_31 WHERE country = "united states" AND player = "lucas glover"
What is the score for Lucas Glover of the United States?
CREATE TABLE table_name_31 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT poles FROM table_26223231_1 WHERE wins = 2
When there are 2 wins, how many poles are?
CREATE TABLE table_26223231_1 (poles VARCHAR, wins VARCHAR)
SELECT team FROM table_name_24 WHERE replaced_by = "csaba lászló"
I want the team with replaced by being csaba lászló
CREATE TABLE table_name_24 (team VARCHAR, replaced_by VARCHAR)
SELECT AVG(pick__number) FROM table_name_67 WHERE round > 5 AND position = "wide receiver" AND name = "gregory spann" AND overall > 228
Which Pick # has a Round larger than 5, and a Position of wide receiver, and a Name of gregory spann, and an Overall larger than 228?
CREATE TABLE table_name_67 (pick__number INTEGER, overall VARCHAR, name VARCHAR, round VARCHAR, position VARCHAR)
SELECT team_nickname FROM table_26476336_2 WHERE institution = "University of Nebraska at Omaha"
What is the nickname at the University of Nebraska at Omaha?
CREATE TABLE table_26476336_2 (team_nickname VARCHAR, institution VARCHAR)
SELECT total FROM table_name_16 WHERE score = "3-0" AND set_3 = "25-18" AND set_2 = "25-12"
What is the total of the 3-0 score with a set 2 of 25-12 and a set 3 of 25-18?
CREATE TABLE table_name_16 (total VARCHAR, set_2 VARCHAR, score VARCHAR, set_3 VARCHAR)
SELECT date FROM table_name_7 WHERE site = "memorial stadium • minneapolis, mn" AND attendance = "20,000" AND result = "w52-0"
What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?
CREATE TABLE table_name_7 (date VARCHAR, result VARCHAR, site VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_51 WHERE points = 62
What is the date of the game with 62 points?
CREATE TABLE table_name_51 (date VARCHAR, points VARCHAR)
SELECT date FROM table_name_52 WHERE attendance = "69,024"
What date was the game that was attended by 69,024?
CREATE TABLE table_name_52 (date VARCHAR, attendance VARCHAR)
SELECT event FROM table_name_39 WHERE res = "win" AND location = "guam" AND opponent = "patrick madayag"
What event in guam did Tetsuji Kato win against patrick madayag?
CREATE TABLE table_name_39 (event VARCHAR, opponent VARCHAR, res VARCHAR, location VARCHAR)
SELECT venue FROM table_name_55 WHERE against > 3 AND opposing_teams = "south africa"
What is the venue with more than 3 against, and South Africa is the opposing team?
CREATE TABLE table_name_55 (venue VARCHAR, against VARCHAR, opposing_teams VARCHAR)
SELECT COUNT(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015
How many concerts are there in year 2014 or 2015?
CREATE TABLE concert (YEAR VARCHAR)
SELECT first_elected FROM table_2668352_11 WHERE candidates = "Hosea Moffitt (F) 57.9% Josiah Masters (DR) 42.1%"
Name the first elected for hosea moffitt (f) 57.9% josiah masters (dr) 42.1%
CREATE TABLE table_2668352_11 (first_elected VARCHAR, candidates VARCHAR)
SELECT source FROM table_name_52 WHERE internet_explorer = "60.2%"
Which source date has an Internet Explorer usage of 60.2%?
CREATE TABLE table_name_52 (source VARCHAR, internet_explorer VARCHAR)
SELECT COUNT(rating) / SHARE(18 AS –49) FROM table_23799417_2 WHERE total_viewers__in_millions_ = "12.75"
What is the rating/share total number if the total viewers is 12.75 million?
CREATE TABLE table_23799417_2 (rating VARCHAR, total_viewers__in_millions_ VARCHAR)
SELECT COUNT(points) FROM table_name_16 WHERE attendance = 6 OFFSET 126
For the game with 6,126 in attendance, how many points did both teams have in the standings?
CREATE TABLE table_name_16 (points VARCHAR, attendance VARCHAR)
SELECT rowers FROM table_name_64 WHERE time = "6:29.56"
What rowers have a 6:29.56 time?
CREATE TABLE table_name_64 (rowers VARCHAR, time VARCHAR)
SELECT home_team FROM table_name_67 WHERE venue = "princes park"
Which home team played at Princes Park?
CREATE TABLE table_name_67 (home_team VARCHAR, venue VARCHAR)
SELECT director FROM table_25737761_3 WHERE no = 2
Who directed episode number 2?
CREATE TABLE table_25737761_3 (director VARCHAR, no VARCHAR)
SELECT dates FROM table_26144632_1 WHERE location = "Hokkaidō" AND prize_fund___¥__ = 150000000
What is the date of the tournament at Hokkaidō with prize of ¥150000000?
CREATE TABLE table_26144632_1 (dates VARCHAR, location VARCHAR, prize_fund___¥__ VARCHAR)
SELECT MIN(position) FROM table_name_51 WHERE goal_difference = -22 AND points > 5
What is the lowest position with a -22 goal difference and more than 5 points?
CREATE TABLE table_name_51 (position INTEGER, goal_difference VARCHAR, points VARCHAR)
SELECT competition FROM table_name_12 WHERE result = "loss" AND location = "berlin" AND score = "0-3"
what is the competition when the result is loss in berlin with a score of 0-3?
CREATE TABLE table_name_12 (competition VARCHAR, score VARCHAR, result VARCHAR, location VARCHAR)
SELECT SUM(attendance) FROM table_name_62 WHERE away_team = "banbury united" AND tie_no > 102
What's the sum of attendance when banbury united is the away team and tie no is over 102?
CREATE TABLE table_name_62 (attendance INTEGER, away_team VARCHAR, tie_no VARCHAR)
SELECT sat_21_aug FROM table_26986076_5 WHERE rank = 8
When 8 is the rank what is the Saturday August 21st?
CREATE TABLE table_26986076_5 (sat_21_aug VARCHAR, rank VARCHAR)
SELECT label FROM table_name_13 WHERE catalog = "486 136-2"
What Label has a Catalog of 486 136-2?
CREATE TABLE table_name_13 (label VARCHAR, catalog VARCHAR)
SELECT player FROM table_name_49 WHERE wins = 4
Which Player has 4 Wins?
CREATE TABLE table_name_49 (player VARCHAR, wins VARCHAR)
SELECT class_aA FROM table_name_7 WHERE class_aAA = giddings AND school_year = "2010-11"
What is the Class AA in the 2010-11 school year with a class AAA of Giddings?
CREATE TABLE table_name_7 (class_aA VARCHAR, class_aAA VARCHAR, giddings VARCHAR, school_year VARCHAR)
SELECT show FROM table_name_89 WHERE character = "rohan"
Which show has a character of Rohan?
CREATE TABLE table_name_89 (show VARCHAR, character VARCHAR)