answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT location FROM table_name_14 WHERE wrestler = "tatsuhito takaiwa"
What location has tatsuhito takaiwa as the wrestler?
CREATE TABLE table_name_14 (location VARCHAR, wrestler VARCHAR)
SELECT outcome FROM table_name_92 WHERE opponent = "paul-henri mathieu"
The match against Paul-Henri Mathieu had what outcome?
CREATE TABLE table_name_92 (outcome VARCHAR, opponent VARCHAR)
SELECT SUM(year) FROM table_name_70 WHERE entrant = "spirit tom's racing" AND points > 3
What is the year when Spirit Tom's Racing had more than 3 points?
CREATE TABLE table_name_70 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT MAX(production_code) FROM table_14889988_1 WHERE no_in_series = 229
What is the production code for episode 229?
CREATE TABLE table_14889988_1 (production_code INTEGER, no_in_series VARCHAR)
SELECT texas FROM table_name_92 WHERE north_dakota = "johnson"
What Texas has Johnson from Nort Dakota?
CREATE TABLE table_name_92 (texas VARCHAR, north_dakota VARCHAR)
SELECT SUM(wins) FROM table_name_80 WHERE against < 1148
What is the sum of wins against the smaller score 1148?
CREATE TABLE table_name_80 (wins INTEGER, against INTEGER)
SELECT role FROM table_name_11 WHERE studio = "rep" AND leading_lady = "sheila mannors" AND title = "westward ho"
Name the role for studio of rep with sheila mannors leading lady and title of westward ho
CREATE TABLE table_name_11 (role VARCHAR, title VARCHAR, studio VARCHAR, leading_lady VARCHAR)
SELECT COUNT(year) FROM table_name_35 WHERE playoffs = "quarterfinals"
Name the total number of years for quarterfinals
CREATE TABLE table_name_35 (year VARCHAR, playoffs VARCHAR)
SELECT lead FROM table_name_22 WHERE skip = "kirsty balfour"
Which lead has Kirsty Balfour as second?
CREATE TABLE table_name_22 (lead VARCHAR, skip VARCHAR)
SELECT award FROM table_name_5 WHERE year = 2002
What Award has a date of 2002?
CREATE TABLE table_name_5 (award VARCHAR, year VARCHAR)
SELECT notes FROM table_name_24 WHERE athlete = "andre vonarburg"
what is the notes for andre vonarburg?
CREATE TABLE table_name_24 (notes VARCHAR, athlete VARCHAR)
SELECT chassis FROM table_1405704_1 WHERE season = 1979 AND engine = "Foyt"
What kind of chassis did a winning car with a Foyt engine have in 1979?
CREATE TABLE table_1405704_1 (chassis VARCHAR, season VARCHAR, engine VARCHAR)
SELECT written_by FROM table_25679312_2 WHERE prod_code = 2
Who wrote the episode with production code 2?
CREATE TABLE table_25679312_2 (written_by VARCHAR, prod_code VARCHAR)
SELECT MIN(population) FROM table_name_94 WHERE region > 9
What is the smallest population in a region greater than 9?
CREATE TABLE table_name_94 (population INTEGER, region INTEGER)
SELECT date FROM table_name_54 WHERE outcome = "winner" AND opponents_in_the_final = "nikola fraňková carmen klaschka"
What date shows the Outcome of winner against nikola fraňková carmen klaschka?
CREATE TABLE table_name_54 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)
SELECT date FROM table_name_20 WHERE centerfold_model = "krista kelly"
When has a Centerfold model of krista kelly?
CREATE TABLE table_name_20 (date VARCHAR, centerfold_model VARCHAR)
SELECT release_date FROM table_1681535_1 WHERE title = "Destiny of the Daleks"
What is the release date for Destiny of the Daleks?
CREATE TABLE table_1681535_1 (release_date VARCHAR, title VARCHAR)
SELECT draw FROM table_name_85 WHERE span = "1987-1999"
What draw has a Span of 1987-1999?
CREATE TABLE table_name_85 (draw VARCHAR, span VARCHAR)
SELECT opponent FROM table_name_56 WHERE record = "4-4"
Who did the Cubs play when they had a record of 4-4?
CREATE TABLE table_name_56 (opponent VARCHAR, record VARCHAR)
SELECT AVG(total) FROM table_name_36 WHERE rank = 6 AND silver < 0
What is the average Total for the Rank of 6, when Silver is smaller than 0?
CREATE TABLE table_name_36 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT height_in_ft FROM table_name_69 WHERE no_s_ = "42" AND school_club_team_country = "long beach state"
How tall is player 42 from Long Beach State?
CREATE TABLE table_name_69 (height_in_ft VARCHAR, no_s_ VARCHAR, school_club_team_country VARCHAR)
SELECT republican_ticket FROM table_name_49 WHERE progressive_ticket = "frank h. hiscock"
Who ran under the Republican ticket when Frank H. Hiscock ran under the Progressive ticket?
CREATE TABLE table_name_49 (republican_ticket VARCHAR, progressive_ticket VARCHAR)
SELECT position FROM table_name_87 WHERE pick__number = 12
What position does pick number 12 play?
CREATE TABLE table_name_87 (position VARCHAR, pick__number VARCHAR)
SELECT money___£__ FROM table_name_56 WHERE player = "pádraig harrington"
Name the money for pádraig harrington
CREATE TABLE table_name_56 (money___£__ VARCHAR, player VARCHAR)
SELECT package_option FROM table_15887683_3 WHERE television_service = "FOX Sports HD"
What package offers Fox Sports HD?
CREATE TABLE table_15887683_3 (package_option VARCHAR, television_service VARCHAR)
SELECT tie_no FROM table_name_39 WHERE away_team = "oxford city"
What was the tie no when Oxford city was the away team?
CREATE TABLE table_name_39 (tie_no VARCHAR, away_team VARCHAR)
SELECT to_par FROM table_name_74 WHERE money___£__ = "49,500"
What is the to par for the player with winnings of 49,500?
CREATE TABLE table_name_74 (to_par VARCHAR, money___£__ VARCHAR)
SELECT year FROM table_1908049_1 WHERE playoffs = "Champions"
what was the year where in the playoffs was champions
CREATE TABLE table_1908049_1 (year VARCHAR, playoffs VARCHAR)
SELECT week FROM table_name_46 WHERE date = "september 23, 1973"
September 23, 1973 landed on which week of the season?
CREATE TABLE table_name_46 (week VARCHAR, date VARCHAR)
SELECT mls_team FROM table_29626583_3 WHERE player = "Jason Herrick"
Which MLS team picked player Jason Herrick?
CREATE TABLE table_29626583_3 (mls_team VARCHAR, player VARCHAR)
SELECT 2009 FROM table_name_31 WHERE year = "highest mean annual temperature"
What is 2009, when Year is "Highest Mean Annual Temperature"?
CREATE TABLE table_name_31 (year VARCHAR)
SELECT opponent FROM table_name_93 WHERE march > 21 AND game = 75
who is the opponent after march 21 and the game is 75?
CREATE TABLE table_name_93 (opponent VARCHAR, march VARCHAR, game VARCHAR)
SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = "Amanda Beard, Reby Sky , Girls of Montauk"
Who was the centerfold model when the issue's pictorial was amanda beard, reby sky , girls of montauk ?
CREATE TABLE table_1566852_8 (centerfold_model VARCHAR, pictorials VARCHAR)
SELECT COUNT(time) FROM table_name_52 WHERE lane < 8 AND nationality = "canada" AND rank < 8
What is the total time of the athlete from Canada with a lane less than 8 and a rank less than 8?
CREATE TABLE table_name_52 (time VARCHAR, rank VARCHAR, lane VARCHAR, nationality VARCHAR)
SELECT d_47 FROM table_name_11 WHERE d_48 = "d 29"
Name the D 47 when it has D 48 of d 29
CREATE TABLE table_name_11 (d_47 VARCHAR, d_48 VARCHAR)
SELECT elevated FROM table_name_13 WHERE nationality = "pisa"
When was the elector from pisa elevated?
CREATE TABLE table_name_13 (elevated VARCHAR, nationality VARCHAR)
SELECT result FROM table_name_10 WHERE loser = "memphis grizzlies ( 2)"
What is the Result when the memphis grizzlies ( 2) were the loser?
CREATE TABLE table_name_10 (result VARCHAR, loser VARCHAR)
SELECT Name FROM editor WHERE Age > 25
List the names of editors who are older than 25.
CREATE TABLE editor (Name VARCHAR, Age INTEGER)
SELECT city FROM table_name_57 WHERE icao = "rjsn"
In what city is RJSN located?
CREATE TABLE table_name_57 (city VARCHAR, icao VARCHAR)
SELECT age__as_of_1_february_2014_ FROM table_name_3 WHERE rank < 9 AND death_date = "24 january 2007"
Which Age (as of 1 February 2014) has a Rank smaller than 9, and a Death date of 24 january 2007?
CREATE TABLE table_name_3 (age__as_of_1_february_2014_ VARCHAR, rank VARCHAR, death_date VARCHAR)
SELECT COUNT(cultural_and_educational_panel) FROM table_name_41 WHERE university_of_dublin = 3 AND labour_panel > 11
How many in the cultural and educational panel have a university of Dublin of 3 & A labor panel larger than 11?
CREATE TABLE table_name_41 (cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR, labour_panel VARCHAR)
SELECT SUM(car) FROM table_name_65 WHERE avg = 4.7 AND long > 30
How many carries for the RB averaging 4.7, and a long of over 30 yards?
CREATE TABLE table_name_65 (car INTEGER, avg VARCHAR, long VARCHAR)
SELECT MAX(capacity) FROM table_25794138_1 WHERE stadium = "Larry Gomes stadium"
What was the maximum capacity of larry gomes stadium?
CREATE TABLE table_25794138_1 (capacity INTEGER, stadium VARCHAR)
SELECT COUNT(december) FROM table_name_90 WHERE opponent = "calgary flames"
How many Decembers have calgary flames as the opponent?
CREATE TABLE table_name_90 (december VARCHAR, opponent VARCHAR)
SELECT MIN(attendance) FROM table_16729076_1 WHERE game_site = "Kingdome"
what is the attendance where the game site is kingdome?
CREATE TABLE table_16729076_1 (attendance INTEGER, game_site VARCHAR)
SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1
Find the name and email for the users who have more than one follower.
CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, email VARCHAR, uid VARCHAR)
SELECT location FROM table_23315271_2 WHERE circuit = "ACI Vallelunga circuit"
In which location is aci vallelunga circuit?
CREATE TABLE table_23315271_2 (location VARCHAR, circuit VARCHAR)
SELECT event FROM table_name_31 WHERE country = "brazil"
Which event was held in Brazil?
CREATE TABLE table_name_31 (event VARCHAR, country VARCHAR)
SELECT round FROM table_25505246_8 WHERE against = "South Africa"
in what round types did the opponent come from south africa?
CREATE TABLE table_25505246_8 (round VARCHAR, against VARCHAR)
SELECT winner FROM table_22756549_1 WHERE runner_up_a = "V. A. Muthiah"
Who won when V. A. Muthiah was the runner-up?
CREATE TABLE table_22756549_1 (winner VARCHAR, runner_up_a VARCHAR)
SELECT COUNT(total) FROM table_name_46 WHERE to_par < 4 AND year_won < 1983
What is the Total of the player who won before 1983 with a smaller than 4 To par?
CREATE TABLE table_name_46 (total VARCHAR, to_par VARCHAR, year_won VARCHAR)
SELECT team FROM table_18461635_1 WHERE county = "Derbyshire"
What is the name of the team from Derbyshire county?
CREATE TABLE table_18461635_1 (team VARCHAR, county VARCHAR)
SELECT AVG(draw) FROM table_name_92 WHERE points > 44 AND place > 1
What is the Draw that has Points larger than 44 and a Place larger than 1?
CREATE TABLE table_name_92 (draw INTEGER, points VARCHAR, place VARCHAR)
SELECT air_force_cross FROM table_2104176_1 WHERE homeland_security_distinguished_service_medal = "Aerial Achievement Medal"
What is the air force cross when you recieve the Aerial achievement medal?
CREATE TABLE table_2104176_1 (air_force_cross VARCHAR, homeland_security_distinguished_service_medal VARCHAR)
SELECT us_viewers__millions_ FROM table_29569969_2 WHERE production_code = 105
How many million people in the US saw the episode with production code 105?
CREATE TABLE table_29569969_2 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = "Orange")
Find the names of the campus which has more faculties in 2002 than every campus in Orange county.
CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR)
SELECT MAX(number_of_electorates__2009_) FROM table_name_86 WHERE district = "raisen" AND constituency_number = "142"
What was the highest number of 2009 electorates for Raisen when the consituency number was 142?
CREATE TABLE table_name_86 (number_of_electorates__2009_ INTEGER, district VARCHAR, constituency_number VARCHAR)
SELECT title FROM table_23513241_5 WHERE us_viewers__millions_ = "1.121"
What was the title when 1.121 million US people watched it?
CREATE TABLE table_23513241_5 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT record FROM table_name_33 WHERE year > 1974 AND finish = "3rd"
Which Record has a Year larger than 1974, and a Finish of 3rd?
CREATE TABLE table_name_33 (record VARCHAR, year VARCHAR, finish VARCHAR)
SELECT nationality FROM table_name_10 WHERE player = "john flatters"
What is John Flatters' nationality?
CREATE TABLE table_name_10 (nationality VARCHAR, player VARCHAR)
SELECT equatorial_diameter FROM table_name_33 WHERE body = "ceres"
What is the Equatorial diameter of the Body: ceres?
CREATE TABLE table_name_33 (equatorial_diameter VARCHAR, body VARCHAR)
SELECT AVG(rank) FROM table_name_40 WHERE year = 1950
In 1950 what is the average rank?
CREATE TABLE table_name_40 (rank INTEGER, year VARCHAR)
SELECT tournament FROM table_name_83 WHERE 1990 = "0 / 4"
For what tournament is the 1990 0 / 4?
CREATE TABLE table_name_83 (tournament VARCHAR)
SELECT directed_by FROM table_11630008_5 WHERE written_by = "Lamont Ferrell"
Who directed the episode written by Lamont Ferrell?
CREATE TABLE table_11630008_5 (directed_by VARCHAR, written_by VARCHAR)
SELECT previous_school FROM table_24925945_3 WHERE height = "ft7in (m)"
What was the previous school of the ft7in (m) tall player?
CREATE TABLE table_24925945_3 (previous_school VARCHAR, height VARCHAR)
SELECT record FROM table_name_74 WHERE game = 46
What record has 46 as the game?
CREATE TABLE table_name_74 (record VARCHAR, game VARCHAR)
SELECT written_by FROM table_17467578_1 WHERE us_viewers__million_ = "3.96"
Who wrote the episode "The Dream Lover", which was viewed by 3.96 million viewers?
CREATE TABLE table_17467578_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT driver FROM table_name_94 WHERE points < 17
What driver has points less than 17?
CREATE TABLE table_name_94 (driver VARCHAR, points INTEGER)
SELECT part_2 FROM table_1745843_2 WHERE part_4 = "*ridanaz"
What word is listed under part 2 for part 4 *ridanaz?
CREATE TABLE table_1745843_2 (part_2 VARCHAR, part_4 VARCHAR)
SELECT tournament FROM table_name_77 WHERE 2011 = "a"
What is the tournament with A in 2011?
CREATE TABLE table_name_77 (tournament VARCHAR)
SELECT LOCATION FROM county_public_safety GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
What is the location shared by most counties?
CREATE TABLE county_public_safety (LOCATION VARCHAR)
SELECT target_version FROM table_name_68 WHERE license = "lgpl or mpl"
What is Target Version, when License is LGPL or MPL?
CREATE TABLE table_name_68 (target_version VARCHAR, license VARCHAR)
SELECT grid FROM table_name_21 WHERE driver = "jim clark"
In what grid did jim clark drive in?
CREATE TABLE table_name_21 (grid VARCHAR, driver VARCHAR)
SELECT tournament FROM table_name_57 WHERE date = "9 jun 2002"
Which tournament was held on 9 Jun 2002?
CREATE TABLE table_name_57 (tournament VARCHAR, date VARCHAR)
SELECT AVG(lane) FROM table_name_52 WHERE nationality = "china"
What is the average lane for china?
CREATE TABLE table_name_52 (lane INTEGER, nationality VARCHAR)
SELECT host_s_ FROM table_16884579_1 WHERE network = "Prime"
Name the host for prime
CREATE TABLE table_16884579_1 (host_s_ VARCHAR, network VARCHAR)
SELECT est FROM table_23685890_2 WHERE land_area__km²_ = "4563"
On what year was the local government area with a surface of 4563 square kilometers established?
CREATE TABLE table_23685890_2 (est VARCHAR, land_area__km²_ VARCHAR)
SELECT team FROM table_name_56 WHERE laps < 73 AND time_retired = "gearbox"
Which team has less than 73 laps and a gearbox time?
CREATE TABLE table_name_56 (team VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT COUNT(result) FROM table_2668329_25 WHERE district = "Virginia 4"
How many people won the election in the district of Virginia 4?
CREATE TABLE table_2668329_25 (result VARCHAR, district VARCHAR)
SELECT COUNT(number_of_electorates__2009_) FROM table_name_97 WHERE name = "govindpura"
what is the total number of electorates (2009) when the name is govindpura?
CREATE TABLE table_name_97 (number_of_electorates__2009_ VARCHAR, name VARCHAR)
SELECT venue FROM table_name_9 WHERE result = "wi by 8 wkts"
What is the Venue which has a Wi by 8 wkts?
CREATE TABLE table_name_9 (venue VARCHAR, result VARCHAR)
SELECT production_code FROM table_2818164_7 WHERE written_by = "Matt Robinson"
What is the production code that was written by matt robinson?
CREATE TABLE table_2818164_7 (production_code VARCHAR, written_by VARCHAR)
SELECT to_par FROM table_name_24 WHERE player = "fred couples"
What is Fred Couples to par?
CREATE TABLE table_name_24 (to_par VARCHAR, player VARCHAR)
SELECT SUM(crowd) FROM table_name_58 WHERE home_team = "hawthorn"
How many people were in the crowd when the Home Team was Hawthorn?
CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR)
SELECT COUNT(incoming_manager) FROM table_26593762_3 WHERE team = "Burnley"
How many incoming managers did Burnley have?
CREATE TABLE table_26593762_3 (incoming_manager VARCHAR, team VARCHAR)
SELECT result FROM table_name_10 WHERE field = "frontier field"
What is the result of games played at frontier field
CREATE TABLE table_name_10 (result VARCHAR, field VARCHAR)
SELECT game FROM table_name_20 WHERE year > 1997 AND platform_s_ = "windows" AND genre = "adventure"
What game in the genre of adventure, has a windows platform and its year is after 1997?
CREATE TABLE table_name_20 (game VARCHAR, genre VARCHAR, year VARCHAR, platform_s_ VARCHAR)
SELECT power_kw__erp_ FROM table_2610582_3 WHERE ch__number = "TV-23" AND callsign = "DYCG-TV"
What is the power, in kW, of channel TV-23, callsign DYCG-TV?
CREATE TABLE table_2610582_3 (power_kw__erp_ VARCHAR, ch__number VARCHAR, callsign VARCHAR)
SELECT COUNT(april_2013_cum_rank) FROM table_24307126_3 WHERE rank_2012 = 225
Name the number of rank for april 2013 for 2012 ran kbeing 225
CREATE TABLE table_24307126_3 (april_2013_cum_rank VARCHAR, rank_2012 VARCHAR)
SELECT user_name, password FROM users GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1
List all the username and passwords of users with the most popular role.
CREATE TABLE users (user_name VARCHAR, password VARCHAR, role_code VARCHAR)
SELECT d_41_√ FROM table_name_20 WHERE d_43_o = "r 13"
Name the D 41 √ for having D 43 of r 13
CREATE TABLE table_name_20 (d_41_√ VARCHAR, d_43_o VARCHAR)
SELECT kilgore__r_ FROM table_name_95 WHERE potts__i_ = "1%"
What was Kilgore's (R) percentage when Potts (I) polled at 1%?
CREATE TABLE table_name_95 (kilgore__r_ VARCHAR, potts__i_ VARCHAR)
SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE cuatro_cañadas_municipality___percentage_ = "252"
If the Cuatro Cañadas municipality percentage is 252, what are all the San Antonio de Lomerío municipality percentage?
CREATE TABLE table_19998428_3 (san_antonio_de_lomerío_municipality___percentage_ VARCHAR, cuatro_cañadas_municipality___percentage_ VARCHAR)
SELECT rank FROM table_name_66 WHERE event = "lapt4 são paulo"
What is Rank, when Event is "LAPT4 São Paulo"?
CREATE TABLE table_name_66 (rank VARCHAR, event VARCHAR)
SELECT premiere_air_dates FROM table_1949994_7 WHERE format = "1 Team"
When did the season with 1 team format premiere?
CREATE TABLE table_1949994_7 (premiere_air_dates VARCHAR, format VARCHAR)
SELECT AVG(bronze) FROM table_name_28 WHERE nation = "argentina" AND silver < 0
Which Bronze has a Nation of argentina, and a Silver smaller than 0?
CREATE TABLE table_name_28 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT frequency__per_hour_ FROM table_1569516_1 WHERE destination = "London Bridge"
When London Bridge is the destination, what is the frequency?
CREATE TABLE table_1569516_1 (frequency__per_hour_ VARCHAR, destination VARCHAR)
SELECT name FROM table_name_28 WHERE prize = "$2,434,061"
Who won the event with a top prize of $2,434,061?
CREATE TABLE table_name_28 (name VARCHAR, prize VARCHAR)
SELECT total FROM table_28352386_1 WHERE guest_judge = "10"
What was the total score when the guest judge gave a score of 10?
CREATE TABLE table_28352386_1 (total VARCHAR, guest_judge VARCHAR)
SELECT COUNT(year) FROM table_name_17 WHERE playoffs = "did not qualify" AND regular_season = "10th"
What is the year when they did not qualify for the playoff and the Regular Season shows as 10th?
CREATE TABLE table_name_17 (year VARCHAR, playoffs VARCHAR, regular_season VARCHAR)