answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT location FROM table_name_94 WHERE tournament = "byron nelson golf classic"
What is the Location of the byron nelson golf classic?
CREATE TABLE table_name_94 (location VARCHAR, tournament VARCHAR)
SELECT opponent FROM table_name_97 WHERE time = "0:10"
Who was the opponent when the fight had a time of 0:10?
CREATE TABLE table_name_97 (opponent VARCHAR, time VARCHAR)
SELECT winning_driver FROM table_26267607_2 WHERE fastest_lap = "Mike Rockenfeller"
Where the fastest lap is Mike Rockenfeller, who is the winning driver?
CREATE TABLE table_26267607_2 (winning_driver VARCHAR, fastest_lap VARCHAR)
SELECT 1 AS st_leg FROM table_name_98 WHERE champion = "sakalai"
what team was the 1st leg champion of sakalai
CREATE TABLE table_name_98 (champion VARCHAR)
SELECT type FROM table_name_63 WHERE rite = "albanian"
What is Type for Rite Albanian?
CREATE TABLE table_name_63 (type VARCHAR, rite VARCHAR)
SELECT COUNT(attendance) FROM table_name_9 WHERE week = 15
How many people were in attendance for the game week 15?
CREATE TABLE table_name_9 (attendance VARCHAR, week VARCHAR)
SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards"
find the full name of employees who report to Nancy Edwards?
CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, reports_to VARCHAR)
SELECT race_1_winner FROM table_22905641_2 WHERE circuit = "Hidden Valley Raceway"
Who was the race 1 winner of the race at Hidden Valley Raceway?
CREATE TABLE table_22905641_2 (race_1_winner VARCHAR, circuit VARCHAR)
SELECT goalkeeper FROM table_name_32 WHERE mins < 2160
What Goalkeeper has MINS less than 2160
CREATE TABLE table_name_32 (goalkeeper VARCHAR, mins INTEGER)
SELECT COUNT(position) FROM table_2781227_2 WHERE player = "Janne Niinimaa"
How many positions does Janne Niinimaa play?
CREATE TABLE table_2781227_2 (position VARCHAR, player VARCHAR)
SELECT drivers FROM table_name_21 WHERE year = 1949
Who drove in races in 1949?
CREATE TABLE table_name_21 (drivers VARCHAR, year VARCHAR)
SELECT AVG(wins) FROM table_name_42 WHERE goal_difference > -24 AND draws > 7
Can you tell me the average Wins that has the Goal Difference larger than -24, and the Draws larger than 7?
CREATE TABLE table_name_42 (wins INTEGER, goal_difference VARCHAR, draws VARCHAR)
SELECT MAX(tonnage__grt_) FROM table_name_52 WHERE date = "16 june 1940"
Which Tonnage (GRT) is the highest one that has a Date of 16 june 1940?
CREATE TABLE table_name_52 (tonnage__grt_ INTEGER, date VARCHAR)
SELECT COUNT(year) FROM table_name_93 WHERE nominee = "outstanding musical"
How many years were they nominated for outstanding musical?
CREATE TABLE table_name_93 (year VARCHAR, nominee VARCHAR)
SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
Find the name of companies whose revenue is between 100 and 150.
CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
SELECT upstream FROM table_17304621_14 WHERE price_tl = "39 TL"
What is the upstream speed of the network that costs 39 tl?
CREATE TABLE table_17304621_14 (upstream VARCHAR, price_tl VARCHAR)
SELECT no_5 FROM table_name_39 WHERE no_2 = "olivia" AND no_4 = "ava" AND no_6 = "abigail"
What is No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail?
CREATE TABLE table_name_39 (no_5 VARCHAR, no_6 VARCHAR, no_2 VARCHAR, no_4 VARCHAR)
SELECT winner FROM table_name_16 WHERE college = "kentucky"
What is Winner, when College is "Kentucky"?
CREATE TABLE table_name_16 (winner VARCHAR, college VARCHAR)
SELECT competition FROM table_name_43 WHERE date = "25 march 2001"
Tell me the competition for 25 march 2001
CREATE TABLE table_name_43 (competition VARCHAR, date VARCHAR)
SELECT SUM(voting_order) FROM table_name_50 WHERE commentator = "bunny carr"
What was the voting order when bunny carr was the commentator?
CREATE TABLE table_name_50 (voting_order INTEGER, commentator VARCHAR)
SELECT written_by FROM table_25084227_1 WHERE us_viewers__in_millions_ = "2.09"
if the 2.09 million US viewers watched this episode, who was it written by
CREATE TABLE table_25084227_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT COUNT(p_ret) FROM table_16912000_13 WHERE kr_avg = "11.3"
How many p.ret are there when kr avg is 11.3 ?
CREATE TABLE table_16912000_13 (p_ret VARCHAR, kr_avg VARCHAR)
SELECT COUNT(DISTINCT T2.Delegate) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T1.Population > 50000
How many distinct delegates are from counties with population larger than 50000?
CREATE TABLE election (Delegate VARCHAR, District VARCHAR); CREATE TABLE county (County_id VARCHAR, Population INTEGER)
SELECT date FROM table_name_81 WHERE course = "rest day"
Which date was a rest day?
CREATE TABLE table_name_81 (date VARCHAR, course VARCHAR)
SELECT album FROM table_name_39 WHERE year > 2001
What Album has a Year that's larger than 2001?
CREATE TABLE table_name_39 (album VARCHAR, year INTEGER)
SELECT COUNT(other_programming_sources) FROM table_1397655_1 WHERE year_acquired = 1997
how many channels were gained in 1997
CREATE TABLE table_1397655_1 (other_programming_sources VARCHAR, year_acquired VARCHAR)
SELECT college FROM table_10812938_4 WHERE cfl_team = "Saskatchewan Roughriders"
Which college is aligned to the Saskatchewan Roughriders?
CREATE TABLE table_10812938_4 (college VARCHAR, cfl_team VARCHAR)
SELECT third FROM table_name_23 WHERE second = "xu xiaoming"
Who is third to Xu Xiaoming at second?
CREATE TABLE table_name_23 (third VARCHAR, second VARCHAR)
SELECT 1973 AS _democratic_initial_primary FROM table_1108394_24 WHERE queens = "19_percentage"
Who won the 1973 democratic initial primary for queens of 19%?
CREATE TABLE table_1108394_24 (queens VARCHAR)
SELECT player FROM table_11545282_12 WHERE years_for_jazz = "1974-75" AND school_club_team = "Marshall"
Which player is from Marshall and played 1974-75?
CREATE TABLE table_11545282_12 (player VARCHAR, years_for_jazz VARCHAR, school_club_team VARCHAR)
SELECT competition FROM table_name_78 WHERE score = "8-1"
What competition had a score of 8-1?
CREATE TABLE table_name_78 (competition VARCHAR, score VARCHAR)
SELECT MIN(ave_attendance) FROM table_2970978_1 WHERE ___ave_on_prev_season = "+644"
What is the least value for average attendance when average on previous season is +644?
CREATE TABLE table_2970978_1 (ave_attendance INTEGER, ___ave_on_prev_season VARCHAR)
SELECT kind FROM table_name_79 WHERE year = "1978" AND manuals = "ii/p"
What kind is in the year 1978 and a manual of ii/p?
CREATE TABLE table_name_79 (kind VARCHAR, year VARCHAR, manuals VARCHAR)
SELECT MIN(year) FROM table_14903999_1 WHERE mixed_doubles = "Þorvaldur Ásgeirsson Lovísa Sigurðardóttir"
What was the earliest year Þorvaldur Ásgeirsson Lovísa Sigurðardóttir won mixed doubles
CREATE TABLE table_14903999_1 (year INTEGER, mixed_doubles VARCHAR)
SELECT home_team AS score FROM table_name_41 WHERE away_team = "carlton"
How many points did Carlton score?
CREATE TABLE table_name_41 (home_team VARCHAR, away_team VARCHAR)
SELECT place FROM table_name_60 WHERE country = "zimbabwe"
In what place did the golfer representing Zimbabwe finish?
CREATE TABLE table_name_60 (place VARCHAR, country VARCHAR)
SELECT MIN(election) FROM table_name_13 WHERE share_of_votes = "0.9%"
What is the earlest election with a 0.9% share of votes?
CREATE TABLE table_name_13 (election INTEGER, share_of_votes VARCHAR)
SELECT result FROM table_27487712_1 WHERE incumbent = "Bob Barr"
What was the result of the election with incumbent bob barr?
CREATE TABLE table_27487712_1 (result VARCHAR, incumbent VARCHAR)
SELECT matches FROM table_name_16 WHERE prize_money = "£1,000,000"
What is the Match with a Prize of money that is £1,000,000?
CREATE TABLE table_name_16 (matches VARCHAR, prize_money VARCHAR)
SELECT census_ranking FROM table_171236_1 WHERE official_name = "Quispamsis"
With the official name Quispamsis, what is the census ranking?
CREATE TABLE table_171236_1 (census_ranking VARCHAR, official_name VARCHAR)
SELECT record FROM table_name_43 WHERE date = "april 23"
What is the team's record on april 23?
CREATE TABLE table_name_43 (record VARCHAR, date VARCHAR)
SELECT AVG(length_feet) FROM bridge
What is the average length in feet of the bridges?
CREATE TABLE bridge (length_feet INTEGER)
SELECT high_rebounds FROM table_11959669_3 WHERE date = "November 4"
Who had the highest rebounds on November 4
CREATE TABLE table_11959669_3 (high_rebounds VARCHAR, date VARCHAR)
SELECT score FROM table_name_92 WHERE opponent = "white sox" AND record = "2-0"
Which score has an Opponent of white sox, and a Record of 2-0?
CREATE TABLE table_name_92 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT title FROM table_10935548_1 WHERE directed_by = "Jean de Segonzac"
Which episode was directed by Jean de Segonzac?
CREATE TABLE table_10935548_1 (title VARCHAR, directed_by VARCHAR)
SELECT AVG(goals_conceded) FROM table_name_48 WHERE draw = 0 AND played > 0
Name the Goals Conceded which has a Draw of 0 and a Played larger than 0?
CREATE TABLE table_name_48 (goals_conceded INTEGER, draw VARCHAR, played VARCHAR)
SELECT 2007 FROM table_name_68 WHERE 2008 = "q1"
What is the value for 2007 when 2008 is Q1?
CREATE TABLE table_name_68 (Id VARCHAR)
SELECT date FROM table_25213146_2 WHERE winning_team = "Prema Powerteam"
On what date(s) was the winning team Prema Powerteam?
CREATE TABLE table_25213146_2 (date VARCHAR, winning_team VARCHAR)
SELECT MAX(previous_br_no) FROM table_2079664_3
Name the most previous br number
CREATE TABLE table_2079664_3 (previous_br_no INTEGER)
SELECT characters FROM table_name_80 WHERE title = "suppressed duck"
What are the characters from the movie Suppressed Duck?
CREATE TABLE table_name_80 (characters VARCHAR, title VARCHAR)
SELECT nominating_festival FROM table_name_12 WHERE country = "russia"
Which nominating festival did Russia enter?
CREATE TABLE table_name_12 (nominating_festival VARCHAR, country VARCHAR)
SELECT date FROM table_name_40 WHERE constructor = "ferrari"
What dates did Ferrari win races?
CREATE TABLE table_name_40 (date VARCHAR, constructor VARCHAR)
SELECT date FROM table_name_67 WHERE status = "five nations" AND opposing_teams = "ireland"
On which date was the opponent ireland and the status Five Nations?
CREATE TABLE table_name_67 (date VARCHAR, status VARCHAR, opposing_teams VARCHAR)
SELECT launched FROM table_name_55 WHERE name = "ushio dd-54"
What is the launch date for the Ushio dd-54?
CREATE TABLE table_name_55 (launched VARCHAR, name VARCHAR)
SELECT attendance FROM table_name_74 WHERE home = "cleveland" AND date = "january 30"
What is Attendance, when Home is Cleveland, and when Date is January 30?
CREATE TABLE table_name_74 (attendance VARCHAR, home VARCHAR, date VARCHAR)
SELECT COUNT(lost) FROM table_name_31 WHERE drawn = 1 AND games > 7
What is the total number of losses that have 1 draw and games over 7?
CREATE TABLE table_name_31 (lost VARCHAR, drawn VARCHAR, games VARCHAR)
SELECT AVG(grid) FROM table_name_85 WHERE driver = "marco andretti" AND fin_pos > 19
What is the average grid for Marco Andretti with a finishing position higher than 19?
CREATE TABLE table_name_85 (grid INTEGER, driver VARCHAR, fin_pos VARCHAR)
SELECT won FROM table_13758945_3 WHERE points_against = "597"
what's the won with points against being 597
CREATE TABLE table_13758945_3 (won VARCHAR, points_against VARCHAR)
SELECT date FROM table_name_11 WHERE result = "3–4"
Which Date has a Result of 3–4?
CREATE TABLE table_name_11 (date VARCHAR, result VARCHAR)
SELECT writer_s_ FROM table_25800134_4 WHERE season__number = 15
Who was the writer of episode 15?
CREATE TABLE table_25800134_4 (writer_s_ VARCHAR, season__number VARCHAR)
SELECT white_hat FROM table_name_98 WHERE dakota_mission = "t" AND deloria_ & _boas = "tʽ" AND ullrich = "tȟ"
Dakota Mission of t, and a Deloria & Boas of tʽ, and a Ullrich of tȟ had what white hat?
CREATE TABLE table_name_98 (white_hat VARCHAR, ullrich VARCHAR, dakota_mission VARCHAR, deloria_ VARCHAR, _boas VARCHAR)
SELECT COUNT(nationality) FROM table_12086015_7 WHERE year_s_ = "1992"
What is the number of nationality in 1992?
CREATE TABLE table_12086015_7 (nationality VARCHAR, year_s_ VARCHAR)
SELECT COUNT(year) FROM table_12275654_1 WHERE mens_singles = "Niels Christian Kaldau" AND womens_singles = "Pi Hongyan"
How many times did Niels Christian Kaldau win the men's single and Pi Hongyan win the women's single in the same year?
CREATE TABLE table_12275654_1 (year VARCHAR, mens_singles VARCHAR, womens_singles VARCHAR)
SELECT departure FROM table_18333678_2 WHERE arrival = "11.45" AND going_to = "Stamford East"
when does the train arriving at stamford east at 11.45 departure
CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR)
SELECT COUNT(date_of_vacancy) FROM table_28164986_4 WHERE outgoing_manager = "Tunde Abdulrahman"
how many times did tunde abdulrahman leave the team?
CREATE TABLE table_28164986_4 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT score FROM table_name_38 WHERE money___£__ = "90,400" AND country = "south africa" AND player = "thomas aiken"
Which Score has a Money ( £ ) of 90,400, and a Country of south africa, and a Player of thomas aiken? Question 1
CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, money___£__ VARCHAR, country VARCHAR)
SELECT player FROM table_name_77 WHERE round < 5 AND school_club_team = "florida state"
Which Player has a Round smaller than 5, and a School/Club Team of florida state?
CREATE TABLE table_name_77 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)
SELECT time_retired FROM table_name_58 WHERE grid < 3 AND driver = "mika häkkinen"
Which Time/Retired has a Grid smaller than 3, and a Driver of mika häkkinen?
CREATE TABLE table_name_58 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT COUNT(reason_for_change) FROM table_1847180_3 WHERE vacator = "A. Willis Robertson (D)"
How many reasons were given when A. Willis Robertson (D) resigned?
CREATE TABLE table_1847180_3 (reason_for_change VARCHAR, vacator VARCHAR)
SELECT MAX(overall) FROM table_name_36 WHERE college = "kentucky state"
What is the highest overall number for a player from Kentucky State?
CREATE TABLE table_name_36 (overall INTEGER, college VARCHAR)
SELECT city FROM table_name_17 WHERE mascot = "blazers"
Mascot of blazers involves what city?
CREATE TABLE table_name_17 (city VARCHAR, mascot VARCHAR)
SELECT MIN(points) FROM table_29261215_4 WHERE peeter_vähi = 9
What is the maximum points received when Peeter Vähl gave a 9?
CREATE TABLE table_29261215_4 (points INTEGER, peeter_vähi VARCHAR)
SELECT tries_for FROM table_name_57 WHERE points = "48"
How many tries for were there 48 points?
CREATE TABLE table_name_57 (tries_for VARCHAR, points VARCHAR)
SELECT SUM(heat) FROM table_name_17 WHERE lane = 6 AND time = "4:08.27" AND rank > 7
In what heat did the swimmer in Lane 6 rank higher than 7 with a time of 4:08.27?
CREATE TABLE table_name_17 (heat INTEGER, rank VARCHAR, lane VARCHAR, time VARCHAR)
SELECT AVG(position) FROM table_name_97 WHERE speed = "143.5km/h"
What is the average Position, when Speed is "143.5km/h"?
CREATE TABLE table_name_97 (position INTEGER, speed VARCHAR)
SELECT mascot FROM table_name_20 WHERE location = "bedford"
What is bedford's mascot?
CREATE TABLE table_name_20 (mascot VARCHAR, location VARCHAR)
SELECT SUM(wins) FROM table_name_35 WHERE rank = "22nd" AND top_fives = 3
What is the sum of wins for casey mears when the player ranked 22nd and was in teh top fives 3 times?
CREATE TABLE table_name_35 (wins INTEGER, rank VARCHAR, top_fives VARCHAR)
SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50
Find the codes of countries that have more than 50 players.
CREATE TABLE players (country_code VARCHAR)
SELECT original_air_date FROM table_22904752_1 WHERE written_by = "Sean Whitesell"
When is the original air date written by sean whitesell?
CREATE TABLE table_22904752_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT presenter FROM table_20466963_13 WHERE date = "11 May"
Name the presenter 11 may
CREATE TABLE table_20466963_13 (presenter VARCHAR, date VARCHAR)
SELECT AVG(round) FROM table_name_48 WHERE school = "arizona" AND pick > 100
What is the round for Arizona with a pick over 100?
CREATE TABLE table_name_48 (round INTEGER, school VARCHAR, pick VARCHAR)
SELECT record FROM table_name_49 WHERE date = "september 6"
What is the Record of the game on September 6?
CREATE TABLE table_name_49 (record VARCHAR, date VARCHAR)
SELECT COUNT(result) FROM table_1341598_22 WHERE incumbent = "James Shannon"
What is the number of results for james shannon?
CREATE TABLE table_1341598_22 (result VARCHAR, incumbent VARCHAR)
SELECT MAX(number_of_cars) FROM table_name_95 WHERE year_started < 2012 AND current_car = "tba" AND car__number > 1
WHAT IS THE HIGHEST # OF CARS WITH A START YEAR LESS THAN 2012, TBA CURRENT CAR, AND MORE THAN 1 CAR?
CREATE TABLE table_name_95 (number_of_cars INTEGER, car__number VARCHAR, year_started VARCHAR, current_car VARCHAR)
SELECT location FROM table_name_14 WHERE opponent = "laverne clark"
Where did the match with opponent Laverne Clark occur?
CREATE TABLE table_name_14 (location VARCHAR, opponent VARCHAR)
SELECT indianapolis_concerts FROM table_17085724_1 WHERE character = "Dr. Alexandre Manette"
Name the indanapolis concerts for dr. alexandre manette
CREATE TABLE table_17085724_1 (indianapolis_concerts VARCHAR, character VARCHAR)
SELECT starting_from FROM table_1852650_1 WHERE name_of_the_prabandham = "Amalanadhi piran"
Name the starting from amalanadhi piran
CREATE TABLE table_1852650_1 (starting_from VARCHAR, name_of_the_prabandham VARCHAR)
SELECT COUNT(high_points) FROM table_17323092_6 WHERE date = "January 21"
What is the total number of high points on January 21?
CREATE TABLE table_17323092_6 (high_points VARCHAR, date VARCHAR)
SELECT result FROM table_29728596_1 WHERE away_team = "FK Rudar Ugljevik"
What was the result of the home match against FK Rudar Ugljevik?
CREATE TABLE table_29728596_1 (result VARCHAR, away_team VARCHAR)
SELECT status FROM table_name_93 WHERE area_km_2 > 303.73
What is Status, when Area km 2 is greater than 303.73?
CREATE TABLE table_name_93 (status VARCHAR, area_km_2 INTEGER)
SELECT time FROM table_name_71 WHERE round < 3 AND opponent = "amanda lavoy"
What was the time for the bout against Amanda Lavoy, which went under 3 rounds?
CREATE TABLE table_name_71 (time VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT MIN(points) FROM table_name_52 WHERE grid > 5 AND time_retired = "fire"
What is the smallest point total when the grid is larger than 5 and the time/retired is fire?
CREATE TABLE table_name_52 (points INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT class FROM table_name_12 WHERE frequency_mhz > 91.5 AND city_of_license = "hyannis, nebraska"
Which Class has a Frequency MHz larger than 91.5, and a City of license of hyannis, nebraska?
CREATE TABLE table_name_12 (class VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT money___£__ FROM table_name_46 WHERE player = "stephen ames"
How much money has been won by Stephen Ames?
CREATE TABLE table_name_46 (money___£__ VARCHAR, player VARCHAR)
SELECT assembled FROM table_name_55 WHERE summoned = "6 october 1297"
What is Assembled, when Summoned is "6 October 1297"?
CREATE TABLE table_name_55 (assembled VARCHAR, summoned VARCHAR)
SELECT MAX(folded) FROM table_24334261_1 WHERE stadium = "Fraser Field"
What is the maximum folded value of the team whose stadium is Fraser Field?
CREATE TABLE table_24334261_1 (folded INTEGER, stadium VARCHAR)
SELECT COUNT(total) FROM table_name_80 WHERE ward < 0
WHAT IS THE TOTAL NUMBER WITH A WARD SMALLER THAN 0?
CREATE TABLE table_name_80 (total VARCHAR, ward INTEGER)
SELECT circuit FROM table_name_24 WHERE date = "may 7" AND length = "1 hour"
Which circuit was held on May 7 for 1 hour?
CREATE TABLE table_name_24 (circuit VARCHAR, date VARCHAR, length VARCHAR)
SELECT MIN(silver) FROM table_name_70 WHERE gold < 0
what is the lowest amount of silver when the gold is less than 0?
CREATE TABLE table_name_70 (silver INTEGER, gold INTEGER)
SELECT MAX(goals) FROM table_name_94 WHERE matches < 208 AND rank > 12
What is the most goals made for a person with less than 208 matches and ranked lower than 12?
CREATE TABLE table_name_94 (goals INTEGER, matches VARCHAR, rank VARCHAR)