question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What year was Barclay Henley first elected?
CREATE TABLE table_name_77 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_name_77 WHERE incumbent = "barclay henley"
what is the entrant for the ferrari v8 with points less than 4?
CREATE TABLE table_name_6 (entrant VARCHAR, engine VARCHAR, points VARCHAR)
SELECT entrant FROM table_name_6 WHERE engine = "ferrari v8" AND points < 4
What conference did the player originally from the denver broncos play in?
CREATE TABLE table_name_25 (conf VARCHAR, original_nfl_team VARCHAR)
SELECT conf FROM table_name_25 WHERE original_nfl_team = "denver broncos"
When there was a bye in the round of 32, what was the result in the round of 16?
CREATE TABLE table_1745820_5 (semifinals VARCHAR, round_of_32 VARCHAR)
SELECT semifinals FROM table_1745820_5 WHERE round_of_32 = "Bye"
Who walked in space from STS-101 Eva 1?
CREATE TABLE table_22385461_1 (spacewalkers VARCHAR, spacecraft VARCHAR)
SELECT spacewalkers FROM table_22385461_1 WHERE spacecraft = "STS-101 EVA 1"
Which Date has a Venue of junction oval?
CREATE TABLE table_name_39 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_39 WHERE venue = "junction oval"
Name the most attendance for giants points of 10
CREATE TABLE table_16661199_2 (attendance INTEGER, giants_points VARCHAR)
SELECT MAX(attendance) FROM table_16661199_2 WHERE giants_points = 10
The tournament with the opponent of Kelly De Beer Eva Pera was played on what date?
CREATE TABLE table_name_5 (date VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_5 WHERE opponents = "kelly de beer eva pera"
Which game is named tsegay kebede category:articles with hcards?
CREATE TABLE table_name_70 (games VARCHAR, name VARCHAR)
SELECT games FROM table_name_70 WHERE name = "tsegay kebede category:articles with hcards"
How many viewers tuned into the show directed by Matt Earl Beesley?
CREATE TABLE table_10718525_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT us_viewers__millions_ FROM table_10718525_2 WHERE directed_by = "Matt Earl Beesley"
What was the original air date of the episode with production code 2395120?
CREATE TABLE table_name_55 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_name_55 WHERE production_code = "2395120"
What is the opponent with the outcome of runner-up with a date of 19 september 1994?
CREATE TABLE table_name_25 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_25 WHERE outcome = "runner-up" AND date = "19 september 1994"
Who is moving with the nationality of Tri?
CREATE TABLE table_name_78 (moving_to VARCHAR, nat VARCHAR)
SELECT moving_to FROM table_name_78 WHERE nat = "tri"
What position for the western michigan product picked ahead of 312?
CREATE TABLE table_name_16 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_16 WHERE pick < 312 AND school_club_team = "western michigan"
what's the singles w-l for kim doo-hwan
CREATE TABLE table_10023387_1 (singles_w_l VARCHAR, player VARCHAR)
SELECT singles_w_l FROM table_10023387_1 WHERE player = "Kim Doo-Hwan"
What is the record for the game on January 19?
CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_92 WHERE date = "january 19"
What is Turkey's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is greater than 1?
CREATE TABLE table_name_90 (gold INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT AVG(gold) FROM table_name_90 WHERE bronze < 2 AND nation = "turkey" AND total > 1
What was the score when Calgary was visiting team and Niittymaki had the decision?
CREATE TABLE table_name_78 (score VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_78 WHERE decision = "niittymaki" AND visitor = "calgary"
How many Votes, when the Residence is Halifax?
CREATE TABLE table_name_81 (votes VARCHAR, residence VARCHAR)
SELECT votes FROM table_name_81 WHERE residence = "halifax"
Where was the sport played on September 10, 2010?
CREATE TABLE table_name_55 (site VARCHAR, date VARCHAR)
SELECT site FROM table_name_55 WHERE date = "september 10, 2010"
List the hardware model name for the phones that have screen mode type "Text" or RAM size greater than 32.
CREATE TABLE chip_model (Model_name VARCHAR, RAM_MiB VARCHAR); CREATE TABLE phone (Hardware_Model_name VARCHAR, chip_model VARCHAR, screen_mode VARCHAR); CREATE TABLE screen_mode (Graphics_mode VARCHAR, Type VARCHAR)
SELECT T2.Hardware_Model_name FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model JOIN screen_mode AS T3 ON T2.screen_mode = T3.Graphics_mode WHERE T3.Type = "Text" OR T1.RAM_MiB > 32
What is the total number of Round, when Position is "D", and when Player is "Andrew Campbell"?
CREATE TABLE table_name_94 (round VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_94 WHERE position = "d" AND player = "andrew campbell"
Which country has the most bronze and has more than one silver, 1 gold, and less than 4 total medals.
CREATE TABLE table_name_80 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT MAX(bronze) FROM table_name_80 WHERE silver > 1 AND gold = 1 AND total < 4
Name the record for february 27
CREATE TABLE table_name_67 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_67 WHERE date = "february 27"
What is the max week where kate and anton are eliminated?
CREATE TABLE table_12305325_4 (week INTEGER, eliminated VARCHAR)
SELECT MAX(week) FROM table_12305325_4 WHERE eliminated = "Kate and Anton"
What was the turnover when the profit before tax was 29.47?
CREATE TABLE table_2856898_1 (turnover__£m_ VARCHAR, profit_before_tax__£m_ VARCHAR)
SELECT turnover__£m_ FROM table_2856898_1 WHERE profit_before_tax__£m_ = "29.47"
What was the latitude that had a UTC time of 18:19:36?
CREATE TABLE table_24518475_1 (latitude VARCHAR, time__utc_ VARCHAR)
SELECT latitude FROM table_24518475_1 WHERE time__utc_ = "18:19:36"
What was the score of the tournament that was held in 1974?
CREATE TABLE table_name_92 (score_in_the_final VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_92 WHERE date = 1974
What is the catalog number for the January 25, 1987 release?
CREATE TABLE table_name_5 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_5 WHERE date = "january 25, 1987"
What is the pr avg, when kr lg is 49?
CREATE TABLE table_16912000_13 (pr_avg VARCHAR, kr_lg VARCHAR)
SELECT pr_avg FROM table_16912000_13 WHERE kr_lg = 49
Which Leading Scorer has an Opponent of @ indiana?
CREATE TABLE table_name_10 (Leading VARCHAR, opponent VARCHAR)
SELECT Leading AS scorer FROM table_name_10 WHERE opponent = "@ indiana"
What was the first leg score for the match that had AS Police as team 2?
CREATE TABLE table_name_34 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = "as police"
What is Away Team, when Date is "25 January 1986", and when Tie No is "6"?
CREATE TABLE table_name_64 (away_team VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_64 WHERE date = "25 january 1986" AND tie_no = "6"
What was the opponent of the home team of essendon?
CREATE TABLE table_name_47 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_47 WHERE home_team = "essendon"
waht is the last year with a mclaren mp4/10b chassis
CREATE TABLE table_name_31 (year INTEGER, chassis VARCHAR)
SELECT MAX(year) FROM table_name_31 WHERE chassis = "mclaren mp4/10b"
What was the average week of a game with a result of l 10-7 attended by 37,500?
CREATE TABLE table_name_4 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT AVG(week) FROM table_name_4 WHERE result = "l 10-7" AND attendance < 37 OFFSET 500
What is the total rank for the athlete that had a race time of 7:34.24?
CREATE TABLE table_name_56 (rank VARCHAR, time VARCHAR)
SELECT COUNT(rank) FROM table_name_56 WHERE time = "7:34.24"
What percentage of browsers were using Chrome during the period in which 72.03% were using Internet Explorer?
CREATE TABLE table_name_88 (chrome VARCHAR, internet_explorer VARCHAR)
SELECT chrome FROM table_name_88 WHERE internet_explorer = "72.03%"
WHAT YEAR HAD 5 TOTAL MATCHES?
CREATE TABLE table_name_28 (year VARCHAR, total_matches VARCHAR)
SELECT year FROM table_name_28 WHERE total_matches = 5
How many years have HMOs been 27% and POS plans 18%?
CREATE TABLE table_name_54 (year VARCHAR, hmos VARCHAR, pos_plans VARCHAR)
SELECT COUNT(year) FROM table_name_54 WHERE hmos = "27%" AND pos_plans = "18%"
Who is the opponent from September 28?
CREATE TABLE table_name_13 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_13 WHERE date = "september 28"
what is the name of the holland locale
CREATE TABLE table_name_83 (name VARCHAR, locale VARCHAR)
SELECT name FROM table_name_83 WHERE locale = "holland"
Which Player has 0 Pens and 12 Starts?
CREATE TABLE table_name_42 (player VARCHAR, pens VARCHAR, start VARCHAR)
SELECT player FROM table_name_42 WHERE pens = "0" AND start = "12"
What is the format of the album Pacific Ocean Blue in 1991?
CREATE TABLE table_name_57 (format VARCHAR, album VARCHAR, year VARCHAR)
SELECT format FROM table_name_57 WHERE album = "pacific ocean blue" AND year = 1991
What happened in week 14 when week 11's result was Michigan (7-2)?
CREATE TABLE table_name_17 (week_14_dec_3 VARCHAR, week_11_nov_12 VARCHAR)
SELECT week_14_dec_3 FROM table_name_17 WHERE week_11_nov_12 = "michigan (7-2)"
Which study included autoimmune disease and inflammation?
CREATE TABLE table_name_41 (name VARCHAR, indication VARCHAR)
SELECT name FROM table_name_41 WHERE indication = "autoimmune disease and inflammation"
What team does Lee Palmer play for?
CREATE TABLE table_1965650_10 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT college_junior_club_team FROM table_1965650_10 WHERE player = "Lee Palmer"
What is Visitor, when Home is "Chicago Black Hawks", and when Date is "May 4"?
CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_77 WHERE home = "chicago black hawks" AND date = "may 4"
What is Opponent In The Final, when Year is "1942"?
CREATE TABLE table_name_33 (opponent_in_the_final VARCHAR, year VARCHAR)
SELECT opponent_in_the_final FROM table_name_33 WHERE year = 1942
Frequency for kamy?
CREATE TABLE table_name_4 (frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT frequency_mhz FROM table_name_4 WHERE call_sign = "kamy"
What is the value of the Democratic Alternative for the poll released by Malta Today?
CREATE TABLE table_name_31 (democratic_alternative VARCHAR, polling_institute VARCHAR)
SELECT democratic_alternative FROM table_name_31 WHERE polling_institute = "malta today"
What is the venue for the event on 12 November 2005?
CREATE TABLE table_name_13 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_13 WHERE date = "12 november 2005"
What is the Height of the Player with a Date of Birth of 1982-07-05?
CREATE TABLE table_name_19 (height VARCHAR, date_of_birth VARCHAR)
SELECT height FROM table_name_19 WHERE date_of_birth = "1982-07-05"
Name the total number of overall for brent hawkins and pick # more than 28
CREATE TABLE table_name_5 (overall VARCHAR, name VARCHAR, pick__number VARCHAR)
SELECT COUNT(overall) FROM table_name_5 WHERE name = "brent hawkins" AND pick__number > 28
What is Name, when Length Meters is greater than 66.4, and when Km From Kingston is 138.8?
CREATE TABLE table_name_54 (name VARCHAR, length_meters VARCHAR, km_from_kingston VARCHAR)
SELECT name FROM table_name_54 WHERE length_meters > 66.4 AND km_from_kingston = 138.8
In which region is the Thompson-Boling arena located?
CREATE TABLE table_name_16 (region VARCHAR, venue VARCHAR)
SELECT region FROM table_name_16 WHERE venue = "thompson-boling arena"
Which Notes has a Competition of venice marathon?
CREATE TABLE table_name_78 (notes VARCHAR, competition VARCHAR)
SELECT notes FROM table_name_78 WHERE competition = "venice marathon"
What's Kaia Kanepi's Sd?
CREATE TABLE table_27615896_20 (sd INTEGER, player VARCHAR)
SELECT MIN(sd) FROM table_27615896_20 WHERE player = "Kaia Kanepi"
what's the first appearance where character(s) is iron man
CREATE TABLE table_1217448_1 (first_appearance VARCHAR, character_s_ VARCHAR)
SELECT first_appearance FROM table_1217448_1 WHERE character_s_ = "Iron Man"
When was twenty released?
CREATE TABLE table_name_16 (date_of_release VARCHAR, title VARCHAR)
SELECT date_of_release FROM table_name_16 WHERE title = "twenty"
Name the incumbent for 1954
CREATE TABLE table_1341549_10 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1341549_10 WHERE first_elected = "1954"
What amount of points for were there when there was 52 points?
CREATE TABLE table_13399573_3 (points_for VARCHAR, points VARCHAR)
SELECT points_for FROM table_13399573_3 WHERE points = "52"
Who is the main contestant with a total score/week of 42/60 and a co-contestant (Yaar vs. Pyaa) of Tina Sachdev?
CREATE TABLE table_name_29 (main_contestant VARCHAR, total_score_week VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT main_contestant FROM table_name_29 WHERE total_score_week = "42/60" AND co_contestant__yaar_vs_pyaar_ = "tina sachdev"
Who is the developer when the pre-release is no*?
CREATE TABLE table_name_70 (kinka_developer VARCHAR, kinka_pre_release VARCHAR)
SELECT kinka_developer FROM table_name_70 WHERE kinka_pre_release = "no*"
What city is located in Oklahoma?
CREATE TABLE table_name_67 (city VARCHAR, state VARCHAR)
SELECT city FROM table_name_67 WHERE state = "oklahoma"
What is the earliest Year commissioned wiht an Average annual output greater than 58 and Installed capacity of 20?
CREATE TABLE table_name_64 (year_commissioned INTEGER, average_annual_output__million_kwh_ VARCHAR, installed_capacity__megawatts_ VARCHAR)
SELECT MIN(year_commissioned) FROM table_name_64 WHERE average_annual_output__million_kwh_ > 58 AND installed_capacity__megawatts_ = 20
What is the average medal total of the country who had 0 silver medals and participated in less than 15 games?
CREATE TABLE table_name_41 (total INTEGER, games VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_41 WHERE games < 15 AND silver < 0
What is the average Jianshu higher than rank 2, with a Qiangshu smaller than 9.85?
CREATE TABLE table_name_29 (jianshu INTEGER, rank VARCHAR, qiangshu VARCHAR)
SELECT AVG(jianshu) FROM table_name_29 WHERE rank < 2 AND qiangshu < 9.85
Where is store 1 located?
CREATE TABLE store (address_id VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR)
SELECT T2.address FROM store AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE store_id = 1
What episode number originally aired on November 21, 1993?
CREATE TABLE table_23982399_1 (overall_episode__number INTEGER, original_airdate VARCHAR)
SELECT MAX(overall_episode__number) FROM table_23982399_1 WHERE original_airdate = "November 21, 1993"
When Jim Thorpe of United States has a score of 71, what is the place?
CREATE TABLE table_name_2 (place VARCHAR, player VARCHAR, score VARCHAR, country VARCHAR)
SELECT place FROM table_name_2 WHERE score = 71 AND country = "united states" AND player = "jim thorpe"
Who was the winner of the XII Spring Trophy race with BRM as the constructor?
CREATE TABLE table_name_22 (winning_driver VARCHAR, constructor VARCHAR, race_name VARCHAR)
SELECT winning_driver FROM table_name_22 WHERE constructor = "brm" AND race_name = "xii spring trophy"
what team has +1'25.337 for the time?
CREATE TABLE table_name_92 (team VARCHAR, time VARCHAR)
SELECT team FROM table_name_92 WHERE time = "+1'25.337"
What position was Bob Lilly?
CREATE TABLE table_274117_5 (position VARCHAR, player VARCHAR)
SELECT position FROM table_274117_5 WHERE player = "Bob Lilly"
What team was Ryan Callahan, who received a penalty for roughing, playing for?
CREATE TABLE table_name_87 (team VARCHAR, penalty VARCHAR, player VARCHAR)
SELECT team FROM table_name_87 WHERE penalty = "roughing" AND player = "ryan callahan"
What was the production code of the episode written by Anthony Sparks?
CREATE TABLE table_25851971_1 (production_code VARCHAR, written_by VARCHAR)
SELECT production_code FROM table_25851971_1 WHERE written_by = "Anthony Sparks"
How many wins?
CREATE TABLE table_18703133_6 (wins INTEGER)
SELECT MAX(wins) FROM table_18703133_6
Where is the first season that Anthony Hemingway appears?
CREATE TABLE table_11664625_2 (no_in_season INTEGER, directed_by VARCHAR)
SELECT MIN(no_in_season) FROM table_11664625_2 WHERE directed_by = "Anthony Hemingway"
At which games was a bronze medal won in the 94kg men's weightlifting event?
CREATE TABLE table_name_71 (games VARCHAR, event VARCHAR, medal VARCHAR, sport VARCHAR)
SELECT games FROM table_name_71 WHERE medal = "bronze" AND sport = "weightlifting" AND event = "94kg men's weightlifting"
what is the average lost when played is more than 14?
CREATE TABLE table_name_32 (lost INTEGER, played INTEGER)
SELECT AVG(lost) FROM table_name_32 WHERE played > 14
Which Circuit has a Pole position of andré ribeiro?
CREATE TABLE table_name_97 (circuit VARCHAR, pole_position VARCHAR)
SELECT circuit FROM table_name_97 WHERE pole_position = "andré ribeiro"
which players have a height of 2.07m?
CREATE TABLE table_23670057_5 (player VARCHAR, height__m_ VARCHAR)
SELECT player FROM table_23670057_5 WHERE height__m_ = "2.07"
How many different items appear in the weight column when Pittsburgh, PA is the hometown?
CREATE TABLE table_29970488_2 (weight___lb__ VARCHAR, hometown VARCHAR)
SELECT COUNT(weight___lb__) FROM table_29970488_2 WHERE hometown = "Pittsburgh, PA"
What is Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities?
CREATE TABLE table_name_98 (pocona_municipality VARCHAR, totora_municipality VARCHAR, pojo_municipality VARCHAR)
SELECT COUNT(pocona_municipality) FROM table_name_98 WHERE totora_municipality = 72 AND pojo_municipality > 74
List the names of all courses ordered by their titles and credits.
CREATE TABLE course (title VARCHAR, credits VARCHAR)
SELECT title FROM course ORDER BY title, credits
How many times did the team lose who had a goal difference of +2, 52 goals for, and less than 9 draws?
CREATE TABLE table_name_97 (lost INTEGER, drawn VARCHAR, goal_difference VARCHAR, goals_for VARCHAR)
SELECT MIN(lost) FROM table_name_97 WHERE goal_difference = "+2" AND goals_for = 52 AND drawn < 9
what is the maximum number of hull numbers?
CREATE TABLE table_12232526_2 (hull_numbers INTEGER)
SELECT MAX(hull_numbers) FROM table_12232526_2
Which Away team did West Ham United play against?
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_95 WHERE home_team = "west ham united"
On which date is Taylor Field the location?
CREATE TABLE table_23612439_2 (date VARCHAR, location VARCHAR)
SELECT date FROM table_23612439_2 WHERE location = "Taylor Field"
What is the sum of the roll with an area of Waikaka?
CREATE TABLE table_name_11 (roll INTEGER, area VARCHAR)
SELECT SUM(roll) FROM table_name_11 WHERE area = "waikaka"
how many extra points were there when the score was 48
CREATE TABLE table_14070062_4 (try_bonus VARCHAR, points VARCHAR)
SELECT try_bonus FROM table_14070062_4 WHERE points = "48"
How many byes did they have against smaller than 1544, 13 wins, and draws larger than 0?
CREATE TABLE table_name_48 (byes VARCHAR, draws VARCHAR, against VARCHAR, wins VARCHAR)
SELECT COUNT(byes) FROM table_name_48 WHERE against < 1544 AND wins = 13 AND draws > 0
Which team was the away team when the game was at punt road oval?
CREATE TABLE table_name_6 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_6 WHERE venue = "punt road oval"
Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin
CREATE TABLE table_name_18 (termination_of_mission VARCHAR, appointed_by VARCHAR, representative VARCHAR)
SELECT termination_of_mission FROM table_name_18 WHERE appointed_by = "woodrow wilson" AND representative = "benton mcmillin"
Which Commenced operations have an Airline of valuair?
CREATE TABLE table_name_39 (commenced_operations INTEGER, airline VARCHAR)
SELECT MAX(commenced_operations) FROM table_name_39 WHERE airline = "valuair"
Which Net profit/loss (SEK) has a Basic eps (SEK) of -6.58, and Employees (Average/Year) larger than 31,035?
CREATE TABLE table_name_87 (net_profit_loss__sek_ INTEGER, basic_eps__sek_ VARCHAR, employees__average_year_ VARCHAR)
SELECT SUM(net_profit_loss__sek_) FROM table_name_87 WHERE basic_eps__sek_ = -6.58 AND employees__average_year_ > 31 OFFSET 035
Which Opponents in the final have a Score of 4–6, 6–4, 2–6, 4–6?
CREATE TABLE table_name_18 (opponents_in_the_final VARCHAR, score VARCHAR)
SELECT opponents_in_the_final FROM table_name_18 WHERE score = "4–6, 6–4, 2–6, 4–6"
Who has the high assists when 0-1 is the series?
CREATE TABLE table_22871316_11 (high_assists VARCHAR, series VARCHAR)
SELECT high_assists FROM table_22871316_11 WHERE series = "0-1"
what is the highest amount of silver when gold is 0 for soviet union?
CREATE TABLE table_name_50 (silver INTEGER, gold VARCHAR, nation VARCHAR)
SELECT MAX(silver) FROM table_name_50 WHERE gold = 0 AND nation = "soviet union"
How many years have claudia beni as the artist?
CREATE TABLE table_name_3 (year INTEGER, artist VARCHAR)
SELECT SUM(year) FROM table_name_3 WHERE artist = "claudia beni"