answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT transfer_window FROM table_name_79 WHERE country = "bra" AND transfer_fee = "£3.4m"
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 opponent FROM table_name_77 WHERE date = "october 28, 2001"
Who is the opponent on October 28, 2001?
CREATE TABLE table_name_77 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(class_aA) FROM table_14747043_1 WHERE school_year = "2002-03"
How many class AA in the year 2002-03
CREATE TABLE table_14747043_1 (class_aA VARCHAR, school_year VARCHAR)
SELECT COUNT(pick) FROM table_name_46 WHERE round = 7 AND school_club_team = "arizona st."
Name all Pick that has a Round of 7, and a School/Club Team of arizona st.?
CREATE TABLE table_name_46 (pick VARCHAR, round VARCHAR, school_club_team VARCHAR)
SELECT pop_density__per_km²_ FROM table_216776_2 WHERE municipal_mayor = "Boy Quiat"
How many people per km2 are there in the municipality whose mayor is Boy Quiat?
CREATE TABLE table_216776_2 (pop_density__per_km²_ VARCHAR, municipal_mayor VARCHAR)
SELECT opponent_in_the_final FROM table_23284597_3 WHERE score_in_the_final = "3–6, 1–6"
Name the opponent in the final for 3–6, 1–6
CREATE TABLE table_23284597_3 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT location FROM table_name_68 WHERE type = "surveying"
What location has surveying as the type?
CREATE TABLE table_name_68 (location VARCHAR, type VARCHAR)
SELECT circuit FROM table_10725629_2 WHERE date = "October 4"
Which circuits had a race on October 4?
CREATE TABLE table_10725629_2 (circuit VARCHAR, date VARCHAR)
SELECT team FROM table_name_50 WHERE year = "1989"
What is the team in 1989?
CREATE TABLE table_name_50 (team VARCHAR, year VARCHAR)
SELECT number FROM table_name_50 WHERE language = "german"
How many speak german?
CREATE TABLE table_name_50 (number VARCHAR, language VARCHAR)
SELECT position FROM table_14139408_1 WHERE team = "Skilled Racing team"
what's the position with team being skilled racing team
CREATE TABLE table_14139408_1 (position VARCHAR, team VARCHAR)
SELECT COUNT(league) AS Cup FROM table_name_30 WHERE total < 1
What's the total for a league cup less than 1?
CREATE TABLE table_name_30 (league VARCHAR, total INTEGER)
SELECT result FROM table_27616663_1 WHERE original_artist = "Caetano Veloso"
What was the result of the performance of the song by Caetano Veloso?
CREATE TABLE table_27616663_1 (result VARCHAR, original_artist VARCHAR)
SELECT directed_by FROM table_11111116_7 WHERE us_viewers__million_ = "2.61"
Who directed episodes that had 2.61 million U.S. viewers?
CREATE TABLE table_11111116_7 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(candidates) FROM table_1341897_3 WHERE incumbent = "Kenneth A. Roberts"
How many candidates represent the district of kenneth a. roberts?
CREATE TABLE table_1341897_3 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(attendance) FROM table_name_44 WHERE result = "won 4-2"
How many people attended the game when the game was won 4-2?
CREATE TABLE table_name_44 (attendance VARCHAR, result VARCHAR)
SELECT margin_of_victory FROM table_name_65 WHERE winning_score = 68 - 67 - 69 - 65 = 269
What was the Margin of Victory of winning score 68-67-69-65=269?
CREATE TABLE table_name_65 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT MIN(draft) FROM table_name_7 WHERE nationality = "canada" AND player = "shane doan category:articles with hcards" AND round < 1
What is the lowest Draft, when Nationality is "Canada", when Player is "Shane Doan Category:Articles with hCards", and when Round is less than 1?
CREATE TABLE table_name_7 (draft INTEGER, round VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT winning_team FROM table_10706961_2 WHERE winning_driver = "Bobby Rahal"
Which teams won when Bobby Rahal was their winning driver?
CREATE TABLE table_10706961_2 (winning_team VARCHAR, winning_driver VARCHAR)
SELECT winning_score FROM table_1940012_2 WHERE tournament = "Sybase Classic"
What was the winning score in the Sybase Classic tournament?
CREATE TABLE table_1940012_2 (winning_score VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_58 WHERE date = "february 25, 1996"
Name the surface for february 25, 1996
CREATE TABLE table_name_58 (surface VARCHAR, date VARCHAR)
SELECT COUNT(crowd) FROM table_name_31 WHERE home_team = "essendon"
I want the total number of people in the crowd for essendon home team
CREATE TABLE table_name_31 (crowd VARCHAR, home_team VARCHAR)
SELECT xii_season FROM table_name_57 WHERE episode = "6"
What is XII Season, when Episode is 6?
CREATE TABLE table_name_57 (xii_season VARCHAR, episode VARCHAR)
SELECT incumbent FROM table_1341707_45 WHERE district = "Texas 15"
Who is the incumbent in district Texas 15?
CREATE TABLE table_1341707_45 (incumbent VARCHAR, district VARCHAR)
SELECT state_country FROM table_25594888_1 WHERE skipper = "Sean Langman"
What State/Country is Sean Langman the skipper?
CREATE TABLE table_25594888_1 (state_country VARCHAR, skipper VARCHAR)
SELECT COUNT(member) FROM table_11764007_2 WHERE week_arrived_on_main_island = "4"
How many members arrived on the main island in week 4?
CREATE TABLE table_11764007_2 (member VARCHAR, week_arrived_on_main_island VARCHAR)
SELECT written_by FROM table_2866509_1 WHERE production_code = 176206
who are the writers of the episode whose production code is 176206?
CREATE TABLE table_2866509_1 (written_by VARCHAR, production_code VARCHAR)
SELECT venue FROM table_name_60 WHERE home_team = "collingwood"
What is the venue where Collingwood played as the home team?
CREATE TABLE table_name_60 (venue VARCHAR, home_team VARCHAR)
SELECT MIN(long) FROM table_name_16 WHERE gp_gs = "11-8" AND gain < 228
What is the lowest long with a Gp-GS of 11-8, and a gain less than 228?
CREATE TABLE table_name_16 (long INTEGER, gp_gs VARCHAR, gain VARCHAR)
SELECT grand_finaldate FROM table_name_44 WHERE score = "30-24"
What is the grand final date for the game with a score or 30-24?
CREATE TABLE table_name_44 (grand_finaldate VARCHAR, score VARCHAR)
SELECT MAX(year_of_release) FROM table_name_98 WHERE title = "death valley"
What is the latest year of the album with the release title death valley?
CREATE TABLE table_name_98 (year_of_release INTEGER, title VARCHAR)
SELECT COUNT(nhl_team) FROM table_2897457_7 WHERE pick__number = 128
How many NHL teams have a pick number of 128?
CREATE TABLE table_2897457_7 (nhl_team VARCHAR, pick__number VARCHAR)
SELECT MIN(total) FROM table_name_75 WHERE silver > 0 AND gold = 9 AND bronze < 9
With a silver greater than 0, gold of 9 and a bronze less than 9, what is the lowest total listed?
CREATE TABLE table_name_75 (total INTEGER, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT date FROM table_name_79 WHERE result = "eng by 1 wkt"
On what date was the result Eng by 1 wkt?
CREATE TABLE table_name_79 (date VARCHAR, result VARCHAR)
SELECT COUNT(round) FROM table_name_77 WHERE position = "2b"
What is the total number of Round, when Position is 2B?
CREATE TABLE table_name_77 (round VARCHAR, position VARCHAR)
SELECT race_name FROM table_16732659_2 WHERE rnd = 13
PLEASE LIST ALL RACES WHERE THE RND IS 13.
CREATE TABLE table_16732659_2 (race_name VARCHAR, rnd VARCHAR)
SELECT written_by FROM table_name_42 WHERE original_airdate = "march 1, 1998"
Who wrote the episode that originally aired on March 1, 1998?
CREATE TABLE table_name_42 (written_by VARCHAR, original_airdate VARCHAR)
SELECT finish FROM table_name_58 WHERE year_s__won = "1962 , 1967"
What is Finish, when Year(s) Won is "1962 , 1967"?
CREATE TABLE table_name_58 (finish VARCHAR, year_s__won VARCHAR)
SELECT winner FROM table_25938117_1 WHERE date = "Jan 24"
Name the winner for jan 24
CREATE TABLE table_25938117_1 (winner VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_96 WHERE score_in_the_final = "4–6, 5–7"
Which Outcome has a Score in the final of 4–6, 5–7?
CREATE TABLE table_name_96 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT name FROM table_name_34 WHERE date_from = "13 august 2008"
What is the name of the player that was loaned out on 13 August 2008 ?
CREATE TABLE table_name_34 (name VARCHAR, date_from VARCHAR)
SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States' OR T1.name = 'Billund Airport'
What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?
CREATE TABLE airport (id VARCHAR, country VARCHAR, name VARCHAR); CREATE TABLE flight (pilot VARCHAR, airport_id VARCHAR)
SELECT date FROM table_name_64 WHERE surface = "hard" AND partner = "marc gicquel"
What day was there a hard surface when the partner was Marc Gicquel?
CREATE TABLE table_name_64 (date VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT opponent FROM table_name_35 WHERE date = "july 21"
What was the opponent for july 21?
CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR)
SELECT score FROM table_name_91 WHERE loss = "buehrle (7-2)"
Which Score has a Loss of buehrle (7-2)?
CREATE TABLE table_name_91 (score VARCHAR, loss VARCHAR)
SELECT SUM(foundation) FROM table_name_79 WHERE japanese_orthography = "国立看護大学校"
What is the number of the Foundation with Japanese orthography of 国立看護大学校?
CREATE TABLE table_name_79 (foundation INTEGER, japanese_orthography VARCHAR)
SELECT s_motor_ship___s_naval_trawler FROM table_name_13 WHERE grand_total = 20
How many ships for the nation with grand total of 20?
CREATE TABLE table_name_13 (s_motor_ship___s_naval_trawler VARCHAR, grand_total VARCHAR)
SELECT COUNT(malaysia_cup) FROM table_name_5 WHERE total < 0
How many Malaysia Cups have a total less than 0?
CREATE TABLE table_name_5 (malaysia_cup VARCHAR, total INTEGER)
SELECT T3.venue FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city JOIN MATCH AS T3 ON T2.match_id = T3.match_id WHERE T1.city = "Nanjing ( Jiangsu )" AND T3.competition = "1994 FIFA World Cup qualification"
What is the venue of the competition "1994 FIFA World Cup qualification" hosted by "Nanjing ( Jiangsu )"?
CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE MATCH (venue VARCHAR, match_id VARCHAR, competition VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR, match_id VARCHAR)
SELECT SUM(silver) FROM table_name_67 WHERE gold > 21 AND bronze = 76 AND total < 291
What team had less than 291 total points whole having 76 bronze and over 21 gold?
CREATE TABLE table_name_67 (silver INTEGER, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT MAX(attendance) FROM table_name_45 WHERE loss = "francis (4–9)"
Loss of francis (4–9) has what highest attendance figure?
CREATE TABLE table_name_45 (attendance INTEGER, loss VARCHAR)
SELECT SUM(position) FROM table_name_45 WHERE losses = 11 AND played > 22
Which Position has Losses of 11, and a Played larger than 22?
CREATE TABLE table_name_45 (position INTEGER, losses VARCHAR, played VARCHAR)
SELECT nhl_team FROM table_1473672_2 WHERE player = "Stan Weir"
What nhl team does stan weir play for?
CREATE TABLE table_1473672_2 (nhl_team VARCHAR, player VARCHAR)
SELECT COUNT(first_elected) FROM table_name_77 WHERE incumbent = "barclay henley"
What year was Barclay Henley first elected?
CREATE TABLE table_name_77 (first_elected VARCHAR, incumbent VARCHAR)
SELECT away_team FROM table_name_13 WHERE home_team = "hawthorn"
Who is the away team that played home team Hawthorn?
CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR)
SELECT rider FROM table_name_67 WHERE laps < 16 AND time = "accident" AND bike = "yamaha yzf-r6" AND grid = 10
What is the driver with the laps under 16, grid of 10, a bike of Yamaha YZF-R6, and ended with an accident?
CREATE TABLE table_name_67 (rider VARCHAR, grid VARCHAR, bike VARCHAR, laps VARCHAR, time VARCHAR)
SELECT AVG(wins) FROM table_name_83 WHERE losses = 17
What is the wins average when 17 games were lost?
CREATE TABLE table_name_83 (wins INTEGER, losses VARCHAR)
SELECT date FROM table_name_12 WHERE score = "1–6 6–1 3–6"
On what day was the score of 1–6 6–1 3–6 achieved?
CREATE TABLE table_name_12 (date VARCHAR, score VARCHAR)
SELECT AVG(wins) FROM table_name_59 WHERE draws < 1 AND losses > 4
How many wins when the draws are less than 1 and more than 4 losses?
CREATE TABLE table_name_59 (wins INTEGER, draws VARCHAR, losses VARCHAR)
SELECT january_15_16 FROM table_25287007_2 WHERE august_21_22 = "August 21, 2017"
How many solar eclipse during January 15-16 and august 21-22 on august 21, 2017?
CREATE TABLE table_25287007_2 (january_15_16 VARCHAR, august_21_22 VARCHAR)
SELECT SUM(teams) FROM table_name_19 WHERE season = "2012-13"
What is the total teams during the 2012-13 season?
CREATE TABLE table_name_19 (teams INTEGER, season VARCHAR)
SELECT score FROM table_name_29 WHERE tie_no = "9"
What is the score when the tie is 9?
CREATE TABLE table_name_29 (score VARCHAR, tie_no VARCHAR)
SELECT property_taxes FROM table_name_33 WHERE year > 2002 AND total_revenue = "$40,891,700"
What were property taxes in a year when total revenue was $40,891,700 after 2002?
CREATE TABLE table_name_33 (property_taxes VARCHAR, year VARCHAR, total_revenue VARCHAR)
SELECT MAX(2004) FROM table_name_86 WHERE 2009 > 26.1
What is the maximum in 2004 when 2009 is higher than 26.1?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT nationality FROM table_1965650_6 WHERE player = "Neil Korzack"
What nationality for neil korzack?
CREATE TABLE table_1965650_6 (nationality VARCHAR, player VARCHAR)
SELECT traditional FROM table_1638437_2 WHERE population = 74779
Name the traditional for population 74779
CREATE TABLE table_1638437_2 (traditional VARCHAR, population VARCHAR)
SELECT COUNT(field_goals) FROM table_name_33 WHERE points > 5 AND touchdowns > 2 AND extra_points < 0
How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0?
CREATE TABLE table_name_33 (field_goals VARCHAR, extra_points VARCHAR, points VARCHAR, touchdowns VARCHAR)
SELECT venue FROM table_name_49 WHERE away_team = "footscray"
Where was the game against the away team Footscray held?
CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR)
SELECT issue FROM table_name_20 WHERE artist = "mort drucker" AND date = "february 2001"
What issue has mort drucker as the artist and february 2001 as the date?
CREATE TABLE table_name_20 (issue VARCHAR, artist VARCHAR, date VARCHAR)
SELECT venue FROM table_name_29 WHERE week < 2
Which venue has a week smaller than 2?
CREATE TABLE table_name_29 (venue VARCHAR, week INTEGER)
SELECT winning_team FROM table_25572118_1 WHERE series = "FR2.0 9"
When fr2.0 9 is the series who is the winning team?
CREATE TABLE table_25572118_1 (winning_team VARCHAR, series VARCHAR)
SELECT name FROM table_name_67 WHERE rank = 18
What is the Name of the Players with a Rank of 18?
CREATE TABLE table_name_67 (name VARCHAR, rank VARCHAR)
SELECT AVG(cuts_made) FROM table_name_62 WHERE tournament = "totals" AND events > 24
What was the cuts average in tournament totals in an event larger than 24?
CREATE TABLE table_name_62 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR)
SELECT team FROM table_20500097_1 WHERE series = "GP3 series"
What team did he compete for in the GP3 series?
CREATE TABLE table_20500097_1 (team VARCHAR, series VARCHAR)
SELECT pop_density__per_km²_ FROM table_261951_1 WHERE municipality = "Calintaan"
List the population density per kilometer for the city of calintaan?
CREATE TABLE table_261951_1 (pop_density__per_km²_ VARCHAR, municipality VARCHAR)
SELECT pick__number FROM table_name_45 WHERE college = "central missouri state"
What is the pick number for the College of Central Missouri State?
CREATE TABLE table_name_45 (pick__number VARCHAR, college VARCHAR)
SELECT pilot FROM table_221315_3 WHERE max_altitude__miles_ = "55.9"
Who was the pilot of max altitude of 55.9 miles?
CREATE TABLE table_221315_3 (pilot VARCHAR, max_altitude__miles_ VARCHAR)
SELECT school_club_team FROM table_name_38 WHERE pick = "9 (via hamilton)"
What is School/Club Team, when Pick is 9 (via Hamilton)?
CREATE TABLE table_name_38 (school_club_team VARCHAR, pick VARCHAR)
SELECT SUM(design_flow__lpm_) FROM table_name_6 WHERE partner = "app" AND construction_start = "2008 january" AND population_served > 3500
What is the total Design flow (LPM) with a Partner of app, a Construction Start of 2008 january, and a Population Served larger than 3500?
CREATE TABLE table_name_6 (design_flow__lpm_ INTEGER, population_served VARCHAR, partner VARCHAR, construction_start VARCHAR)
SELECT high_points FROM table_11960610_10 WHERE high_rebounds = "Gray (8)"
Who had high points when high rebound is gray (8)?
CREATE TABLE table_11960610_10 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT AVG(year) FROM table_name_74 WHERE location = "yankee stadium" AND result = "23-23"
what is the year when the location is yankee stadium and the result is 23-23
CREATE TABLE table_name_74 (year INTEGER, location VARCHAR, result VARCHAR)
SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = "elon"
Which runner-up placed in a year prior to 2006 and whose Champion was Elon?
CREATE TABLE table_name_66 (runner_up VARCHAR, year VARCHAR, champion VARCHAR)
SELECT MAX(stolen_ends) FROM table_29546030_2 WHERE w = 1
What is the most amount of stolen ends for a skip with 1 W?
CREATE TABLE table_29546030_2 (stolen_ends INTEGER, w VARCHAR)
SELECT MIN(bronze) FROM table_name_58 WHERE silver = 9 AND total > 13 AND gold > 13
What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has?
CREATE TABLE table_name_58 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT diameter__km_ FROM table_name_30 WHERE name = "kaiwan fluctus"
What's the diameter of kaiwan fluctus?
CREATE TABLE table_name_30 (diameter__km_ VARCHAR, name VARCHAR)
SELECT artist FROM table_name_58 WHERE draw > 15
Which artist has a draw greater than 15?
CREATE TABLE table_name_58 (artist VARCHAR, draw INTEGER)
SELECT bleeding_time FROM table_1555308_1 WHERE prothrombin_time = "Unaffected" AND platelet_count = "Unaffected"
What are all the possible bleeding time results where prothrombin time and platelet count are both unaffected?
CREATE TABLE table_1555308_1 (bleeding_time VARCHAR, prothrombin_time VARCHAR, platelet_count VARCHAR)
SELECT home_team FROM table_name_5 WHERE venue = "glenferrie oval"
What home team plays at glenferrie oval?
CREATE TABLE table_name_5 (home_team VARCHAR, venue VARCHAR)
SELECT position FROM table_name_93 WHERE player = "hedo türkoğlu"
What position does Hedo Türkoğlu play?
CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR)
SELECT AVG(attendance) FROM table_name_57 WHERE venue = "a" AND date = "16 october 2004"
What is the average Attendance at Venue A on 16 October 2004?
CREATE TABLE table_name_57 (attendance INTEGER, venue VARCHAR, date VARCHAR)
SELECT championship FROM table_2516282_3 WHERE partner = "Jie Zheng"
In which championship was the partner Jie Zheng?
CREATE TABLE table_2516282_3 (championship VARCHAR, partner VARCHAR)
SELECT score FROM table_20745706_1 WHERE date = "February 8, 1992"
What was the score on February 8, 1992?
CREATE TABLE table_20745706_1 (score VARCHAR, date VARCHAR)
SELECT yankton_yanktonai FROM table_1499791_2 WHERE southern_lakota = "wičháša"
Name the yankton yanktonai for wičháša
CREATE TABLE table_1499791_2 (yankton_yanktonai VARCHAR, southern_lakota VARCHAR)
SELECT MIN(bronze) FROM table_name_9 WHERE rank = "11" AND silver < 1
How many Bronze medals for the Nation with a Rank of 11 and less than 1 Silver?
CREATE TABLE table_name_9 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT AVG(laps) FROM table_name_96 WHERE driver = "ricardo sperafico"
Driver Ricardo Sperafico has what as his average laps?
CREATE TABLE table_name_96 (laps INTEGER, driver VARCHAR)
SELECT COUNT(year) FROM table_name_32 WHERE player = "landon donovan"
What is the sum of all the years that Landon Donovan won the ESPY award?
CREATE TABLE table_name_32 (year VARCHAR, player VARCHAR)
SELECT previous_team FROM table_name_41 WHERE nationality = "united states" AND nba_years_[a_] = 2 AND pos = "f"
What is the previous team of the United States player who had 2 NBA years and played the F position?
CREATE TABLE table_name_41 (previous_team VARCHAR, pos VARCHAR, nationality VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)
SELECT dept_name, building FROM department ORDER BY budget DESC
List the names and buildings of all departments sorted by the budget from large to small.
CREATE TABLE department (dept_name VARCHAR, building VARCHAR, budget VARCHAR)
SELECT MAX(tries_for) FROM table_name_12 WHERE points_against < 124 AND points_for < 241 AND tries_against < 11
Which Tries for has Points against smaller than 124, and Points for smaller than 241, and Tries against smaller than 11?
CREATE TABLE table_name_12 (tries_for INTEGER, tries_against VARCHAR, points_against VARCHAR, points_for VARCHAR)
SELECT 2 AS nd_leg FROM table_name_20 WHERE team__number2 = "dinamo minsk"
What is the 2nd leg of dinamo minsk team #2?
CREATE TABLE table_name_20 (team__number2 VARCHAR)