answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT to_par FROM table_name_23 WHERE finish = "t11" AND player = "david graham"
WHAT IS THE TO PAR WITH A FINISH OF T11, FOR DAVID GRAHAM?
CREATE TABLE table_name_23 (to_par VARCHAR, finish VARCHAR, player VARCHAR)
SELECT MIN(races) FROM table_19741316_1 WHERE position = "14th"
What was the number of races in the season in which the team placed on the 14th position?
CREATE TABLE table_19741316_1 (races INTEGER, position VARCHAR)
SELECT prohibition_ticket FROM table_name_76 WHERE greenback_ticket = "thomas armstrong"
Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong?
CREATE TABLE table_name_76 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR)
SELECT MIN(erp_w) FROM table_name_21 WHERE call_sign = "wpib"
When the call sign is wpib, what is lowest ERP W?
CREATE TABLE table_name_21 (erp_w INTEGER, call_sign VARCHAR)
SELECT points_against FROM table_name_38 WHERE matches = "16"
How many against points for 16 matches?
CREATE TABLE table_name_38 (points_against VARCHAR, matches VARCHAR)
SELECT country FROM airports ORDER BY elevation DESC LIMIT 1
Which country is the airport that has the highest altitude located in?
CREATE TABLE airports (country VARCHAR, elevation VARCHAR)
SELECT class_aAAA FROM table_14630796_1 WHERE class_a = "Menard"
Name the class aaaa for menard
CREATE TABLE table_14630796_1 (class_aAAA VARCHAR, class_a VARCHAR)
SELECT AVG(played) FROM table_name_70 WHERE drawn = 4 AND position = 9 AND goals_against > 59
Which Played has a Drawn of 4, and a Position of 9, and Goals Against larger than 59?
CREATE TABLE table_name_70 (played INTEGER, goals_against VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT high_rebounds FROM table_23186738_10 WHERE record = "27-54"
Who had the highest rebounds in the game where the record was 27-54?
CREATE TABLE table_23186738_10 (high_rebounds VARCHAR, record VARCHAR)
SELECT name FROM table_name_4 WHERE order = 1
Which name had an order number of 1?
CREATE TABLE table_name_4 (name VARCHAR, order VARCHAR)
SELECT COUNT(overall) FROM table_name_98 WHERE player = "kenny lewis" AND round > 5
What is the total overall when Kenny Lewis is the player in a round after 5?
CREATE TABLE table_name_98 (overall VARCHAR, player VARCHAR, round VARCHAR)
SELECT written_by FROM table_28019988_2 WHERE us_viewers__million_ = "2.93"
Who wrote the episode that 2.93 million viewers?
CREATE TABLE table_28019988_2 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT transfer_fee FROM table_name_10 WHERE moving_from = "youth system" AND nat = "mar"
Which Transfer fee has a Moving from of youth system, and a Nat of mar?
CREATE TABLE table_name_10 (transfer_fee VARCHAR, moving_from VARCHAR, nat VARCHAR)
SELECT COUNT(races) FROM table_26400438_1 WHERE podiums = 8
In how many races did he have 8 podium finishes?
CREATE TABLE table_26400438_1 (races VARCHAR, podiums VARCHAR)
SELECT attendance FROM table_name_34 WHERE home_team = "billericay town"
What was the attendance at the Billericay Town home game?
CREATE TABLE table_name_34 (attendance VARCHAR, home_team VARCHAR)
SELECT COUNT(written_by) FROM table_26429658_1 WHERE directed_by = "Arlene Sanford"
How many episodes were directed by Arlene Sanford?
CREATE TABLE table_26429658_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT COUNT(ilo_code) FROM table_2001348_1 WHERE revising_convention_s_ = "this convention, Work in Fishing Convention"
How many ILO codes are there with revising conventions of 'this convention, work in fishing convention'?
CREATE TABLE table_2001348_1 (ilo_code VARCHAR, revising_convention_s_ VARCHAR)
SELECT Party FROM people GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1
Show the party that has the most people.
CREATE TABLE people (Party VARCHAR)
SELECT visitor FROM table_name_77 WHERE home = "vancouver"
Who was the visitor when vancouver was at home?
CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR)
SELECT SUM(year) FROM table_name_12 WHERE result = "5th"
Tell me the sum of year for 5th result
CREATE TABLE table_name_12 (year INTEGER, result VARCHAR)
SELECT COUNT(time) FROM table_name_4 WHERE nationality = "great britain"
What was Great Britain's total time?
CREATE TABLE table_name_4 (time VARCHAR, nationality VARCHAR)
SELECT attendance FROM table_name_57 WHERE loss = "volquez (1–4)"
How many in attendance with a loss of volquez (1–4)?
CREATE TABLE table_name_57 (attendance VARCHAR, loss VARCHAR)
SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20
Please show the employee last names that serves no more than 20 customers.
CREATE TABLE EMPLOYEE (EmployeeId VARCHAR); CREATE TABLE CUSTOMER (LastName VARCHAR, SupportRepId VARCHAR)
SELECT title FROM table_name_15 WHERE director = "p.j. hogan"
what is the title for director p.j. hogan?
CREATE TABLE table_name_15 (title VARCHAR, director VARCHAR)
SELECT place FROM table_name_25 WHERE score = 67 - 68 - 78 - 77 = 290
What place has a 67-68-78-77=290 score?
CREATE TABLE table_name_25 (place VARCHAR, score VARCHAR)
SELECT score FROM table_name_30 WHERE to_par = "–4" AND player = "duffy waldorf"
Which Score has a To par of –4, and a Player of duffy waldorf?
CREATE TABLE table_name_30 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT COUNT(games) FROM table_name_91 WHERE ast_avg > 2.7 AND total_assists > 598
How many games for the player that has an over 2.7 assist average and over 598 total assists?
CREATE TABLE table_name_91 (games VARCHAR, ast_avg VARCHAR, total_assists VARCHAR)
SELECT COUNT(team) FROM table_14310205_1 WHERE conmebol_1996 = "did not qualify"
what is the number of teams where conmebol 1996 did not qualify?
CREATE TABLE table_14310205_1 (team VARCHAR, conmebol_1996 VARCHAR)
SELECT runners_up FROM table_name_75 WHERE champions = "1 (2013)"
What runner(s)-up has 1 (2013) as the champions?
CREATE TABLE table_name_75 (runners_up VARCHAR, champions VARCHAR)
SELECT incumbent FROM table_1341663_10 WHERE district = "Florida 9"
who is the incumbent where the district is florida 9?
CREATE TABLE table_1341663_10 (incumbent VARCHAR, district VARCHAR)
SELECT championship FROM table_13026799_1 WHERE margin = "Playoff 2"
What championship had a margin of playoff 2?
CREATE TABLE table_13026799_1 (championship VARCHAR, margin VARCHAR)
SELECT core_clock___mhz__ FROM table_25839957_5 WHERE memory_bandwidth___gb_s__ = "21.3"
What core clocks ( mhz ) have a 21.3 memory bandwidth ( gb/s )?
CREATE TABLE table_25839957_5 (core_clock___mhz__ VARCHAR, memory_bandwidth___gb_s__ VARCHAR)
SELECT MAX(rank) FROM table_name_58 WHERE events = 26 AND wins > 0
Name the most rank for wins more than 0 and events of 26
CREATE TABLE table_name_58 (rank INTEGER, events VARCHAR, wins VARCHAR)
SELECT MAX(year_started) FROM table_1688640_4 WHERE car__number = "55"
Name the year started where car number is 55
CREATE TABLE table_1688640_4 (year_started INTEGER, car__number VARCHAR)
SELECT time FROM table_name_87 WHERE country = "denmark"
What did Denmark time at?
CREATE TABLE table_name_87 (time VARCHAR, country VARCHAR)
SELECT nation FROM table_name_68 WHERE bronze = 1 AND gold = 0
Can you tell me the Nation that has the Bronze of 1, and the Gold of 0?
CREATE TABLE table_name_68 (nation VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT city FROM table_name_17 WHERE prize = "$1,859,000"
What is the City, when the Prize is $1,859,000?
CREATE TABLE table_name_17 (city VARCHAR, prize VARCHAR)
SELECT area__km_2__ FROM table_1480455_1 WHERE population_density___km_2__ = "84.3"
What is the area (km 2) where the population density (/mk2) is 84.3?
CREATE TABLE table_1480455_1 (area__km_2__ VARCHAR, population_density___km_2__ VARCHAR)
SELECT SUM(number_of_electorates__2009_) FROM table_name_56 WHERE constituency_number = "56"
What's the number of electorates for constituency number 56?
CREATE TABLE table_name_56 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR)
SELECT date FROM table_name_55 WHERE time = "3:44"
What date did a game have a time of 3:44?
CREATE TABLE table_name_55 (date VARCHAR, time VARCHAR)
SELECT mascot FROM table_name_34 WHERE enrollment < 627 AND ihsaa_class = "aa" AND school = "eastern pekin"
What's the mascot of Eastern Pekin having less than 627 enrolled and an AA for their IHSAA Class?
CREATE TABLE table_name_34 (mascot VARCHAR, school VARCHAR, enrollment VARCHAR, ihsaa_class VARCHAR)
SELECT volume_line FROM table_19534677_1 WHERE _number = 8
Name the volume line for number 8
CREATE TABLE table_19534677_1 (volume_line VARCHAR, _number VARCHAR)
SELECT owner FROM table_name_78 WHERE branding = "gx94"
Who is the owner of the branding gx94?
CREATE TABLE table_name_78 (owner VARCHAR, branding VARCHAR)
SELECT studio_s_ FROM table_name_92 WHERE year = 2007 AND director = "paul greengrass"
What studio did Paul Greengrass direct in 2007?
CREATE TABLE table_name_92 (studio_s_ VARCHAR, year VARCHAR, director VARCHAR)
SELECT location_attendance FROM table_27715173_6 WHERE record = "10-1"
Where was the game played where the record was 10-1?
CREATE TABLE table_27715173_6 (location_attendance VARCHAR, record VARCHAR)
SELECT 2 AS nd_leg FROM table_name_92 WHERE team_2 = "far rabat"
What is the 2nd leg of team 2 Far rabat?
CREATE TABLE table_name_92 (team_2 VARCHAR)
SELECT 2006 FROM table_name_72 WHERE 2009 = "0" AND tournament = "runner-ups"
What is the value in 2006 when the value for 2009 is 0 with runner-ups for tournament?
CREATE TABLE table_name_72 (tournament VARCHAR)
SELECT driver FROM table_name_85 WHERE time = "+13.315"
What is name of the drive with a Time of +13.315?
CREATE TABLE table_name_85 (driver VARCHAR, time VARCHAR)
SELECT religion FROM table_28137918_5 WHERE growth_rate = "1.56%"
Name the religion that has a growth rate of 1.56%
CREATE TABLE table_28137918_5 (religion VARCHAR, growth_rate VARCHAR)
SELECT away_team FROM table_name_51 WHERE date = "31 january 1987" AND home_team = "wimbledon"
Who was the away team on 31 January 1987 when the home team was Wimbledon?
CREATE TABLE table_name_51 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_74 WHERE event = "men's 100m breaststroke" AND heat_semifinal_final = "heat 6"
What date was the men's 100m breaststroke in heat 6?
CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, heat_semifinal_final VARCHAR)
SELECT tries_against FROM table_name_90 WHERE tries_for = "48"
How many tries against did the club with 48 tries for have?
CREATE TABLE table_name_90 (tries_against VARCHAR, tries_for VARCHAR)
SELECT year_s__won FROM table_name_84 WHERE to_par = 12
Which Year(s) won with a To par of 12?
CREATE TABLE table_name_84 (year_s__won VARCHAR, to_par VARCHAR)
SELECT Category FROM music_festival WHERE RESULT = "Awarded"
What are the category of music festivals with result "Awarded"?
CREATE TABLE music_festival (Category VARCHAR, RESULT VARCHAR)
SELECT AVG(week) FROM table_name_43 WHERE opponent = "new orleans saints"
In what Week is the Opponent the New Orleans Saints?
CREATE TABLE table_name_43 (week INTEGER, opponent VARCHAR)
SELECT COUNT(withdrawn) FROM table_name_19 WHERE lswr_no > 210 AND to_iow = 1923
What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923?
CREATE TABLE table_name_19 (withdrawn VARCHAR, lswr_no VARCHAR, to_iow VARCHAR)
SELECT COUNT(*) FROM customer WHERE active = '1'
How many customers have an active value of 1?
CREATE TABLE customer (active VARCHAR)
SELECT date FROM table_name_1 WHERE series = "atcc round 5"
What is Date, when Series is ATCC Round 5?
CREATE TABLE table_name_1 (date VARCHAR, series VARCHAR)
SELECT score FROM table_name_8 WHERE date = "january 23"
What is the Score on January 23?
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance
What are the id of students who registered courses or attended courses?
CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR)
SELECT canadian_championship FROM table_name_85 WHERE league = "84 (4)"
What Canadian Championship has 84 (4) as the league?
CREATE TABLE table_name_85 (canadian_championship VARCHAR, league VARCHAR)
SELECT date FROM table_name_2 WHERE game = 35
Which date was game 35 on?
CREATE TABLE table_name_2 (date VARCHAR, game VARCHAR)
SELECT votes FROM table_name_51 WHERE notes = "lost to incumbent vic gilliam"
How many votes were cast when the notes reported lost to incumbent vic gilliam?
CREATE TABLE table_name_51 (votes VARCHAR, notes VARCHAR)
SELECT AVG(gold) FROM table_name_83 WHERE nation = "south korea (kor)" AND bronze < 65
Which Gold has a Nation of south korea (kor), and Bronze smaller than 65?
CREATE TABLE table_name_83 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT games FROM table_name_39 WHERE player = "roger merrett"
What is the number of games for Roger Merrett?
CREATE TABLE table_name_39 (games VARCHAR, player VARCHAR)
SELECT date FROM table_name_48 WHERE outcome = "winner" AND opponents = "paul haarhuis sandon stolle"
What is Date, when Outcome is "Winner", and when Opponents is "Paul Haarhuis Sandon Stolle"?
CREATE TABLE table_name_48 (date VARCHAR, outcome VARCHAR, opponents VARCHAR)
SELECT name FROM table_name_72 WHERE location = "nigeria"
Which is located in Nigeria?
CREATE TABLE table_name_72 (name VARCHAR, location VARCHAR)
SELECT MAX(draws) FROM table_name_32 WHERE played < 9
The highest draws with smaller than 9 played?
CREATE TABLE table_name_32 (draws INTEGER, played INTEGER)
SELECT SUM(rank) FROM table_name_23 WHERE time = "1:40.626"
What is the rank if the person with a time of 1:40.626?
CREATE TABLE table_name_23 (rank INTEGER, time VARCHAR)
SELECT institution FROM table_2589963_1 WHERE women = "Lady Saints"
What institution is represented by the lady saints?
CREATE TABLE table_2589963_1 (institution VARCHAR, women VARCHAR)
SELECT teams FROM table_name_96 WHERE away = "1-5"
What teams has 1-5 as the away?
CREATE TABLE table_name_96 (teams VARCHAR, away VARCHAR)
SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = "Team Impul" AND circuit = "Twin Ring Motegi"
Who had the fastest lap in the race won by Team Impul at the Twin Ring Motegi circuit?
CREATE TABLE table_16670746_2 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR)
SELECT constitutional_ticket FROM table_name_95 WHERE socialist_ticket = "william karlin"
Who was the constitutional ticket when william karlin was the socialist ticket?
CREATE TABLE table_name_95 (constitutional_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT Title FROM book ORDER BY Issues
List the titles of the books in ascending order of issues.
CREATE TABLE book (Title VARCHAR, Issues VARCHAR)
SELECT lost FROM table_name_52 WHERE points_against = "479"
How many resulted in a loss with 479 points against?
CREATE TABLE table_name_52 (lost VARCHAR, points_against VARCHAR)
SELECT rider FROM table_name_64 WHERE laps < 22 AND grid > 19 AND time = "retirement" AND bike = "kawasaki zx-6r"
Who was the rider riding the Kawasaki ZX-6r, that rode less than 22 laps, and the grid was greater than 19, and retirement was the time?
CREATE TABLE table_name_64 (rider VARCHAR, bike VARCHAR, time VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT appointed_by FROM table_name_45 WHERE presentation_of_credentials = "november 22, 1990"
Which Appointed has a Presentation of Credentials on November 22, 1990
CREATE TABLE table_name_45 (appointed_by VARCHAR, presentation_of_credentials VARCHAR)
SELECT COUNT(swing_to_gain) FROM table_name_20 WHERE constituency = "edinburgh northern and leith"
how many times is the constituency edinburgh northern and leith?
CREATE TABLE table_name_20 (swing_to_gain VARCHAR, constituency VARCHAR)
SELECT school_club_team FROM table_name_98 WHERE position = "shooting guard" AND years_for_grizzlies = "2000-2001"
What is the team that has a shooting guard that played for the Grizzlies in 2000-2001?
CREATE TABLE table_name_98 (school_club_team VARCHAR, position VARCHAR, years_for_grizzlies VARCHAR)
SELECT denomination FROM table_name_34 WHERE date_of_issue = "8 january 2009"
What is the denomination for the stamp issued 8 January 2009?
CREATE TABLE table_name_34 (denomination VARCHAR, date_of_issue VARCHAR)
SELECT score FROM table_name_41 WHERE save = "lynch (4)"
The game that has a save of lynch (4) ended with what score?
CREATE TABLE table_name_41 (score VARCHAR, save VARCHAR)
SELECT home_team FROM table_name_48 WHERE venue = "glenferrie oval"
Which team has a home field at Glenferrie Oval?
CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR)
SELECT growth_rate FROM table_2527063_3 WHERE district = "Hooghly"
Name the growth rate for hooghly
CREATE TABLE table_2527063_3 (growth_rate VARCHAR, district VARCHAR)
SELECT genre FROM table_name_50 WHERE game = "super mario galaxy"
What is the genre of Super Mario Galaxy?
CREATE TABLE table_name_50 (genre VARCHAR, game VARCHAR)
SELECT SUM(round) FROM table_name_26 WHERE position = "goalie"
How many rounds have goalie as the position?
CREATE TABLE table_name_26 (round INTEGER, position VARCHAR)
SELECT production_code FROM table_29391888_1 WHERE original_air_date = "May15,2000"
What is the production code for the episode whose original air date was May15,2000?
CREATE TABLE table_29391888_1 (production_code VARCHAR, original_air_date VARCHAR)
SELECT indigenous_mining_production_2006 FROM table_15624586_2 WHERE _percentage_of_world_demand = "3.4%"
What is the indigenous mining production of the country that uses 3.4% of the world demand?
CREATE TABLE table_15624586_2 (indigenous_mining_production_2006 VARCHAR, _percentage_of_world_demand VARCHAR)
SELECT city_of_license FROM table_name_44 WHERE call_sign = "w244bk"
What city of license is associated with call sign w244bk?
CREATE TABLE table_name_44 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT patient FROM undergoes ORDER BY dateundergoes LIMIT 1
Find the patient who has the most recent undergoing treatment?
CREATE TABLE undergoes (patient VARCHAR, dateundergoes VARCHAR)
SELECT alliance__association FROM table_name_85 WHERE rank = 40
Which alliance has a rank of 40?
CREATE TABLE table_name_85 (alliance__association VARCHAR, rank VARCHAR)
SELECT SUM(2013) FROM table_name_99 WHERE 2010 = 5 AND country = "russia" AND 2012 < 4
What is the sum of participants in 2013 for Russia when there were 5 in 2010 and less than 4 in 2012?
CREATE TABLE table_name_99 (country VARCHAR)
SELECT score_in_the_final FROM table_name_8 WHERE surface = "hard"
What is the score in the final of the tournament with a hard surface?
CREATE TABLE table_name_8 (score_in_the_final VARCHAR, surface VARCHAR)
SELECT robin FROM table_19744915_3 WHERE jason = "2.5"
what is robin's stat when jason was 2.5
CREATE TABLE table_19744915_3 (robin VARCHAR, jason VARCHAR)
SELECT DISTINCT product_name FROM product ORDER BY product_name
List the names of all the distinct product names in alphabetical order?
CREATE TABLE product (product_name VARCHAR)
SELECT rank FROM table_name_11 WHERE total = "3 (20)"
What is the rank for the total that has 3 (20)?
CREATE TABLE table_name_11 (rank VARCHAR, total VARCHAR)
SELECT away_team FROM table_name_91 WHERE date = "10 february 1951" AND home_team = "manchester united"
Who was the away team when Manchester United played at home on 10 February 1951?
CREATE TABLE table_name_91 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT SUM(game_2) FROM table_name_67 WHERE total = 759 OFFSET 997
What is the game 2 sum attendance of the team with a total attendance of 759,997?
CREATE TABLE table_name_67 (game_2 INTEGER, total VARCHAR)
SELECT COUNT(player) FROM table_23184448_4 WHERE field_goals = 25 AND blocks = 6
Name the number of players for field goals being 25 and blocks is 6
CREATE TABLE table_23184448_4 (player VARCHAR, field_goals VARCHAR, blocks VARCHAR)
SELECT COUNT(ranking) FROM table_1348989_2 WHERE season = "5th"
How many rankings did the 5th season have?
CREATE TABLE table_1348989_2 (ranking VARCHAR, season VARCHAR)
SELECT away_team AS score FROM table_name_50 WHERE away_team = "south melbourne"
What was South Melbourne's score as the away team?
CREATE TABLE table_name_50 (away_team VARCHAR)