question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
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 AVG(fuml) FROM table_name_13 WHERE att = 5 AND long > 7
Name the high points for march 7
CREATE TABLE table_15780049_8 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_15780049_8 WHERE date = "March 7"
What is the earliest year that has a Bristol engine?
CREATE TABLE table_name_98 (year INTEGER, engine VARCHAR)
SELECT MIN(year) FROM table_name_98 WHERE engine = "bristol"
For how many series were there 11.84 million watchers?
CREATE TABLE table_28561455_1 (no_in_series VARCHAR, us_viewers__million_ VARCHAR)
SELECT no_in_series FROM table_28561455_1 WHERE us_viewers__million_ = "11.84"
Which Score has a Place of t1, and a Player of scott simpson?
CREATE TABLE table_name_30 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT COUNT(score) FROM table_name_30 WHERE place = "t1" AND player = "scott simpson"
What is the Position of the Player with a Height of 2.11?
CREATE TABLE table_name_11 (position VARCHAR, height VARCHAR)
SELECT position FROM table_name_11 WHERE height = 2.11
How many leaders are there in the intergiro classification in stage 20?
CREATE TABLE table_12261714_2 (intergiro_classification VARCHAR, stage VARCHAR)
SELECT COUNT(intergiro_classification) FROM table_12261714_2 WHERE stage = "20"
How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737?
CREATE TABLE table_name_59 (baia_mare VARCHAR, zalau VARCHAR, electrica_north_transylvania VARCHAR, bistrita VARCHAR)
SELECT COUNT(baia_mare) FROM table_name_59 WHERE electrica_north_transylvania < 14.476 AND bistrita = 643 AND zalau < 737
What college/junior/club team did dmitri gorenko play for?
CREATE TABLE table_2781227_9 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT college_junior_club_team FROM table_2781227_9 WHERE player = "Dmitri Gorenko"
What Position has a Player named kenneth udjus?
CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_47 WHERE player = "kenneth udjus"
What is the language for Strong Heart?
CREATE TABLE table_name_64 (language VARCHAR, title VARCHAR)
SELECT language FROM table_name_64 WHERE title = "strong heart"
Name the most attendance
CREATE TABLE table_26401898_2 (attendance INTEGER)
SELECT MIN(attendance) FROM table_26401898_2
Tell me the games for men's 5000 metres
CREATE TABLE table_name_18 (games VARCHAR, event VARCHAR)
SELECT games FROM table_name_18 WHERE event = "men's 5000 metres"
What transfer window has bra as the country, with £3.4m as the transfer fee?
CREATE TABLE table_name_79 (transfer_window VARCHAR, country VARCHAR, transfer_fee VARCHAR)
SELECT transfer_window FROM table_name_79 WHERE country = "bra" AND transfer_fee = "£3.4m"
Name the viewers for 1.2/4 rating
CREATE TABLE table_22822468_2 (viewers__millions_ VARCHAR, rating VARCHAR)
SELECT viewers__millions_ FROM table_22822468_2 WHERE rating / SHARE(18 AS –49) = 1.2 / 4
Which team was the opponent that had a location of Madison Square Garden with a score of 87-83?
CREATE TABLE table_name_10 (team VARCHAR, location_attendance VARCHAR, score VARCHAR)
SELECT team FROM table_name_10 WHERE location_attendance = "madison square garden" AND score = "87-83"
What was the score on November 25?
CREATE TABLE table_13762472_3 (score VARCHAR, date VARCHAR)
SELECT score FROM table_13762472_3 WHERE date = "November 25"
What is listed under Played that has a Club of Morriston RFC?
CREATE TABLE table_name_35 (played VARCHAR, club VARCHAR)
SELECT played FROM table_name_35 WHERE club = "morriston rfc"
What family had a no.overall of UK10?
CREATE TABLE table_19897294_4 (family_families VARCHAR, no_overall VARCHAR)
SELECT family_families FROM table_19897294_4 WHERE no_overall = "UK10"
Which Constellation has an Apparent magnitude larger that 7.7, and an NGC number of 7777
CREATE TABLE table_name_60 (constellation VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR)
SELECT constellation FROM table_name_60 WHERE apparent_magnitude > 7.7 AND ngc_number = 7777
Who was the home team when the away team was fulham?
CREATE TABLE table_24887326_7 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_24887326_7 WHERE away_team = "Fulham"
What is the week 1 with candice hunnicutt in week 3?
CREATE TABLE table_name_53 (week_1 VARCHAR, week_3 VARCHAR)
SELECT week_1 FROM table_name_53 WHERE week_3 = "candice hunnicutt"
What is the name of the airport in the city of Kota Kinabalu?
CREATE TABLE table_name_85 (airport VARCHAR, city VARCHAR)
SELECT airport FROM table_name_85 WHERE city = "kota kinabalu"
What is the cfl team that has a position of ol?
CREATE TABLE table_10975034_5 (cfl_team VARCHAR, position VARCHAR)
SELECT cfl_team FROM table_10975034_5 WHERE position = "OL"
What is the maximal number of people that attended any of these games?
CREATE TABLE table_21436373_10 (attendance INTEGER)
SELECT MAX(attendance) FROM table_21436373_10
When 6.66 is the amount of viewers what is the lowest production code?
CREATE TABLE table_24781886_2 (production_code INTEGER, viewers VARCHAR)
SELECT MIN(production_code) FROM table_24781886_2 WHERE viewers = "6.66"
What was the final position of Arena Motorsports International?
CREATE TABLE table_name_95 (pos VARCHAR, team VARCHAR)
SELECT pos FROM table_name_95 WHERE team = "arena motorsports international"
with delivery date of 2001 2001 what is gross tonnage?
CREATE TABLE table_name_35 (gross_tonnage INTEGER, delivery_date VARCHAR)
SELECT AVG(gross_tonnage) FROM table_name_35 WHERE delivery_date = "2001 2001"
What is the lowest attendance last year when more than 176 were hosted?
CREATE TABLE table_name_87 (last_year INTEGER, hosted INTEGER)
SELECT MIN(last_year) FROM table_name_87 WHERE hosted > 176
What is the pick of wiley college?
CREATE TABLE table_name_70 (pick VARCHAR, college VARCHAR)
SELECT pick FROM table_name_70 WHERE college = "wiley"
Which length has a Bullet of 6.5 (.257)?
CREATE TABLE table_name_26 (length VARCHAR, bullet VARCHAR)
SELECT length FROM table_name_26 WHERE bullet = "6.5 (.257)"
How many Opponents have a Result of loss, and a Game smaller than 49, and Nuggets points of 108?
CREATE TABLE table_name_34 (opponents VARCHAR, nuggets_points VARCHAR, result VARCHAR, game VARCHAR)
SELECT COUNT(opponents) FROM table_name_34 WHERE result = "loss" AND game < 49 AND nuggets_points = 108
How many episodes were written by Warren Leight?
CREATE TABLE table_29154676_1 (season_no VARCHAR, written_by VARCHAR)
SELECT COUNT(season_no) FROM table_29154676_1 WHERE written_by = "Warren Leight"
What is the player from Australia's rank with more than 16 wins?
CREATE TABLE table_name_63 (rank VARCHAR, wins VARCHAR, country VARCHAR)
SELECT COUNT(rank) FROM table_name_63 WHERE wins > 16 AND country = "australia"
what's the naturalisation by marriage with regbeingtration of a minor child being 114
CREATE TABLE table_11214212_1 (naturalisation_by_marriage VARCHAR, registration_of_a_minor_child VARCHAR)
SELECT naturalisation_by_marriage FROM table_11214212_1 WHERE registration_of_a_minor_child = 114
What is the sum of Against values for teams with 5 losses and 0 draws?
CREATE TABLE table_name_8 (against INTEGER, losses VARCHAR, draws VARCHAR)
SELECT SUM(against) FROM table_name_8 WHERE losses = 5 AND draws < 0
What number is Tony Dixon?
CREATE TABLE table_name_22 (number VARCHAR, name VARCHAR)
SELECT number FROM table_name_22 WHERE name = "tony dixon"
Where is Croatian spoken?
CREATE TABLE table_name_41 (place VARCHAR, language VARCHAR)
SELECT place FROM table_name_41 WHERE language = "croatian"
What score has a game greater than 11 on October 30?
CREATE TABLE table_name_1 (score VARCHAR, game VARCHAR, october VARCHAR)
SELECT score FROM table_name_1 WHERE game > 11 AND october = 30
Who did they play on August 12?
CREATE TABLE table_name_48 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_48 WHERE date = "august 12"
How many tree species are listed when the total plant species is 258?
CREATE TABLE table_16577990_1 (tree_species VARCHAR, total_plant_species VARCHAR)
SELECT tree_species FROM table_16577990_1 WHERE total_plant_species = 258
What is the rank of the rider whose Tues 31 May time was 19' 02.34 118.903mph?
CREATE TABLE table_29218221_2 (rank VARCHAR, tues_31_may VARCHAR)
SELECT rank FROM table_29218221_2 WHERE tues_31_may = "19' 02.34 118.903mph"
How much were the f/laps if poles is higher than 1.0 during 2008?
CREATE TABLE table_26998693_1 (f_laps VARCHAR, poles VARCHAR, season VARCHAR)
SELECT f_laps FROM table_26998693_1 WHERE poles > 1.0 AND season = 2008
Which round has more than 79 overall and a position of QB?
CREATE TABLE table_name_60 (round VARCHAR, position VARCHAR, overall VARCHAR)
SELECT round FROM table_name_60 WHERE position = "qb" AND overall > 79
Who were the initial owners of Wasco in 1858?
CREATE TABLE table_name_57 (initial_owners VARCHAR, year_built VARCHAR, name VARCHAR)
SELECT initial_owners FROM table_name_57 WHERE year_built = 1858 AND name = "wasco"
What is the constituency number with a reserved for ( SC / ST /None) of none, for Katol?
CREATE TABLE table_name_65 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT constituency_number FROM table_name_65 WHERE reserved_for___sc___st__none_ = "none" AND name = "katol"
What is the name of the cornerback from 1997?
CREATE TABLE table_name_42 (player_name VARCHAR, position VARCHAR, year VARCHAR)
SELECT player_name FROM table_name_42 WHERE position = "cornerback" AND year = 1997
What are the names of the workshop groups that have bookings with status code "stop"?
CREATE TABLE Bookings (Workshop_Group_ID VARCHAR, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR)
SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = "stop"
How many people were present at the July 10 game?
CREATE TABLE table_21796261_4 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_21796261_4 WHERE date = "July 10"
What school did draft pick from round 3 go to?
CREATE TABLE table_name_6 (school VARCHAR, round VARCHAR)
SELECT school FROM table_name_6 WHERE round = 3
What is the pts for 2004, and the ro event?
CREATE TABLE table_name_6 (pts VARCHAR, year VARCHAR, event VARCHAR)
SELECT pts FROM table_name_6 WHERE year = "2004" AND event = "ro"
What school did the player that has been in Toronto from 2012-present come from?
CREATE TABLE table_10015132_1 (school_club_team VARCHAR, years_in_toronto VARCHAR)
SELECT school_club_team FROM table_10015132_1 WHERE years_in_toronto = "2012-present"
What is Date, when Opposing Teams is "South Africa", and when Venus is "Vodacom Park , Bloemfontein"?
CREATE TABLE table_name_22 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR)
SELECT date FROM table_name_22 WHERE opposing_teams = "south africa" AND venue = "vodacom park , bloemfontein"
Who was the opponent at Lindsey Nelson Stadium?
CREATE TABLE table_name_73 (opponent VARCHAR, site_stadium VARCHAR)
SELECT opponent FROM table_name_73 WHERE site_stadium = "lindsey nelson stadium"
Where is Interlake located?
CREATE TABLE table_13759592_2 (location VARCHAR, institution VARCHAR)
SELECT location FROM table_13759592_2 WHERE institution = "Interlake"
What station owns Moody Bible Institute
CREATE TABLE table_134729_3 (format VARCHAR, owner VARCHAR)
SELECT format FROM table_134729_3 WHERE owner = "Moody Bible Institute"
What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia?
CREATE TABLE table_name_79 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_79 WHERE total < 2 AND bronze < 1 AND nation = "yugoslavia"
Which Music has a Points Jury of 18 (5,5,4,4)?
CREATE TABLE table_name_32 (music VARCHAR, points_jury VARCHAR)
SELECT music FROM table_name_32 WHERE points_jury = "18 (5,5,4,4)"
What was the most Nepalis admitted when fewer than 1,896 Bangladeshis were admitted?
CREATE TABLE table_name_67 (nepalis_admitted INTEGER, bangladeshis_admitted INTEGER)
SELECT MAX(nepalis_admitted) FROM table_name_67 WHERE bangladeshis_admitted < 1 OFFSET 896
What was the score on March 3, 2008?
CREATE TABLE table_name_57 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_57 WHERE date = "march 3, 2008"
Name the location attendance for score of 65-72
CREATE TABLE table_17103645_10 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_17103645_10 WHERE score = "65-72"
Which birthplace's height in inches was more than 192 when the position was d and the birthday was April 5, 1983?
CREATE TABLE table_name_70 (birthplace VARCHAR, birthdate VARCHAR, height__in_ VARCHAR, position VARCHAR)
SELECT birthplace FROM table_name_70 WHERE height__in_ > 192 AND position = "d" AND birthdate = "april 5, 1983"
What is the lowest number of played games of the team with less than 12 drawns, 41 against, and less than 69 points?
CREATE TABLE table_name_58 (played INTEGER, points VARCHAR, drawn VARCHAR, against VARCHAR)
SELECT MIN(played) FROM table_name_58 WHERE drawn < 12 AND against = 41 AND points < 69
In what year was the score 204 (-6)?
CREATE TABLE table_name_3 (year VARCHAR, score VARCHAR)
SELECT year FROM table_name_3 WHERE score = "204 (-6)"
How many million U.S. viewers watched the episode that Daniel H. Forer directed?
CREATE TABLE table_24223834_3 (us_viewers__in_millions_ VARCHAR, directed_by VARCHAR)
SELECT us_viewers__in_millions_ FROM table_24223834_3 WHERE directed_by = "Daniel H. Forer"
What is the highest up:down ratio with 4 mbit/s upstream?
CREATE TABLE table_name_72 (up INTEGER, upstream VARCHAR)
SELECT MAX(up) AS :down_ratio FROM table_name_72 WHERE upstream = "4 mbit/s"
What is the name when weight shows head coach: Aleksandr Kabanov?
CREATE TABLE table_name_70 (name VARCHAR, weight VARCHAR)
SELECT name FROM table_name_70 WHERE weight = "head coach: aleksandr kabanov"
Which Laps has a Points of lead changes: 13 between 8 drivers?
CREATE TABLE table_name_99 (laps VARCHAR, points VARCHAR)
SELECT laps FROM table_name_99 WHERE points = "lead changes: 13 between 8 drivers"
Name the total number for score l 110-112
CREATE TABLE table_22871239_8 (_number VARCHAR, score VARCHAR)
SELECT COUNT(_number) FROM table_22871239_8 WHERE score = "L 110-112"
Frequency MHz of 88.7 had what average erp w?
CREATE TABLE table_name_50 (erp_w INTEGER, frequency_mhz VARCHAR)
SELECT AVG(erp_w) FROM table_name_50 WHERE frequency_mhz = 88.7
Who is the athlete with a run 1 less than 54.13 and a 55.21 run 3?
CREATE TABLE table_name_47 (athlete VARCHAR, run_1 VARCHAR, run_3 VARCHAR)
SELECT athlete FROM table_name_47 WHERE run_1 < 54.13 AND run_3 = 55.21
What is the League a for 1908–1928?
CREATE TABLE table_name_30 (league_a VARCHAR, years VARCHAR)
SELECT league_a FROM table_name_30 WHERE years = "1908–1928"
How many episodes aired in Region 2 beginning May 26, 2008?
CREATE TABLE table_1067134_1 (_number_of_ep INTEGER, region_2 VARCHAR)
SELECT MIN(_number_of_ep) FROM table_1067134_1 WHERE region_2 = "May 26, 2008"
what player has To par of –3, and a Score of 73-68=141?
CREATE TABLE table_name_62 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_62 WHERE to_par = "–3" AND score = 73 - 68 = 141
How many silver medals were won the year 7 gold medals were won?
CREATE TABLE table_name_43 (silver VARCHAR, gold VARCHAR)
SELECT silver FROM table_name_43 WHERE gold = "7"
Which score has a Surface of hardcourt, and a Date of september 30, 1984?
CREATE TABLE table_name_39 (score VARCHAR, surface VARCHAR, date VARCHAR)
SELECT score FROM table_name_39 WHERE surface = "hardcourt" AND date = "september 30, 1984"
How many matches played are associated with 20 losses?
CREATE TABLE table_name_38 (played VARCHAR, lost VARCHAR)
SELECT played FROM table_name_38 WHERE lost = "20"
Name the average Top 5 which has a Position of 52nd with a Year smaller than 2000?
CREATE TABLE table_name_29 (top_5 INTEGER, position VARCHAR, year VARCHAR)
SELECT AVG(top_5) FROM table_name_29 WHERE position = "52nd" AND year < 2000
Which Semifinalists have a Finalist of andrei chesnokov?
CREATE TABLE table_name_82 (semifinalists VARCHAR, finalist VARCHAR)
SELECT semifinalists FROM table_name_82 WHERE finalist = "andrei chesnokov"
Which name was in a position less than 4 with 2 losses?
CREATE TABLE table_name_78 (name VARCHAR, position VARCHAR, lost VARCHAR)
SELECT name FROM table_name_78 WHERE position < 4 AND lost = 2
Which Nationality has a Position of left wing?
CREATE TABLE table_name_99 (nationality VARCHAR, position VARCHAR)
SELECT nationality FROM table_name_99 WHERE position = "left wing"
List the name of artworks whose type is not "Program Talent Show".
CREATE TABLE artwork (Name VARCHAR, TYPE VARCHAR)
SELECT Name FROM artwork WHERE TYPE <> "Program Talent Show"
In what district was keith ellison the incumbent?
CREATE TABLE table_25030512_26 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_25030512_26 WHERE incumbent = "Keith Ellison"
How many shader models have a 900 core clock ( mhz )?
CREATE TABLE table_25839957_5 (shader_model VARCHAR, core_clock___mhz__ VARCHAR)
SELECT COUNT(shader_model) FROM table_25839957_5 WHERE core_clock___mhz__ = "900"
What was the scorecard when robin uthappa mark boucher jacques kallis was the batsmen?
CREATE TABLE table_22962745_35 (scorecard VARCHAR, batsmen VARCHAR)
SELECT scorecard FROM table_22962745_35 WHERE batsmen = "Robin Uthappa Mark Boucher Jacques Kallis"
What is the platform of the 2010 game with Shuichiro Nishiya as director?
CREATE TABLE table_name_5 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR)
SELECT platform_s_ FROM table_name_5 WHERE year = 2010 AND director = "shuichiro nishiya"
What is the home ground in region NZL?
CREATE TABLE table_name_40 (home_ground VARCHAR, region VARCHAR)
SELECT home_ground FROM table_name_40 WHERE region = "nzl"
What Romani word has the same meaning as the Persian word dah?
CREATE TABLE table_name_56 (romani VARCHAR, persian VARCHAR)
SELECT romani FROM table_name_56 WHERE persian = "dah"
For the event with index f7, what is the status?
CREATE TABLE table_name_23 (status VARCHAR, index VARCHAR)
SELECT status FROM table_name_23 WHERE index = "f7"
What was the highest attendance when the result was L 6-28?
CREATE TABLE table_name_40 (attendance INTEGER, result VARCHAR)
SELECT MAX(attendance) FROM table_name_40 WHERE result = "l 6-28"
What is the 2010 value with a 2r in 2008 and A in 2013?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT 2010 FROM table_name_83 WHERE 2008 = "2r" AND 2013 = "a"
What date was the attendance 82,500?
CREATE TABLE table_name_81 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_81 WHERE attendance = "82,500"
What is the data limit for vodafone?
CREATE TABLE table_name_8 (data_limit__gb VARCHAR, company VARCHAR)
SELECT data_limit__gb FROM table_name_8 WHERE company = "vodafone"
What was the format for catalog 660-51-015?
CREATE TABLE table_name_51 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_51 WHERE catalog = "660-51-015"
What Player in 2005 Wimbledon had less than 5 Sets?
CREATE TABLE table_name_12 (player VARCHAR, sets VARCHAR, event VARCHAR)
SELECT player FROM table_name_12 WHERE sets < 5 AND event = "2005 wimbledon"
What is the prize money for the final round?
CREATE TABLE table_name_58 (prize_money VARCHAR, round VARCHAR)
SELECT prize_money FROM table_name_58 WHERE round = "final"
who had the high rebounds when the team was @ toronto?
CREATE TABLE table_name_9 (high_rebounds VARCHAR, team VARCHAR)
SELECT high_rebounds FROM table_name_9 WHERE team = "@ toronto"
What is the total number of Bronze when gold is more than 1 and nation is total?
CREATE TABLE table_name_93 (bronze VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT COUNT(bronze) FROM table_name_93 WHERE gold > 1 AND nation = "total"
What is the home team score that played the away team of north melbourne?
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_73 WHERE away_team = "north melbourne"
How many matches had 11 wickets?
CREATE TABLE table_16570286_4 (matches INTEGER, wickets VARCHAR)
SELECT MAX(matches) FROM table_16570286_4 WHERE wickets = 11