question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Tell me the average for 1 yards
CREATE TABLE table_name_65 (avg VARCHAR, yards VARCHAR)
SELECT avg FROM table_name_65 WHERE yards = "1"
What is the lowest final score of the American Cup competition before 2009?
CREATE TABLE table_name_15 (score_final INTEGER, competition_description VARCHAR, year VARCHAR)
SELECT MIN(score_final) FROM table_name_15 WHERE competition_description = "american cup" AND year < 2009
When did Austin Austin TX get the third place?
CREATE TABLE table_2011349_2 (year VARCHAR, third_place VARCHAR)
SELECT year FROM table_2011349_2 WHERE third_place = "Austin Austin TX"
What is the average?
CREATE TABLE table_11206787_5 (average INTEGER)
SELECT MIN(average) FROM table_11206787_5
What winning team has a losing pitcher of Juan Dominguez?
CREATE TABLE table_name_31 (winning_team VARCHAR, losing_pitcher VARCHAR)
SELECT winning_team FROM table_name_31 WHERE losing_pitcher = "juan dominguez"
How many runs happened in 2013?
CREATE TABLE table_name_18 (runs VARCHAR, year VARCHAR)
SELECT runs FROM table_name_18 WHERE year = "2013"
Which Eliminated has an Entered smaller than 2?
CREATE TABLE table_name_42 (eliminated VARCHAR, entered INTEGER)
SELECT eliminated AS by FROM table_name_42 WHERE entered < 2
Which Result has a Home Team of rochester, and a Game of game 5?
CREATE TABLE table_name_99 (result VARCHAR, home_team VARCHAR, game VARCHAR)
SELECT result FROM table_name_99 WHERE home_team = "rochester" AND game = "game 5"
What is the lowest total medals when there were 0 gold medals, 0 silver medals, and more than 1 bronze medal?
CREATE TABLE table_name_77 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_77 WHERE bronze > 1 AND silver = 0 AND gold < 0
What is the type when the settlement is subotište?
CREATE TABLE table_2562572_52 (type VARCHAR, settlement VARCHAR)
SELECT type FROM table_2562572_52 WHERE settlement = "Subotište"
What is the top lap that had 6 grids and more than 19 points?
CREATE TABLE table_name_38 (laps INTEGER, grid VARCHAR, points VARCHAR)
SELECT MAX(laps) FROM table_name_38 WHERE grid = "6" AND points > 19
What's the release date of model number CORE I7-940?
CREATE TABLE table_name_27 (release_date VARCHAR, model_number VARCHAR)
SELECT release_date FROM table_name_27 WHERE model_number = "core i7-940"
Which level has marvin gaye as artist 1 and david bowie as artist 2?
CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR, artist_2 VARCHAR)
SELECT level FROM table_23649244_1 WHERE artist_1 = "Marvin Gaye" AND artist_2 = "David Bowie"
How many players named paddy rowan?
CREATE TABLE table_16527640_2 (rank_held_at_time_of_death VARCHAR, player VARCHAR)
SELECT COUNT(rank_held_at_time_of_death) FROM table_16527640_2 WHERE player = "Paddy Rowan"
What is the Paper Type with a First Day Cover Cancellation with ottawa, on?
CREATE TABLE table_name_11 (paper_type VARCHAR, first_day_cover_cancellation VARCHAR)
SELECT paper_type FROM table_name_11 WHERE first_day_cover_cancellation = "ottawa, on"
What is the area in kilometers squared the population density is 137.61?
CREATE TABLE table_14325808_1 (area__km²_ VARCHAR, density__pop_km²_ VARCHAR)
SELECT area__km²_ FROM table_14325808_1 WHERE density__pop_km²_ = "137.61"
Name the sport for men's light flyweight with medal of gold
CREATE TABLE table_name_75 (sport VARCHAR, medal VARCHAR, event VARCHAR)
SELECT sport FROM table_name_75 WHERE medal = "gold" AND event = "men's light flyweight"
What is stumped when matches is 14?
CREATE TABLE table_24039597_26 (stumped INTEGER, matches VARCHAR)
SELECT MIN(stumped) FROM table_24039597_26 WHERE matches = 14
Which Round has a Location of auckland, new zealand, and a Method of tko on 1994-11-24?
CREATE TABLE table_name_83 (round INTEGER, date VARCHAR, location VARCHAR, method VARCHAR)
SELECT AVG(round) FROM table_name_83 WHERE location = "auckland, new zealand" AND method = "tko" AND date = "1994-11-24"
Where was the game in which Carl Landry (25) did the most high points played?
CREATE TABLE table_23281862_6 (location_attendance VARCHAR, high_points VARCHAR)
SELECT location_attendance FROM table_23281862_6 WHERE high_points = "Carl Landry (25)"
How many millions viewers watched the episode that ran 23:25?
CREATE TABLE table_2101431_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT viewers__in_millions_ FROM table_2101431_1 WHERE run_time = "23:25"
Who was eliminated when immunity went to kent (jürgen)?
CREATE TABLE table_25016824_2 (eliminated VARCHAR, immunity VARCHAR)
SELECT eliminated FROM table_25016824_2 WHERE immunity = "Kent (Jürgen)"
What are the lengths of the models that are mm (in) tall?
CREATE TABLE table_1773707_2 (length VARCHAR, height VARCHAR)
SELECT length FROM table_1773707_2 WHERE height = "mm (in)"
What was the age of the member of the United States House of Representatives that began their term on May 7, 1886?
CREATE TABLE table_name_66 (age__years VARCHAR, _days_ VARCHAR, begin_date VARCHAR)
SELECT age__years, _days_ FROM table_name_66 WHERE begin_date = "may 7, 1886"
Which team played in the Boston Garden when the final score was L 118-130?
CREATE TABLE table_name_18 (team VARCHAR, location_attendance VARCHAR, score VARCHAR)
SELECT team FROM table_name_18 WHERE location_attendance = "boston garden" AND score = "l 118-130"
How many players are from the country of Brazil?
CREATE TABLE table_24565004_15 (position VARCHAR, nationality² VARCHAR)
SELECT COUNT(position) FROM table_24565004_15 WHERE nationality² = "Brazil"
From what Country is Gary Evans?
CREATE TABLE table_name_81 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_81 WHERE player = "gary evans"
If the decision was by Lalime, when in January was it made?
CREATE TABLE table_27537870_6 (january VARCHAR, decision VARCHAR)
SELECT january FROM table_27537870_6 WHERE decision = "Lalime"
If the total points is 5, what is the 2005-2006 points total number?
CREATE TABLE table_23215145_2 (total_points VARCHAR)
SELECT COUNT(2005 AS _06_points) FROM table_23215145_2 WHERE total_points = 5
What is the settlement destiny in Aleksandrovo?
CREATE TABLE table_2562572_56 (settlement VARCHAR)
SELECT settlement AS destiny FROM table_2562572_56 WHERE settlement = "Aleksandrovo"
What is the margin for the Masters Tournament (2) championship?
CREATE TABLE table_name_34 (margin VARCHAR, championship VARCHAR)
SELECT margin FROM table_name_34 WHERE championship = "masters tournament (2)"
Who are all the assistant principals that served from 2013-2014 under the principal Cort Monroe?
CREATE TABLE table_14254419_3 (Assistant VARCHAR, principal__2013_2014_ VARCHAR)
SELECT Assistant AS principal__2013_2014_ FROM table_14254419_3 WHERE principal__2013_2014_ = "Cort Monroe"
Name the Date has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1
CREATE TABLE table_name_72 (date VARCHAR, competition VARCHAR, result VARCHAR)
SELECT date FROM table_name_72 WHERE competition = "welsh rugby union challenge trophy" AND result = "34-34"
What is the model number for part numbers of cm80616003177acbx80616i5660?
CREATE TABLE table_23028629_2 (model_number VARCHAR, part_number_s_ VARCHAR)
SELECT model_number FROM table_23028629_2 WHERE part_number_s_ = "CM80616003177ACBX80616I5660"
How many receptions for players with over 647 yards and an under 14 yard average?
CREATE TABLE table_name_83 (rec INTEGER, yards VARCHAR, avg VARCHAR)
SELECT MIN(rec) FROM table_name_83 WHERE yards > 647 AND avg < 14
Who is the home team when hawthorn is the away team?
CREATE TABLE table_name_95 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_95 WHERE away_team = "hawthorn"
What is the number of seasons coached by Kathy Graham?
CREATE TABLE table_name_2 (seasons INTEGER, name VARCHAR)
SELECT MIN(seasons) FROM table_name_2 WHERE name = "kathy graham"
Who was the director of Clean Pastures?
CREATE TABLE table_name_12 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_12 WHERE title = "clean pastures"
What is the years at the club of the player with 2 goals and was born on 23 July 1910?
CREATE TABLE table_name_63 (years_at_club VARCHAR, goals VARCHAR, date_of_birth VARCHAR)
SELECT years_at_club FROM table_name_63 WHERE goals = 2 AND date_of_birth = "23 july 1910"
Who were the opponent in the match on a clay surface that had a score of 6–3, 7–6 (11–9)?
CREATE TABLE table_name_84 (opponents VARCHAR, surface VARCHAR, score VARCHAR)
SELECT opponents FROM table_name_84 WHERE surface = "clay" AND score = "6–3, 7–6 (11–9)"
What driver has 19 as the zan 1?
CREATE TABLE table_name_13 (driver VARCHAR, zan_1 VARCHAR)
SELECT driver FROM table_name_13 WHERE zan_1 = "19"
What is the Product Name, when the Company Name is HTC Corporation?
CREATE TABLE table_name_63 (product_name VARCHAR, company_name VARCHAR)
SELECT product_name FROM table_name_63 WHERE company_name = "htc corporation"
Name the number of outgoing manager for rijeka
CREATE TABLE table_27225944_3 (outgoing_manager VARCHAR, team VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_27225944_3 WHERE team = "Rijeka"
How many schools did Mike Jones attend?
CREATE TABLE table_11677100_7 (school VARCHAR, player VARCHAR)
SELECT COUNT(school) FROM table_11677100_7 WHERE player = "Mike Jones"
A mintage of 31,997 has what issue price?
CREATE TABLE table_name_36 (issue_price VARCHAR, mintage VARCHAR)
SELECT issue_price FROM table_name_36 WHERE mintage = "31,997"
Who was the road team on May 2?
CREATE TABLE table_name_24 (road_team VARCHAR, date VARCHAR)
SELECT road_team FROM table_name_24 WHERE date = "may 2"
How many millions of U.S. viewers watched the show with a production code of 3T5769?
CREATE TABLE table_11694832_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
SELECT us_viewers__millions_ FROM table_11694832_1 WHERE production_code = "3T5769"
What position has over 0 wins and under 3 podiums?
CREATE TABLE table_name_16 (position VARCHAR, wins VARCHAR, podiums VARCHAR)
SELECT position FROM table_name_16 WHERE wins > 0 AND podiums < 3
What's the top rank that's lane is smaller than 1?
CREATE TABLE table_name_77 (rank INTEGER, lane INTEGER)
SELECT MAX(rank) FROM table_name_77 WHERE lane < 1
What shows for the Diameter (km) when the Diameter (mi) is 8mi, and a Gill is e?
CREATE TABLE table_name_66 (diameter__km_ VARCHAR, diameter__mi_ VARCHAR, gill VARCHAR)
SELECT diameter__km_ FROM table_name_66 WHERE diameter__mi_ = "8mi" AND gill = "e"
What is the Date of the game with a Record of 27–21–13?
CREATE TABLE table_name_11 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_11 WHERE record = "27–21–13"
What was the date of the game on week 7?
CREATE TABLE table_name_49 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_49 WHERE week = 7
How many times was the record 19–34
CREATE TABLE table_23248869_8 (score VARCHAR, record VARCHAR)
SELECT COUNT(score) FROM table_23248869_8 WHERE record = "19–34"
Which Attendance has a Result of l 26–16?
CREATE TABLE table_name_47 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_47 WHERE result = "l 26–16"
Show names of shops and the carriers of devices they have in stock.
CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Device_ID VARCHAR, Shop_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR)
SELECT T3.Shop_Name, T2.Carrier FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID
What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah?
CREATE TABLE table_name_77 (location VARCHAR, date VARCHAR, winner VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT location FROM table_name_77 WHERE fastest_lap = "ben spies" AND pole_position = "ben spies" AND winner = "ben spies" AND date = "tooele, utah"
What is the largest pick in round 8?
CREATE TABLE table_name_82 (pick INTEGER, round VARCHAR)
SELECT MAX(pick) FROM table_name_82 WHERE round = 8
How many average points did the team Minardi Team USA have when there was a grid 3 and more laps than 68?
CREATE TABLE table_name_21 (points INTEGER, laps VARCHAR, team VARCHAR, grid VARCHAR)
SELECT AVG(points) FROM table_name_21 WHERE team = "minardi team usa" AND grid = 3 AND laps > 68
How many clubs are involved when there are 4 winners from the previous rounds and more than 4 clubs remaining?
CREATE TABLE table_name_59 (clubs_involved INTEGER, winners_from_previous_round VARCHAR, clubs_remaining VARCHAR)
SELECT MIN(clubs_involved) FROM table_name_59 WHERE winners_from_previous_round = "4" AND clubs_remaining > 4
What is the Winning Team with Rick Mears' and Kraco Twin 125 (R1)?
CREATE TABLE table_name_80 (winning_team VARCHAR, winning_driver VARCHAR, name VARCHAR)
SELECT winning_team FROM table_name_80 WHERE winning_driver = "rick mears" AND name = "kraco twin 125 (r1)"
What is the greatest area when the Poor Law Union is Skibbereen and the Civil Parish is Tullagh?
CREATE TABLE table_30121082_1 (area__acres__ INTEGER, poor_law_union VARCHAR, civil_parish VARCHAR)
SELECT MAX(area__acres__) FROM table_30121082_1 WHERE poor_law_union = "Skibbereen" AND civil_parish = "Tullagh"
What type of car has the v16 engine?
CREATE TABLE table_name_40 (type VARCHAR, engine VARCHAR)
SELECT type FROM table_name_40 WHERE engine = "v16"
What was the location of the home game for Slovakia?
CREATE TABLE table_name_62 (location VARCHAR, home_team VARCHAR)
SELECT location FROM table_name_62 WHERE home_team = "slovakia"
Name the glass bulb color for ordinary
CREATE TABLE table_1538516_1 (glass_bulb_color VARCHAR, temperature_classification VARCHAR)
SELECT glass_bulb_color FROM table_1538516_1 WHERE temperature_classification = "Ordinary"
What is the maximum number of associate professors when there are more than 5 assistant professors and fewer than 14 professors?
CREATE TABLE table_name_29 (associate_professors INTEGER, assistant_professors VARCHAR, professors VARCHAR)
SELECT MAX(associate_professors) FROM table_name_29 WHERE assistant_professors > 5 AND professors < 14
What is the PSOE for the Local Elections polling firm?
CREATE TABLE table_name_78 (psoe VARCHAR, polling_firm VARCHAR)
SELECT psoe FROM table_name_78 WHERE polling_firm = "local elections"
How much is the total with a time at 16:00 and score for set 3 of 18–25?
CREATE TABLE table_name_41 (total VARCHAR, time VARCHAR, set_3 VARCHAR)
SELECT total FROM table_name_41 WHERE time = "16:00" AND set_3 = "18–25"
Which episode had a share 16-19 of 23,22%?
CREATE TABLE table_29773532_21 (episode INTEGER, share_16_39 VARCHAR)
SELECT MAX(episode) FROM table_29773532_21 WHERE share_16_39 = "23,22%"
What party is incumbent thomas j. lane from?
CREATE TABLE table_1341930_21 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341930_21 WHERE incumbent = "Thomas J. Lane"
What are the maximum and average height of the mountains?
CREATE TABLE mountain (height INTEGER)
SELECT MAX(height), AVG(height) FROM mountain
When the socket is bga956 and processor is penryn-3m, what is the tdp?
CREATE TABLE table_24100843_1 (tdp VARCHAR, socket VARCHAR, processor VARCHAR)
SELECT tdp FROM table_24100843_1 WHERE socket = "BGA956" AND processor = "Penryn-3M"
What year was there a lotus 25 Chassis?
CREATE TABLE table_name_47 (year VARCHAR, chassis VARCHAR)
SELECT year FROM table_name_47 WHERE chassis = "lotus 25"
How many staff have the first name Ludie?
CREATE TABLE Staff (first_name VARCHAR)
SELECT COUNT(*) FROM Staff WHERE first_name = "Ludie"
How many different heights are there for the contestants from Warsaw?
CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, hometown VARCHAR)
SELECT COUNT(height__ft_) FROM table_20669355_2 WHERE hometown = "Warsaw"
who was in the 2005 role when the original broadway cast was played by jesse l. martin?
CREATE TABLE table_26436_2 (original_broadway_cast VARCHAR)
SELECT 2005 AS _film FROM table_26436_2 WHERE original_broadway_cast = "Jesse L. Martin"
What was the largest crowd at a game where Collingwood was the away team?
CREATE TABLE table_name_13 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_13 WHERE away_team = "collingwood"
What is the average final with an all around larger than 19.4 and total more than 39.9?
CREATE TABLE table_name_12 (final INTEGER, all_around VARCHAR, total VARCHAR)
SELECT AVG(final) FROM table_name_12 WHERE all_around > 19.4 AND total > 39.9
what are all the regular season where year is 2011
CREATE TABLE table_1046454_1 (regular_season VARCHAR, year VARCHAR)
SELECT regular_season FROM table_1046454_1 WHERE year = 2011
What is the smallest introduced value?
CREATE TABLE table_1081459_1 (introduced INTEGER)
SELECT MIN(introduced) FROM table_1081459_1
when the gdp per emissions (in us dollars per ton) is 3903, what is the maximum annual co2 emissions (in thousands of metric tons)?
CREATE TABLE table_2508175_1 (annual_co2_emissions__in_thousands_of_metric_tons_ INTEGER, gdp_per_emissions__in_us_dollars_per_ton_ VARCHAR)
SELECT MAX(annual_co2_emissions__in_thousands_of_metric_tons_) FROM table_2508175_1 WHERE gdp_per_emissions__in_us_dollars_per_ton_ = 3903
What is the date of the 1500m freestyle event?
CREATE TABLE table_name_91 (date VARCHAR, event VARCHAR)
SELECT date FROM table_name_91 WHERE event = "1500m freestyle"
Who won women's singles in 2001?
CREATE TABLE table_14904221_1 (womens_singles VARCHAR, year VARCHAR)
SELECT womens_singles FROM table_14904221_1 WHERE year = 2001
If the player is Jasmine Wynne, what is the minimum number of steals?
CREATE TABLE table_23346303_5 (steals INTEGER, player VARCHAR)
SELECT MIN(steals) FROM table_23346303_5 WHERE player = "Jasmine Wynne"
What were the dates of the games where Jalen Rose (32) had the highest points?
CREATE TABLE table_15872814_5 (date VARCHAR, high_points VARCHAR)
SELECT date FROM table_15872814_5 WHERE high_points = "Jalen Rose (32)"
Name the Score of jack nicklaus, united states, ?
CREATE TABLE table_name_13 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT score FROM table_name_13 WHERE country = "united states" AND player = "jack nicklaus"
When did indiana play?
CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_8 WHERE opponent = "indiana"
What is No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)?
CREATE TABLE table_name_16 (no_5 VARCHAR, no_9 VARCHAR, region__year_ VARCHAR)
SELECT no_5 FROM table_name_16 WHERE no_9 = "michael" AND region__year_ = "new hampshire (2010)"
What is the name that has a debut round over 14, games under 2, and a club of Melbourne?
CREATE TABLE table_name_93 (name VARCHAR, club VARCHAR, debut_round VARCHAR, games__2008_ VARCHAR)
SELECT name FROM table_name_93 WHERE debut_round > 14 AND games__2008_ < 2 AND club = "melbourne"
What is the date recorded of Hate?
CREATE TABLE table_name_34 (recorded VARCHAR, translation VARCHAR)
SELECT recorded FROM table_name_34 WHERE translation = "hate"
Which away team played against Peterborough United, with a tie no of replay?
CREATE TABLE table_name_85 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_85 WHERE tie_no = "replay" AND home_team = "peterborough united"
Who was the opponent on week 7?
CREATE TABLE table_name_82 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_82 WHERE week = "7"
What round has less than 1 against?
CREATE TABLE table_name_37 (round VARCHAR, against INTEGER)
SELECT round FROM table_name_37 WHERE against < 1
What was the party of the first elected candidate in 1954?
CREATE TABLE table_1341738_36 (party VARCHAR, first_elected VARCHAR)
SELECT party FROM table_1341738_36 WHERE first_elected = 1954
What is the name of the product with the highest price?
CREATE TABLE Products (Product_Name VARCHAR, Product_Price VARCHAR)
SELECT Product_Name FROM Products ORDER BY Product_Price DESC LIMIT 1
Who was the successor for the state of Maine (2) ?
CREATE TABLE table_225099_3 (successor VARCHAR, state__class_ VARCHAR)
SELECT successor FROM table_225099_3 WHERE state__class_ = "Maine (2)"
What years have 9 (3) as the finals?
CREATE TABLE table_name_77 (years VARCHAR, finals VARCHAR)
SELECT years FROM table_name_77 WHERE finals = "9 (3)"
What was the sum of Events, when Wins were less than 1, when Top-25 was 3, and when Top-5 was less than 1?
CREATE TABLE table_name_57 (events INTEGER, top_5 VARCHAR, wins VARCHAR, top_25 VARCHAR)
SELECT SUM(events) FROM table_name_57 WHERE wins < 1 AND top_25 = 3 AND top_5 < 1
What is the per-capita GDP for the country with an overall GDP of 156.640?
CREATE TABLE table_name_90 (gdp_per_capita__us$_ VARCHAR, gdp__billion_us$_ VARCHAR)
SELECT gdp_per_capita__us$_ FROM table_name_90 WHERE gdp__billion_us$_ = "156.640"
What was the result of the game that was attended by 72,703 people?
CREATE TABLE table_name_76 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_76 WHERE attendance = "72,703"
What team's overal record is 22-11?
CREATE TABLE table_23183195_2 (team VARCHAR, overall_record VARCHAR)
SELECT team FROM table_23183195_2 WHERE overall_record = "22-11"