question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
In what district was incumbent first elected in 1938?
CREATE TABLE table_1342013_42 (district VARCHAR, first_elected VARCHAR)
SELECT district FROM table_1342013_42 WHERE first_elected = 1938
Which Status has a Unit of daohugou beds?
CREATE TABLE table_name_55 (status VARCHAR, unit VARCHAR)
SELECT status FROM table_name_55 WHERE unit = "daohugou beds"
What is the record of the game with a 110-106 score?
CREATE TABLE table_name_1 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_1 WHERE score = "110-106"
In which district is the incumbent Carl W. Rich?
CREATE TABLE table_1341865_37 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341865_37 WHERE incumbent = "Carl W. Rich"
How high is the Goldin Finance 117 building currently being build in China?
CREATE TABLE table_name_4 (pinnacle_height_planned VARCHAR, country VARCHAR, name VARCHAR)
SELECT pinnacle_height_planned FROM table_name_4 WHERE country = "china" AND name = "goldin finance 117"
What is the frequency for the station with the branding of 94dot3 home radio Palawan?
CREATE TABLE table_name_74 (frequency VARCHAR, branding VARCHAR)
SELECT frequency FROM table_name_74 WHERE branding = "94dot3 home radio palawan"
What was the attendance when the score was 8–7?
CREATE TABLE table_name_16 (attendance INTEGER, score VARCHAR)
SELECT SUM(attendance) FROM table_name_16 WHERE score = "8–7"
What is the highest L of the tournament?
CREATE TABLE table_29542147_2 (l INTEGER)
SELECT MAX(l) FROM table_29542147_2
How many goals did the club from Hawthorn score in the 1971 season?
CREATE TABLE table_name_5 (goals VARCHAR, club VARCHAR, season VARCHAR)
SELECT goals FROM table_name_5 WHERE club = "hawthorn" AND season = "1971"
Which catalogue has a date of 1987?
CREATE TABLE table_name_63 (catalogue VARCHAR, date VARCHAR)
SELECT catalogue FROM table_name_63 WHERE date = "1987"
Find the number of players for each hand type.
CREATE TABLE players (hand VARCHAR)
SELECT COUNT(*), hand FROM players GROUP BY hand
On what date was the attendance a bye?
CREATE TABLE table_name_44 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_44 WHERE attendance = "bye"
When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?
CREATE TABLE table_14319023_2 (boys_singles VARCHAR, mixed_doubles VARCHAR)
SELECT boys_singles FROM table_14319023_2 WHERE mixed_doubles = "Danny Bawa Chrisnanta Debby Susanto"
what team scored on december 19
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_65 WHERE date = "december 19"
How many laps did the rider Alex Baldolini take?
CREATE TABLE table_name_94 (laps INTEGER, rider VARCHAR)
SELECT SUM(laps) FROM table_name_94 WHERE rider = "alex baldolini"
What is under drafted when pro team is arizona cardinals?
CREATE TABLE table_1198175_1 (drafted VARCHAR, pro_team VARCHAR)
SELECT drafted FROM table_1198175_1 WHERE pro_team = "Arizona Cardinals"
how many models produced where the plant is castle bromwich?
CREATE TABLE table_250309_1 (models_produced VARCHAR, plant VARCHAR)
SELECT COUNT(models_produced) FROM table_250309_1 WHERE plant = "Castle Bromwich"
If in English it's house, what is it in proto-semitic?
CREATE TABLE table_26919_7 (proto_semitic VARCHAR, english VARCHAR)
SELECT proto_semitic FROM table_26919_7 WHERE english = "house"
Which network has a play-by-play announcer of John Wells?
CREATE TABLE table_name_36 (network VARCHAR, play_by_play VARCHAR)
SELECT network FROM table_name_36 WHERE play_by_play = "john wells"
What was the air date of the episode that has a production code of 5aky13?
CREATE TABLE table_26826304_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_26826304_1 WHERE production_code = "5AKY13"
What is the captain's name of team Leeds United?
CREATE TABLE table_name_86 (captain VARCHAR, team VARCHAR)
SELECT captain FROM table_name_86 WHERE team = "leeds united"
Who was the opponent in a week below 3 on September 23, 1960?
CREATE TABLE table_name_28 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_28 WHERE week < 3 AND date = "september 23, 1960"
What is the 2003 value for the 2008 grand slam tournaments?
CREATE TABLE table_name_87 (Id VARCHAR)
SELECT 2003 FROM table_name_87 WHERE 2008 = "grand slam tournaments"
What year was class of undine?
CREATE TABLE table_name_67 (year_made VARCHAR, class VARCHAR)
SELECT year_made FROM table_name_67 WHERE class = "undine"
What;s the total of Longitude with an ANSI code of 1036573 and has Water (sqmi) that is smaller than 0.404?
CREATE TABLE table_name_1 (longitude VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR)
SELECT COUNT(longitude) FROM table_name_1 WHERE ansi_code = 1036573 AND water__sqmi_ < 0.404
What type of state has a royal house of ji and has a ruler?
CREATE TABLE table_name_54 (type VARCHAR, royal_house VARCHAR, title VARCHAR)
SELECT type FROM table_name_54 WHERE royal_house = "ji" AND title = "ruler"
How many grand final dual television commentators were there in 1961?
CREATE TABLE table_1368649_9 (grand_final_dual_television_commentator VARCHAR, year_s_ VARCHAR)
SELECT COUNT(grand_final_dual_television_commentator) FROM table_1368649_9 WHERE year_s_ = 1961
Which game is on the date October 16?
CREATE TABLE table_name_11 (game INTEGER, date VARCHAR)
SELECT AVG(game) FROM table_name_11 WHERE date = "october 16"
What's the result of the game played in Belgrade?
CREATE TABLE table_name_70 (results¹ VARCHAR, city VARCHAR)
SELECT results¹ FROM table_name_70 WHERE city = "belgrade"
What is the average number of electorates (2009) when the district is indore?
CREATE TABLE table_name_58 (number_of_electorates__2009_ INTEGER, district VARCHAR)
SELECT AVG(number_of_electorates__2009_) FROM table_name_58 WHERE district = "indore"
Who had the highest assists during the game on February 22?
CREATE TABLE table_name_28 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_28 WHERE date = "february 22"
Who was picked before 149 in round 9?
CREATE TABLE table_name_64 (player VARCHAR, pick VARCHAR, round VARCHAR)
SELECT player FROM table_name_64 WHERE pick < 149 AND round = 9
when was the premiere when a 3.3 millions of North American watched the episode whose writer was Rob Wright?
CREATE TABLE table_21313498_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_21313498_1 WHERE us_viewers__millions_ = "3.3" AND written_by = "Rob Wright"
what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38?
CREATE TABLE table_name_50 (goals_for INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR, losses VARCHAR)
SELECT SUM(goals_for) FROM table_name_50 WHERE position < 8 AND losses < 10 AND goals_against < 35 AND played < 38
Which Score has an Opponent in the final of mehdi tahiri?
CREATE TABLE table_name_96 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_96 WHERE opponent_in_the_final = "mehdi tahiri"
What is the average number of Byes when there were less than 0 losses and were against 1247?
CREATE TABLE table_name_75 (byes INTEGER, against VARCHAR, draws VARCHAR)
SELECT AVG(byes) FROM table_name_75 WHERE against = 1247 AND draws < 0
What was the average crowd size when the away team was South Melbourne?
CREATE TABLE table_name_63 (crowd INTEGER, away_team VARCHAR)
SELECT AVG(crowd) FROM table_name_63 WHERE away_team = "south melbourne"
What is the home team when kwong wah was the away team?
CREATE TABLE table_name_41 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_41 WHERE away_team = "kwong wah"
How many silver medals are there with 3 gold medals at a rank above 1?
CREATE TABLE table_name_40 (silver VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT COUNT(silver) FROM table_name_40 WHERE gold = 3 AND rank > 1
What is the result of the contest with over 1 scored?
CREATE TABLE table_name_30 (result VARCHAR, scored INTEGER)
SELECT result FROM table_name_30 WHERE scored > 1
When was the home team Essendon?
CREATE TABLE table_29126507_1 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_29126507_1 WHERE home_team = "Essendon"
What was the result of the game when they were 2-1?
CREATE TABLE table_20746062_1 (result VARCHAR, record VARCHAR)
SELECT result FROM table_20746062_1 WHERE record = "2-1"
How many songs received a 10 from Goodman and were rated by Tonioli?
CREATE TABLE table_1014319_1 (tonioli VARCHAR, goodman VARCHAR)
SELECT COUNT(tonioli) FROM table_1014319_1 WHERE goodman = "10"
When is the original air date written by sean whitesell?
CREATE TABLE table_22904752_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_22904752_1 WHERE written_by = "Sean Whitesell"
What is the goal average 1 for teams that lost 9 games?
CREATE TABLE table_17357929_1 (goal_average_1 VARCHAR, lost VARCHAR)
SELECT goal_average_1 FROM table_17357929_1 WHERE lost = 9
Which Player had a Date of 31 jan. 2008, and a Transfer fee of £3.87m?
CREATE TABLE table_name_44 (player VARCHAR, date VARCHAR, transfer_fee VARCHAR)
SELECT player FROM table_name_44 WHERE date = "31 jan. 2008" AND transfer_fee = "£3.87m"
What is the total round of the tight end position player?
CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR)
SELECT COUNT(round) FROM table_name_66 WHERE position = "tight end"
Name the disposition for date built is march 1909
CREATE TABLE table_1748444_1 (disposition VARCHAR, date_built VARCHAR)
SELECT disposition FROM table_1748444_1 WHERE date_built = "March 1909"
What date has dallas cowboys as the opponent?
CREATE TABLE table_name_91 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_91 WHERE opponent = "dallas cowboys"
what was the attendance at the home venue with result w 3-1?
CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, result VARCHAR)
SELECT MAX(attendance) FROM table_name_99 WHERE venue = "home" AND result = "w 3-1"
What is the sum of crowd(s) when north melbourne is away?
CREATE TABLE table_name_92 (crowd INTEGER, away_team VARCHAR)
SELECT SUM(crowd) FROM table_name_92 WHERE away_team = "north melbourne"
What is the Arena o Kazan?
CREATE TABLE table_name_19 (arena__capacity_ VARCHAR, town VARCHAR)
SELECT arena__capacity_ FROM table_name_19 WHERE town = "kazan"
How many draws for avia band with over 22 points?
CREATE TABLE table_name_87 (draw VARCHAR, points VARCHAR, artist VARCHAR)
SELECT COUNT(draw) FROM table_name_87 WHERE points > 22 AND artist = "avia band"
Name the dar for cinese
CREATE TABLE table_15887683_8 (dar VARCHAR, language VARCHAR)
SELECT dar FROM table_15887683_8 WHERE language = "cinese"
What position did the MLS team metrostars pick?
CREATE TABLE table_name_84 (position VARCHAR, mls_team VARCHAR)
SELECT position FROM table_name_84 WHERE mls_team = "metrostars"
Who was the runner-up in the tournament in London?
CREATE TABLE table_name_86 (runner_up VARCHAR, tournament VARCHAR)
SELECT runner_up FROM table_name_86 WHERE tournament = "london"
What were the July (°C) temperatures when the July (°F) temperatures were 71/55?
CREATE TABLE table_21980_1 (july__°c_ VARCHAR, july__°f_ VARCHAR)
SELECT july__°c_ FROM table_21980_1 WHERE july__°f_ = "71/55"
How many votes for brown in the place that had 84.1% for coakley?
CREATE TABLE table_24115349_6 (brown_votes INTEGER, coakley__percentage VARCHAR)
SELECT MAX(brown_votes) FROM table_24115349_6 WHERE coakley__percentage = "84.1%"
What is the average Frequency, when Type is "Norteño", and when Brand is "La Cotorra"?
CREATE TABLE table_name_87 (frequency INTEGER, type VARCHAR, brand VARCHAR)
SELECT AVG(frequency) FROM table_name_87 WHERE type = "norteño" AND brand = "la cotorra"
What is the year that a record was recorded with Libor Pesek as conductor?
CREATE TABLE table_name_14 (year_of_recording INTEGER, conductor VARCHAR)
SELECT SUM(year_of_recording) FROM table_name_14 WHERE conductor = "libor pesek"
What is the mens singles of 2008?
CREATE TABLE table_12104319_1 (mens_singles VARCHAR, year VARCHAR)
SELECT mens_singles FROM table_12104319_1 WHERE year = 2008
Name the season for position 4th
CREATE TABLE table_25375093_1 (season VARCHAR, position VARCHAR)
SELECT COUNT(season) FROM table_25375093_1 WHERE position = "4th"
If the census ranking is 231 of 5,008, what was the population?
CREATE TABLE table_171236_1 (population VARCHAR, census_ranking VARCHAR)
SELECT population FROM table_171236_1 WHERE census_ranking = "231 of 5,008"
What was the date administered from a source of Rasmussen Reports and a lead margin over 32?
CREATE TABLE table_name_19 (dates_administered VARCHAR, poll_source VARCHAR, lead_margin VARCHAR)
SELECT dates_administered FROM table_name_19 WHERE poll_source = "rasmussen reports" AND lead_margin > 32
Name the D 49 √ for when D 46 √ of i 1 @
CREATE TABLE table_name_24 (d_49_√ VARCHAR, d_46_√ VARCHAR)
SELECT d_49_√ FROM table_name_24 WHERE d_46_√ = "i 1 @"
What is the lowest rank for El Paso Natural Gas Company Building?
CREATE TABLE table_name_86 (rank INTEGER, name VARCHAR)
SELECT MIN(rank) FROM table_name_86 WHERE name = "el paso natural gas company building"
How many votes were taken when the outcome was "6th voted out day 12"?
CREATE TABLE table_1272844_2 (vote VARCHAR, finish VARCHAR)
SELECT COUNT(vote) FROM table_1272844_2 WHERE finish = "6th voted Out Day 12"
What is the average value of ERP W in Beardstown, Illinois for a frequency greater than 93.5?
CREATE TABLE table_name_70 (erp_w INTEGER, city_of_license VARCHAR, frequency_mhz VARCHAR)
SELECT AVG(erp_w) FROM table_name_70 WHERE city_of_license = "beardstown, illinois" AND frequency_mhz > 93.5
What's Eli Bremer's fencing score?
CREATE TABLE table_12407546_1 (fencing VARCHAR, athlete__noc_ VARCHAR)
SELECT fencing FROM table_12407546_1 WHERE athlete__noc_ = "Eli Bremer"
Report the number of students in each classroom.
CREATE TABLE list (classroom VARCHAR)
SELECT classroom, COUNT(*) FROM list GROUP BY classroom
What is the series episode number of the episode with production code 303?
CREATE TABLE table_16581695_4 (no_in_series VARCHAR, production_code VARCHAR)
SELECT no_in_series FROM table_16581695_4 WHERE production_code = "303"
What is Points Against, when Try Diff is +22?
CREATE TABLE table_name_88 (points_against VARCHAR, try_diff VARCHAR)
SELECT points_against FROM table_name_88 WHERE try_diff = "+22"
Which airport is in Tokyo and has an ICAO of rjtt?
CREATE TABLE table_name_73 (airport VARCHAR, city VARCHAR, icao VARCHAR)
SELECT airport FROM table_name_73 WHERE city = "tokyo" AND icao = "rjtt"
What is the rank of the team with 0 gold and less than 0 silvers?
CREATE TABLE table_name_72 (rank INTEGER, gold VARCHAR, silver VARCHAR)
SELECT SUM(rank) FROM table_name_72 WHERE gold = 0 AND silver < 0
Who got the time of 7:52.04?
CREATE TABLE table_name_41 (swimmer VARCHAR, time VARCHAR)
SELECT swimmer FROM table_name_41 WHERE time = "7:52.04"
Who were the opponents in the Rome championship?
CREATE TABLE table_24901152_4 (opponents VARCHAR, championship VARCHAR)
SELECT opponents FROM table_24901152_4 WHERE championship = "Rome"
What is the sum of losses when draws are larger than 0?
CREATE TABLE table_name_11 (losses VARCHAR, draws INTEGER)
SELECT COUNT(losses) FROM table_name_11 WHERE draws > 0
In which county is the swann covered bridge located?
CREATE TABLE table_name_4 (county VARCHAR, name VARCHAR)
SELECT county FROM table_name_4 WHERE name = "swann covered bridge"
What is the total number of Byes, when South West DFL is "Coleraine", and when Wins is less than 12?
CREATE TABLE table_name_80 (byes VARCHAR, south_west_dfl VARCHAR, wins VARCHAR)
SELECT COUNT(byes) FROM table_name_80 WHERE south_west_dfl = "coleraine" AND wins < 12
What time that is networked has an ad freq of 20 minutes until 7pm?
CREATE TABLE table_name_13 (time VARCHAR, local_networked VARCHAR, ad_freq VARCHAR)
SELECT time FROM table_name_13 WHERE local_networked = "networked" AND ad_freq = "20 minutes until 7pm"
What is the Prize, when the Event is Ept Deauville?
CREATE TABLE table_name_10 (prize VARCHAR, event VARCHAR)
SELECT prize FROM table_name_10 WHERE event = "ept deauville"
What is the sum of all rounds where a Tennessee State player with an overall rank less than 261 was drafted?
CREATE TABLE table_name_95 (round VARCHAR, school_club_team VARCHAR, overall VARCHAR)
SELECT COUNT(round) FROM table_name_95 WHERE school_club_team = "tennessee state" AND overall < 261
What is Mark Joseph Kong's pick?
CREATE TABLE table_name_15 (pick INTEGER, player VARCHAR)
SELECT AVG(pick) FROM table_name_15 WHERE player = "mark joseph kong"
Which top ten, having less than 12 cuts less than 2 top five, and events smaller than 14, is the highest?
CREATE TABLE table_name_92 (top_10 INTEGER, events VARCHAR, cuts_made VARCHAR, top_5 VARCHAR)
SELECT MAX(top_10) FROM table_name_92 WHERE cuts_made < 12 AND top_5 < 2 AND events < 14
What time did team kawasaki zx10 1000cc have?
CREATE TABLE table_name_61 (time VARCHAR, team VARCHAR)
SELECT time FROM table_name_61 WHERE team = "kawasaki zx10 1000cc"
What medal was awarded in the men's freestyle 52 kg?
CREATE TABLE table_name_69 (medal VARCHAR, event VARCHAR)
SELECT medal FROM table_name_69 WHERE event = "men's freestyle 52 kg"
Score of 118–114, and a Record of 8–1 is what lowest game?
CREATE TABLE table_name_64 (game INTEGER, score VARCHAR, record VARCHAR)
SELECT MIN(game) FROM table_name_64 WHERE score = "118–114" AND record = "8–1"
Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong?
CREATE TABLE table_name_76 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR)
SELECT prohibition_ticket FROM table_name_76 WHERE greenback_ticket = "thomas armstrong"
How many were in attendance with a score of 0:1?
CREATE TABLE table_name_82 (attendance VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_82 WHERE score = "0:1"
What is every entry for Proto-Italo-Western 1 when door is English?
CREATE TABLE table_25401_15 (proto_italo_western_1 VARCHAR, english VARCHAR)
SELECT proto_italo_western_1 FROM table_25401_15 WHERE english = "door"
Which Country has a Host of miguel esteban?
CREATE TABLE table_name_18 (country VARCHAR, host VARCHAR)
SELECT country FROM table_name_18 WHERE host = "miguel esteban"
What is the Date of Game 5 with Road Team St. Louis?
CREATE TABLE table_name_10 (date VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT date FROM table_name_10 WHERE road_team = "st. louis" AND game = "game 5"
What is the copa mercosur 1999 result for team grêmio, who did not qualify for the Copa Libertadores 1999 and Copa Conmebol 1999?
CREATE TABLE table_name_51 (copa_mercosur_1999 VARCHAR, team VARCHAR, copa_libertadores_1999 VARCHAR, copa_conmebol_1999 VARCHAR)
SELECT copa_mercosur_1999 FROM table_name_51 WHERE copa_libertadores_1999 = "did not qualify" AND copa_conmebol_1999 = "did not qualify" AND team = "grêmio"
What years was the player Lonny Baxter in Toronto?
CREATE TABLE table_10015132_2 (years_in_toronto VARCHAR, player VARCHAR)
SELECT years_in_toronto FROM table_10015132_2 WHERE player = "Lonny Baxter"
Name the womens doubles when mixed doubles is potten ruth scott
CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mixed_doubles VARCHAR)
SELECT womens_doubles FROM table_14903881_1 WHERE mixed_doubles = "Potten Ruth Scott"
How much Gold has a Silver smaller than 3, and a Total of 9, and a Bronze smaller than 1?
CREATE TABLE table_name_26 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT COUNT(gold) FROM table_name_26 WHERE silver < 3 AND total = 9 AND bronze < 1
Name the attendance for when the washington wizards was visiting
CREATE TABLE table_name_71 (attendance VARCHAR, visitor VARCHAR)
SELECT attendance FROM table_name_71 WHERE visitor = "washington wizards"
Pts Agst of 572, and a Pts For larger than 346 has what total number of position?
CREATE TABLE table_name_22 (position VARCHAR, pts_agst VARCHAR, pts_for VARCHAR)
SELECT COUNT(position) FROM table_name_22 WHERE pts_agst = 572 AND pts_for > 346
Who were the candidates for election that had a result of a retired jacksonian gain?
CREATE TABLE table_2668264_8 (candidates VARCHAR, result VARCHAR)
SELECT candidates FROM table_2668264_8 WHERE result = "Retired Jacksonian gain"
What are the titles and directors of the films were never presented in China?
CREATE TABLE film (title VARCHAR, director VARCHAR, film_id VARCHAR, country VARCHAR); CREATE TABLE market (Market_ID VARCHAR); CREATE TABLE film_market_estimation (market_id VARCHAR)
SELECT title, director FROM film WHERE NOT film_id IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id = T2.Market_ID WHERE country = 'China')