question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is Set 5, when Date is Jun 26, and when Set 2 is 25-22?
CREATE TABLE table_name_46 (set_5 VARCHAR, date VARCHAR, set_2 VARCHAR)
SELECT set_5 FROM table_name_46 WHERE date = "jun 26" AND set_2 = "25-22"
What district had an election with incumbent john smilie?
CREATE TABLE table_2668374_13 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_2668374_13 WHERE incumbent = "John Smilie"
How many authors or editors are there for the book title elf child?
CREATE TABLE table_20193855_2 (author_s__or_editor_s_ VARCHAR, book_title VARCHAR)
SELECT COUNT(author_s__or_editor_s_) FROM table_20193855_2 WHERE book_title = "Elf Child"
What circuit was the race where Hideki Mutoh had the fastest lap?
CREATE TABLE table_10264179_2 (circuit VARCHAR, fastest_lap VARCHAR)
SELECT circuit FROM table_10264179_2 WHERE fastest_lap = "Hideki Mutoh"
How many times did anderson university leave?
CREATE TABLE table_11658094_3 (left VARCHAR, institution VARCHAR)
SELECT COUNT(left) FROM table_11658094_3 WHERE institution = "Anderson University"
How many Games for the Player from Lietuvos Rytas Vilnius with less the 43 Rebounds?
CREATE TABLE table_name_68 (games INTEGER, team VARCHAR, rebounds VARCHAR)
SELECT SUM(games) FROM table_name_68 WHERE team = "lietuvos rytas vilnius" AND rebounds < 43
Who was the opponent on September 17, 1995?
CREATE TABLE table_name_63 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_63 WHERE date = "september 17, 1995"
What place is Nolan Henke in?
CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_10 WHERE player = "nolan henke"
Name the venue for 19th date
CREATE TABLE table_17120964_5 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_17120964_5 WHERE date = "19th"
Name of byron geis, and a Weight smaller than 195 involves what average number?
CREATE TABLE table_name_63 (number INTEGER, name VARCHAR, weight VARCHAR)
SELECT AVG(number) FROM table_name_63 WHERE name = "byron geis" AND weight < 195
What pick number was player Greg McKegg?
CREATE TABLE table_name_13 (pick__number INTEGER, player VARCHAR)
SELECT AVG(pick__number) FROM table_name_13 WHERE player = "greg mckegg"
What is the average and maximum capacities for all stadiums ?
CREATE TABLE stadium (capacity INTEGER)
SELECT AVG(capacity), MAX(capacity) FROM stadium
What college did Byron Williams attend?
CREATE TABLE table_14655757_1 (college VARCHAR, player VARCHAR)
SELECT college FROM table_14655757_1 WHERE player = "Byron Williams"
Show the name of buildings that do not have any institution.
CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE institution (name VARCHAR, building_id VARCHAR)
SELECT name FROM building WHERE NOT building_id IN (SELECT building_id FROM institution)
Who came in 3rd place in KrΕ‘ko , Slovenia Matije Gubca Stadium
CREATE TABLE table_19317584_2 (city_and_venue VARCHAR)
SELECT 3 AS rd_placed FROM table_19317584_2 WHERE city_and_venue = "KrΕ‘ko , Slovenia Matije Gubca Stadium"
on january 7 what is home?
CREATE TABLE table_name_33 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_33 WHERE date = "january 7"
Performer 3 of paul merton, and a Performer 4 of sandi toksvig is which performer 1?
CREATE TABLE table_name_93 (performer_1 VARCHAR, performer_3 VARCHAR, performer_4 VARCHAR)
SELECT performer_1 FROM table_name_93 WHERE performer_3 = "paul merton" AND performer_4 = "sandi toksvig"
Name the high assists for score being l 98–118 (ot)
CREATE TABLE table_17102076_10 (high_assists VARCHAR, score VARCHAR)
SELECT high_assists FROM table_17102076_10 WHERE score = "L 98–118 (OT)"
What is the score of Ralph Guldahl, who has more than $100?
CREATE TABLE table_name_77 (score VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT score FROM table_name_77 WHERE money___$__ > 100 AND player = "ralph guldahl"
When it is week 2 what is the record?
CREATE TABLE table_14941284_1 (record VARCHAR, week VARCHAR)
SELECT record FROM table_14941284_1 WHERE week = 2
Who was the partner of the winner after 2012?
CREATE TABLE table_name_12 (partner VARCHAR, year VARCHAR, outcome VARCHAR)
SELECT partner FROM table_name_12 WHERE year > 2012 AND outcome = "winner"
What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8?
CREATE TABLE table_name_49 (rank INTEGER, total VARCHAR, county VARCHAR, player VARCHAR)
SELECT MAX(rank) FROM table_name_49 WHERE county = "offaly" AND player = "mark corrigan" AND total < 8
What round was Bill Hill drafted?
CREATE TABLE table_10360656_1 (choice VARCHAR, player_name VARCHAR)
SELECT choice FROM table_10360656_1 WHERE player_name = "Bill Hill"
Which song was chosen during the audition week?
CREATE TABLE table_29756040_1 (song_choice VARCHAR, week__number VARCHAR)
SELECT song_choice FROM table_29756040_1 WHERE week__number = "Audition"
What is the average density with a land area of 123.02, and a Code larger than 2356?
CREATE TABLE table_name_33 (density__inh_kmΒ²_ INTEGER, land_area__hectares_ VARCHAR, code VARCHAR)
SELECT AVG(density__inh_kmΒ²_) FROM table_name_33 WHERE land_area__hectares_ = 123.02 AND code > 2356
If the province is Manitoba, what is the Arabs 2001 number?
CREATE TABLE table_1939367_1 (arabs_2001 INTEGER, province VARCHAR)
SELECT MAX(arabs_2001) FROM table_1939367_1 WHERE province = "Manitoba"
Who is Doug Basham's team?
CREATE TABLE table_name_39 (team VARCHAR, wrestler VARCHAR)
SELECT team FROM table_name_39 WHERE wrestler = "doug basham"
What is T5 Place Vijay Singh's To par?
CREATE TABLE table_name_60 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_60 WHERE place = "t5" AND player = "vijay singh"
What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?
CREATE TABLE table_name_51 (bronze INTEGER, rank VARCHAR, silver VARCHAR, total VARCHAR)
SELECT MAX(bronze) FROM table_name_51 WHERE silver < 2 AND total > 4 AND rank = "33"
What was the series of the episode directed by Abe Levitow released on 1959-06-27?
CREATE TABLE table_name_63 (series VARCHAR, director VARCHAR, release_date VARCHAR)
SELECT series FROM table_name_63 WHERE director = "abe levitow" AND release_date = "1959-06-27"
What is the total number of points for the KV Racing Technology team when they use a chevrolet engine?
CREATE TABLE table_name_75 (points VARCHAR, engine VARCHAR, team VARCHAR)
SELECT COUNT(points) FROM table_name_75 WHERE engine = "chevrolet" AND team = "kv racing technology"
What is the to par for the player who scored 73-68=141?
CREATE TABLE table_name_91 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_91 WHERE score = 73 - 68 = 141
Describe the section h.
CREATE TABLE Sections (section_description VARCHAR, section_name VARCHAR)
SELECT section_description FROM Sections WHERE section_name = 'h'
How many positions had a difference of - 4 and an against of less than 24?
CREATE TABLE table_name_75 (position VARCHAR, difference VARCHAR, against VARCHAR)
SELECT COUNT(position) FROM table_name_75 WHERE difference = "- 4" AND against < 24
What's time is Best Mix Overnight?
CREATE TABLE table_name_94 (time VARCHAR, show_name VARCHAR)
SELECT time FROM table_name_94 WHERE show_name = "best mix overnight"
What Episode on TV Asahi Station has Rating of 12.0%?
CREATE TABLE table_name_17 (episodes VARCHAR, average_ratings VARCHAR, tv_station VARCHAR)
SELECT episodes FROM table_name_17 WHERE average_ratings = "12.0%" AND tv_station = "tv asahi"
What week had attendance of 52,714?
CREATE TABLE table_name_54 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_name_54 WHERE attendance = 52 OFFSET 714
Who had the most assists and how many did they have in game 35?
CREATE TABLE table_27744844_7 (high_assists VARCHAR, game VARCHAR)
SELECT high_assists FROM table_27744844_7 WHERE game = 35
Which country scored 70-68-71-71=280?
CREATE TABLE table_name_29 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_29 WHERE score = 70 - 68 - 71 - 71 = 280
What is the background of the celebrity who had the result 13 the celebrity apprentice (2008-03-27)?
CREATE TABLE table_12286195_1 (background VARCHAR, result VARCHAR)
SELECT background FROM table_12286195_1 WHERE result = "13 The celebrity Apprentice (2008-03-27)"
What was the 1st leg that had a 4-2 aggregate?
CREATE TABLE table_name_33 (aggregate VARCHAR)
SELECT 1 AS st_leg FROM table_name_33 WHERE aggregate = "4-2"
when the population was 1599, what was the census ranking?
CREATE TABLE table_170961_2 (census_ranking VARCHAR, population VARCHAR)
SELECT census_ranking FROM table_170961_2 WHERE population = 1599
Who did they play against in a week after 6 and the result was l 30–24?
CREATE TABLE table_name_32 (opponent VARCHAR, week VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_32 WHERE week > 6 AND result = "l 30–24"
Who was the incumbent in Pennsylvania 27?
CREATE TABLE table_1342256_38 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1342256_38 WHERE district = "Pennsylvania 27"
What is the highest heat when the nationality is poland, and the lane is smaller than 6?
CREATE TABLE table_name_22 (heat INTEGER, nationality VARCHAR, lane VARCHAR)
SELECT MAX(heat) FROM table_name_22 WHERE nationality = "poland" AND lane < 6
What is the to par number of the person who won in 2003?
CREATE TABLE table_name_40 (to_par VARCHAR, year_s__won VARCHAR)
SELECT to_par FROM table_name_40 WHERE year_s__won = "2003"
When was the institution of Kansas city Kansas community college founded?
CREATE TABLE table_12434380_1 (founded VARCHAR, institution VARCHAR)
SELECT COUNT(founded) FROM table_12434380_1 WHERE institution = "Kansas City Kansas Community College"
Who were the Opponents in the final in the match with a Score in the final of 1–6, 6–3, 2–6?
CREATE TABLE table_name_22 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT opponents_in_the_final FROM table_name_22 WHERE score_in_the_final = "1–6, 6–3, 2–6"
How many field goals were scored by the player that got 7 touchdowns?
CREATE TABLE table_25711913_14 (field_goals__4_points_ VARCHAR, touchdowns__5_points_ VARCHAR)
SELECT field_goals__4_points_ FROM table_25711913_14 WHERE touchdowns__5_points_ = 7
What is the title of the episode written by Frank Military?
CREATE TABLE table_28611413_2 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_28611413_2 WHERE written_by = "Frank Military"
What is stephen arigbabu's height?
CREATE TABLE table_name_52 (height INTEGER, player VARCHAR)
SELECT MIN(height) FROM table_name_52 WHERE player = "stephen arigbabu"
Who was the visitor for Chicago Black Hawks on May 6?
CREATE TABLE table_name_7 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_7 WHERE home = "chicago black hawks" AND date = "may 6"
Find the ids and first names of the 3 teachers that have the most number of assessment notes?
CREATE TABLE Assessment_Notes (teacher_id VARCHAR); CREATE TABLE Teachers (first_name VARCHAR, teacher_id VARCHAR)
SELECT T1.teacher_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 3
Name the pronunciation for meaning of king
CREATE TABLE table_name_85 (pronunciation_a VARCHAR, meaning_a VARCHAR)
SELECT pronunciation_a FROM table_name_85 WHERE meaning_a = "king"
What was the result of the election in which Lindley Beckworth was the incumbent?
CREATE TABLE table_1341897_45 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341897_45 WHERE incumbent = "Lindley Beckworth"
How long is the orbital period for the planet that has a semimajor axis of 5.20 au?
CREATE TABLE table_10932739_2 (orbital_period VARCHAR, semimajor_axis___au__ VARCHAR)
SELECT orbital_period FROM table_10932739_2 WHERE semimajor_axis___au__ = "5.20"
What is the nationality of the player who went to college at Mississippi?
CREATE TABLE table_name_74 (nationality VARCHAR, college_country_team VARCHAR)
SELECT nationality FROM table_name_74 WHERE college_country_team = "mississippi"
What tyre did Paul Russo have on his fastest lap?
CREATE TABLE table_name_67 (tyre VARCHAR, fastest_lap VARCHAR)
SELECT tyre FROM table_name_67 WHERE fastest_lap = "paul russo"
Kostas Bigalis & Mirella Fragkopoulou the singer had what has the jury?
CREATE TABLE table_name_51 (jury VARCHAR, singer VARCHAR)
SELECT jury FROM table_name_51 WHERE singer = "kostas bigalis & mirella fragkopoulou"
What was the venue for Round f?
CREATE TABLE table_name_8 (venue VARCHAR, round VARCHAR)
SELECT venue FROM table_name_8 WHERE round = "f"
What is the average draw for Desi Dobreva, was it less than 6?
CREATE TABLE table_name_64 (draw INTEGER, artist VARCHAR, place VARCHAR)
SELECT AVG(draw) FROM table_name_64 WHERE artist = "desi dobreva" AND place < 6
How many figures are given for the region's total in 1947?
CREATE TABLE table_12555835_1 (population__region_total_ VARCHAR, year VARCHAR)
SELECT COUNT(population__region_total_) FROM table_12555835_1 WHERE year = 1947
In what stadium was the home team Dallas Cowboys 21?
CREATE TABLE table_name_89 (stadium VARCHAR, home_team VARCHAR)
SELECT stadium FROM table_name_89 WHERE home_team = "dallas cowboys 21"
What is the average To Par, when Place is "T3", and when Player is "Ben Hogan"?
CREATE TABLE table_name_33 (to_par INTEGER, place VARCHAR, player VARCHAR)
SELECT AVG(to_par) FROM table_name_33 WHERE place = "t3" AND player = "ben hogan"
How many ties occurred with a score of 2–2?
CREATE TABLE table_name_83 (tie_no VARCHAR, score VARCHAR)
SELECT tie_no FROM table_name_83 WHERE score = "2–2"
Name the sum of rank for silver less than 0
CREATE TABLE table_name_55 (rank INTEGER, silver INTEGER)
SELECT SUM(rank) FROM table_name_55 WHERE silver < 0
What is the result of the qf round?
CREATE TABLE table_21350934_2 (result VARCHAR, round VARCHAR)
SELECT result FROM table_21350934_2 WHERE round = "QF"
Name the number of team for 19th position
CREATE TABLE table_27666856_3 (team VARCHAR, position_in_table VARCHAR)
SELECT COUNT(team) FROM table_27666856_3 WHERE position_in_table = "19th"
what is the final-rank for the uneven bars and the competition is u.s. championships?
CREATE TABLE table_13114949_3 (final_rank VARCHAR, event VARCHAR, competition VARCHAR)
SELECT final_rank FROM table_13114949_3 WHERE event = "Uneven Bars" AND competition = "U.S. Championships"
In what place did the player with a score of 66-67=133 come in?
CREATE TABLE table_name_98 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_98 WHERE score = 66 - 67 = 133
On what date was the episode aired where event 2 was Hang Tough?
CREATE TABLE table_17257687_1 (air_date VARCHAR, event_2 VARCHAR)
SELECT air_date FROM table_17257687_1 WHERE event_2 = "Hang Tough"
What is the Tenure of the Officer who died in a helicopter accident with Badge/Serial Number 16805?
CREATE TABLE table_name_95 (tenure VARCHAR, cause_of_death VARCHAR, badge_serial_number VARCHAR)
SELECT tenure FROM table_name_95 WHERE cause_of_death = "helicopter accident" AND badge_serial_number = "16805"
What is the Date of the Vigo Tournament?
CREATE TABLE table_name_65 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_65 WHERE tournament = "vigo"
Who were the quarterfinalists for the runner-ups of mike de palmer gary donnelly?
CREATE TABLE table_21584646_10 (quarterfinalists VARCHAR, runner_up VARCHAR)
SELECT quarterfinalists FROM table_21584646_10 WHERE runner_up = "Mike De Palmer Gary Donnelly"
What is the total attendance for the date of october 5?
CREATE TABLE table_name_3 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_3 WHERE date = "october 5"
Name the champion for israel bowl of iv
CREATE TABLE table_name_33 (champion VARCHAR, israel_bowl VARCHAR)
SELECT champion FROM table_name_33 WHERE israel_bowl = "iv"
On what day of January was the record 10-29-2?
CREATE TABLE table_27539272_7 (january INTEGER, record VARCHAR)
SELECT MAX(january) FROM table_27539272_7 WHERE record = "10-29-2"
Where is the Locale when L is 2.
CREATE TABLE table_1505809_2 (locale VARCHAR, l VARCHAR)
SELECT locale FROM table_1505809_2 WHERE l = 2
Name the most series number for giula sandler
CREATE TABLE table_15838081_3 (series__number INTEGER, writer_s_ VARCHAR)
SELECT MAX(series__number) FROM table_15838081_3 WHERE writer_s_ = "Giula Sandler"
Name the most 3 credits
CREATE TABLE table_148535_2 (Id VARCHAR)
SELECT MIN(3 AS _credits) FROM table_148535_2
Name the highest week for result of w 38-13
CREATE TABLE table_name_7 (week INTEGER, result VARCHAR)
SELECT MAX(week) FROM table_name_7 WHERE result = "w 38-13"
When was the match with a result of sa by 10 wkts?
CREATE TABLE table_name_23 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_23 WHERE result = "sa by 10 wkts"
What Model number has the sSpec numebr of SLBJG(B1)?
CREATE TABLE table_name_30 (model_number VARCHAR, sspec_number VARCHAR)
SELECT model_number FROM table_name_30 WHERE sspec_number = "slbjg(b1)"
What is the HDTV of the Music Content Channel?
CREATE TABLE table_name_60 (hdtv VARCHAR, content VARCHAR)
SELECT hdtv FROM table_name_60 WHERE content = "music"
What is the total grid number where the time/retired is +58.182 and the lap number is less than 67?
CREATE TABLE table_name_12 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT SUM(grid) FROM table_name_12 WHERE time_retired = "+58.182" AND laps < 67
What pole position did 2006 gehl championship finale have?
CREATE TABLE table_name_82 (pole_position VARCHAR, race_name VARCHAR)
SELECT pole_position FROM table_name_82 WHERE race_name = "2006 gehl championship finale"
What was the week on December 10, 1989?
CREATE TABLE table_name_39 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_39 WHERE date = "december 10, 1989"
What was the loss of the Brewers game when the record was 46-48?
CREATE TABLE table_name_90 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_90 WHERE record = "46-48"
What was the aircraft damage for the accident that had fatalities of 30/30?
CREATE TABLE table_name_35 (aircraft VARCHAR, fatalities VARCHAR)
SELECT aircraft AS damage FROM table_name_35 WHERE fatalities = "30/30"
What is the average points of the drivers before 1964?
CREATE TABLE table_name_73 (points INTEGER, year INTEGER)
SELECT AVG(points) FROM table_name_73 WHERE year < 1964
Who directed the film Nuits d'arabie?
CREATE TABLE table_18994724_1 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT director_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = "Nuits d'Arabie"
With the version of 1.5a, what is the release date?
CREATE TABLE table_2263152_1 (release_date VARCHAR, version VARCHAR)
SELECT release_date FROM table_2263152_1 WHERE version = "1.5a"
What is the Position of moose goheen?
CREATE TABLE table_name_61 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_61 WHERE name = "moose goheen"
What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0?
CREATE TABLE table_name_16 (bronze INTEGER, total VARCHAR, gold VARCHAR)
SELECT MIN(bronze) FROM table_name_16 WHERE total < 10 AND gold < 0
Who is the winner constructor with driver riccardo patrese?
CREATE TABLE table_name_79 (winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT winning_constructor FROM table_name_79 WHERE winning_driver = "riccardo patrese"
Who was the team's opponent of October 25, 1970?
CREATE TABLE table_14966537_1 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_14966537_1 WHERE date = "October 25, 1970"
What is the type of the king title?
CREATE TABLE table_name_2 (type VARCHAR, title VARCHAR)
SELECT type FROM table_name_2 WHERE title = "king"
What is the Score of a Record 24–23–3?
CREATE TABLE table_name_69 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_69 WHERE record = "24–23–3"
Which call sign has a Class of A, and a Frequency MHz of 88.7?
CREATE TABLE table_name_1 (call_sign VARCHAR, class VARCHAR, frequency_mhz VARCHAR)
SELECT call_sign FROM table_name_1 WHERE class = "a" AND frequency_mhz = 88.7
Which player is from Tampa, Florida?
CREATE TABLE table_name_68 (player VARCHAR, hometown VARCHAR)
SELECT player FROM table_name_68 WHERE hometown = "tampa, florida"