answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT country FROM table_name_3 WHERE to_par > 3 AND year_s__won = "1979"
Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1
CREATE TABLE table_name_3 (country VARCHAR, to_par VARCHAR, year_s__won VARCHAR)
SELECT time_retired FROM table_name_44 WHERE driver = "riccardo patrese"
What was Riccardo Patrese's time/retired?
CREATE TABLE table_name_44 (time_retired VARCHAR, driver VARCHAR)
SELECT partner FROM table_name_2 WHERE construction_start = "2008 january"
What Partner has a Construction Start of 2008 january?
CREATE TABLE table_name_2 (partner VARCHAR, construction_start VARCHAR)
SELECT AVG(age), MIN(age), CLASS FROM captain GROUP BY CLASS
What are the average and minimum age of captains in different class?
CREATE TABLE captain (CLASS VARCHAR, age INTEGER)
SELECT district FROM table_1341453_40 WHERE incumbent = "Tim Holden"
In what district was Tim Holden the incumbent?
CREATE TABLE table_1341453_40 (district VARCHAR, incumbent VARCHAR)
SELECT nba_draft FROM table_name_61 WHERE school = "dunbar high school"
What is the NBA draft result of the player from Dunbar High School?
CREATE TABLE table_name_61 (nba_draft VARCHAR, school VARCHAR)
SELECT game FROM table_name_34 WHERE date = "february 21"
What is the game on February 21?
CREATE TABLE table_name_34 (game VARCHAR, date VARCHAR)
SELECT high_assists FROM table_17323042_11 WHERE high_rebounds = "Andre Iguodala (8)"
Who was the High Assist when the High Rebounds was andre iguodala (8)?
CREATE TABLE table_17323042_11 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT record FROM table_name_70 WHERE game = 37
What was the record after game 37?
CREATE TABLE table_name_70 (record VARCHAR, game VARCHAR)
SELECT to_par FROM table_name_28 WHERE player = "phil mickelson"
What was Phil Mickelson's score to par?
CREATE TABLE table_name_28 (to_par VARCHAR, player VARCHAR)
SELECT elector FROM table_name_91 WHERE cardinalatial_title = "priest of s. sabina and archbishop of reims"
Who is the Elector with a Cardinalatial title of Priest of S. Sabina and Archbishop of Reims?
CREATE TABLE table_name_91 (elector VARCHAR, cardinalatial_title VARCHAR)
SELECT AVG(goals_for) FROM table_name_53 WHERE goals_against > 59 AND club = "real avilés cf" AND goal_difference > -10
What is teh average amount of goals for club real avilés cf, which has more than 59 goals against and a -10 goal difference?
CREATE TABLE table_name_53 (goals_for INTEGER, goal_difference VARCHAR, goals_against VARCHAR, club VARCHAR)
SELECT score FROM table_name_83 WHERE country = "canada" AND place = "t8"
what's the score in canada with place of t8?
CREATE TABLE table_name_83 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT time_retired FROM table_name_43 WHERE rider = "olivier jacque"
What is Olivier Jacque's Time/Retired?
CREATE TABLE table_name_43 (time_retired VARCHAR, rider VARCHAR)
SELECT date FROM table_name_6 WHERE network_brand_name = "movistar"
What date was Movistar accredited?
CREATE TABLE table_name_6 (date VARCHAR, network_brand_name VARCHAR)
SELECT SUM(track) FROM table_name_12 WHERE catalogue = "epa 4054" AND time = "2:05"
What is the sum of every track with a catalogue of EPA 4054 with a 2:05 length?
CREATE TABLE table_name_12 (track INTEGER, catalogue VARCHAR, time VARCHAR)
SELECT MIN(first_season) FROM table_name_8 WHERE city = "montreal" AND capacity > 5 OFFSET 100
What's the smallest season for Montreal that's greater than 5,100 for capacity?
CREATE TABLE table_name_8 (first_season INTEGER, city VARCHAR, capacity VARCHAR)
SELECT performer_s_ FROM table_name_45 WHERE recorded_at = "the cabin in the woods studio" AND time = "3:16"
Who performed the song recorded at the Cabin in the Woods Studio with a Time of 3:16?
CREATE TABLE table_name_45 (performer_s_ VARCHAR, recorded_at VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_20 WHERE record = "12-18"
Name the opponent with record of 12-18
CREATE TABLE table_name_20 (opponent VARCHAR, record VARCHAR)
SELECT decile FROM table_name_10 WHERE authority = "state" AND roll = 798
For a school with authority of state and a roll of 798, what is the decile?
CREATE TABLE table_name_10 (decile VARCHAR, authority VARCHAR, roll VARCHAR)
SELECT SUM(overall) FROM table_name_55 WHERE round = 3
What is the overall sum of round 3?
CREATE TABLE table_name_55 (overall INTEGER, round VARCHAR)
SELECT opponent FROM table_name_62 WHERE date = "october 14, 1984"
Who was the opponent on October 14, 1984?
CREATE TABLE table_name_62 (opponent VARCHAR, date VARCHAR)
SELECT city_of_license__market FROM table_1553485_1 WHERE channel_tv___dt__ = "3 (26)"
Which city of license/market has 3 (26) as their channel tv (dt)?
CREATE TABLE table_1553485_1 (city_of_license__market VARCHAR, channel_tv___dt__ VARCHAR)
SELECT game_site FROM table_14977592_1 WHERE date = "December 12, 1965"
Name the game site for december 12, 1965
CREATE TABLE table_14977592_1 (game_site VARCHAR, date VARCHAR)
SELECT player FROM table_name_52 WHERE total = 281
What golfer has 281 as their total?
CREATE TABLE table_name_52 (player VARCHAR, total VARCHAR)
SELECT calling_at FROM table_18365784_3 WHERE departure = "18.16"
What was the 'calling at' station of the train that departed on 18.16?
CREATE TABLE table_18365784_3 (calling_at VARCHAR, departure VARCHAR)
SELECT SUM(attendance) FROM table_name_99 WHERE date = "may 28"
What is the total audience on may 28?
CREATE TABLE table_name_99 (attendance INTEGER, date VARCHAR)
SELECT high_points FROM table_17355408_5 WHERE location_attendance = "Pepsi Center 18,611"
Name the high points for pepsi center 18,611
CREATE TABLE table_17355408_5 (high_points VARCHAR, location_attendance VARCHAR)
SELECT opponent FROM table_name_97 WHERE date = "19 february 2011"
Who was the opponent on 19 February 2011?
CREATE TABLE table_name_97 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(draws) FROM table_name_29 WHERE points = "45+7" AND position < 3
What is the amount of Draws for the game that had a score of 45+7 and a position below 3?
CREATE TABLE table_name_29 (draws VARCHAR, points VARCHAR, position VARCHAR)
SELECT MAX(bronze) FROM table_name_46 WHERE silver > 1 AND rank > 1
WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS THAN 1ST PLACE?
CREATE TABLE table_name_46 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
SELECT COUNT(points_against) FROM table_name_97 WHERE team = "cardiff" AND tries_against < 7
How many points against has team Cardiff had when there were less than 7 tries?
CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR)
SELECT product FROM product WHERE product LIKE "%Scanner%"
Find all the product whose name contains the word "Scanner".
CREATE TABLE product (product VARCHAR)
SELECT source_model FROM table_name_27 WHERE architecture = "16-bit*"
Which Source model has a 16-bit* Architecture?
CREATE TABLE table_name_27 (source_model VARCHAR, architecture VARCHAR)
SELECT score FROM table_name_81 WHERE record = "2-1"
What is the score for the team with a record of 2-1?
CREATE TABLE table_name_81 (score VARCHAR, record VARCHAR)
SELECT MAX(age) FROM table_27515452_3 WHERE hometown = "Veraguas"
what is the oldest and lives in veraguas
CREATE TABLE table_27515452_3 (age INTEGER, hometown VARCHAR)
SELECT party FROM table_name_85 WHERE name = "claudette tardif"
Which party does Claudette Tardif belong to?
CREATE TABLE table_name_85 (party VARCHAR, name VARCHAR)
SELECT israeli_and_or_foreigner_wounded FROM table_name_45 WHERE israeli_deaths > 1
How many Israelis and or foreigners were wounded in the attack with more than 1 Israeli death?
CREATE TABLE table_name_45 (israeli_and_or_foreigner_wounded VARCHAR, israeli_deaths INTEGER)
SELECT COUNT(losses) FROM table_name_85 WHERE last_appearance = "2003" AND wins > 2
What is the total number of Losses, when Last Appearance is 2003, and when Wins is greater than 2?
CREATE TABLE table_name_85 (losses VARCHAR, last_appearance VARCHAR, wins VARCHAR)
SELECT home FROM table_name_52 WHERE geust = "fc st. gallen (asl)"
What is the home of fc st. gallen (asl) geust?
CREATE TABLE table_name_52 (home VARCHAR, geust VARCHAR)
SELECT publisher FROM table_name_93 WHERE title = "drop dead"
Which publisher has a title of drop dead?
CREATE TABLE table_name_93 (publisher VARCHAR, title VARCHAR)
SELECT MIN(crowd) FROM table_name_78 WHERE away_team = "essendon"
What is the lowest crowd when essendon is the away team?
CREATE TABLE table_name_78 (crowd INTEGER, away_team VARCHAR)
SELECT original_artist FROM table_15796100_1 WHERE theme = "Year They Were Born"
Who is the original artist for the theme "Year they were born?"
CREATE TABLE table_15796100_1 (original_artist VARCHAR, theme VARCHAR)
SELECT Major AS facility FROM table_25346763_1 WHERE facility = "Washington Corrections Center for Women (WCCW)"
Is the Washington Corrections Center for Women (WCCW) a major facility?
CREATE TABLE table_25346763_1 (Major VARCHAR, facility VARCHAR)
SELECT yard_name FROM table_name_19 WHERE ship_types_delivered = "n3 type, v4 type" AND total_vessels_built_for_usmc = "13 ships for usmc"
what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc?
CREATE TABLE table_name_19 (yard_name VARCHAR, ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR)
SELECT week FROM table_name_63 WHERE date = "december 4, 1960"
Which Week had a Date of december 4, 1960?
CREATE TABLE table_name_63 (week VARCHAR, date VARCHAR)
SELECT score FROM table_name_8 WHERE country = "united states" AND to_par = "+1" AND player = "wally armstrong"
What was the score of united states player wally armstrong when he had a To par of +1
CREATE TABLE table_name_8 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT score FROM table_name_12 WHERE date = "april 9"
What's the score on April 9?
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)
SELECT surface FROM table_24901152_2 WHERE championship = "US Open (2)"
When us open (2) is the championship what is the surface?
CREATE TABLE table_24901152_2 (surface VARCHAR, championship VARCHAR)
SELECT present_share FROM table_23195_5 WHERE producing_nation = "Australia"
Name the present share for australia
CREATE TABLE table_23195_5 (present_share VARCHAR, producing_nation VARCHAR)
SELECT 2010 FROM table_name_56 WHERE tournament = "us open"
Which 2010 featured the US Open?
CREATE TABLE table_name_56 (tournament VARCHAR)
SELECT est FROM table_name_6 WHERE state_province = "alberta" AND league = "cfl" AND city = "edmonton"
In what year was the cfl team in edmonton, alberta established?
CREATE TABLE table_name_6 (est VARCHAR, city VARCHAR, state_province VARCHAR, league VARCHAR)
SELECT category_3 FROM table_name_77 WHERE category_1 = 0.05
If category 1 is 0.05, what is category 3?
CREATE TABLE table_name_77 (category_3 VARCHAR, category_1 VARCHAR)
SELECT drawn FROM table_name_19 WHERE tries_for = "51"
What was the amount of draws where a club had 51 tries for?
CREATE TABLE table_name_19 (drawn VARCHAR, tries_for VARCHAR)
SELECT MAX(no) FROM table_26914076_2
Name the most number
CREATE TABLE table_26914076_2 (no INTEGER)
SELECT AVG(year) FROM table_name_89 WHERE title = "baka to test to shōkanjū"
what is the average year when the title is baka to test to shōkanjū?
CREATE TABLE table_name_89 (year INTEGER, title VARCHAR)
SELECT COUNT(week) FROM table_name_14 WHERE date = "bye"
What was the total number of weeks with a date of bye?
CREATE TABLE table_name_14 (week VARCHAR, date VARCHAR)
SELECT nominating_festival FROM table_name_1 WHERE director_s_ = "2004"
Name the nominating festival for director of 2004
CREATE TABLE table_name_1 (nominating_festival VARCHAR, director_s_ VARCHAR)
SELECT rank FROM table_name_96 WHERE country = "us" AND accolade = "40 best albums of the year"
Which rank's country is the US when the accolade is 40 best albums of the year?
CREATE TABLE table_name_96 (rank VARCHAR, country VARCHAR, accolade VARCHAR)
SELECT match FROM table_name_91 WHERE points = "8"
What match had 8 points?
CREATE TABLE table_name_91 (match VARCHAR, points VARCHAR)
SELECT japanese_title FROM table_name_19 WHERE tv_station = "ntv"
Which Japanese Title has a TV Station of ntv?
CREATE TABLE table_name_19 (japanese_title VARCHAR, tv_station VARCHAR)
SELECT MAX(total_apps) FROM table_19730892_1 WHERE name = "Eddie Carr"
Name the total apps for eddie carr
CREATE TABLE table_19730892_1 (total_apps INTEGER, name VARCHAR)
SELECT opponent_in_the_final FROM table_name_15 WHERE date = "september 25, 1995"
For the tournament played on September 25, 1995, who was the Finals opponent?
CREATE TABLE table_name_15 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT opponent_number FROM table_name_37 WHERE date = "october 7"
WHAT OPPONENT WAS ON OCTOBER 7?
CREATE TABLE table_name_37 (opponent_number VARCHAR, date VARCHAR)
SELECT high_assists FROM table_17323092_7 WHERE team = "@ Minnesota"
Who had the high assists when the team was @ Minnesota?
CREATE TABLE table_17323092_7 (high_assists VARCHAR, team VARCHAR)
SELECT SUM(attendance) FROM table_name_39 WHERE score = "17-13"
How many people went to the game that had 17-13?
CREATE TABLE table_name_39 (attendance INTEGER, score VARCHAR)
SELECT street_address FROM table_name_70 WHERE floors = 44
Which address has 44 floors?
CREATE TABLE table_name_70 (street_address VARCHAR, floors VARCHAR)
SELECT SUM(points_gained) FROM table_name_36 WHERE fans_took = "403 [sunday]"
What is the points gained of the match where fans took 403 [sunday]?
CREATE TABLE table_name_36 (points_gained INTEGER, fans_took VARCHAR)
SELECT AVG(year) FROM table_name_5 WHERE runner_up = "portugal" AND third_place = "italy" AND best_goalkeeper = "nuno hidalgo"
What year was the runner-up Portugal with Italy in third place, and the gold keeper Nuno Hidalgo?
CREATE TABLE table_name_5 (year INTEGER, best_goalkeeper VARCHAR, runner_up VARCHAR, third_place VARCHAR)
SELECT height_metres___ft FROM table_name_68 WHERE years_as_tallest = "1098–1310"
Name the Height metres / ft of Years with tallest of 1098–1310?
CREATE TABLE table_name_68 (height_metres___ft VARCHAR, years_as_tallest VARCHAR)
SELECT percent_of_slovenes_1951 FROM table_name_60 WHERE number_of_people_1991 > 8 AND village__german_ = "plöschenberg"
Which Percent of Slovenes 1951 has a Number of people 1991 larger than 8, and a Village (German) of plöschenberg?
CREATE TABLE table_name_60 (percent_of_slovenes_1951 VARCHAR, number_of_people_1991 VARCHAR, village__german_ VARCHAR)
SELECT place FROM table_name_51 WHERE score = 68 - 69 - 73 = 210
What is the place of the 68-69-73=210?
CREATE TABLE table_name_51 (place VARCHAR, score VARCHAR)
SELECT MIN(year) FROM table_26609690_1
What is the earliest year on the chart?
CREATE TABLE table_26609690_1 (year INTEGER)
SELECT barrel_twist FROM table_name_33 WHERE stock = "canadian 3rd generation" AND hand_guards = "short ribbed"
Which Barrel twist has a Stock of canadian 3rd generation and a Hand guards of short ribbed?
CREATE TABLE table_name_33 (barrel_twist VARCHAR, stock VARCHAR, hand_guards VARCHAR)
SELECT tries_for FROM table_name_92 WHERE points_against = "583"
Name the tries for points against of 583
CREATE TABLE table_name_92 (tries_for VARCHAR, points_against VARCHAR)
SELECT MAX(pl_gp) FROM table_name_97 WHERE pick__number > 159 AND reg_gp > 0
Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0
CREATE TABLE table_name_97 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR)
SELECT package_option FROM table_15887683_5 WHERE content = "cinema" AND n° = "333"
What package offers cinema content and is n. 333?
CREATE TABLE table_15887683_5 (package_option VARCHAR, content VARCHAR, n° VARCHAR)
SELECT opponent FROM table_name_94 WHERE january > 19 AND score = "7 - 2"
What is Opponent, when January is greater than 19, and when Score is "7 - 2"?
CREATE TABLE table_name_94 (opponent VARCHAR, january VARCHAR, score VARCHAR)
SELECT other_mozilla FROM table_name_71 WHERE safari = "9.41%"
What is the other mozilla that has 9.41% for the safari?
CREATE TABLE table_name_71 (other_mozilla VARCHAR, safari VARCHAR)
SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = "Kilworth" AND townland = "Monadrishane"
What is the area of the civil parish kilworth and townland monadrishane?
CREATE TABLE table_30120556_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR)
SELECT is_3_m1945 FROM table_name_72 WHERE kv_1s_m1942 = "45"
What's the IS-3 when the KV-1S is 45?
CREATE TABLE table_name_72 (is_3_m1945 VARCHAR, kv_1s_m1942 VARCHAR)
SELECT winning_score FROM table_name_2 WHERE date = "may 29, 1977"
What was the Winning Score on May 29, 1977?
CREATE TABLE table_name_2 (winning_score VARCHAR, date VARCHAR)
SELECT written_by FROM table_name_31 WHERE originalairdate = "25 april 1993"
What is Written By, when Originalairdate is 25 April 1993?
CREATE TABLE table_name_31 (written_by VARCHAR, originalairdate VARCHAR)
SELECT opposing_teams FROM table_name_26 WHERE date = "24/11/1979"
On 24/11/1979, what is the opposing teams?
CREATE TABLE table_name_26 (opposing_teams VARCHAR, date VARCHAR)
SELECT first_name, last_name FROM actor GROUP BY first_name, last_name ORDER BY COUNT(*) DESC LIMIT 1
What is the most popular full name of the actors?
CREATE TABLE actor (first_name VARCHAR, last_name VARCHAR)
SELECT team FROM table_11959669_6 WHERE score = "88–86"
What is the team when the score is 88–86?
CREATE TABLE table_11959669_6 (team VARCHAR, score VARCHAR)
SELECT result FROM table_name_89 WHERE opponent = "leeds united"
What is the result from the Leeds United opponent?
CREATE TABLE table_name_89 (result VARCHAR, opponent VARCHAR)
SELECT winning_score FROM table_225880_1 WHERE championship = "PGA championship"
Name the winning score for pga championship
CREATE TABLE table_225880_1 (winning_score VARCHAR, championship VARCHAR)
SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = "-3" AND democratic__republican = "2/5"
What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican?
CREATE TABLE table_name_45 (percentage_democrats VARCHAR, democratic_seat_plurality VARCHAR, democratic__republican VARCHAR)
SELECT AVG(year) FROM table_name_17 WHERE title_of_work = "saber" AND category = "best action"
What year was The Saber nominated for best action?
CREATE TABLE table_name_17 (year INTEGER, title_of_work VARCHAR, category VARCHAR)
SELECT COUNT(tenant) FROM table_28281704_1 WHERE country = "Russia" AND stadium = "Saransk stadium"
Name the number of tenants for russia at the saransk stadium
CREATE TABLE table_28281704_1 (tenant VARCHAR, country VARCHAR, stadium VARCHAR)
SELECT pole_position FROM table_29162856_1 WHERE fastest_lap = "Matt Davies"
Who had the pole position when matt davies had the fastest lap?
CREATE TABLE table_29162856_1 (pole_position VARCHAR, fastest_lap VARCHAR)
SELECT SUM(overall) FROM table_name_68 WHERE round < 6 AND pick__number = 26
How much Overall has a Round smaller than 6, and a Pick # of 26?
CREATE TABLE table_name_68 (overall INTEGER, round VARCHAR, pick__number VARCHAR)
SELECT year_built FROM table_name_74 WHERE venue = "john m. belk arena"
What year was John m. Belk Arena built?
CREATE TABLE table_name_74 (year_built VARCHAR, venue VARCHAR)
SELECT director_s_ FROM table_name_54 WHERE recipient = "redbag pictures ltd"
Who was the director that had a recipient of Redbag Pictures Ltd?
CREATE TABLE table_name_54 (director_s_ VARCHAR, recipient VARCHAR)
SELECT june_10_11 FROM table_25355501_2 WHERE november_3 = "133"
june 10-11 when november 3 is 133?
CREATE TABLE table_25355501_2 (june_10_11 VARCHAR, november_3 VARCHAR)
SELECT COUNT(*) FROM train WHERE name LIKE "%Express%"
How many trains have 'Express' in their names?
CREATE TABLE train (name VARCHAR)
SELECT opponent FROM table_name_53 WHERE date = "november 14"
Who is the opponent on November 14?
CREATE TABLE table_name_53 (opponent VARCHAR, date VARCHAR)
SELECT class FROM table_name_62 WHERE part_4 = "*alanaz"
Which class has *alanaz as Part 4?
CREATE TABLE table_name_62 (class VARCHAR, part_4 VARCHAR)
SELECT start_date FROM table_name_28 WHERE party = "pd"
Name the start date with party of pd
CREATE TABLE table_name_28 (start_date VARCHAR, party VARCHAR)