answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(played) FROM table_20301877_2 WHERE player = "Wayne Mardle"
how many matches did wayne mardle play
CREATE TABLE table_20301877_2 (played VARCHAR, player VARCHAR)
SELECT MAX(sponsorship) AS Ended FROM table_28005160_2
What is the last year a sponsorship ended?
CREATE TABLE table_28005160_2 (sponsorship INTEGER)
SELECT party FROM table_name_14 WHERE took_office = "1998"
What is Party, when Took Office is 1998?
CREATE TABLE table_name_14 (party VARCHAR, took_office VARCHAR)
SELECT current_singles_ranking FROM table_10295819_1 WHERE player = "Mantas Bugailiškis"
What is the Current singles ranking for the player named Mantas Bugailiškis?
CREATE TABLE table_10295819_1 (current_singles_ranking VARCHAR, player VARCHAR)
SELECT position FROM table_name_53 WHERE player = "magnus nygren"
What is the Position, when Player is "Magnus Nygren"?
CREATE TABLE table_name_53 (position VARCHAR, player VARCHAR)
SELECT stage FROM table_name_59 WHERE malaysian_rider_classification = "suhardi hassan"
Which stage had suhardi hassan in the Malaysian rider classification?
CREATE TABLE table_name_59 (stage VARCHAR, malaysian_rider_classification VARCHAR)
SELECT year FROM table_name_54 WHERE binibining_pilipinas_international = "alma concepcion"
Which Year has a Binibining Pilipinas International of alma concepcion?
CREATE TABLE table_name_54 (year VARCHAR, binibining_pilipinas_international VARCHAR)
SELECT tournament FROM table_name_8 WHERE date = "may 29, 2010"
What tournament was played on May 29, 2010?
CREATE TABLE table_name_8 (tournament VARCHAR, date VARCHAR)
SELECT COUNT(record) FROM table_27715173_6 WHERE date = "November 24"
How many records are there for the game on november 24?
CREATE TABLE table_27715173_6 (record VARCHAR, date VARCHAR)
SELECT college FROM table_name_45 WHERE player = "marcus wilson"
What college did Marcus Wilson attend?
CREATE TABLE table_name_45 (college VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_72 WHERE school_country = "temple"
Which nationality is associated with Temple?
CREATE TABLE table_name_72 (nationality VARCHAR, school_country VARCHAR)
SELECT COUNT(agency) FROM table_14125006_1 WHERE astronaut = "Budarin Nikolai Budarin"
How many agencies did Budarin Nikolai Budarin working for?
CREATE TABLE table_14125006_1 (agency VARCHAR, astronaut VARCHAR)
SELECT assists FROM table_name_14 WHERE team = "smu" AND total_points = "85"
What assists has the Team SMU and the total points of 85?
CREATE TABLE table_name_14 (assists VARCHAR, team VARCHAR, total_points VARCHAR)
SELECT rank FROM table_name_44 WHERE athlete = "hamid veisi"
What was the reanking of Hamid Veisi?
CREATE TABLE table_name_44 (rank VARCHAR, athlete VARCHAR)
SELECT district FROM table_2668264_8 WHERE incumbent = "Henry Clay"
What district(s) did henry clay represent?
CREATE TABLE table_2668264_8 (district VARCHAR, incumbent VARCHAR)
SELECT home_team FROM table_name_90 WHERE away_team = "essendon"
What team played Essendon?
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_94 WHERE record = "1-0"
WHAT IS THE SCORE WITH A RECORD OF 1-0?
CREATE TABLE table_name_94 (score VARCHAR, record VARCHAR)
SELECT channel FROM table_name_64 WHERE 2011 = "8.5"
What is the channel with a 2011 rating of 8.5?
CREATE TABLE table_name_64 (channel VARCHAR)
SELECT COUNT(institution) FROM table_16384648_2 WHERE team_nickname = "Bobcats"
How many schools have the team nickname bobcats?
CREATE TABLE table_16384648_2 (institution VARCHAR, team_nickname VARCHAR)
SELECT AVG(attendance) FROM table_name_63 WHERE week = 15
What was average attendance during week 15?
CREATE TABLE table_name_63 (attendance INTEGER, week VARCHAR)
SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id
List the details of the customers who do not have any policies.
CREATE TABLE Customer_Policies (customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR)
SELECT country FROM table_name_13 WHERE player = "jeff sluman"
The golfer Jeff Sluman golfs for what country?
CREATE TABLE table_name_13 (country VARCHAR, player VARCHAR)
SELECT COUNT(last_title) FROM table_name_79 WHERE wins < 71 AND first_title > 1968 AND country = "fiji"
What is the total of Last title that has Wins smaller than 71 and a First title larger than 1968 and a Country of fiji?
CREATE TABLE table_name_79 (last_title VARCHAR, country VARCHAR, wins VARCHAR, first_title VARCHAR)
SELECT COUNT(sat_29_aug) FROM table_26986076_2 WHERE fri_27_aug = "19' 38.87 115.219mph"
how many time is fri 27 aug 19' 38.87 115.219mph?
CREATE TABLE table_26986076_2 (sat_29_aug VARCHAR, fri_27_aug VARCHAR)
SELECT coast_guard_cross FROM table_2104176_1 WHERE distinguished_service_cross = "Navy Distinguished Service Medal"
What is the coast guard cross when you recieve the navy distinguished service medal?
CREATE TABLE table_2104176_1 (coast_guard_cross VARCHAR, distinguished_service_cross VARCHAR)
SELECT name FROM table_name_7 WHERE ref_number < 55 AND built = 1910 AND construction = "red brick"
What is the name of the mill constructed of red brick in 1910 with a reference number lower than 55?
CREATE TABLE table_name_7 (name VARCHAR, construction VARCHAR, ref_number VARCHAR, built VARCHAR)
SELECT MAX(ning) FROM table_name_40 WHERE bebo < 4 AND orkut < 100 AND plaxo > 0
What is the highest Ning that has a bebo less than 4, an orkut less than 100, with a plaxo greater than 0?
CREATE TABLE table_name_40 (ning INTEGER, plaxo VARCHAR, bebo VARCHAR, orkut VARCHAR)
SELECT type FROM table_1974782_1 WHERE location = "New London, Connecticut"
What's the type of the school in New London, Connecticut?
CREATE TABLE table_1974782_1 (type VARCHAR, location VARCHAR)
SELECT COUNT(total) FROM table_14260687_3 WHERE quarter = "2012 Q1"
How many total smartphones were shipped during the quarter 2012 Q1?
CREATE TABLE table_14260687_3 (total VARCHAR, quarter VARCHAR)
SELECT MAX(lane) FROM table_name_60 WHERE rank > 3 AND time > 45.63 AND react < 0.28800000000000003 AND athlete = "geiner mosquera"
Which Lane has a Rank larger than 3, and a Time larger than 45.63, and a Reaction smaller than 0.28800000000000003, and an Athlete of geiner mosquera?
CREATE TABLE table_name_60 (lane INTEGER, athlete VARCHAR, react VARCHAR, rank VARCHAR, time VARCHAR)
SELECT november FROM table_name_71 WHERE october = "jill de vries"
Who is in November where October is jill de vries?
CREATE TABLE table_name_71 (november VARCHAR, october VARCHAR)
SELECT pinyin FROM table_2013618_1 WHERE foochow = "Ciá-ìng-gâing"
Name the pinyin for ciá-ìng-gâing
CREATE TABLE table_2013618_1 (pinyin VARCHAR, foochow VARCHAR)
SELECT party FROM table_name_52 WHERE incumbent = "rodney alexander"
What is Party, when Incumbent is "Rodney Alexander"?
CREATE TABLE table_name_52 (party VARCHAR, incumbent VARCHAR)
SELECT AVG(year_of_marriage) FROM table_name_6 WHERE her_age > 19 AND his_age = 30
What is the mean year of marriage when her age was more than 19 and his age was 30?
CREATE TABLE table_name_6 (year_of_marriage INTEGER, her_age VARCHAR, his_age VARCHAR)
SELECT total__000s_ FROM table_name_35 WHERE germany = 16.6
What was the amount of 000s when Germany had 16.6?
CREATE TABLE table_name_35 (total__000s_ VARCHAR, germany VARCHAR)
SELECT goals FROM table_name_86 WHERE date = "3/10/97"
What were the goals on 3/10/97?
CREATE TABLE table_name_86 (goals VARCHAR, date VARCHAR)
SELECT COUNT(population) FROM table_name_5 WHERE former_local_authority = "cockermouth rural district" AND name = "plumbland"
What is the population of the Parish, Plumbland, that had a former local authority of Cockermouth Rural District?
CREATE TABLE table_name_5 (population VARCHAR, former_local_authority VARCHAR, name VARCHAR)
SELECT district FROM table_2668405_17 WHERE incumbent = "John Nicholas"
What is the district with the incumbent john nicholas?
CREATE TABLE table_2668405_17 (district VARCHAR, incumbent VARCHAR)
SELECT held_every FROM table_name_13 WHERE sport = "table tennis"
How often is the table tennis competition held?
CREATE TABLE table_name_13 (held_every VARCHAR, sport VARCHAR)
SELECT tatsuhito_takaiwa FROM table_name_38 WHERE koji_kanemoto = "liger (20:29)"
Which Tatsuhito Takaiwa has a Koji Kanemoto of liger (20:29)?
CREATE TABLE table_name_38 (tatsuhito_takaiwa VARCHAR, koji_kanemoto VARCHAR)
SELECT artist FROM table_name_64 WHERE year > 2012 AND format = "cd, lp"
Who was the artist after 2012 with CD, LP as the format?
CREATE TABLE table_name_64 (artist VARCHAR, year VARCHAR, format VARCHAR)
SELECT btu_gal FROM table_2224692_1 WHERE kwh_gal = "24.04"
What's the BTU/Gal of the fuel whose kWh/Gal is 24.04?
CREATE TABLE table_2224692_1 (btu_gal VARCHAR, kwh_gal VARCHAR)
SELECT attendance FROM table_name_9 WHERE opponent = "houston oilers"
What was the attendance for the game against the Houston Oilers?
CREATE TABLE table_name_9 (attendance VARCHAR, opponent VARCHAR)
SELECT race_4 FROM table_name_55 WHERE race_3 = "dns" AND race_2 = "27"
What's the value for race 4 when race 3 is dns and race 2 is 27?
CREATE TABLE table_name_55 (race_4 VARCHAR, race_3 VARCHAR, race_2 VARCHAR)
SELECT election FROM table_name_37 WHERE total_seats < 144 AND seats = 32
If the total number of seats is under 144, and the seats won is 32, which election is this?
CREATE TABLE table_name_37 (election VARCHAR, total_seats VARCHAR, seats VARCHAR)
SELECT affiliation FROM table_25518547_4 WHERE mls_team = "Houston Dynamo"
What university is houston dynamo affiliated with?
CREATE TABLE table_25518547_4 (affiliation VARCHAR, mls_team VARCHAR)
SELECT release_date FROM table_name_69 WHERE production_num > 5888 AND director = "hugh harman and friz freleng"
Which Release date has a Production Num larger than 5888, and a Director of hugh harman and friz freleng?
CREATE TABLE table_name_69 (release_date VARCHAR, production_num VARCHAR, director VARCHAR)
SELECT second_place FROM table_2331549_1 WHERE champion = "South Dakota School of Mines & Technology"
Who came in second place when the champion was south dakota school of mines & technology?
CREATE TABLE table_2331549_1 (second_place VARCHAR, champion VARCHAR)
SELECT COUNT(capacity) FROM table_name_97 WHERE vehicle = "2003 holden commodore ute"
How much Capacity has a Vehicle of 2003 holden commodore ute?
CREATE TABLE table_name_97 (capacity VARCHAR, vehicle VARCHAR)
SELECT 2 AS nd_leg FROM table_name_16 WHERE team_2 = "morocco"
What is the 2nd leg result when team 2 is Morocco?
CREATE TABLE table_name_16 (team_2 VARCHAR)
SELECT drawn FROM table_name_11 WHERE points_against = "correct as of 08:50 10 may 2009"
What is the Drawn number with a Points against of correct as of 08:50 10 may 2009?
CREATE TABLE table_name_11 (drawn VARCHAR, points_against VARCHAR)
SELECT margin_of_victory FROM table_name_34 WHERE runner_s__up = "rhys davies"
What is the Margin of victory when rhys davies was runner-up?
CREATE TABLE table_name_34 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT opponent FROM table_26108103_2 WHERE player = "Devin Gardner"
Who was the opponent when Devin Gardner was the player?
CREATE TABLE table_26108103_2 (opponent VARCHAR, player VARCHAR)
SELECT television_commentator FROM table_1998037_9 WHERE year_s_ = 2006
Who is the television commentator for the year 2006?
CREATE TABLE table_1998037_9 (television_commentator VARCHAR, year_s_ VARCHAR)
SELECT MIN(number_of_electorates__2009_) FROM table_name_56 WHERE district = "mathura" AND name = "mant"
What Number of electorates (2009) has a District of mathura, and a Name of mant?
CREATE TABLE table_name_56 (number_of_electorates__2009_ INTEGER, district VARCHAR, name VARCHAR)
SELECT TYPE FROM school GROUP BY TYPE HAVING COUNT(*) = 2
Show the types of schools that have two schools.
CREATE TABLE school (TYPE VARCHAR)
SELECT account_id, customer_id, account_name FROM Accounts
Show ids, customer ids, names for all accounts.
CREATE TABLE Accounts (account_id VARCHAR, customer_id VARCHAR, account_name VARCHAR)
SELECT date_of_vacancy FROM table_27782699_3 WHERE outgoing_manager = "Thomas Thomasberg"
What was the vacancy date for Thomas Thomasberg?
CREATE TABLE table_27782699_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT report FROM table_1140117_5 WHERE race_name = "XIII Grand Prix de l'Albigeois"
What's the report for the race name, XIII Grand Prix de l'Albigeois?
CREATE TABLE table_1140117_5 (report VARCHAR, race_name VARCHAR)
SELECT north_marquesan FROM table_name_2 WHERE takuu = "/ɾani/"
What kind of North Marquesan has a Takuu of /ɾani/?
CREATE TABLE table_name_2 (north_marquesan VARCHAR, takuu VARCHAR)
SELECT final_score FROM table_24776075_2 WHERE date = "Saturday, May 25"
What was the final score on Saturday, May 25?
CREATE TABLE table_24776075_2 (final_score VARCHAR, date VARCHAR)
SELECT AVG(draw) FROM table_name_52 WHERE points > 12
Which average draw has points greater than 12?
CREATE TABLE table_name_52 (draw INTEGER, points INTEGER)
SELECT COUNT(draw) FROM table_name_47 WHERE played > 18
Name the total number of draw for played more than 18
CREATE TABLE table_name_47 (draw VARCHAR, played INTEGER)
SELECT nfl_team FROM table_14650162_1 WHERE college = "Minnesota"
What is the NFL team of the player whose college is Minnesota?
CREATE TABLE table_14650162_1 (nfl_team VARCHAR, college VARCHAR)
SELECT MAX(first_elected) FROM table_1341472_49
what's the latest first elected year
CREATE TABLE table_1341472_49 (first_elected INTEGER)
SELECT MIN(no_in_series) FROM table_24132083_1 WHERE written_by = "Lauren Gussis"
What in the series number of the episode written by Lauren Gussis?
CREATE TABLE table_24132083_1 (no_in_series INTEGER, written_by VARCHAR)
SELECT MIN(year) FROM table_name_6 WHERE country_territory = "philippines"
What's the earliest year the philippines won?
CREATE TABLE table_name_6 (year INTEGER, country_territory VARCHAR)
SELECT rowers FROM table_name_80 WHERE country = "canada"
Who is the rower from Canada?
CREATE TABLE table_name_80 (rowers VARCHAR, country VARCHAR)
SELECT COUNT(originalairdate) FROM table_2626495_1 WHERE directed_by = "Maury Geraghty"
how many times was the episode directed by maury geraghty originally aired?
CREATE TABLE table_2626495_1 (originalairdate VARCHAR, directed_by VARCHAR)
SELECT score FROM table_name_77 WHERE record = "59-65"
What was the score of the game when the record was 59-65?
CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR)
SELECT away_team AS score FROM table_name_24 WHERE venue = "victoria park"
What is the score for the away team at Victoria Park?
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
SELECT points FROM table_name_60 WHERE wins = "0" AND podiums = "0" AND races = "4"
What were the points in the year when his Wins were 0, his Podiums were 0, and he drove in 4 races?
CREATE TABLE table_name_60 (points VARCHAR, races VARCHAR, wins VARCHAR, podiums VARCHAR)
SELECT city FROM table_name_2 WHERE opponent = "norway"
What city did Yugoslavia play Norway in?
CREATE TABLE table_name_2 (city VARCHAR, opponent VARCHAR)
SELECT AVG(silver) FROM table_name_47 WHERE gold < 0
What is the average Silver, when Gold is less than 0?
CREATE TABLE table_name_47 (silver INTEGER, gold INTEGER)
SELECT result FROM table_name_30 WHERE score = "2-2"
With a score of 2-2, what was the Result?
CREATE TABLE table_name_30 (result VARCHAR, score VARCHAR)
SELECT MAX(played) FROM table_name_56 WHERE place = 10 AND points < 17
What is the highest games Played where the Place is 10 and Points are less than 17?
CREATE TABLE table_name_56 (played INTEGER, place VARCHAR, points VARCHAR)
SELECT COUNT(incumbent) FROM table_2668393_18 WHERE first_elected = "1797" AND candidates = "Abram Trigg (DR)"
How many incumbents were first elected in 1797 with the candidates abram trigg (dr)?
CREATE TABLE table_2668393_18 (incumbent VARCHAR, first_elected VARCHAR, candidates VARCHAR)
SELECT home_team FROM table_name_39 WHERE away_team = "sheffield united" AND date = "sheffield united"
Who was the home team when Sheffield United was the away team and the date was also Sheffield United?
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR, date VARCHAR)
SELECT MAX(number) FROM table_14624447_33 WHERE name = "Trevard Lindley"
What was Trevard Lindley's number?
CREATE TABLE table_14624447_33 (number INTEGER, name VARCHAR)
SELECT MAX(flap) FROM table_name_5 WHERE class = "500 cc"
What is the highest flap for class 500 cc?
CREATE TABLE table_name_5 (flap INTEGER, class VARCHAR)
SELECT MIN(enrollment) FROM table_name_46 WHERE capacity > 35 OFFSET 650
What is the enrollment associated with a capacity greater then 35,650?
CREATE TABLE table_name_46 (enrollment INTEGER, capacity INTEGER)
SELECT MIN(points) FROM table_name_73 WHERE place = "7th" AND draw > 8
What is the number of points for the 7th placed song with a draw greater than 8?
CREATE TABLE table_name_73 (points INTEGER, place VARCHAR, draw VARCHAR)
SELECT season FROM table_27069503_2 WHERE conf_record = "15-1-1"
In what season was the conference record for the Pandas 15-1-1?
CREATE TABLE table_27069503_2 (season VARCHAR, conf_record VARCHAR)
SELECT MAX(melamine_content_mg_kg_) FROM table_name_48 WHERE producer = "guangzhou jinding dairy products factory" AND samples_failed > 1
What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?
CREATE TABLE table_name_48 (melamine_content_mg_kg_ INTEGER, producer VARCHAR, samples_failed VARCHAR)
SELECT label FROM table_name_14 WHERE format = "cd" AND region = "australia"
What label is in CD format in Australia?
CREATE TABLE table_name_14 (label VARCHAR, format VARCHAR, region VARCHAR)
SELECT COUNT(pl_gp) FROM table_name_13 WHERE pick__number = 178 AND rd__number > 9
What is the sum number of Pl GP when the pick number is 178 and the road number is bigger than 9?
CREATE TABLE table_name_13 (pl_gp VARCHAR, pick__number VARCHAR, rd__number VARCHAR)
SELECT AVG(rec) FROM table_name_2 WHERE yards = 40 AND avg > 10
What is the average rec that is greater than 10 and has 40 yards?
CREATE TABLE table_name_2 (rec INTEGER, yards VARCHAR, avg VARCHAR)
SELECT MIN(population_canada_2011_census) FROM table_1011906_1 WHERE seat_of_rcm = "Cowansville"
what is the minimum population canada 2011 census with seat of rcm being cowansville
CREATE TABLE table_1011906_1 (population_canada_2011_census INTEGER, seat_of_rcm VARCHAR)
SELECT away_team AS score FROM table_name_5 WHERE away_team = "north melbourne"
What is the away team score for North Melbourne's home team?
CREATE TABLE table_name_5 (away_team VARCHAR)
SELECT AVG(population) FROM table_name_70 WHERE per_capita_income = "$29,194"
When the Per capita income is $29,194, what is the average population?
CREATE TABLE table_name_70 (population INTEGER, per_capita_income VARCHAR)
SELECT opponents FROM table_name_81 WHERE partner = "michelle strebel"
Who was Manuela Maleeva opponent when she played a match partnered with michelle strebel?
CREATE TABLE table_name_81 (opponents VARCHAR, partner VARCHAR)
SELECT region FROM table_name_12 WHERE host = "stanford university"
Which region has Stanford University as host?
CREATE TABLE table_name_12 (region VARCHAR, host VARCHAR)
SELECT score FROM table_name_59 WHERE date = "october 14"
Name the score on october 14
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR)
SELECT playoff_apps FROM table_name_10 WHERE position = "df" AND name = "thomas heary"
What was the playoff apps for Thomas Heary, that had the position df?
CREATE TABLE table_name_10 (playoff_apps VARCHAR, position VARCHAR, name VARCHAR)
SELECT result FROM table_name_46 WHERE attendance = "69,365"
What was the Result of the game with an Attendance of 69,365?
CREATE TABLE table_name_46 (result VARCHAR, attendance VARCHAR)
SELECT fa_cup_apps FROM table_name_60 WHERE league_cup_goals = 0 AND total_apps = "43"
What is the fa cup apps with 0 league cup goals, and a total of 43 apps?
CREATE TABLE table_name_60 (fa_cup_apps VARCHAR, league_cup_goals VARCHAR, total_apps VARCHAR)
SELECT SUM(rank) FROM table_name_65 WHERE gold > 1 AND total > 4
What is the Rank of the Nation with more than 1 Gold and a more than 4 Total medals?
CREATE TABLE table_name_65 (rank INTEGER, gold VARCHAR, total VARCHAR)
SELECT championship FROM table_name_3 WHERE year > 1997 AND score = "1–6, 4–6, 7–5, 5–7"
What championship after 1997 was the score 1–6, 4–6, 7–5, 5–7?
CREATE TABLE table_name_3 (championship VARCHAR, year VARCHAR, score VARCHAR)
SELECT manager_name FROM gas_station WHERE open_year > 2000 GROUP BY manager_name ORDER BY COUNT(*) DESC LIMIT 1
Show the manager name with most number of gas stations opened after 2000.
CREATE TABLE gas_station (manager_name VARCHAR, open_year INTEGER)
SELECT capital FROM table_name_97 WHERE hangul_chosongul = "경상남도"
Which capital has a Hangul of 경상남도?
CREATE TABLE table_name_97 (capital VARCHAR, hangul_chosongul VARCHAR)