question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
When playing on grass who was the opponents in a year greater than 1993, and playing with Jonas Björkman?
CREATE TABLE table_name_10 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, year VARCHAR)
SELECT opponents FROM table_name_10 WHERE surface = "grass" AND year > 1993 AND partner = "jonas björkman"
Which Player has a Position of rw, and a League from of western hockey league?
CREATE TABLE table_name_13 (player VARCHAR, position VARCHAR, league_from VARCHAR)
SELECT player FROM table_name_13 WHERE position = "rw" AND league_from = "western hockey league"
Name the total number of air dates for 102 episode
CREATE TABLE table_15584067_7 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT COUNT(original_air_date) FROM table_15584067_7 WHERE no_in_series = "102"
What is the location for the club trophy?
CREATE TABLE table_name_69 (location VARCHAR, type VARCHAR)
SELECT location FROM table_name_69 WHERE type = "club trophy"
When was the date of death for the person married to Charles II?
CREATE TABLE table_name_86 (death VARCHAR, spouse VARCHAR)
SELECT death FROM table_name_86 WHERE spouse = "charles ii"
In which venue does Melbourne play as the home team?
CREATE TABLE table_name_62 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_62 WHERE home_team = "melbourne"
When is the Save of Ayala and a Loss of Olivares
CREATE TABLE table_name_70 (date VARCHAR, save VARCHAR, loss VARCHAR)
SELECT date FROM table_name_70 WHERE save = "ayala" AND loss = "olivares"
What is the original title of the film from Japan/Taiwan before 2003?
CREATE TABLE table_name_95 (original_title VARCHAR, year VARCHAR, country VARCHAR)
SELECT original_title FROM table_name_95 WHERE year < 2003 AND country = "japan/taiwan"
What is the template type code for template type description "Book".
CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR)
SELECT template_type_code FROM Ref_template_types WHERE template_type_description = "Book"
Who was the opponent on November 12, 1972?
CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_19 WHERE date = "november 12, 1972"
What Attendance has a Date that is november 1, 1993?
CREATE TABLE table_name_69 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_69 WHERE date = "november 1, 1993"
What is the lowest value of average attendance when average on previous season is -459?
CREATE TABLE table_2970978_1 (ave_attendance INTEGER, ___ave_on_prev_season VARCHAR)
SELECT MIN(ave_attendance) FROM table_2970978_1 WHERE ___ave_on_prev_season = "-459"
What was the least amount for Goals Olimpia?
CREATE TABLE table_13688489_1 (goals_olimpia INTEGER)
SELECT MIN(goals_olimpia) FROM table_13688489_1
Which urban area has a 2011 population of 5010?
CREATE TABLE table_1940144_1 (urban_area VARCHAR, population_2011 VARCHAR)
SELECT urban_area FROM table_1940144_1 WHERE population_2011 = 5010
When Australian open is the championship what is the lowest year?
CREATE TABLE table_24901152_2 (year INTEGER, championship VARCHAR)
SELECT MIN(year) FROM table_24901152_2 WHERE championship = "Australian Open"
What is the average money requested by all entrepreneurs?
CREATE TABLE entrepreneur (Money_Requested INTEGER)
SELECT AVG(Money_Requested) FROM entrepreneur
Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24)
CREATE TABLE table_name_90 (shuji_kondo VARCHAR, mazada VARCHAR, ryuji_hijikata VARCHAR)
SELECT shuji_kondo FROM table_name_90 WHERE mazada = "x" AND ryuji_hijikata = "hijikata (14:24)"
What is the Chipset based on with a Digital/analog signal of analog, with an Available interface of agp, with Retail name with all-in-wonder 9800?
CREATE TABLE table_name_18 (chipset_based_on VARCHAR, retail_name VARCHAR, digital_analog_signal VARCHAR, available_interface VARCHAR)
SELECT chipset_based_on FROM table_name_18 WHERE digital_analog_signal = "analog" AND available_interface = "agp" AND retail_name = "all-in-wonder 9800"
What episode in the series had 5.24 million viewers?
CREATE TABLE table_27846651_1 (series__number VARCHAR, viewers__millions_ VARCHAR)
SELECT series__number FROM table_27846651_1 WHERE viewers__millions_ = "5.24"
In language where Wednesday is বুধবার budhbar, what is Thursday?
CREATE TABLE table_1277350_3 (thursday_guru__jupiter_ VARCHAR, wednesday_budha__mercury_ VARCHAR)
SELECT thursday_guru__jupiter_ FROM table_1277350_3 WHERE wednesday_budha__mercury_ = "বুধবার Budhbar"
What is the number of played games a club with more than 71 points and less than 8 losses has?
CREATE TABLE table_name_50 (played INTEGER, points VARCHAR, losses VARCHAR)
SELECT SUM(played) FROM table_name_50 WHERE points > 71 AND losses < 8
Report the first name and last name of all the teachers.
CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR)
SELECT DISTINCT firstname, lastname FROM teachers
What is the 2011 value with a 2008 value of 0.3 and is a member state of the European Union?
CREATE TABLE table_name_64 (member_state VARCHAR)
SELECT 2011 FROM table_name_64 WHERE 2008 = "0.3" AND member_state = "european union"
Which Name has a Championship larger than 2, and a Total larger than 4, and an FA Cup larger than 0?
CREATE TABLE table_name_72 (name VARCHAR, fa_cup VARCHAR, championship VARCHAR, total VARCHAR)
SELECT name FROM table_name_72 WHERE championship > 2 AND total > 4 AND fa_cup > 0
How much tonnage Tonnage (GRT) has a Nationality of united kingdom, and a Date of 27 june 1941?
CREATE TABLE table_name_8 (tonnage__grt_ VARCHAR, nationality VARCHAR, date VARCHAR)
SELECT COUNT(tonnage__grt_) FROM table_name_8 WHERE nationality = "united kingdom" AND date = "27 june 1941"
If the date is 7-21-2006, who was the opponent?
CREATE TABLE table_23314951_4 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_23314951_4 WHERE date = "7-21-2006"
What Population has a Median family income of $38,044?
CREATE TABLE table_name_18 (population VARCHAR, median_family_income VARCHAR)
SELECT population FROM table_name_18 WHERE median_family_income = "$38,044"
How many episodes had an audience of exactly 25.3 million viewers in the U.S.A.?
CREATE TABLE table_27713721_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(production_code) FROM table_27713721_1 WHERE us_viewers__millions_ = "25.3"
In the match where geelong was the away team, who was the home team?
CREATE TABLE table_name_46 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_46 WHERE away_team = "geelong"
Find the total budgets of the Marketing or Finance department.
CREATE TABLE department (budget INTEGER, dept_name VARCHAR)
SELECT SUM(budget) FROM department WHERE dept_name = 'Marketing' OR dept_name = 'Finance'
what is the arabic capital name wher the english capital name is manama?
CREATE TABLE table_15694696_1 (arabic_capital_name VARCHAR, english_capital_name VARCHAR)
SELECT arabic_capital_name FROM table_15694696_1 WHERE english_capital_name = "Manama"
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(rating) / SHARE(18 AS –49) FROM table_23799417_2 WHERE total_viewers__in_millions_ = "12.75"
Score of 108-85 is what lowest game?
CREATE TABLE table_name_77 (game INTEGER, score VARCHAR)
SELECT MIN(game) FROM table_name_77 WHERE score = "108-85"
Who was the manufacturer in the year when the race lasted 2:30:28?
CREATE TABLE table_2266976_1 (manufacturer VARCHAR, race_time VARCHAR)
SELECT manufacturer FROM table_2266976_1 WHERE race_time = "2:30:28"
What opponent played on the 28th with a venue of away?
CREATE TABLE table_name_76 (opponent VARCHAR, venue VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_76 WHERE venue = "away" AND date = "28th"
In what Year is the length of the Song 7:42?
CREATE TABLE table_name_40 (year INTEGER, length VARCHAR)
SELECT AVG(year) FROM table_name_40 WHERE length = "7:42"
What is the highest Money ($), when Top Par is E, and when Player is Ernie Els?
CREATE TABLE table_name_35 (money___ INTEGER, to_par VARCHAR, player VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_35 WHERE to_par = "e" AND player = "ernie els"
What Outcome has a Rocket launch of rehnuma-11?
CREATE TABLE table_name_93 (outcomes VARCHAR, rocket_launch VARCHAR)
SELECT outcomes FROM table_name_93 WHERE rocket_launch = "rehnuma-11"
How many marks are there when tackles are 3?
CREATE TABLE table_2814720_1 (marks VARCHAR, tackles VARCHAR)
SELECT marks FROM table_2814720_1 WHERE tackles = 3
What was the playoff result for the team name of bay area seals
CREATE TABLE table_1427998_1 (playoffs VARCHAR, team_name VARCHAR)
SELECT playoffs FROM table_1427998_1 WHERE team_name = "Bay Area Seals"
Name the average goals against for draws of 8 and wins more than 22 with losses less than 12
CREATE TABLE table_name_92 (goals_against INTEGER, wins VARCHAR, draws VARCHAR, losses VARCHAR)
SELECT AVG(goals_against) FROM table_name_92 WHERE draws = 8 AND losses < 12 AND wins > 22
What is the home team score that played at windy hill?
CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_81 WHERE venue = "windy hill"
What is the average attendance that has june 24 as the date?
CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_14 WHERE date = "june 24"
What date has 11 as the tie no.?
CREATE TABLE table_name_48 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_48 WHERE tie_no = "11"
How many final score datas are there on Sunday, May 12?
CREATE TABLE table_24776075_2 (final_score VARCHAR, date VARCHAR)
SELECT COUNT(final_score) FROM table_24776075_2 WHERE date = "Sunday, May 12"
Which Heat has a Nationality of bulgaria, and a Result larger than 55.97?
CREATE TABLE table_name_30 (heat INTEGER, nationality VARCHAR, result VARCHAR)
SELECT MIN(heat) FROM table_name_30 WHERE nationality = "bulgaria" AND result > 55.97
2005 of 3r, and a 2000 of lq, and a 2002 of 3r is in what 2004?
CREATE TABLE table_name_7 (Id VARCHAR)
SELECT 2004 FROM table_name_7 WHERE 2005 = "3r" AND 2000 = "lq" AND 2002 = "3r"
At what venue did the Essendon team play as an away team?
CREATE TABLE table_name_92 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_92 WHERE away_team = "essendon"
Who was lieutenant governor to the governor that left office on October 16, 2000?
CREATE TABLE table_name_90 (Lieutenant VARCHAR, left_office VARCHAR)
SELECT Lieutenant AS governor FROM table_name_90 WHERE left_office = "october 16, 2000"
How many points against did the club who had 353 points for have?
CREATE TABLE table_27293285_2 (points_against VARCHAR, points_for VARCHAR)
SELECT points_against FROM table_27293285_2 WHERE points_for = "353"
What year was Sam Kazman a producer?
CREATE TABLE table_name_35 (year VARCHAR, producer VARCHAR)
SELECT year FROM table_name_35 WHERE producer = "sam kazman"
Which event was Ye Shiwen in?
CREATE TABLE table_name_23 (event VARCHAR, name VARCHAR)
SELECT event FROM table_name_23 WHERE name = "ye shiwen"
What is Born-Died, when Term End is 19 January 1943?
CREATE TABLE table_name_60 (born_died VARCHAR, term_end VARCHAR)
SELECT born_died FROM table_name_60 WHERE term_end = "19 january 1943"
How many nationalities/sponsors for mirror/type schmidt uv?
CREATE TABLE table_23851574_2 (nationality_sponsors VARCHAR, mirror_type VARCHAR)
SELECT COUNT(nationality_sponsors) FROM table_23851574_2 WHERE mirror_type = "Schmidt UV"
How many dates have a Match number of 5?
CREATE TABLE table_17103566_1 (date VARCHAR, match_number VARCHAR)
SELECT COUNT(date) FROM table_17103566_1 WHERE match_number = 5
What is the Away Team when the Home Team is Fulham?
CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_26 WHERE home_team = "fulham"
What is short-term capital gain rate with long-term gain on collectibles at 15%?
CREATE TABLE table_name_29 (short_term_capital_gain_rate VARCHAR, long_term_gain_on_collectibles VARCHAR)
SELECT short_term_capital_gain_rate FROM table_name_29 WHERE long_term_gain_on_collectibles = "15%"
Find the number of male (sex is 'M') students who have some food type allery.
CREATE TABLE Has_allergy (Allergy VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Student (sex VARCHAR, StuID VARCHAR)
SELECT COUNT(*) FROM Student WHERE sex = "M" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food")
Name the points for with drawn of 0 and points of 88
CREATE TABLE table_name_33 (points_for VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT points_for FROM table_name_33 WHERE drawn = "0" AND points = "88"
What is the epicenter of the earthquake on March 2, 1825 with an unknown intensity?
CREATE TABLE table_name_10 (epicenter VARCHAR, intensity VARCHAR, date VARCHAR)
SELECT epicenter FROM table_name_10 WHERE intensity = "unknown" AND date = "march 2, 1825"
What district has counties represented by Baltimore county, a committee of health and government operations, and a first elected smaller than 2002?
CREATE TABLE table_name_86 (district VARCHAR, first_elected VARCHAR, counties_represented VARCHAR, committee VARCHAR)
SELECT district FROM table_name_86 WHERE counties_represented = "baltimore county" AND committee = "health and government operations" AND first_elected < 2002
What rowers have a 6:29.56 time?
CREATE TABLE table_name_64 (rowers VARCHAR, time VARCHAR)
SELECT rowers FROM table_name_64 WHERE time = "6:29.56"
What was the category of the award that John Frank Levey was nominated for after 1995?
CREATE TABLE table_name_73 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
SELECT category FROM table_name_73 WHERE nominee_s_ = "john frank levey" AND year > 1995
what is the somerset for the year 2009?
CREATE TABLE table_12043148_2 (somerset VARCHAR, year VARCHAR)
SELECT somerset FROM table_12043148_2 WHERE year = 2009
Name the proto-austrronesian for *pine, *papine
CREATE TABLE table_15568886_14 (proto_austronesian VARCHAR, proto_oceanic VARCHAR)
SELECT proto_austronesian FROM table_15568886_14 WHERE proto_oceanic = "*pine, *papine"
How many attended the game on 12/17 with stephen jackson as the leading scorer?
CREATE TABLE table_name_45 (attendance INTEGER, leading_scorer VARCHAR, date VARCHAR)
SELECT SUM(attendance) FROM table_name_45 WHERE leading_scorer = "stephen jackson" AND date = "12/17"
What is the name of episode # 10a?
CREATE TABLE table_2701851_2 (title VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_2701851_2 WHERE no_in_series = "10a"
Name the 2010 with tournament of grand slam tournaments
CREATE TABLE table_name_33 (tournament VARCHAR)
SELECT 2010 FROM table_name_33 WHERE tournament = "grand slam tournaments"
Tell me the lowest round for total combat 15
CREATE TABLE table_name_97 (round INTEGER, event VARCHAR)
SELECT MIN(round) FROM table_name_97 WHERE event = "total combat 15"
What is the First Performance when the status is past and the style was ballet, tap?
CREATE TABLE table_name_74 (first_performance VARCHAR, status VARCHAR, style VARCHAR)
SELECT first_performance FROM table_name_74 WHERE status = "past" AND style = "ballet, tap"
what is the team when the location attendace is boston garden and the series is 0-1?
CREATE TABLE table_name_31 (team VARCHAR, location_attendance VARCHAR, series VARCHAR)
SELECT team FROM table_name_31 WHERE location_attendance = "boston garden" AND series = "0-1"
Which name is on the of fc sète olympique de marseille?
CREATE TABLE table_name_39 (name VARCHAR, teams VARCHAR)
SELECT name FROM table_name_39 WHERE teams = "fc sète olympique de marseille"
Who won on May 2011?
CREATE TABLE table_name_76 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_76 WHERE date = "may 2011"
Which Position has Losses of 11, and a Played larger than 22?
CREATE TABLE table_name_45 (position INTEGER, losses VARCHAR, played VARCHAR)
SELECT SUM(position) FROM table_name_45 WHERE losses = 11 AND played > 22
What is the station number of the station at Dogsthorpe?
CREATE TABLE table_name_40 (station_number VARCHAR, location VARCHAR)
SELECT station_number FROM table_name_40 WHERE location = "dogsthorpe"
What call sign has ERP W greater than 197?
CREATE TABLE table_name_13 (call_sign VARCHAR, erp_w INTEGER)
SELECT call_sign FROM table_name_13 WHERE erp_w > 197
Where was the season that ended on June 25 located?
CREATE TABLE table_1949994_7 (country VARCHAR, end_date VARCHAR)
SELECT country FROM table_1949994_7 WHERE end_date = "June 25"
What is the name of the player picked before round 2?
CREATE TABLE table_name_75 (player VARCHAR, round INTEGER)
SELECT player FROM table_name_75 WHERE round < 2
What poll had Steve Poizner at 37%?
CREATE TABLE table_name_55 (poll_source VARCHAR, steve_poizner VARCHAR)
SELECT poll_source FROM table_name_55 WHERE steve_poizner = "37%"
Name the pinyin for تىزناپ
CREATE TABLE table_2008069_2 (pinyin VARCHAR, uyghur___k̢ona_yezik̢__ VARCHAR)
SELECT pinyin FROM table_2008069_2 WHERE uyghur___k̢ona_yezik̢__ = "تىزناپ"
For events with under 3 times played and fewer than 1 cut made, what is the total number of top-10 finishes?
CREATE TABLE table_name_24 (top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR)
SELECT COUNT(top_10) FROM table_name_24 WHERE events < 3 AND cuts_made < 1
What was the home team score when North Melbourne was the away team?
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_8 WHERE away_team = "north melbourne"
Where was the game played when the final score was 35-62?
CREATE TABLE table_name_71 (stadium VARCHAR, final_score VARCHAR)
SELECT stadium FROM table_name_71 WHERE final_score = "35-62"
Which Bronze has a Rank of 3, and a Silver larger than 0?
CREATE TABLE table_name_39 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MIN(bronze) FROM table_name_39 WHERE rank = 3 AND silver > 0
On what date were the Ottawa Swans the away team?
CREATE TABLE table_name_25 (date VARCHAR, away VARCHAR)
SELECT date FROM table_name_25 WHERE away = "ottawa swans"
What school year is vaucluse public school?
CREATE TABLE table_name_10 (years VARCHAR, school VARCHAR)
SELECT years FROM table_name_10 WHERE school = "vaucluse public school"
Who are the opponents in Massachusetts5 district?
CREATE TABLE table_1341522_24 (opponent VARCHAR, district VARCHAR)
SELECT opponent FROM table_1341522_24 WHERE district = "Massachusetts5"
Who was the driver who had a final position of 14?
CREATE TABLE table_name_19 (driver VARCHAR, fin_pos VARCHAR)
SELECT driver FROM table_name_19 WHERE fin_pos = "14"
How many goals scored against the opposing team occurred with more than 7 losses, less than 27 goals scored for the team and drawn more than 1?
CREATE TABLE table_name_85 (goals_against VARCHAR, drawn VARCHAR, lost VARCHAR, goals_for VARCHAR)
SELECT COUNT(goals_against) FROM table_name_85 WHERE lost > 7 AND goals_for < 27 AND drawn > 1
Who were the opponents in games before number 54?
CREATE TABLE table_name_41 (opponent VARCHAR, game INTEGER)
SELECT opponent FROM table_name_41 WHERE game < 54
On what Date was the 2011 LG Cup Competittion?
CREATE TABLE table_name_46 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_46 WHERE competition = "2011 lg cup"
If the Venue was princes park, which Date did the game take place on?
CREATE TABLE table_name_58 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_58 WHERE venue = "princes park"
What is the average operation beginning with a length of ampang and over 27 stations?
CREATE TABLE table_name_12 (began_operation INTEGER, length__km_ VARCHAR, stations VARCHAR)
SELECT AVG(began_operation) FROM table_name_12 WHERE length__km_ = "ampang" AND stations > 27
What year is listed that has points greater than 0 with a chassis labeled AGS JH22?
CREATE TABLE table_name_26 (year VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT year FROM table_name_26 WHERE points > 0 AND chassis = "ags jh22"
What is the away team score for South Melbourne?
CREATE TABLE table_name_86 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_86 WHERE away_team = "south melbourne"
What year was the player David Rose?
CREATE TABLE table_name_97 (year INTEGER, player VARCHAR)
SELECT SUM(year) FROM table_name_97 WHERE player = "david rose"
What is the name of the activity that has the most faculty members involved in?
CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR)
SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY COUNT(*) DESC LIMIT 1
What is the record when round of 32 is 0 and metro atlantic conference?
CREATE TABLE table_10722506_6 (record VARCHAR, round_of_32 VARCHAR, conference VARCHAR)
SELECT record FROM table_10722506_6 WHERE round_of_32 = 0 AND conference = "Metro Atlantic"
What is the record for the game when the Dallas Mavericks was the home team?
CREATE TABLE table_name_24 (record VARCHAR, home VARCHAR)
SELECT record FROM table_name_24 WHERE home = "dallas mavericks"
What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18?
CREATE TABLE table_name_26 (matches INTEGER, goalkeeper VARCHAR, goals VARCHAR)
SELECT MIN(matches) FROM table_name_26 WHERE goalkeeper = "josé bermúdez" AND goals > 18