answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT origin FROM Flight GROUP BY origin ORDER BY COUNT(*) DESC LIMIT 1
Which origin has most number of flights?
CREATE TABLE Flight (origin VARCHAR)
SELECT name FROM table_name_54 WHERE year = "junior" AND high_school = "wheatley"
What is the Name with a Year of junior, and a High School with wheatley?
CREATE TABLE table_name_54 (name VARCHAR, year VARCHAR, high_school VARCHAR)
SELECT year FROM table_name_59 WHERE class = "car" AND stages_won = "0"
What year did he compete in the car class and win 0 stages?
CREATE TABLE table_name_59 (year VARCHAR, class VARCHAR, stages_won VARCHAR)
SELECT venue FROM table_name_96 WHERE against > 3 AND date = "16/01/1954"
What was the venue for the game played on 16/01/1954, when the against was more than 3?
CREATE TABLE table_name_96 (venue VARCHAR, against VARCHAR, date VARCHAR)
SELECT loco_nos FROM table_name_80 WHERE class = "e3"
What is the Loco Nos of the e3 class?
CREATE TABLE table_name_80 (loco_nos VARCHAR, class VARCHAR)
SELECT administrative_division FROM table_14986292_1 WHERE population__2010_census_ = 95391
Name the administrative division for 95391
CREATE TABLE table_14986292_1 (administrative_division VARCHAR, population__2010_census_ VARCHAR)
SELECT d_48 FROM table_name_14 WHERE d_50 = "d 30"
What is the D 48 when the D 50 is d 30?
CREATE TABLE table_name_14 (d_48 VARCHAR, d_50 VARCHAR)
SELECT COUNT(total) FROM table_name_23 WHERE first_round = "0" AND finals < 5
Can you tell me the total number of Total that has the First round of 0, and the Finals smaller than 5?
CREATE TABLE table_name_23 (total VARCHAR, first_round VARCHAR, finals VARCHAR)
SELECT team FROM table_name_42 WHERE score = "101"
what team's score is 101?
CREATE TABLE table_name_42 (team VARCHAR, score VARCHAR)
SELECT MIN(year) FROM table_name_80 WHERE city = "casablanca"
What is the lowest year when the city is casablanca?
CREATE TABLE table_name_80 (year INTEGER, city VARCHAR)
SELECT MAX(population__2002_census_data_) FROM table_22854436_1
Name the most population 2002
CREATE TABLE table_22854436_1 (population__2002_census_data_ INTEGER)
SELECT high_points FROM table_22883210_5 WHERE game = 5
Who had highest points in game 5?
CREATE TABLE table_22883210_5 (high_points VARCHAR, game VARCHAR)
SELECT date FROM table_name_62 WHERE visitor = "buffalo"
What date did the red wings play against the visitors, buffalo?
CREATE TABLE table_name_62 (date VARCHAR, visitor VARCHAR)
SELECT branding FROM table_name_27 WHERE frequency = "1080khz"
Which Branding has a frequency of 1080khz?
CREATE TABLE table_name_27 (branding VARCHAR, frequency VARCHAR)
SELECT result FROM table_16729071_1 WHERE opponent = "New Orleans Saints"
How did the game end against the New Orleans Saints?
CREATE TABLE table_16729071_1 (result VARCHAR, opponent VARCHAR)
SELECT competition FROM table_name_53 WHERE venue = "hong kong"
Which Competition has a Venue of hong kong?
CREATE TABLE table_name_53 (competition VARCHAR, venue VARCHAR)
SELECT AVG(place) FROM table_name_91 WHERE rank_by_average = 9 AND total < 83
What is the average place for a couple with the rank by average of 9 and total smaller than 83?
CREATE TABLE table_name_91 (place INTEGER, rank_by_average VARCHAR, total VARCHAR)
SELECT date FROM table_name_12 WHERE week < 4 AND game_site = "rca dome" AND opponent = "new england patriots"
Week smaller than 4, and a Game Site of rca dome, and a Opponent of new england patriots involves what date?
CREATE TABLE table_name_12 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT AVG(wins) FROM table_name_37 WHERE cuts_made > 2 AND top_10 < 2
How many wins did he have when he made over 2 cuts and had under 2 top 10s?
CREATE TABLE table_name_37 (wins INTEGER, cuts_made VARCHAR, top_10 VARCHAR)
SELECT MAX(week) FROM table_10647401_1 WHERE stadium = "Memorial stadium"
What week corresponds to the last one to be played at the memorial stadium?
CREATE TABLE table_10647401_1 (week INTEGER, stadium VARCHAR)
SELECT high_assists FROM table_17288845_9 WHERE team = "Houston"
Name the high assists for houston
CREATE TABLE table_17288845_9 (high_assists VARCHAR, team VARCHAR)
SELECT deorbit_date FROM table_name_9 WHERE launch_date = "9 march 2008"
When did the ATV that launched on 9 March 2008, deorbit?
CREATE TABLE table_name_9 (deorbit_date VARCHAR, launch_date VARCHAR)
SELECT MAX(number_of_electorates__2009_) FROM table_name_41 WHERE constituency_number = "total:"
What is the largest Number of electorates (2009) with a Constituency number of total:?
CREATE TABLE table_name_41 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR)
SELECT COUNT(area__km²_) FROM table_1307842_7 WHERE population = 775927
Name the total number of area for 775927 population
CREATE TABLE table_1307842_7 (area__km²_ VARCHAR, population VARCHAR)
SELECT AVG(laps) FROM table_name_70 WHERE time_retired = "+1 lap" AND driver = "olivier panis" AND grid > 4
What is the average number of laps that has a Time/Retired of +1 lap, a Driver of olivier panis, and a Grid larger than 4?
CREATE TABLE table_name_70 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT week_8_oct_26 FROM table_name_1 WHERE week_12_nov_23 = "georgia tech (8-2)"
What is the week 8 Oct 26 standing with georgia tech (8-2) on week 12 Nov 23?
CREATE TABLE table_name_1 (week_8_oct_26 VARCHAR, week_12_nov_23 VARCHAR)
SELECT callsign FROM table_name_31 WHERE branding = "93dot5 home radio cagayan de oro"
What is the Callsign for the station with the branding 93dot5 home radio Cagayan De Oro?
CREATE TABLE table_name_31 (callsign VARCHAR, branding VARCHAR)
SELECT affiliation FROM table_name_87 WHERE player = "diego walsh"
Tell me the affiliation for diego walsh
CREATE TABLE table_name_87 (affiliation VARCHAR, player VARCHAR)
SELECT high_points FROM table_name_18 WHERE game < 10 AND high_assists = "chauncey billups (8)"
What is High Points, when Game is less than 10, and when High Assists is "Chauncey Billups (8)"?
CREATE TABLE table_name_18 (high_points VARCHAR, game VARCHAR, high_assists VARCHAR)
SELECT COUNT(wins) FROM table_2012187_1 WHERE top_10 = 2
state the wins of the team with 2 top 10
CREATE TABLE table_2012187_1 (wins VARCHAR, top_10 VARCHAR)
SELECT COUNT(DISTINCT payment_method) FROM customers
How many different payment methods are there?
CREATE TABLE customers (payment_method VARCHAR)
SELECT position FROM table_name_7 WHERE number = 16
Which position is number 16?
CREATE TABLE table_name_7 (position VARCHAR, number VARCHAR)
SELECT held_every FROM table_name_13 WHERE sport = "table tennis"
How often is the table tennis competition held?
CREATE TABLE table_name_13 (held_every VARCHAR, sport VARCHAR)
SELECT title FROM table_19396259_1 WHERE directed_by = "Charles Beeson" AND written_by = "Jeremy Carver"
Name the title directed by charles beeson by jeremy carver
CREATE TABLE table_19396259_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT language FROM table_name_52 WHERE publisher = "20th century fox"
What language has 20th century fox as the publisher?
CREATE TABLE table_name_52 (language VARCHAR, publisher VARCHAR)
SELECT 2013 FROM table_name_38 WHERE 2007 = "1r" AND 2009 = "1r"
What is the value in 2013 when it is 1R in 2007 and 2009?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT year FROM table_name_27 WHERE finish = "3"
What year was there a finish of 3?
CREATE TABLE table_name_27 (year VARCHAR, finish VARCHAR)
SELECT MIN(wins) FROM table_25557880_1
What was his minimum number wins in a single year?
CREATE TABLE table_25557880_1 (wins INTEGER)
SELECT SUM(bronze) FROM table_name_82 WHERE gold > 2 AND rank < 3 AND silver < 22
What is the sum of bronzes for teams with more than 2 gold, ranked under 3, and less than 22 silver?
CREATE TABLE table_name_82 (bronze INTEGER, silver VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT MAX(pick) FROM table_name_86 WHERE player = "todd van poppel"
What is the highest Pick, when Player is "Todd Van Poppel"?
CREATE TABLE table_name_86 (pick INTEGER, player VARCHAR)
SELECT team_website FROM table_name_93 WHERE institution = "indiana university of pennsylvania"
what is the team website when the institution is indiana university of pennsylvania?
CREATE TABLE table_name_93 (team_website VARCHAR, institution VARCHAR)
SELECT tournament FROM table_name_94 WHERE date = "june 18, 2013"
Which tournament took place on June 18, 2013?
CREATE TABLE table_name_94 (tournament VARCHAR, date VARCHAR)
SELECT high_points FROM table_15780049_5 WHERE team = "Washington"
Who scored the most points against Washington?
CREATE TABLE table_15780049_5 (high_points VARCHAR, team VARCHAR)
SELECT bronze FROM table_name_6 WHERE silver < 89 AND total = 4
What is Bronze, when Silver is less than 89, and when Total is "4"?
CREATE TABLE table_name_6 (bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT gold FROM table_name_40 WHERE silver > 30 AND total < 107
What Gold has a Silver greater than 30 and a Total less than 107?
CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT COUNT(total) FROM table_name_76 WHERE nation = "austria" AND rank > 4
What is the total medals Austria and those with larger than rank 4 have?
CREATE TABLE table_name_76 (total VARCHAR, nation VARCHAR, rank VARCHAR)
SELECT COUNT(opponents) FROM table_16710742_3 WHERE opponent = "Los Angeles Rams"
How many times in 1984 did the Falcons play the Los Angeles Rams?
CREATE TABLE table_16710742_3 (opponents VARCHAR, opponent VARCHAR)
SELECT club FROM table_name_34 WHERE lost = "19"
Can you tell me the Club that has the Lost of 19?
CREATE TABLE table_name_34 (club VARCHAR, lost VARCHAR)
SELECT rating FROM table_name_12 WHERE season = "season 10"
What is the rating of the season 10?
CREATE TABLE table_name_12 (rating VARCHAR, season VARCHAR)
SELECT s_no FROM table_1594772_2 WHERE match_date = "Feb 27, 1996"
Name the numbers for date of feb 27, 1996
CREATE TABLE table_1594772_2 (s_no VARCHAR, match_date VARCHAR)
SELECT mens_singles FROM table_14904221_1 WHERE year = 1994
WHo won men's singles in 1994?
CREATE TABLE table_14904221_1 (mens_singles VARCHAR, year VARCHAR)
SELECT MIN(losses) FROM table_name_28 WHERE wins = 3 AND against > 1919
How many losses for the team with 3 wins and more than 1919 against?
CREATE TABLE table_name_28 (losses INTEGER, wins VARCHAR, against VARCHAR)
SELECT combination_classification FROM table_name_17 WHERE stage = "14"
Which Combination classification has a Stage of 14?
CREATE TABLE table_name_17 (combination_classification VARCHAR, stage VARCHAR)
SELECT MAX(year) FROM table_name_91 WHERE team = "gulf racing middle east"
What is the most recent year that Gulf Racing Middle East won?
CREATE TABLE table_name_91 (year INTEGER, team 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 MAX(attendance) FROM table_name_10 WHERE date = "september 11"
What was the attendance on September 11?
CREATE TABLE table_name_10 (attendance INTEGER, date VARCHAR)
SELECT location FROM table_name_82 WHERE name = "the ivy club"
What is the location of the ivy club?
CREATE TABLE table_name_82 (location VARCHAR, name VARCHAR)
SELECT COUNT(distance___ly__) FROM table_name_34 WHERE constellation = "draco"
What is the total number of Distance ( ly ), when Constellation is "Draco"?
CREATE TABLE table_name_34 (distance___ly__ VARCHAR, constellation VARCHAR)
SELECT MIN(against) FROM table_name_92 WHERE opposing_team = "queensland"
What is the lowest Against, when Opposing Team is Queensland?
CREATE TABLE table_name_92 (against INTEGER, opposing_team VARCHAR)
SELECT MAX(average) FROM table_24856090_1 WHERE hk_viewers = "1.97 million"
What is the largest average for the episode with 1.97 million Hong Kong viewers?
CREATE TABLE table_24856090_1 (average INTEGER, hk_viewers VARCHAR)
SELECT 2011 FROM table_name_40 WHERE 2012 = "2r" AND 2010 = "2r" AND 2009 = "2r"
Tell me the 2011 with 2012 of 2r
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT high_rebounds FROM table_name_75 WHERE location = "mohegan sun arena" AND record = "24-7"
Who had the most rebounds in the game at the Mohegan Sun Arena that led to a 24-7 record?
CREATE TABLE table_name_75 (high_rebounds VARCHAR, location VARCHAR, record VARCHAR)
SELECT AVG(played) FROM table_name_83 WHERE city = "belgrade" AND average_attendance > 26 OFFSET 222
What is the average played value in Belgrade with attendance greater than 26,222?
CREATE TABLE table_name_83 (played INTEGER, city VARCHAR, average_attendance VARCHAR)
SELECT SUM(laps) FROM table_name_33 WHERE bike = "honda cbr1000rr" AND time = "+16.569"
What is the sum of laps of the honda cbr1000rr bike, which has a time of +16.569?
CREATE TABLE table_name_33 (laps INTEGER, bike VARCHAR, time VARCHAR)
SELECT AVG(fuml) FROM table_name_13 WHERE att = 5 AND long > 7
I want to know the average Fuml for Att of 5 and long more than 7
CREATE TABLE table_name_13 (fuml INTEGER, att VARCHAR, long VARCHAR)
SELECT MAX(week) FROM table_name_43 WHERE result = "l 12–7"
What is the latest week with a game with a result of l 12–7?
CREATE TABLE table_name_43 (week INTEGER, result VARCHAR)
SELECT location FROM table_1974482_1 WHERE founded = 1829
Name the location for 1829
CREATE TABLE table_1974482_1 (location VARCHAR, founded VARCHAR)
SELECT COUNT(division_five) FROM table_24575253_4 WHERE division_one = "Westcott"
When westcott is in division one how many leagues are in division 5?
CREATE TABLE table_24575253_4 (division_five VARCHAR, division_one VARCHAR)
SELECT played FROM table_name_1 WHERE tries_against = "correct as of 18:13 26 may 2008"
What is the played number when the tries against shows correct as of 18:13 26 May 2008?
CREATE TABLE table_name_1 (played VARCHAR, tries_against VARCHAR)
SELECT MIN(rural), __percentage FROM table_16645_1 WHERE year__january_ = 1979
What is the rural population percentage in 1979?
CREATE TABLE table_16645_1 (__percentage VARCHAR, rural INTEGER, year__january_ VARCHAR)
SELECT score FROM table_name_76 WHERE player = "dow finsterwald"
What is Score, when Player is "Dow Finsterwald"?
CREATE TABLE table_name_76 (score VARCHAR, player VARCHAR)
SELECT result FROM table_name_97 WHERE match = "25"
What was the result of match 25?
CREATE TABLE table_name_97 (result VARCHAR, match VARCHAR)
SELECT record FROM table_18207285_2 WHERE opponents = 42
What's the record in the game played against 42?
CREATE TABLE table_18207285_2 (record VARCHAR, opponents VARCHAR)
SELECT candidates FROM table_2668347_17 WHERE district = "Pennsylvania 14"
Name the candidates for pennsylvania 14
CREATE TABLE table_2668347_17 (candidates VARCHAR, district VARCHAR)
SELECT date FROM table_name_16 WHERE opponent = "marcos daniel"
What date was marcos daniel the opponent?
CREATE TABLE table_name_16 (date VARCHAR, opponent VARCHAR)
SELECT high_points FROM table_name_8 WHERE high_rebounds = "dwight howard (16)"
What is High Points, when High Rebounds is "Dwight Howard (16)"?
CREATE TABLE table_name_8 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(stage) FROM table_name_22 WHERE arrival = "son bou"
Which stage number did son bou arrive at?
CREATE TABLE table_name_22 (stage VARCHAR, arrival VARCHAR)
SELECT MIN(quantity) FROM table_name_87 WHERE type = "e h4v" AND year_s__of_manufacture = "1920–1924"
Which Quantity has a Type of e h4v, and a Year(s) of Manufacture of 1920–1924?
CREATE TABLE table_name_87 (quantity INTEGER, type VARCHAR, year_s__of_manufacture VARCHAR)
SELECT date FROM table_name_68 WHERE week < 13 AND game_site = "lp field" AND opponent = "houston texans"
When did the Titans play the Houston Texans at LP Field before Week 13?
CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT opponent_in_the_final FROM table_name_69 WHERE date = "november 23, 1998"
Who played the final match on November 23, 1998?
CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT MIN(crowd) FROM table_name_23 WHERE home_team = "geelong"
When the Home team of geelong played, what was their lowest Crowd number?
CREATE TABLE table_name_23 (crowd INTEGER, home_team VARCHAR)
SELECT home_team FROM table_name_82 WHERE venue = "junction oval"
Who was the home team when the venue was Junction Oval?
CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR)
SELECT source FROM table_name_7 WHERE date = "may 25–27"
What is the source corresponding to a date of May 25–27?
CREATE TABLE table_name_7 (source VARCHAR, date VARCHAR)
SELECT title FROM table_name_56 WHERE director = "chuck jones" AND release_date = "1958-04-12"
Which title was directed by chuck jones and released on 1958-04-12?
CREATE TABLE table_name_56 (title VARCHAR, director VARCHAR, release_date VARCHAR)
SELECT title FROM table_27823058_1 WHERE written_by = "Katie Palmer"
Which episodes did Katie Palmer write?
CREATE TABLE table_27823058_1 (title VARCHAR, written_by VARCHAR)
SELECT tongan FROM table_name_89 WHERE north_marquesan = "/haʔe/"
What kind of Tongan has a North Marquesan of /haʔe/?
CREATE TABLE table_name_89 (tongan VARCHAR, north_marquesan VARCHAR)
SELECT title FROM table_28146944_2 WHERE no_in_series = 36
What's the title of the episode with series number 36?
CREATE TABLE table_28146944_2 (title VARCHAR, no_in_series VARCHAR)
SELECT country FROM table_name_85 WHERE score = 71 - 73 - 71 = 215
What is the Country of the Player with a Score of 71-73-71=215?
CREATE TABLE table_name_85 (country VARCHAR, score VARCHAR)
SELECT name FROM table_name_27 WHERE floors > 36 AND years_as_tallest = "1986–1992"
What is the Name of the Building with 36 or more Floors with Years as tallest of 1986–1992?
CREATE TABLE table_name_27 (name VARCHAR, floors VARCHAR, years_as_tallest VARCHAR)
SELECT pick__number FROM table_10812938_5 WHERE position = "CB"
What's the pick number of the player whose position is CB?
CREATE TABLE table_10812938_5 (pick__number VARCHAR, position VARCHAR)
SELECT fatalities FROM table_name_60 WHERE location = "ankara" AND aircraft = "douglas c-47"
Which fatality was at ankara for the aircraft douglas c-47?
CREATE TABLE table_name_60 (fatalities VARCHAR, location VARCHAR, aircraft VARCHAR)
SELECT season FROM table_name_31 WHERE average = 37.5
Which season's average was 37.5?
CREATE TABLE table_name_31 (season VARCHAR, average VARCHAR)
SELECT MAX(wins) FROM table_17751942_4 WHERE team = "Red Deer Rebels"
How many wins do the Red Deer Rebels have?
CREATE TABLE table_17751942_4 (wins INTEGER, team VARCHAR)
SELECT name FROM channel WHERE OWNER = 'CCTV' OR OWNER = 'HBS'
What are the names of the channels owned by CCTV or HBS?
CREATE TABLE channel (name VARCHAR, OWNER VARCHAR)
SELECT 0 AS _100km_h__62mph_ FROM table_name_68 WHERE top_speed = "208km/h (129mph)"
What is the 0–100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)?
CREATE TABLE table_name_68 (top_speed VARCHAR)
SELECT type FROM table_name_15 WHERE gnis_id = 1139805
What type has a GNIS ID of 1139805
CREATE TABLE table_name_15 (type VARCHAR, gnis_id VARCHAR)
SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance')
What is the title of the prerequisite class of International Finance course?
CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE player = "hale irwin" AND wins < 32
What is the low rank for hale irwin with under 32 wins?
CREATE TABLE table_name_37 (rank INTEGER, player VARCHAR, wins VARCHAR)
SELECT foreign_players__max_2_ FROM table_19526911_1 WHERE town = "Moscow"
Who are the foreign players on team/s that play in Moscow?
CREATE TABLE table_19526911_1 (foreign_players__max_2_ VARCHAR, town VARCHAR)
SELECT MAX(series__number) FROM table_name_53 WHERE original_air_date = "september 22, 1976"
Tell me the highest series # for september 22, 1976
CREATE TABLE table_name_53 (series__number INTEGER, original_air_date VARCHAR)