answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT score FROM table_name_7 WHERE tie_no = "7"
What is the game score when the tie no is 7?
CREATE TABLE table_name_7 (score VARCHAR, tie_no VARCHAR)
SELECT episode FROM table_27319183_5 WHERE official_itv1_hd_rating__millions_ = "1.185"
Which episode had an official ITV1 HD rating of 1.185 million?
CREATE TABLE table_27319183_5 (episode VARCHAR, official_itv1_hd_rating__millions_ VARCHAR)
SELECT MAX(position) FROM table_name_73 WHERE played < 10
What is the highest position of the team having played under 10 matches?
CREATE TABLE table_name_73 (position INTEGER, played INTEGER)
SELECT type FROM table_name_35 WHERE name = "sanctuary"
What is the film type for the movie Sanctuary?
CREATE TABLE table_name_35 (type VARCHAR, name VARCHAR)
SELECT position FROM table_name_68 WHERE hometown = "muscle shoals, alabama"
Which position does the player from Muscle Shoals, Alabama play?
CREATE TABLE table_name_68 (position VARCHAR, hometown VARCHAR)
SELECT team FROM table_name_78 WHERE qual_1 = "1:02.755"
What team had a qual 1 of 1:02.755?
CREATE TABLE table_name_78 (team VARCHAR, qual_1 VARCHAR)
SELECT COUNT(original_air_date) FROM table_26198709_1 WHERE us_viewers__million_ = "15.50"
How many air dates does the episode with 15.50 million viewers have?
CREATE TABLE table_26198709_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT high_assists FROM table_name_40 WHERE team = "houston"
What are the High assists for Team houston?
CREATE TABLE table_name_40 (high_assists VARCHAR, team VARCHAR)
SELECT score FROM table_24901152_2 WHERE outcome = "Winner"
When winner is the outcome what is the score?
CREATE TABLE table_24901152_2 (score VARCHAR, outcome VARCHAR)
SELECT time_retired FROM table_name_23 WHERE grid = 12
What is Time/Retired with a Grid of 12?
CREATE TABLE table_name_23 (time_retired VARCHAR, grid VARCHAR)
SELECT SUM(year) FROM table_name_38 WHERE title = "jotei"
what is the year when the title is jotei?
CREATE TABLE table_name_38 (year INTEGER, title VARCHAR)
SELECT series FROM table_name_20 WHERE saturday = "channel 5"
Which series airs Saturday on Channel 5?
CREATE TABLE table_name_20 (series VARCHAR, saturday VARCHAR)
SELECT show FROM table_name_39 WHERE date = "9 june"
Which Show is dated 9 June?
CREATE TABLE table_name_39 (show VARCHAR, date VARCHAR)
SELECT railway_number_s_ FROM table_name_47 WHERE year_s__of_manufacture = "1905–1906"
What are the railway number(s) for year(s) of manufacture of 1905–1906?
CREATE TABLE table_name_47 (railway_number_s_ VARCHAR, year_s__of_manufacture VARCHAR)
SELECT AVG(erp_w) FROM table_name_50 WHERE frequency_mhz = 88.7
Frequency MHz of 88.7 had what average erp w?
CREATE TABLE table_name_50 (erp_w INTEGER, frequency_mhz VARCHAR)
SELECT to_par FROM table_name_77 WHERE place = "t7" AND score = 72 - 67 = 139 AND player = "raymond floyd"
WHAT IS THE TO PAR WITH A T7 PLACE, SCORE OF 72-67=139, AND PLAYER RAYMOND FLOYD?
CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR, place VARCHAR, score VARCHAR)
SELECT score FROM table_name_43 WHERE surface = "carpet (i)" AND outcome = "winner" AND championship = "rotterdam, netherlands"
what is the score when the surface is carpet (i) outcome is winner and the championship is rotterdam, netherlands?
CREATE TABLE table_name_43 (score VARCHAR, championship VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT record FROM table_name_93 WHERE score = "l 121–127"
Which record has a score of l 121–127?
CREATE TABLE table_name_93 (record VARCHAR, score VARCHAR)
SELECT organized_by FROM table_name_68 WHERE church_name = "alston church"
Who organized Alston Church?
CREATE TABLE table_name_68 (organized_by VARCHAR, church_name VARCHAR)
SELECT SUM(year) FROM table_name_37 WHERE venue = "götzis, austria" AND position = "1st"
In what Year did Chernova come in 1st in Götzis, Austria?
CREATE TABLE table_name_37 (year INTEGER, venue VARCHAR, position VARCHAR)
SELECT COUNT(year) FROM table_14903491_1 WHERE womens_doubles = "Diana Koleva Emilia Dimitrova" AND mens_singles = "Jeliazko Valkov"
Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov
CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR, mens_singles VARCHAR)
SELECT COUNT(driver) FROM table_2241101_1 WHERE manufacturer = "Toyota"
How many different drivers were there for the team when the manufacturer was Toyota?
CREATE TABLE table_2241101_1 (driver VARCHAR, manufacturer VARCHAR)
SELECT MAX(series__number) FROM table_25800134_1 WHERE airdate = "February 16, 1957"
What is largest series number for the episode that aired February 16, 1957?
CREATE TABLE table_25800134_1 (series__number INTEGER, airdate VARCHAR)
SELECT margin_of_victory FROM table_name_52 WHERE runner_s__up = "nick price"
What is the margin of victory for Nick Price as a runner-up?
CREATE TABLE table_name_52 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT airport FROM table_name_52 WHERE iata = "tyn"
Which airport has an IATA of TYN?
CREATE TABLE table_name_52 (airport VARCHAR, iata VARCHAR)
SELECT COUNT(number_of_dances) FROM table_26375386_28 WHERE place = 1
How many numbers of dances for place 1?
CREATE TABLE table_26375386_28 (number_of_dances VARCHAR, place VARCHAR)
SELECT home FROM table_name_34 WHERE club = "auxerre"
What is the home record for the Auxerre club?
CREATE TABLE table_name_34 (home VARCHAR, club VARCHAR)
SELECT 1990 AS _1991_team FROM table_name_23 WHERE birthplace = "new york"
What is the 1990–1991 Team when the Birthplace shows as new york?
CREATE TABLE table_name_23 (birthplace VARCHAR)
SELECT MIN(pick__number) FROM table_2508633_8 WHERE nfl_team = "San Diego Chargers"
what is the pick number minimum if the NFL team is the San Diego Chargers?
CREATE TABLE table_2508633_8 (pick__number INTEGER, nfl_team VARCHAR)
SELECT week FROM table_name_58 WHERE record = "5-7-1"
Which week has a record of 5-7-1?
CREATE TABLE table_name_58 (week VARCHAR, record VARCHAR)
SELECT MIN(enrollment) FROM table_2562113_1 WHERE joined = 1987
What is the enrollment for the institution that joined in 1987?
CREATE TABLE table_2562113_1 (enrollment INTEGER, joined VARCHAR)
SELECT SUM(points) FROM table_name_15 WHERE lyricist = "ray agius"
What is the total number of points for ray agius
CREATE TABLE table_name_15 (points INTEGER, lyricist VARCHAR)
SELECT Payment_ID, Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'
Which Payments were processed with Visa? List the payment Id, the date and the amount.
CREATE TABLE Payments (Payment_ID VARCHAR, Date_Payment_Made VARCHAR, Amount_Payment VARCHAR, Payment_Method_Code VARCHAR)
SELECT COUNT(laps) FROM table_name_6 WHERE time_retired = "+9.682"
What is the total number of laps during the race that had a time of +9.682?
CREATE TABLE table_name_6 (laps VARCHAR, time_retired VARCHAR)
SELECT COUNT(position) FROM table_name_19 WHERE bike_no = 4
What is the aggregate number of Position that has a Bike No of 4?
CREATE TABLE table_name_19 (position VARCHAR, bike_no VARCHAR)
SELECT game_3 FROM table_name_75 WHERE game_1 = "brett kenny"
Which Game 3 has a Game 1 of brett kenny?
CREATE TABLE table_name_75 (game_3 VARCHAR, game_1 VARCHAR)
SELECT year FROM table_1939202_2 WHERE league = "USL Second division" AND playoffs = "Semifinals" AND us_open_cup = "Quarterfinals"
What year at the US Open Cup quarterfinals, were the playoffs in the semifinals for the USL second division?
CREATE TABLE table_1939202_2 (year VARCHAR, us_open_cup VARCHAR, league VARCHAR, playoffs VARCHAR)
SELECT date FROM table_name_35 WHERE week = 17
What is the date of week 17?
CREATE TABLE table_name_35 (date VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_47 WHERE home_team = "a.f.c. totton"
How many people attended the game of a.f.c. totton?
CREATE TABLE table_name_47 (attendance VARCHAR, home_team VARCHAR)
SELECT d_44 FROM table_name_63 WHERE d_46 = "d 31"
Name the D 44 when it has a D 46 of d 31
CREATE TABLE table_name_63 (d_44 VARCHAR, d_46 VARCHAR)
SELECT date FROM table_name_63 WHERE score = "5-4"
What date had a game with a score of 5-4?
CREATE TABLE table_name_63 (date VARCHAR, score VARCHAR)
SELECT AVG(erp_w) FROM table_name_15 WHERE call_sign = "whre"
What is the average ERP W when the call sign is whre?
CREATE TABLE table_name_15 (erp_w INTEGER, call_sign VARCHAR)
SELECT location FROM table_18118221_1 WHERE total_passengers__millions__2011_12 = "103.534"
Which location has 103.534 million passengers in 2011-12?
CREATE TABLE table_18118221_1 (location VARCHAR, total_passengers__millions__2011_12 VARCHAR)
SELECT MIN(effic) FROM table_name_58 WHERE avg_g = 58.9
What is the lowest effic with a 58.9 avg/g?
CREATE TABLE table_name_58 (effic INTEGER, avg_g VARCHAR)
SELECT first_elected FROM table_1341897_6 WHERE district = "Arkansas 5"
When was Dale Alford first elected in the Arkansas 5 district?
CREATE TABLE table_1341897_6 (first_elected VARCHAR, district VARCHAR)
SELECT team FROM table_name_31 WHERE time = "1:14.51.73"
Which Team has a Time of 1:14.51.73?
CREATE TABLE table_name_31 (team VARCHAR, time VARCHAR)
SELECT date FROM table_name_16 WHERE type = "hilly stage"
What was the date with a hilly stage?
CREATE TABLE table_name_16 (date VARCHAR, type VARCHAR)
SELECT winning_score FROM table_name_42 WHERE runner_s__up = "beth daniel" AND margin_of_victory = "7 strokes"
What was the winning score when the runner-up was Beth Daniel and the margin of victory was 7 strokes?
CREATE TABLE table_name_42 (winning_score VARCHAR, runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT latin FROM table_name_80 WHERE greek = "μ"
What is the Latin term for the Greek symbol μ?
CREATE TABLE table_name_80 (latin VARCHAR, greek VARCHAR)
SELECT hometown FROM table_name_83 WHERE college = "duke"
What is the hometown of the player who is headed to Duke?
CREATE TABLE table_name_83 (hometown VARCHAR, college VARCHAR)
SELECT AVG(population__1960_) FROM table_name_41 WHERE county = "oslo" AND population__2000_ > 507 OFFSET 467
What was Oslo's population in 1960, with a population of 507,467 in 2000?
CREATE TABLE table_name_41 (population__1960_ INTEGER, county VARCHAR, population__2000_ VARCHAR)
SELECT AVG(attendance) FROM table_name_71 WHERE visitor = "toronto"
What is the average Attendance, when Visitor is Toronto?
CREATE TABLE table_name_71 (attendance INTEGER, visitor VARCHAR)
SELECT transfer_fee FROM table_name_53 WHERE country = "nir"
What is the transfer fee for the country of Nir?
CREATE TABLE table_name_53 (transfer_fee VARCHAR, country VARCHAR)
SELECT MIN(no_in_series) FROM table_22347090_6 WHERE production_code = "3X7554"
What episode number in the series had a production code of 3x7554?
CREATE TABLE table_22347090_6 (no_in_series INTEGER, production_code VARCHAR)
SELECT COUNT(*) FROM body_builder
How many body builders are there?
CREATE TABLE body_builder (Id VARCHAR)
SELECT player FROM table_name_25 WHERE pos = "fw"
Which player has a position of FW?
CREATE TABLE table_name_25 (player VARCHAR, pos VARCHAR)
SELECT year_to_april FROM table_18077713_1 WHERE revenue__us_$million_ = "434.8"
What is the year to april when the revenue is 434.8 million dollars?
CREATE TABLE table_18077713_1 (year_to_april VARCHAR, revenue__us_$million_ VARCHAR)
SELECT record FROM table_17311759_9 WHERE high_assists = "Mike Bibby (8)"
When mike bibby (8) had the highest amount of assists what is the record?
CREATE TABLE table_17311759_9 (record VARCHAR, high_assists VARCHAR)
SELECT AVG(snow__days_year_) FROM table_name_23 WHERE sunshine__hrs_year_ = "1 633" AND storms__days_year_ < 29
What is the amount of snow where the sunshine is 1 633, and storms are lower than 29?
CREATE TABLE table_name_23 (snow__days_year_ INTEGER, sunshine__hrs_year_ VARCHAR, storms__days_year_ VARCHAR)
SELECT Comptroller, COUNT(*) FROM party GROUP BY Comptroller ORDER BY COUNT(*) DESC LIMIT 1
Show the people that have been comptroller the most times and the corresponding number of times.
CREATE TABLE party (Comptroller VARCHAR)
SELECT date FROM table_name_48 WHERE name = "guay, albert , 32"
What is Date, when Name is "Guay, Albert , 32"?
CREATE TABLE table_name_48 (date VARCHAR, name VARCHAR)
SELECT opponent FROM table_name_49 WHERE date = "september 20, 2010"
Who was the opponent in the September 20, 2010 match?
CREATE TABLE table_name_49 (opponent VARCHAR, date VARCHAR)
SELECT diameter FROM table_name_93 WHERE thickness = "1.3mm"
Which Diameter has a Thickness of 1.3mm?
CREATE TABLE table_name_93 (diameter VARCHAR, thickness VARCHAR)
SELECT team FROM table_name_21 WHERE game = 73
What is Team, when Game is 73?
CREATE TABLE table_name_21 (team VARCHAR, game VARCHAR)
SELECT COUNT(laps) FROM table_name_53 WHERE winnings = "$116,033" AND car__number < 18
How many total laps for the driver with Winnings of $116,033, and a Car # smaller than 18?
CREATE TABLE table_name_53 (laps VARCHAR, winnings VARCHAR, car__number VARCHAR)
SELECT record FROM table_name_36 WHERE home = "buffalo"
What is the Record when Buffalo is at Home?
CREATE TABLE table_name_36 (record VARCHAR, home VARCHAR)
SELECT coast_guard_cross FROM table_2104176_1 WHERE distinguished_service_cross = "Navy Distinguished Service Medal"
What is the coast guard cross when you recieve the navy distinguished service medal?
CREATE TABLE table_2104176_1 (coast_guard_cross VARCHAR, distinguished_service_cross VARCHAR)
SELECT date FROM table_name_29 WHERE place = "chernivtsi" AND race_winners = "etienne bax / kaspars stupelis"
What date has a place of chernivtsi, and a race winners of etienne bax / kaspars stupelis? What
CREATE TABLE table_name_29 (date VARCHAR, place VARCHAR, race_winners VARCHAR)
SELECT nationality FROM table_name_97 WHERE round = 3
WHAT NATIONALITY HAS ROUND 3?
CREATE TABLE table_name_97 (nationality VARCHAR, round VARCHAR)
SELECT sitalsasthi_carnival FROM table_name_92 WHERE sambalpuri_saree = "hirakud"
What is the sitalsasthi carnival with hirakud as sambalpuri saree?
CREATE TABLE table_name_92 (sitalsasthi_carnival VARCHAR, sambalpuri_saree VARCHAR)
SELECT tv_network_s_ FROM table_name_21 WHERE alternate_title_translation = "aistrų žemė"
What TV network is the series aistrų žemė aired on?
CREATE TABLE table_name_21 (tv_network_s_ VARCHAR, alternate_title_translation VARCHAR)
SELECT nickname_s_ FROM table_18304058_2 WHERE enrollment__2013_14_ = 436
What is the nickname of the team whose 2013/2014 enrollment is 436?
CREATE TABLE table_18304058_2 (nickname_s_ VARCHAR, enrollment__2013_14_ VARCHAR)
SELECT DISTINCT publisher FROM book_club
Show all distinct publishers for books.
CREATE TABLE book_club (publisher VARCHAR)
SELECT tournament FROM table_name_63 WHERE date = "16 september 2012"
What tournament was played 16 September 2012?
CREATE TABLE table_name_63 (tournament VARCHAR, date VARCHAR)
SELECT date FROM table_name_32 WHERE visitor = "atlanta" AND home = "ottawa"
What was the date of the game where Ottawa was the home team and Atlanta is the visiting team?
CREATE TABLE table_name_32 (date VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT candidates FROM table_1805191_14 WHERE first_elected = 1998 AND party = "Republican"
Who were the candidates when the first elected was a republican in 1998?
CREATE TABLE table_1805191_14 (candidates VARCHAR, first_elected VARCHAR, party VARCHAR)
SELECT category, COUNT(*) FROM book_club GROUP BY category
Show all book categories and the number of books in each category.
CREATE TABLE book_club (category VARCHAR)
SELECT opponent FROM table_name_42 WHERE record = "13-18"
which team has a record of 13-18?
CREATE TABLE table_name_42 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(vote) FROM table_25016824_2 WHERE air_date = "15 November 1997"
How many entries are there for vote when the air date was 15 november 1997?
CREATE TABLE table_25016824_2 (vote VARCHAR, air_date VARCHAR)
SELECT MAX(route) FROM table_name_60 WHERE rank < 33 AND elevation = "11,312 feet 3448 m"
On what Route is the mountain with a Rank less than 33 and an Elevation of 11,312 feet 3448 m?
CREATE TABLE table_name_60 (route INTEGER, rank VARCHAR, elevation VARCHAR)
SELECT engine FROM table_name_7 WHERE year > 1969
Which engine has a Year larger than 1969?
CREATE TABLE table_name_7 (engine VARCHAR, year INTEGER)
SELECT date FROM table_name_9 WHERE opponent = "kentucky" AND loss = "ragle"
On what date was Kentucky the opponent, and Ragle lost?
CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT name FROM table_name_67 WHERE location = "bayswater"
What Name has the Location of Bayswater?
CREATE TABLE table_name_67 (name VARCHAR, location VARCHAR)
SELECT date FROM table_name_40 WHERE first_audition_venue = "kemper arena"
What was the date when the first audition venue was Kemper Arena?
CREATE TABLE table_name_40 (date VARCHAR, first_audition_venue VARCHAR)
SELECT LOCATION FROM cinema WHERE openning_year = 2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year = 2011
Show all the locations where some cinemas were opened in both year 2010 and year 2011.
CREATE TABLE cinema (LOCATION VARCHAR, openning_year VARCHAR)
SELECT score FROM table_name_93 WHERE visitor = "montreal canadiens" AND points = 5
Which Score has a Visitor of montreal canadiens, and Points of 5?
CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR, points VARCHAR)
SELECT overall_rank FROM table_name_50 WHERE swimmer = "roland schoeman"
Tell me the overall rank for roland schoeman
CREATE TABLE table_name_50 (overall_rank VARCHAR, swimmer VARCHAR)
SELECT competition FROM table_name_32 WHERE date = "november 17, 2003"
What competition listed is dated November 17, 2003?
CREATE TABLE table_name_32 (competition VARCHAR, date VARCHAR)
SELECT division FROM table_name_97 WHERE regular_season = "5th, northeast"
What division was the regular season 5th, Northeast?
CREATE TABLE table_name_97 (division VARCHAR, regular_season VARCHAR)
SELECT proto_polynesian FROM table_name_50 WHERE proto_malayo_polynesian = "*telu"
Which Proto-Polynesian has a Proto-Malayo-Polynesian of *telu?
CREATE TABLE table_name_50 (proto_polynesian VARCHAR, proto_malayo_polynesian VARCHAR)
SELECT republican_ticket FROM table_name_63 WHERE workers_ticket = "edward lindgren"
What is the name on the Republican ticket when the Workers ticket is edward lindgren?
CREATE TABLE table_name_63 (republican_ticket VARCHAR, workers_ticket VARCHAR)
SELECT result FROM table_name_37 WHERE week = 4
What was the result of the game on week 4?
CREATE TABLE table_name_37 (result VARCHAR, week VARCHAR)
SELECT week_of FROM table_name_70 WHERE runner_up = "lori mcneil"
What week was the Runner-up Lori McNeil?
CREATE TABLE table_name_70 (week_of VARCHAR, runner_up VARCHAR)
SELECT MIN(enrollment) FROM table_16403890_1 WHERE affiliation = "Private/Catholic"
Private/Catholic school's minimum enrollment is?
CREATE TABLE table_16403890_1 (enrollment INTEGER, affiliation VARCHAR)
SELECT year_s__won FROM table_name_4 WHERE to_par = 5
What is the Year(s) won of the Player with a To par of 5?
CREATE TABLE table_name_4 (year_s__won VARCHAR, to_par VARCHAR)
SELECT MAX(production_code) FROM table_21550897_1 WHERE us_viewers__million_ = "9.18"
What is the production code for the episode that had 9.18 million viewers (U.S.)?
CREATE TABLE table_21550897_1 (production_code INTEGER, us_viewers__million_ VARCHAR)
SELECT MAX(attendance) FROM table_name_10 WHERE result = "w 14-3" AND week > 10
What was the largest number of people in attendance of the game with a W 14-3 result after week 10?
CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, week VARCHAR)
SELECT AVG(Speed) FROM roller_coaster
What is the average speed of roller coasters?
CREATE TABLE roller_coaster (Speed INTEGER)
SELECT chassis FROM table_name_74 WHERE points > 0 AND entrant = "march engineering"
What was the chassis when the points were greater than 0 and the entrant was March Engineering?
CREATE TABLE table_name_74 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)
SELECT total FROM table_name_55 WHERE set_2 = "25-19"
What is the total for set 2 of 25-19?
CREATE TABLE table_name_55 (total VARCHAR, set_2 VARCHAR)