question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many townships are there in region number 2?
CREATE TABLE table_19457_1 (town_ships INTEGER, no VARCHAR)
SELECT MAX(town_ships) FROM table_19457_1 WHERE no = 2
What Social AO has an External CO of simonas savickas, and an Internal CO of pieter kuijsten?
CREATE TABLE table_name_83 (social_ao VARCHAR, external_co VARCHAR, internal_co VARCHAR)
SELECT social_ao FROM table_name_83 WHERE external_co = "simonas savickas" AND internal_co = "pieter kuijsten"
What label is from the Region of Spain?
CREATE TABLE table_name_93 (label VARCHAR, region VARCHAR)
SELECT label FROM table_name_93 WHERE region = "spain"
Which region has the format CD and label MCA?
CREATE TABLE table_name_15 (region VARCHAR, format VARCHAR, label VARCHAR)
SELECT region FROM table_name_15 WHERE format = "cd" AND label = "mca"
Tell me the role for 2005
CREATE TABLE table_name_38 (role VARCHAR, year VARCHAR)
SELECT role FROM table_name_38 WHERE year = 2005
What class had a Championship Test event with a 62.516 result?
CREATE TABLE table_name_66 (class VARCHAR, event VARCHAR, result VARCHAR)
SELECT class FROM table_name_66 WHERE event = "championship test" AND result = "62.516"
WHich Coat of Cash" Wearing Celebrity has a Episode Number larger than 1 and with amy macdonald ( mr rock & roll )?
CREATE TABLE table_name_92 (episode_number VARCHAR, musical_guest__song_performed_ VARCHAR)
SELECT "coat_of_cash" AS _wearing_celebrity FROM table_name_92 WHERE episode_number > 1 AND musical_guest__song_performed_ = "amy macdonald ( mr rock & roll )"
Ranking higher than 2, what Team has Player Paolo Maldini?
CREATE TABLE table_name_52 (team VARCHAR, rank VARCHAR, name VARCHAR)
SELECT team FROM table_name_52 WHERE rank > 2 AND name = "paolo maldini"
What is the Date of the match with Opponent in the final Kenneth Carlsen?
CREATE TABLE table_name_41 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_41 WHERE opponent_in_the_final = "kenneth carlsen"
what game had a score of 86-71
CREATE TABLE table_name_8 (attendance VARCHAR, record VARCHAR)
SELECT attendance FROM table_name_8 WHERE record = "86-71"
What was the lowest no. of attendance on record?
CREATE TABLE table_16119656_1 (attendance INTEGER)
SELECT MIN(attendance) FROM table_16119656_1
WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal?
CREATE TABLE table_2104176_1 (homeland_security_distinguished_service_medal VARCHAR, medal_of_honor VARCHAR)
SELECT homeland_security_distinguished_service_medal FROM table_2104176_1 WHERE medal_of_honor = "Coast Guard Medal"
What is the lowest number of wins where the byes are less than 0?
CREATE TABLE table_name_15 (wins INTEGER, byes INTEGER)
SELECT MIN(wins) FROM table_name_15 WHERE byes < 0
What was Parker Moloney's party affiliation when he was the Minister for Markets?
CREATE TABLE table_name_3 (party VARCHAR, minister VARCHAR, title VARCHAR)
SELECT party FROM table_name_3 WHERE minister = "parker moloney" AND title = "minister for markets"
Who were the running candidates when Joshua Sands was the incumbent?
CREATE TABLE table_2668254_17 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_2668254_17 WHERE incumbent = "Joshua Sands"
What are all episodes with a viewing figure of 6.72 million?
CREATE TABLE table_15026994_2 (episode VARCHAR, viewing_figure VARCHAR)
SELECT episode FROM table_15026994_2 WHERE viewing_figure = "6.72 million"
What is the common name of the animal whose length (AA) is 1323?
CREATE TABLE table_26957063_3 (common_name VARCHAR, length__aa_ VARCHAR)
SELECT common_name FROM table_26957063_3 WHERE length__aa_ = 1323
Tell me the loewst assume office for madeleine bordallo
CREATE TABLE table_name_60 (assumed_office INTEGER, name VARCHAR)
SELECT MIN(assumed_office) FROM table_name_60 WHERE name = "madeleine bordallo"
How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?
CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, _percentage_2011 VARCHAR)
SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = "4.4%"
In what year is Zaxxon the Standalone?
CREATE TABLE table_name_88 (year VARCHAR, standalone VARCHAR)
SELECT year FROM table_name_88 WHERE standalone = "zaxxon"
How many people at Arden Street Oval?
CREATE TABLE table_name_21 (crowd VARCHAR, venue VARCHAR)
SELECT COUNT(crowd) FROM table_name_21 WHERE venue = "arden street oval"
Who was the visitor when the lakers were at home with a Score of 85–106?
CREATE TABLE table_name_39 (visitor VARCHAR, home VARCHAR, score VARCHAR)
SELECT visitor FROM table_name_39 WHERE home = "lakers" AND score = "85–106"
What was the location when the winning driver was Nathanaël Berthon?
CREATE TABLE table_25572068_1 (location VARCHAR, winning_driver VARCHAR)
SELECT location FROM table_25572068_1 WHERE winning_driver = "Nathanaël Berthon"
When did the Wolverhampton Wanderers play at home?
CREATE TABLE table_name_52 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_52 WHERE home_team = "wolverhampton wanderers"
What was the winning time in 1984?
CREATE TABLE table_name_99 (time VARCHAR, year VARCHAR)
SELECT time FROM table_name_99 WHERE year = "1984"
What is the original title of season number 3?
CREATE TABLE table_1481865_1 (title__original_ VARCHAR, number_of_season VARCHAR)
SELECT title__original_ FROM table_1481865_1 WHERE number_of_season = 3
How many record data were written when Devin Harris (6) was High Assists?
CREATE TABLE table_27700375_8 (record VARCHAR, high_assists VARCHAR)
SELECT COUNT(record) FROM table_27700375_8 WHERE high_assists = "Devin Harris (6)"
What was release date in 1992 with the ISBN #0?
CREATE TABLE table_name_19 (release_date VARCHAR, isbn VARCHAR, year VARCHAR)
SELECT release_date FROM table_name_19 WHERE isbn = 0 AND year = 1992
What is the displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s?
CREATE TABLE table_name_36 (displacement_ VARCHAR, _configuration VARCHAR, max_speed VARCHAR, car_model VARCHAR)
SELECT displacement_ & _configuration FROM table_name_36 WHERE max_speed = "km/h (mph)" AND car_model = "panamera 4s"
What is Player, when Place is "T5", and when Score is "69-72=141"?
CREATE TABLE table_name_88 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_88 WHERE place = "t5" AND score = 69 - 72 = 141
What is the lowest value for Olympics, when Sailors is greater than 1, when First OG is after 1948, and when Class is "Flying Dutchman"?
CREATE TABLE table_name_80 (olympics_so_far INTEGER, class VARCHAR, sailors VARCHAR, first_og VARCHAR)
SELECT MIN(olympics_so_far) FROM table_name_80 WHERE sailors > 1 AND first_og > 1948 AND class = "flying dutchman"
What is Richmond's away team score versus Geelong?
CREATE TABLE table_name_96 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_96 WHERE away_team = "richmond"
Name the 2005 with 2007 of sf
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT 2005 FROM table_name_16 WHERE 2007 = "sf"
What was the lowest fumble with an average of less than 5.7 and 236 yards?
CREATE TABLE table_name_35 (fumbles INTEGER, avg VARCHAR, yards VARCHAR)
SELECT MIN(fumbles) FROM table_name_35 WHERE avg < 5.7 AND yards = 236
What was the score of the game 57 after February 23?
CREATE TABLE table_name_19 (score VARCHAR, february VARCHAR, game VARCHAR)
SELECT score FROM table_name_19 WHERE february > 23 AND game = 57
What is the lowest goals listed for player Sid O'neill, with Games larger than 1?
CREATE TABLE table_name_91 (goals INTEGER, player VARCHAR, games VARCHAR)
SELECT MIN(goals) FROM table_name_91 WHERE player = "sid o'neill" AND games > 1
What is the highest Goals For, when Team is "Cheadle Town", and when Drawn is greater than 7?
CREATE TABLE table_name_2 (goals_for INTEGER, team VARCHAR, drawn VARCHAR)
SELECT MAX(goals_for) FROM table_name_2 WHERE team = "cheadle town" AND drawn > 7
What was the standing in the series after game 1?
CREATE TABLE table_name_1 (series VARCHAR, game VARCHAR)
SELECT series FROM table_name_1 WHERE game = 1
Show the race class and number of races in each class.
CREATE TABLE race (CLASS VARCHAR)
SELECT CLASS, COUNT(*) FROM race GROUP BY CLASS
Which country contains the Shanghai Pudong International airport?
CREATE TABLE table_name_41 (country VARCHAR, airport VARCHAR)
SELECT country FROM table_name_41 WHERE airport = "shanghai pudong international airport"
How many episodes did Cliff Bole directed in season 3?
CREATE TABLE table_17861265_1 (title VARCHAR, directed_by VARCHAR)
SELECT COUNT(title) FROM table_17861265_1 WHERE directed_by = "Cliff Bole"
How much money did Ian Chamings request?
CREATE TABLE table_name_78 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)
SELECT money_requested__£_ FROM table_name_78 WHERE entrepreneur_s_ = "ian chamings"
What is the highest elevation of a place where the lowest point is the Allaine River, National border?
CREATE TABLE table_name_93 (highest_elevation VARCHAR, lowest_point VARCHAR)
SELECT highest_elevation FROM table_name_93 WHERE lowest_point = "allaine river, national border"
What is the year that has a name with the Greek small letter sampi?
CREATE TABLE table_name_89 (year INTEGER, name VARCHAR)
SELECT SUM(year) FROM table_name_89 WHERE name = "greek small letter sampi"
What is the Illustration with a Design of tim nokes, and a First Day Cover Cancellation with calgary, alberta?
CREATE TABLE table_name_76 (illustration VARCHAR, design VARCHAR, first_day_cover_cancellation VARCHAR)
SELECT illustration FROM table_name_76 WHERE design = "tim nokes" AND first_day_cover_cancellation = "calgary, alberta"
Which box score has an Attendance of 54,773?
CREATE TABLE table_name_32 (boxscore VARCHAR, attendance VARCHAR)
SELECT boxscore FROM table_name_32 WHERE attendance = "54,773"
Which week had an attendance of 70,225
CREATE TABLE table_name_27 (week INTEGER, attendance VARCHAR)
SELECT MIN(week) FROM table_name_27 WHERE attendance = "70,225"
What is the release date for the model with sspec number sla4h(m0)?
CREATE TABLE table_11602313_4 (release_date VARCHAR, sspec_number VARCHAR)
SELECT release_date FROM table_11602313_4 WHERE sspec_number = "SLA4H(M0)"
Name the number of score for sacramento
CREATE TABLE table_23281862_5 (score VARCHAR, team VARCHAR)
SELECT COUNT(score) FROM table_23281862_5 WHERE team = "Sacramento"
What Function (figure) has Serial number AF 934103?
CREATE TABLE table_name_95 (function__figure_ VARCHAR, serial_number VARCHAR)
SELECT function__figure_ FROM table_name_95 WHERE serial_number = "af 934103"
At what venues did Lorena Ochoa win the championship?
CREATE TABLE table_1520559_1 (venue VARCHAR, champion VARCHAR)
SELECT venue FROM table_1520559_1 WHERE champion = "Lorena Ochoa"
Which Team has a Pick # of 148?
CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR)
SELECT team_from FROM table_name_59 WHERE pick__number = 148
what country hosted david toms
CREATE TABLE table_name_94 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_94 WHERE player = "david toms"
How many chapters did Elmer Clifton direct?
CREATE TABLE table_name_86 (chapters VARCHAR, director VARCHAR)
SELECT COUNT(chapters) FROM table_name_86 WHERE director = "elmer clifton"
What was the Ravens' record on December 5, 1999?
CREATE TABLE table_name_33 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_33 WHERE date = "december 5, 1999"
What would be the traditional Chinese name tat is simplified as 崇拜?
CREATE TABLE table_name_66 (chinese__traditional_ VARCHAR, chinese__simplified_ VARCHAR)
SELECT chinese__traditional_ FROM table_name_66 WHERE chinese__simplified_ = "崇拜"
What is the sum of the live viewers for episodes with share over 5?
CREATE TABLE table_name_77 (live VARCHAR, share INTEGER, viewers_ INTEGER)
SELECT SUM(viewers_)[live] AS __m_ FROM table_name_77 WHERE share > 5
When was ron-robert zieler loaned out until ?
CREATE TABLE table_name_90 (date_to VARCHAR, name VARCHAR)
SELECT date_to FROM table_name_90 WHERE name = "ron-robert zieler"
what is the listing date for nuckolls county?
CREATE TABLE table_name_79 (listed VARCHAR, county VARCHAR)
SELECT listed FROM table_name_79 WHERE county = "nuckolls"
What date did the episode with production code 3aky05 air?
CREATE TABLE table_26824484_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_26824484_1 WHERE production_code = "3AKY05"
Name the oberliga bayern for sv sandhausen for 1986-87
CREATE TABLE table_14242137_4 (oberliga_bayern VARCHAR, oberliga_baden_württemberg VARCHAR, season VARCHAR)
SELECT oberliga_bayern FROM table_14242137_4 WHERE oberliga_baden_württemberg = "SV Sandhausen" AND season = "1986-87"
What is the Branding of the Iloilo City Frequency with a Power of 10 Kw?
CREATE TABLE table_name_38 (branding VARCHAR, power VARCHAR, location VARCHAR)
SELECT branding FROM table_name_38 WHERE power = "10 kw" AND location = "iloilo city"
Which Points have a Performer of seán monaghan and a Draw smaller than 7?
CREATE TABLE table_name_87 (points INTEGER, performer VARCHAR, draw VARCHAR)
SELECT MIN(points) FROM table_name_87 WHERE performer = "seán monaghan" AND draw < 7
Name the total number of previous br number for number 21
CREATE TABLE table_2079664_3 (previous_br_no VARCHAR, number VARCHAR)
SELECT COUNT(previous_br_no) FROM table_2079664_3 WHERE number = "21"
How much does geno hayes weigh?
CREATE TABLE table_15592941_1 (weight VARCHAR, player_name VARCHAR)
SELECT weight FROM table_15592941_1 WHERE player_name = "Geno Hayes"
Which Laps have a Rider of russell holland, and a Grid smaller than 10?
CREATE TABLE table_name_54 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_54 WHERE rider = "russell holland" AND grid < 10
What is the sum of the kono with a bonthe greater than 21,238?
CREATE TABLE table_name_38 (kono INTEGER, bonthe INTEGER)
SELECT SUM(kono) FROM table_name_38 WHERE bonthe > 21 OFFSET 238
How many open cups were hosted in 1993?
CREATE TABLE table_12002388_1 (open_cup VARCHAR, year VARCHAR)
SELECT COUNT(open_cup) FROM table_12002388_1 WHERE year = 1993
Which season had 10 draws?
CREATE TABLE table_name_48 (season VARCHAR, draws VARCHAR)
SELECT season FROM table_name_48 WHERE draws = "10"
Who wrote the episode that got 5.95 million U.S. viewers?
CREATE TABLE table_28760804_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT written_by FROM table_28760804_1 WHERE us_viewers__million_ = "5.95"
Find the name of instructors who are advisors of the students from the Math department, and sort the results by students' total credit.
CREATE TABLE student (id VARCHAR, dept_name VARCHAR, tot_cred VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)
SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math' ORDER BY T3.tot_cred
what is the date of vacancy when the manner of departure is contract terminated, the position in table is 23rd and the date of appointment is 31 december 2008?
CREATE TABLE table_name_4 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
SELECT date_of_vacancy FROM table_name_4 WHERE manner_of_departure = "contract terminated" AND position_in_table = "23rd" AND date_of_appointment = "31 december 2008"
If the position of 26th what is the season total number?
CREATE TABLE table_22998777_1 (season VARCHAR, position VARCHAR)
SELECT COUNT(season) FROM table_22998777_1 WHERE position = "26th"
Which Points is the highest one that has a Drawn smaller than 2, and a Name of esc holzkirchen, and Played smaller than 14?
CREATE TABLE table_name_91 (points INTEGER, played VARCHAR, drawn VARCHAR, name VARCHAR)
SELECT MAX(points) FROM table_name_91 WHERE drawn < 2 AND name = "esc holzkirchen" AND played < 14
Which Record has a February smaller than 8, and an Opponent of montreal canadiens?
CREATE TABLE table_name_51 (record VARCHAR, february VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_51 WHERE february < 8 AND opponent = "montreal canadiens"
What is the time when time is 10:46?
CREATE TABLE table_21578303_2 (time VARCHAR, time__eet_ VARCHAR)
SELECT time FROM table_21578303_2 WHERE time__eet_ = "10:46"
What was 2002, when 2008 was, "career statistics"?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT 2002 FROM table_name_6 WHERE 2008 = "career statistics"
What is the quantity when the seats number was 16 and the class was kss 1913?
CREATE TABLE table_name_67 (quantity VARCHAR, seats VARCHAR, class VARCHAR)
SELECT quantity FROM table_name_67 WHERE seats = 16 AND class = "kss 1913"
What is the name of a pick more than 5 at Washington College?
CREATE TABLE table_name_45 (name VARCHAR, pick__number VARCHAR, college VARCHAR)
SELECT name FROM table_name_45 WHERE pick__number > 5 AND college = "washington"
What is Commissioned, when Laid Down is "6 September 2003"?
CREATE TABLE table_name_78 (commissioned VARCHAR, laid_down VARCHAR)
SELECT commissioned FROM table_name_78 WHERE laid_down = "6 september 2003"
What was the loss on September 2?
CREATE TABLE table_name_16 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_16 WHERE date = "september 2"
Which Overall is the highest one that has a College of oklahoma, and a Pick # smaller than 4?
CREATE TABLE table_name_19 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
SELECT MAX(overall) FROM table_name_19 WHERE college = "oklahoma" AND pick__number < 4
What is the highest week for Cleveland Browns with 54,205 in attendance?
CREATE TABLE table_name_47 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT MAX(week) FROM table_name_47 WHERE opponent = "cleveland browns" AND attendance > 54 OFFSET 205
When did svishtov , bulgaria disband?
CREATE TABLE table_242785_1 (date_disband VARCHAR, main_legionary_base VARCHAR)
SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria"
Which Week has an Opponent of atlanta falcons, and an Attendance smaller than 63,114?
CREATE TABLE table_name_58 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT MIN(week) FROM table_name_58 WHERE opponent = "atlanta falcons" AND attendance < 63 OFFSET 114
What is the money rank of the tallest poker player?
CREATE TABLE people (People_ID VARCHAR, Height VARCHAR); CREATE TABLE poker_player (Money_Rank VARCHAR, People_ID VARCHAR)
SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1
What is the Total with a Player named robbie winters?
CREATE TABLE table_name_95 (total VARCHAR, player VARCHAR)
SELECT total FROM table_name_95 WHERE player = "robbie winters"
What college/junior/club team is a left wing from Canada?
CREATE TABLE table_name_94 (college_junior_club_team VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT college_junior_club_team FROM table_name_94 WHERE position = "left wing" AND nationality = "canada"
How many flaps are there for the team march 3 racing (1-4) top speed racing team (5-12)?
CREATE TABLE table_25740774_1 (f_laps VARCHAR, team VARCHAR)
SELECT COUNT(f_laps) FROM table_25740774_1 WHERE team = "March 3 Racing (1-4) Top Speed Racing team (5-12)"
What year has the vehicle of open wheel and a racing series of formula one with a Nation of citizenship in Germany.
CREATE TABLE table_name_90 (year VARCHAR, nation_of_citizenship VARCHAR, type_of_vehicle VARCHAR, racing_series VARCHAR)
SELECT year FROM table_name_90 WHERE type_of_vehicle = "open wheel" AND racing_series = "formula one" AND nation_of_citizenship = "germany"
What is Score, when Player is "Andy North"?
CREATE TABLE table_name_12 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_12 WHERE player = "andy north"
In 1990-2005 what is the lowest Start with Convs smaller than 2?
CREATE TABLE table_name_93 (start INTEGER, span VARCHAR, conv VARCHAR)
SELECT MIN(start) FROM table_name_93 WHERE span = "1990-2005" AND conv < 2
What Viewers (m) has an Episode of 40 days?
CREATE TABLE table_name_64 (viewers__m_ VARCHAR, episode VARCHAR)
SELECT viewers__m_ FROM table_name_64 WHERE episode = "40 days"
what is the oldest and lives in veraguas
CREATE TABLE table_27515452_3 (age INTEGER, hometown VARCHAR)
SELECT MAX(age) FROM table_27515452_3 WHERE hometown = "Veraguas"
What is the yeast ortholog of mouse ortholog MMS19?
CREATE TABLE table_name_18 (yeast_ortholog VARCHAR, mouse_ortholog VARCHAR)
SELECT yeast_ortholog FROM table_name_18 WHERE mouse_ortholog = "mms19"
What is the highest 1985 value that has a 1990 value of 93?
CREATE TABLE table_name_27 (Id VARCHAR)
SELECT MAX(1985) FROM table_name_27 WHERE 1990 = 93
When did the Brewers lose 2-8?
CREATE TABLE table_name_63 (loss VARCHAR, score VARCHAR)
SELECT loss FROM table_name_63 WHERE score = "2-8"
What is Result, when Date is "December 12"?
CREATE TABLE table_name_70 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_70 WHERE date = "december 12"
What is the record when the visitor was Nashville?
CREATE TABLE table_name_82 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_82 WHERE visitor = "nashville"
Name the least goals when position is more than 4 and draws is more than 11
CREATE TABLE table_name_67 (goals_for INTEGER, position VARCHAR, draws VARCHAR)
SELECT MIN(goals_for) FROM table_name_67 WHERE position > 4 AND draws > 11