question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the team performance in 1977?
CREATE TABLE table_name_28 (team_performance VARCHAR, year VARCHAR)
SELECT team_performance FROM table_name_28 WHERE year = 1977
What is the position of club Melilla CF, with a goal difference smaller than -10?
CREATE TABLE table_name_63 (position INTEGER, club VARCHAR, goal_difference VARCHAR)
SELECT SUM(position) FROM table_name_63 WHERE club = "melilla cf" AND goal_difference < -10
What was the position of the player from Butler High School?
CREATE TABLE table_11677691_10 (position VARCHAR, school VARCHAR)
SELECT position FROM table_11677691_10 WHERE school = "Butler High school"
What is the earliest year the world junior championships has 1500 m notes?
CREATE TABLE table_name_85 (year INTEGER, notes VARCHAR, competition VARCHAR)
SELECT MIN(year) FROM table_name_85 WHERE notes = "1500 m" AND competition = "world junior championships"
Steve Wallace was a Race Winner at the Kentucky Speedway on what date?
CREATE TABLE table_name_75 (date VARCHAR, race_winner VARCHAR, track VARCHAR)
SELECT date FROM table_name_75 WHERE race_winner = "steve wallace" AND track = "kentucky speedway"
How many % same-sex marriages are there for the year 2008?
CREATE TABLE table_19614212_1 (_percentage_same_sex_marriages VARCHAR, year VARCHAR)
SELECT COUNT(_percentage_same_sex_marriages) FROM table_19614212_1 WHERE year = "2008"
What is every entry for description when the value of %yes is 51.82%?
CREATE TABLE table_256286_43 (description VARCHAR, _percentage_yes VARCHAR)
SELECT description FROM table_256286_43 WHERE _percentage_yes = "51.82%"
What is the name of the captain when teh shirt sponsor is n/a?
CREATE TABLE table_27631756_2 (captain VARCHAR, shirt_sponsor VARCHAR)
SELECT captain FROM table_27631756_2 WHERE shirt_sponsor = "N/A"
How many laps have a time/retired of +23.080?
CREATE TABLE table_name_51 (laps VARCHAR, time_retired VARCHAR)
SELECT laps FROM table_name_51 WHERE time_retired = "+23.080"
Name the studio for catalog number 81063
CREATE TABLE table_27303975_2 (studio VARCHAR, catalog_number VARCHAR)
SELECT studio FROM table_27303975_2 WHERE catalog_number = "81063"
Which Names have Deciles larger than 7?
CREATE TABLE table_name_38 (name VARCHAR, decile INTEGER)
SELECT name FROM table_name_38 WHERE decile > 7
How many silver when the team is northwest territories and gold is less than 34?
CREATE TABLE table_name_14 (silver VARCHAR, team VARCHAR, gold VARCHAR)
SELECT COUNT(silver) FROM table_name_14 WHERE team = "northwest territories" AND gold < 34
What is the Quantity of type 2-4-2t?
CREATE TABLE table_name_59 (quantity VARCHAR, type VARCHAR)
SELECT COUNT(quantity) FROM table_name_59 WHERE type = "2-4-2t"
what is the rating where the rank is 48?
CREATE TABLE table_15681686_4 (rating VARCHAR, rank__week_ VARCHAR)
SELECT rating / SHARE(18 - 49) FROM table_15681686_4 WHERE rank__week_ = "48"
How many people are enrolled in platteville, wi?
CREATE TABLE table_name_38 (enrollment INTEGER, location VARCHAR)
SELECT SUM(enrollment) FROM table_name_38 WHERE location = "platteville, wi"
What Lap-by-lap has Chris Myers as the Pre-Race Host, a Year larger than 2008, and 9.9/22 as its Ratings?
CREATE TABLE table_name_48 (lap_by_lap VARCHAR, ratings VARCHAR, year VARCHAR, pre_race_host VARCHAR)
SELECT lap_by_lap FROM table_name_48 WHERE year > 2008 AND pre_race_host = "chris myers" AND ratings = "9.9/22"
Which Class has a Number at Lincoln smaller than 1 and a Wheel Arrangement of 0-6-0?
CREATE TABLE table_name_60 (class VARCHAR, number_at_lincoln VARCHAR, wheel_arrangement VARCHAR)
SELECT class FROM table_name_60 WHERE number_at_lincoln < 1 AND wheel_arrangement = "0-6-0"
Who was the 3rd performer when christopher smith was the 2nd performer?
CREATE TABLE table_name_19 (performer_3 VARCHAR, performer_2 VARCHAR)
SELECT performer_3 FROM table_name_19 WHERE performer_2 = "christopher smith"
What are the details of the lots which are not used in any transactions?
CREATE TABLE Lots (lot_details VARCHAR, lot_id VARCHAR); CREATE TABLE Lots (lot_details VARCHAR); CREATE TABLE transactions_lots (lot_id VARCHAR)
SELECT lot_details FROM Lots EXCEPT SELECT T1.lot_details FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id = T2.lot_id
What was the attendance for a week larger than 3, and an opponent of philadelphia eagles?
CREATE TABLE table_name_58 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_58 WHERE week > 3 AND opponent = "philadelphia eagles"
What is the average Year, when Competition is Oceania Youth Championships?
CREATE TABLE table_name_89 (year INTEGER, competition VARCHAR)
SELECT AVG(year) FROM table_name_89 WHERE competition = "oceania youth championships"
What is the value for Wins, when the Series is GP2 Series, and when the Season is before 2009?
CREATE TABLE table_name_41 (wins VARCHAR, series VARCHAR, season VARCHAR)
SELECT wins FROM table_name_41 WHERE series = "gp2 series" AND season < 2009
What round was Craig Erickson drafted?
CREATE TABLE table_name_58 (round VARCHAR, player VARCHAR)
SELECT round FROM table_name_58 WHERE player = "craig erickson"
Who were the writers for series number 20?
CREATE TABLE table_11951237_1 (written_by VARCHAR, series__number VARCHAR)
SELECT written_by FROM table_11951237_1 WHERE series__number = 20
What week had 58,025 in attendance?
CREATE TABLE table_name_87 (week INTEGER, attendance VARCHAR)
SELECT SUM(week) FROM table_name_87 WHERE attendance = "58,025"
Which Color commentator has a Channel of fsn new england, and a Year of 2004-05?
CREATE TABLE table_name_41 (color_commentator_s_ VARCHAR, channel VARCHAR, year VARCHAR)
SELECT color_commentator_s_ FROM table_name_41 WHERE channel = "fsn new england" AND year = "2004-05"
How many items were recorded marseille (32 draw) was a 2 seed?
CREATE TABLE table_20711545_1 (marseille__32_draw_ VARCHAR, seed VARCHAR)
SELECT COUNT(marseille__32_draw_) FROM table_20711545_1 WHERE seed = 2
What was the result of the film with the Portuguese title, Um Filme Falado?
CREATE TABLE table_22118197_1 (result VARCHAR, portuguese_title VARCHAR)
SELECT result FROM table_22118197_1 WHERE portuguese_title = "Um Filme Falado"
What are the dates where the opponent was guillermo garcía-lópez albert portas?
CREATE TABLE table_name_9 (date VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_9 WHERE opponents = "guillermo garcía-lópez albert portas"
What are the notes for 6:31.16?
CREATE TABLE table_name_85 (notes VARCHAR, time VARCHAR)
SELECT notes FROM table_name_85 WHERE time = "6:31.16"
How many times did argentina win?
CREATE TABLE table_14573770_4 (winners INTEGER, nation VARCHAR)
SELECT MAX(winners) FROM table_14573770_4 WHERE nation = "Argentina"
Points of 26, and a Rank smaller than 27 had what sum of wins?
CREATE TABLE table_name_82 (wins INTEGER, points VARCHAR, rank VARCHAR)
SELECT SUM(wins) FROM table_name_82 WHERE points = 26 AND rank < 27
When did the High Park Demons play Away?
CREATE TABLE table_name_64 (date VARCHAR, away VARCHAR)
SELECT date FROM table_name_64 WHERE away = "high park demons"
What is HSN's official virtual channel in Minneapolis-St. Paul?
CREATE TABLE table_1404984_1 (virtual_channel VARCHAR, network VARCHAR)
SELECT virtual_channel FROM table_1404984_1 WHERE network = "HSN"
How many golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have?
CREATE TABLE table_name_62 (gold VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(gold) FROM table_name_62 WHERE bronze < 5 AND silver > 1 AND rank > 8
What smallest amount in the weeks at peak column?
CREATE TABLE table_26399982_2 (weeks_at_peak INTEGER)
SELECT MIN(weeks_at_peak) FROM table_26399982_2
What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is Chivas usa?
CREATE TABLE table_11148572_1 (mls_cup_winner VARCHAR, mls_supporters_shield_runner_up VARCHAR)
SELECT mls_cup_winner FROM table_11148572_1 WHERE mls_supporters_shield_runner_up = "Chivas USA"
Who is the Finalist, when the Surface is Clay, and when the Semifinalist is Yevgeny Kafelnikov Juan Carlos Ferrero (2)?
CREATE TABLE table_name_20 (finalist VARCHAR, surface VARCHAR, semifinalists VARCHAR)
SELECT finalist FROM table_name_20 WHERE surface = "clay" AND semifinalists = "yevgeny kafelnikov juan carlos ferrero (2)"
What is the status of the player who is moving to Nantes?
CREATE TABLE table_name_72 (status VARCHAR, moving_to VARCHAR)
SELECT status FROM table_name_72 WHERE moving_to = "nantes"
What week was it on November 19, 1995?
CREATE TABLE table_name_87 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_87 WHERE date = "november 19, 1995"
What year was the class 253 larger than 18 built?
CREATE TABLE table_name_10 (year_built VARCHAR, class VARCHAR, number VARCHAR)
SELECT year_built FROM table_name_10 WHERE class = "class 253" AND number > 18
List each donator name and the amount of endowment in descending order of the amount of endowment.
CREATE TABLE endowment (donator_name VARCHAR, amount INTEGER)
SELECT donator_name, SUM(amount) FROM endowment GROUP BY donator_name ORDER BY SUM(amount) DESC
WHAT IS THE COUNTRY WITH NAME OF KANU?
CREATE TABLE table_name_48 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_48 WHERE name = "kanu"
What is the total number of music genre/style in which the lyrics are a detective story?
CREATE TABLE table_10416547_1 (music_genre_style VARCHAR, lyrics_theme_style VARCHAR)
SELECT COUNT(music_genre_style) FROM table_10416547_1 WHERE lyrics_theme_style = "Detective story"
How many points were won in 1996?
CREATE TABLE table_name_14 (points_won INTEGER, year VARCHAR)
SELECT MAX(points_won) FROM table_name_14 WHERE year = "1996"
Which Losses have a Goal Difference of -16, and less than 8 wins?
CREATE TABLE table_name_83 (losses INTEGER, goal_difference VARCHAR, wins VARCHAR)
SELECT MIN(losses) FROM table_name_83 WHERE goal_difference = -16 AND wins < 8
What is Joe Jonas' result at the Kids' Choice Awards Mexico?
CREATE TABLE table_name_32 (result VARCHAR, recipient_s_ VARCHAR, award VARCHAR)
SELECT result FROM table_name_32 WHERE recipient_s_ = "joe jonas" AND award = "kids' choice awards mexico"
What is the name of the episode with a production code of 107?
CREATE TABLE table_24425976_2 (episode_title VARCHAR, production_code VARCHAR)
SELECT episode_title FROM table_24425976_2 WHERE production_code = "107"
What frame size corresponds the selection with a max fps of 120, a width of 2048, and height of 1024?
CREATE TABLE table_name_74 (frame_size VARCHAR, height VARCHAR, max_fps VARCHAR, width VARCHAR)
SELECT frame_size FROM table_name_74 WHERE max_fps = 120 AND width = 2048 AND height = 1024
What year was Teresa Wright nominated best supporting actress?
CREATE TABLE table_18638067_1 (year__ceremony_ VARCHAR, actor_actress VARCHAR, category VARCHAR)
SELECT year__ceremony_ FROM table_18638067_1 WHERE actor_actress = "Teresa Wright" AND category = "Best Supporting Actress"
Name the host team for january 1 (2006)
CREATE TABLE table_name_93 (host_team VARCHAR, date VARCHAR)
SELECT host_team FROM table_name_93 WHERE date = "january 1 (2006)"
What programs are there for the South Fork Dirt Riders track?
CREATE TABLE table_name_44 (program VARCHAR, track_name VARCHAR)
SELECT program FROM table_name_44 WHERE track_name = "south fork dirt riders"
What is the weight of the bullet used in a Weatherby?
CREATE TABLE table_16010376_1 (bullet_weight VARCHAR, source VARCHAR)
SELECT bullet_weight FROM table_16010376_1 WHERE source = "Weatherby"
Which match had the largest crowd size where the away team was North Melbourne?
CREATE TABLE table_name_43 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_43 WHERE away_team = "north melbourne"
What's the engine used for rounds 5-6?
CREATE TABLE table_name_1 (engine VARCHAR, rounds VARCHAR)
SELECT engine FROM table_name_1 WHERE rounds = "5-6"
Which Name has a League Cup Goals of 0, and League Apps of 1?
CREATE TABLE table_name_75 (name VARCHAR, league_cup_goals VARCHAR, league_apps VARCHAR)
SELECT name FROM table_name_75 WHERE league_cup_goals = 0 AND league_apps = "1"
What is Driver Howden Ganley's Time/Retired?
CREATE TABLE table_name_75 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_75 WHERE driver = "howden ganley"
Which rank has a total less than 9, less than 2 bronze, and from France?
CREATE TABLE table_name_26 (rank VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT rank FROM table_name_26 WHERE total < 9 AND bronze < 2 AND nation = "france"
What final date had 16 housemates?
CREATE TABLE table_name_75 (final_date VARCHAR, housemates VARCHAR)
SELECT final_date FROM table_name_75 WHERE housemates = 16
Name the chinese traditional for 美丽人生
CREATE TABLE table_1893815_1 (chinese__traditional_ VARCHAR, chinese__simplified_ VARCHAR)
SELECT chinese__traditional_ FROM table_1893815_1 WHERE chinese__simplified_ = "美丽人生"
What institution is located in athens, ga, us?
CREATE TABLE table_name_55 (institution VARCHAR, location VARCHAR)
SELECT institution FROM table_name_55 WHERE location = "athens, ga, us"
Who were the semifinalists when sammy giammalva was runner-up?
CREATE TABLE table_29296103_10 (semifinalists VARCHAR, runner_up VARCHAR)
SELECT semifinalists FROM table_29296103_10 WHERE runner_up = "Sammy Giammalva"
When the number of wickets is 29, what was the economy?
CREATE TABLE table_28797906_3 (economy VARCHAR, wickets VARCHAR)
SELECT economy FROM table_28797906_3 WHERE wickets = 29
How many years were recorded when world ranking was 21st?
CREATE TABLE table_19948664_2 (index__year_ VARCHAR, world_ranking__1_ VARCHAR)
SELECT COUNT(index__year_) FROM table_19948664_2 WHERE world_ranking__1_ = "21st"
Which Height Metres / feet has a Rank of 8, and Floors of 3x17?
CREATE TABLE table_name_18 (height_metres___feet VARCHAR, rank VARCHAR, floors VARCHAR)
SELECT height_metres___feet FROM table_name_18 WHERE rank = 8 AND floors = "3x17"
Who had a finish of t15?
CREATE TABLE table_name_67 (player VARCHAR, finish VARCHAR)
SELECT player FROM table_name_67 WHERE finish = "t15"
What visitor has detroit red wings as the home, and march 30 as the date?
CREATE TABLE table_name_79 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_79 WHERE home = "detroit red wings" AND date = "march 30"
Which season had k0104?
CREATE TABLE table_2618113_1 (no_in_season INTEGER, production_code VARCHAR)
SELECT MAX(no_in_season) FROM table_2618113_1 WHERE production_code = "K0104"
Name the date successor seated for successor being vacant
CREATE TABLE table_2417330_4 (date_successor_seated VARCHAR, successor VARCHAR)
SELECT date_successor_seated FROM table_2417330_4 WHERE successor = "Vacant"
Name the kinship for *t-ina
CREATE TABLE table_15568886_14 (kinship VARCHAR, proto_malayo_polynesian VARCHAR)
SELECT kinship FROM table_15568886_14 WHERE proto_malayo_polynesian = "*t-ina"
What is the lowest play with ue figueres club and a goal difference more than 16?
CREATE TABLE table_name_41 (played INTEGER, club VARCHAR, goal_difference VARCHAR)
SELECT MIN(played) FROM table_name_41 WHERE club = "ue figueres" AND goal_difference > 16
What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points?
CREATE TABLE table_name_2 (attendance INTEGER, opponent VARCHAR, opponents VARCHAR)
SELECT AVG(attendance) FROM table_name_2 WHERE opponent = "pittsburgh steelers" AND opponents > 0
Which Visitor is listed as having a Date of December 17?
CREATE TABLE table_name_13 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_13 WHERE date = "december 17"
How many teams have 21 tries for?
CREATE TABLE table_15467476_3 (points_difference VARCHAR, tries_for VARCHAR)
SELECT COUNT(points_difference) FROM table_15467476_3 WHERE tries_for = "21"
What was the record in the game where the opponent wasd the atlanta falcons?
CREATE TABLE table_name_40 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_40 WHERE opponent = "atlanta falcons"
I want the points difference for points of 14
CREATE TABLE table_name_29 (points_difference VARCHAR, points VARCHAR)
SELECT points_difference FROM table_name_29 WHERE points = 14
What is the verb meaning for Gaben in part 3?
CREATE TABLE table_name_89 (verb_meaning VARCHAR, part_3 VARCHAR)
SELECT verb_meaning FROM table_name_89 WHERE part_3 = "gaben"
When 21' 18.87 106.209mph is Tuesday August 24th what is Monday August 23rd?
CREATE TABLE table_26986076_5 (mon_23_aug VARCHAR, tues_24_aug VARCHAR)
SELECT mon_23_aug FROM table_26986076_5 WHERE tues_24_aug = "21' 18.87 106.209mph"
What is the market income per capita in a county where the status is distressed and the unemployment rate is at 10.5%?
CREATE TABLE table_22815568_3 (market_income_per_capita VARCHAR, status VARCHAR, unemployment_rate VARCHAR)
SELECT market_income_per_capita FROM table_22815568_3 WHERE status = "Distressed" AND unemployment_rate = "10.5%"
What was the away team that played luton town?
CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_27 WHERE home_team = "luton town"
Who was the home team when Footscray was the away team?
CREATE TABLE table_name_50 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_50 WHERE away_team = "footscray"
What Year had a Runner(s)-up of flory van donck?
CREATE TABLE table_name_64 (year VARCHAR, runner_s__up VARCHAR)
SELECT year FROM table_name_64 WHERE runner_s__up = "flory van donck"
What is every original game for the artist Lynyrd Skynyrd?
CREATE TABLE table_21500850_1 (original_game VARCHAR, artist VARCHAR)
SELECT original_game FROM table_21500850_1 WHERE artist = "Lynyrd Skynyrd"
Which date has a Terrain of plain stage, and a Stage of 4?
CREATE TABLE table_name_34 (date VARCHAR, terrain VARCHAR, stage VARCHAR)
SELECT date FROM table_name_34 WHERE terrain = "plain stage" AND stage = "4"
What is the lowest and highest rating star?
CREATE TABLE Rating (stars INTEGER)
SELECT MAX(stars), MIN(stars) FROM Rating
What is the fewest draws for teams having under 2 losses, more than 4 wins, and a position under 4?
CREATE TABLE table_name_18 (draws INTEGER, wins VARCHAR, losses VARCHAR, position VARCHAR)
SELECT MIN(draws) FROM table_name_18 WHERE losses < 2 AND position < 4 AND wins > 4
Name the title that was directed by john terlesky
CREATE TABLE table_24222929_2 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_24222929_2 WHERE directed_by = "John Terlesky"
what is smallest number in fleet for chassis manufacturer Scania and fleet numbers is 3230?
CREATE TABLE table_1425948_1 (number_in_fleet INTEGER, chassis_manufacturer VARCHAR, fleet_numbers VARCHAR)
SELECT MIN(number_in_fleet) FROM table_1425948_1 WHERE chassis_manufacturer = "Scania" AND fleet_numbers = "3230"
What is the highest recorded latitude for the township that has an ANSI code greater than 1759541 and a population in 2010 of 72?
CREATE TABLE table_name_4 (latitude INTEGER, ansi_code VARCHAR, pop__2010_ VARCHAR)
SELECT MAX(latitude) FROM table_name_4 WHERE ansi_code > 1759541 AND pop__2010_ = 72
What is Syracuse, when Buffalo is Oatka Creek Shale, and when Albany is Berne?
CREATE TABLE table_name_90 (syracuse VARCHAR, buffalo VARCHAR, albany VARCHAR)
SELECT syracuse FROM table_name_90 WHERE buffalo = "oatka creek shale" AND albany = "berne"
For the tournament played on 26 February 2006, what surface was used?
CREATE TABLE table_name_35 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_35 WHERE date = "26 february 2006"
What is Result, when Film is "Dharma Chakram", and when Award is "Nandi Award for Best Actor"?
CREATE TABLE table_name_87 (result VARCHAR, film VARCHAR, award VARCHAR)
SELECT result FROM table_name_87 WHERE film = "dharma chakram" AND award = "nandi award for best actor"
what is the minimum purse( $ ) where tournament is ko olina senior invitational
CREATE TABLE table_11622255_1 (purse__ INTEGER, tournament VARCHAR)
SELECT MIN(purse__) AS $__ FROM table_11622255_1 WHERE tournament = "Ko Olina Senior Invitational"
How many games have 61-16 as the record?
CREATE TABLE table_name_14 (game VARCHAR, record VARCHAR)
SELECT COUNT(game) FROM table_name_14 WHERE record = "61-16"
Who is the director of the film with the title лепа села лепо горе?
CREATE TABLE table_22265716_1 (director VARCHAR, original_title VARCHAR)
SELECT director FROM table_22265716_1 WHERE original_title = "Лепа села лепо горе"
What is the tournament with A in 2011?
CREATE TABLE table_name_77 (tournament VARCHAR)
SELECT tournament FROM table_name_77 WHERE 2011 = "a"
What was Jim Furyk's score?
CREATE TABLE table_name_23 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_23 WHERE player = "jim furyk"
What is the average number lost when the PCT is more than 0.7334 and the total number of games is larger than 48?
CREATE TABLE table_name_22 (lost INTEGER, pct VARCHAR, total_games VARCHAR)
SELECT AVG(lost) FROM table_name_22 WHERE pct > 0.7334 AND total_games > 48
What would be the highest Platforms for the Centrale Tram Stop Stations?
CREATE TABLE table_name_15 (platforms INTEGER, stations VARCHAR)
SELECT MAX(platforms) FROM table_name_15 WHERE stations = "centrale tram stop"
What college did the player whose position was RB go to?
CREATE TABLE table_28059992_6 (college VARCHAR, position VARCHAR)
SELECT college FROM table_28059992_6 WHERE position = "RB"