answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT music_director FROM table_name_35 WHERE film = "vettaiyaadu vilaiyaadu"
Who is the musical director of the film Vettaiyaadu vilaiyaadu?
CREATE TABLE table_name_35 (music_director VARCHAR, film VARCHAR)
SELECT report FROM table_name_11 WHERE race_name = "v grand prix de paris"
Name the report for v grand prix de paris
CREATE TABLE table_name_11 (report VARCHAR, race_name VARCHAR)
SELECT AVG(founded) FROM table_name_59 WHERE location = "chicopee, massachusetts"
What is the average Founded for chicopee, massachusetts?
CREATE TABLE table_name_59 (founded INTEGER, location VARCHAR)
SELECT record FROM table_name_92 WHERE years = "2006-11"
what is the record for years 2006-11?
CREATE TABLE table_name_92 (record VARCHAR, years VARCHAR)
SELECT MIN(first_elected) FROM table_1341640_11 WHERE district = "Georgia 1"
What is the earliest first elected for district georgia 1?
CREATE TABLE table_1341640_11 (first_elected INTEGER, district VARCHAR)
SELECT MAX(year) FROM table_name_38 WHERE result = "nominated" AND nominee_s_ = "neal baer"
What is the latest year when Neal Baer was a nominee, and the result was nominated?
CREATE TABLE table_name_38 (year INTEGER, result VARCHAR, nominee_s_ VARCHAR)
SELECT SUM(gold) FROM table_name_8 WHERE nation = "russia" AND rank > 1
What amount of Gold does Russia have and have a rank larger than 1?
CREATE TABLE table_name_8 (gold INTEGER, nation VARCHAR, rank VARCHAR)
SELECT us_r & b FROM table_name_39 WHERE year = 1981
Name the US R&B for 1981
CREATE TABLE table_name_39 (us_r VARCHAR, b VARCHAR, year VARCHAR)
SELECT s_host FROM table_22583466_5 WHERE race_caller = "Marshall Cassidy"
For the race called by Marshall Cassidy, who was the host?
CREATE TABLE table_22583466_5 (s_host VARCHAR, race_caller VARCHAR)
SELECT record FROM table_name_22 WHERE attendance = "30,452"
What was the team's record at the game attended by 30,452?
CREATE TABLE table_name_22 (record VARCHAR, attendance VARCHAR)
SELECT COUNT(round) FROM table_name_25 WHERE time = "5:00" AND event = "ufc 155"
How many rounds had a time of 5:00 at UFC 155?
CREATE TABLE table_name_25 (round VARCHAR, time VARCHAR, event VARCHAR)
SELECT MIN(draft) FROM table_name_74 WHERE player = "dave christian category:articles with hcards"
What is the lowest Draft, when Player is "Dave Christian Category:Articles with hCards"?
CREATE TABLE table_name_74 (draft INTEGER, player VARCHAR)
SELECT title FROM table_name_67 WHERE date = "august 2004"
Which film was released in August 2004?
CREATE TABLE table_name_67 (title VARCHAR, date VARCHAR)
SELECT SUM(top_10) FROM table_name_61 WHERE tournament = "the open championship" AND top_25 < 3
What is the sum of top-10 values for the Open Championship and less than 3 in the top-25?
CREATE TABLE table_name_61 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT COUNT(date) FROM table_10725629_2 WHERE circuit = "Michigan International Speedway"
On how many dates did the Michigan International Speedway hold a round?
CREATE TABLE table_10725629_2 (date VARCHAR, circuit VARCHAR)
SELECT arrival FROM table_14688744_2 WHERE no = 14
what is the arrival time for no. 14?
CREATE TABLE table_14688744_2 (arrival VARCHAR, no VARCHAR)
SELECT athlete__noc_ FROM table_12407546_1 WHERE swimming = "2:05.63 (1296 pts)"
Who's the player with 2:05.63 (1296 pts) swimming score?
CREATE TABLE table_12407546_1 (athlete__noc_ VARCHAR, swimming VARCHAR)
SELECT time FROM table_name_77 WHERE geust = "ac bellinzona (chl)"
What is Time, when Geust is AC Bellinzona (CHL)?
CREATE TABLE table_name_77 (time VARCHAR, geust VARCHAR)
SELECT withdrawn FROM table_name_93 WHERE name = "charles dickens"
Name the withdrawn for charles dickens
CREATE TABLE table_name_93 (withdrawn VARCHAR, name VARCHAR)
SELECT streak_start FROM table_name_28 WHERE total < 79 AND rank = "22t" AND teams = "tampa bay"
What streak start has a total less than 79, 22t as the rank, and tampa bay as the teams?
CREATE TABLE table_name_28 (streak_start VARCHAR, teams VARCHAR, total VARCHAR, rank VARCHAR)
SELECT COUNT(reason_for_change) FROM table_225200_4 WHERE date_successor_seated = "Not filled this congress"
Name the total number of reason for change for not filled this congress
CREATE TABLE table_225200_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT cowboys_points FROM table_21197135_1 WHERE record = "7-0"
How many points did the Cowboys have when they had a 7-0 record?
CREATE TABLE table_21197135_1 (cowboys_points VARCHAR, record VARCHAR)
SELECT rank FROM table_name_31 WHERE notes = "fb" AND country = "new zealand"
What is the rank of the new zealand team that had fb listed under notes?
CREATE TABLE table_name_31 (rank VARCHAR, notes VARCHAR, country VARCHAR)
SELECT COUNT(score) FROM table_name_75 WHERE country = "united states" AND player = "lee trevino"
What is the total number of Score, when Country is "United States", and when Player is "Lee Trevino"?
CREATE TABLE table_name_75 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT also_currently_known_as FROM table_20630462_1 WHERE tournament = "Tampa"
What is the current tournament name for the event in Tampa?
CREATE TABLE table_20630462_1 (also_currently_known_as VARCHAR, tournament VARCHAR)
SELECT round FROM table_name_54 WHERE date = "21 february 2009"
what is the round on 21 february 2009?
CREATE TABLE table_name_54 (round VARCHAR, date VARCHAR)
SELECT score_in_final FROM table_name_21 WHERE date = "february 24, 2002"
What was the Final Score on February 24, 2002?
CREATE TABLE table_name_21 (score_in_final VARCHAR, date VARCHAR)
SELECT district FROM table_name_37 WHERE incumbent = "thomas larkin thompson"
What is the district of the incumbent Thomas Larkin Thompson?
CREATE TABLE table_name_37 (district VARCHAR, incumbent VARCHAR)
SELECT works_number FROM table_name_76 WHERE builder = "avonside engine company" AND type = "4-6-0" AND number < 12 AND date = "december 1871"
Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871?
CREATE TABLE table_name_76 (works_number VARCHAR, date VARCHAR, number VARCHAR, builder VARCHAR, type VARCHAR)
SELECT MAX(laps) FROM table_name_38 WHERE grid = "6" AND points > 19
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 COUNT(sound_engineer) FROM table_28005100_1 WHERE title = "Law Hakon '3er Leek"
How many sound engineers were there for law hakon '3er leek?
CREATE TABLE table_28005100_1 (sound_engineer VARCHAR, title VARCHAR)
SELECT SUM(t1.amount_claimed) FROM claim_headers AS t1 JOIN claims_documents AS t2 ON t1.claim_header_id = t2.claim_id WHERE t2.created_date = (SELECT created_date FROM claims_documents ORDER BY created_date LIMIT 1)
Find the total amount claimed in the most recently created document.
CREATE TABLE claim_headers (amount_claimed INTEGER, claim_header_id VARCHAR); CREATE TABLE claims_documents (claim_id VARCHAR, created_date VARCHAR); CREATE TABLE claims_documents (created_date VARCHAR)
SELECT city_of_license FROM table_name_70 WHERE class = "lp" AND identifier = "cbdk"
What is the city of license when the class is LP and the identifier is CBDK?
CREATE TABLE table_name_70 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR)
SELECT candidates FROM table_1342149_24 WHERE result = "Lost renomination Democratic loss"
Name the candidates for result of lost renomination democratic loss
CREATE TABLE table_1342149_24 (candidates VARCHAR, result VARCHAR)
SELECT COUNT(contestant) FROM table_25461827_2 WHERE age = 18
What is the number of contestants who are aged exactly 18?
CREATE TABLE table_25461827_2 (contestant VARCHAR, age VARCHAR)
SELECT time FROM table_26842217_6 WHERE visiting_team = "#7 Oregon"
How many times was #7 Oregon a visiting team?
CREATE TABLE table_26842217_6 (time VARCHAR, visiting_team VARCHAR)
SELECT notes FROM table_name_15 WHERE channel = "bbc four" AND time = "22:30"
What is the notes of the transmission on channel bbc four and a time of 22:30?
CREATE TABLE table_name_15 (notes VARCHAR, channel VARCHAR, time VARCHAR)
SELECT MIN(year) FROM table_name_66 WHERE composition = "99.99% silver" AND issue_price = "$94.95"
What is the earliest year when the composition is 99.99% silver and the issue price is $94.95?
CREATE TABLE table_name_66 (year INTEGER, composition VARCHAR, issue_price VARCHAR)
SELECT date FROM table_name_48 WHERE home = "houston rockets"
When did the Houston Rockets play Home?
CREATE TABLE table_name_48 (date VARCHAR, home VARCHAR)
SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE lead_margin = 35
When the lead margin was 35, what were the Democrat: Vivian Davis Figures?
CREATE TABLE table_16751596_12 (democrat VARCHAR, lead_margin VARCHAR)
SELECT runs FROM table_name_64 WHERE opponent = "west indies"
What were the runs for the opponent from the West Indies?
CREATE TABLE table_name_64 (runs VARCHAR, opponent VARCHAR)
SELECT written_by FROM table_11951237_1 WHERE series__number = 20
Who were the writers for series number 20?
CREATE TABLE table_11951237_1 (written_by VARCHAR, series__number VARCHAR)
SELECT title FROM table_12564633_1 WHERE directed_by = "Richard Thorpe"
What is the name of the episode that Richard Thorpe directed?
CREATE TABLE table_12564633_1 (title VARCHAR, directed_by VARCHAR)
SELECT laps FROM table_name_79 WHERE fin_pos = "17"
How many laps did the car do that had a final position of 17?
CREATE TABLE table_name_79 (laps VARCHAR, fin_pos VARCHAR)
SELECT 2013 AS _press_freedom_index FROM table_name_20 WHERE country = "egypt"
What is the 2013 press freedom index of the country Egypt?
CREATE TABLE table_name_20 (country VARCHAR)
SELECT manufacturer FROM table_name_25 WHERE grid = "6"
Which manufacturer has a grid of 6?
CREATE TABLE table_name_25 (manufacturer VARCHAR, grid VARCHAR)
SELECT SUM(cultural_and_educational_panel) FROM table_name_87 WHERE administrative_panel = 0 AND agricultural_panel < 0
What is the sum of the cultural and educational panel value with an administrative panel of 0 and an agricultural panel value less than 0?
CREATE TABLE table_name_87 (cultural_and_educational_panel INTEGER, administrative_panel VARCHAR, agricultural_panel VARCHAR)
SELECT character FROM table_22460085_1 WHERE original_manchester_performer = "Lisa Davina Phillip"
What character did Lisa Davina Phillip portray?
CREATE TABLE table_22460085_1 (character VARCHAR, original_manchester_performer VARCHAR)
SELECT COUNT(yards) FROM table_name_90 WHERE in_20 = 32
What number of Yards has 32 as an In 20?
CREATE TABLE table_name_90 (yards VARCHAR, in_20 VARCHAR)
SELECT team FROM table_name_92 WHERE rank = "ret" AND rider = "frank a applebee"
What team has a Rank Ret, and rider Frank A Applebee?
CREATE TABLE table_name_92 (team VARCHAR, rank VARCHAR, rider VARCHAR)
SELECT country FROM table_name_17 WHERE player = "mario lemieux" AND year = 1994
What country did mario lemieux play for in 1994?
CREATE TABLE table_name_17 (country VARCHAR, player VARCHAR, year VARCHAR)
SELECT 2 AS nd_leg FROM table_name_61 WHERE team_2 = "al-merrikh"
What was the 2nd leg score for Al-Merrikh as team 2?
CREATE TABLE table_name_61 (team_2 VARCHAR)
SELECT prefix_class FROM table_30011_2 WHERE equivalent = "NTE160"
What is every prefix class for the equivalent of NTE160?
CREATE TABLE table_30011_2 (prefix_class VARCHAR, equivalent VARCHAR)
SELECT COUNT(description) FROM table_1507852_1 WHERE attribute = "ondragstart"
How many descriptions are there when the attribute is "ondragstart"?
CREATE TABLE table_1507852_1 (description VARCHAR, attribute VARCHAR)
SELECT capacity_in_use FROM table_name_31 WHERE annual_change = "21.8%"
What is the Capacity in use with an Annual change that is 21.8%?
CREATE TABLE table_name_31 (capacity_in_use VARCHAR, annual_change VARCHAR)
SELECT week_3_sept_14 FROM table_name_56 WHERE week_7_oct_12 = "georgia (5-1)"
What was the week 3 opponent for the year that had a week 7 opponent of Georgia (5-1)?
CREATE TABLE table_name_56 (week_3_sept_14 VARCHAR, week_7_oct_12 VARCHAR)
SELECT home_team FROM table_name_91 WHERE venue = "arden street oval"
Which Home team plays at the arden street oval Venue?
CREATE TABLE table_name_91 (home_team VARCHAR, venue VARCHAR)
SELECT MAX(matches) FROM table_16570286_4 WHERE wickets = 11
How many matches had 11 wickets?
CREATE TABLE table_16570286_4 (matches INTEGER, wickets VARCHAR)
SELECT lost FROM table_name_24 WHERE points_difference = "-25"
What is the number of losses for the team with a points difference of -25?
CREATE TABLE table_name_24 (lost VARCHAR, points_difference VARCHAR)
SELECT result FROM table_name_63 WHERE week > 1 AND attendance = "69,149" AND opponent = "seattle seahawks"
Playing against the Seattle Seahawks in a week after week 1 before 69,149 people what was the result of the game?
CREATE TABLE table_name_63 (result VARCHAR, opponent VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT winner FROM table_name_2 WHERE date = "september 6"
Who won on September 6?
CREATE TABLE table_name_2 (winner VARCHAR, date VARCHAR)
SELECT nationality FROM table_name_62 WHERE ship = "minteh"
Which nationality has a Ship of minteh?
CREATE TABLE table_name_62 (nationality VARCHAR, ship VARCHAR)
SELECT venue FROM table_name_29 WHERE home_team = "collingwood"
Where was the game played where the home team was Collingwood?
CREATE TABLE table_name_29 (venue VARCHAR, home_team VARCHAR)
SELECT year_opened FROM table_name_4 WHERE mall_name = "short pump town center"
Which year did the Short Pump Town Center Mall open?
CREATE TABLE table_name_4 (year_opened VARCHAR, mall_name VARCHAR)
SELECT icelandic FROM table_name_41 WHERE english = "bride"
What is the Icelandic word for the English word bride?
CREATE TABLE table_name_41 (icelandic VARCHAR, english VARCHAR)
SELECT location_attendance FROM table_27700530_14 WHERE date = "April 3"
Where was the game and what was the attendance on April 3?
CREATE TABLE table_27700530_14 (location_attendance VARCHAR, date VARCHAR)
SELECT T1.login_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = "advanced database"
Find the login name of the course author that teaches the course with name "advanced database".
CREATE TABLE Courses (author_id VARCHAR, course_name VARCHAR); CREATE TABLE Course_Authors_and_Tutors (login_name VARCHAR, author_id VARCHAR)
SELECT T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name of party with most number of members?
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE Member (party_id VARCHAR)
SELECT match_type FROM table_name_64 WHERE location = "budapest" AND opponenent = "luxembourg"
What was the match type in Budapest where the opponent was Luxembourg?
CREATE TABLE table_name_64 (match_type VARCHAR, location VARCHAR, opponenent VARCHAR)
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"
What are the names of the county that the delegates on "Appropriations" committee belong to?
CREATE TABLE election (District VARCHAR, Committee VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR)
SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE spoiled_ballots = 5683
What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683
CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, spoiled_ballots VARCHAR)
SELECT name FROM CLub WHERE NOT Club_ID IN (SELECT Club_ID FROM player)
List the names of clubs that do not have any players.
CREATE TABLE player (name VARCHAR, Club_ID VARCHAR); CREATE TABLE CLub (name VARCHAR, Club_ID VARCHAR)
SELECT COUNT(_number_of_seats_won) FROM table_106367_2 WHERE _number_of_candidates = 125
How many seats were won in the election with 125 candidates?
CREATE TABLE table_106367_2 (_number_of_seats_won VARCHAR, _number_of_candidates VARCHAR)
SELECT SUM(game) FROM table_name_91 WHERE score = "103–126"
What is the sum for the game with a score of 103–126?
CREATE TABLE table_name_91 (game INTEGER, score VARCHAR)
SELECT opponent FROM table_name_40 WHERE march = 28
Which opponent was present on March 28?
CREATE TABLE table_name_40 (opponent VARCHAR, march VARCHAR)
SELECT SUM(crowd) FROM table_name_46 WHERE home_team = "carlton"
I want to know the crowd with a home team of carlton
CREATE TABLE table_name_46 (crowd INTEGER, home_team VARCHAR)
SELECT opponent FROM table_name_75 WHERE result = "7–6 (7–5) , 6–3"
Who was the opponent when the result was 7–6 (7–5) , 6–3?
CREATE TABLE table_name_75 (opponent VARCHAR, result VARCHAR)
SELECT original_air_date FROM table_13477468_3 WHERE directed_by = "Jeff Melman"
What is the original air date of the episode directed by Jeff Melman?
CREATE TABLE table_13477468_3 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT malayalam_name_മലയാളം FROM table_201400_2 WHERE tamil_name_தமிழ் = "Punarpoosam புனர்பூசம்"
what is the malayalam name മലയാളം of tamil name தமிழ் punarpoosam புனர்பூசம்
CREATE TABLE table_201400_2 (malayalam_name_മലയാളം VARCHAR, tamil_name_தமிழ் VARCHAR)
SELECT SUM(bronze) FROM table_name_19 WHERE rank = 7 AND total > 22
What is the sum of Bronze when the rank is 7, and the total is more than 22?
CREATE TABLE table_name_19 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT AVG(year) FROM table_name_41 WHERE competition = "vitry-sur-seine humarathon"
What year was the competition vitry-sur-seine humarathon?
CREATE TABLE table_name_41 (year INTEGER, competition VARCHAR)
SELECT MAX(position) FROM table_name_62 WHERE lost = 24 AND drawn > 9
What is the highest position of the team with 24 lost and a drawn greater than 9?
CREATE TABLE table_name_62 (position INTEGER, lost VARCHAR, drawn VARCHAR)
SELECT AVG(rank) FROM table_name_71 WHERE cyclist = "alexandr pliuschin"
what is the average rank when the cyclist is alexandr pliuschin?
CREATE TABLE table_name_71 (rank INTEGER, cyclist VARCHAR)
SELECT MAX(enrollment) FROM table_name_66 WHERE school = "rochester community"
What is the highest enrollment for rochester community school?
CREATE TABLE table_name_66 (enrollment INTEGER, school VARCHAR)
SELECT party FROM table_1342249_5 WHERE district = "Arkansas 5"
What party did the incumbent from the Arkansas 5 district belong to?
CREATE TABLE table_1342249_5 (party VARCHAR, district VARCHAR)
SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON T1.investor_id = T2.investor_id WHERE T1.Investor_details = "l"
Return the lot details of lots that belong to investors with details "l"?
CREATE TABLE LOTS (lot_details VARCHAR, investor_id VARCHAR); CREATE TABLE INVESTORS (investor_id VARCHAR, Investor_details VARCHAR)
SELECT COUNT(top_25) FROM table_name_45 WHERE wins < 0
What is the total number of top-25s for events with 0 wins?
CREATE TABLE table_name_45 (top_25 VARCHAR, wins INTEGER)
SELECT SUM(revenue), name FROM manufacturers GROUP BY name
Find the total revenue for each manufacturer.
CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
SELECT MIN(year) FROM table_name_38 WHERE pts > 8
What is the earliest year with points more than 8?
CREATE TABLE table_name_38 (year INTEGER, pts INTEGER)
SELECT player FROM table_name_40 WHERE score = 70 - 71 = 141
Which golfer finished with a score of 70-71=141?
CREATE TABLE table_name_40 (player VARCHAR, score VARCHAR)
SELECT position FROM table_name_95 WHERE school_club_team = "arizona state"
Which position has a player at Arizona state?
CREATE TABLE table_name_95 (position VARCHAR, school_club_team VARCHAR)
SELECT power_kw FROM table_24673888_1 WHERE location__transmitter_site_ = "Borongan"
What is the power in KW of the transmitter situated in Borongan?
CREATE TABLE table_24673888_1 (power_kw VARCHAR, location__transmitter_site_ VARCHAR)
SELECT MAX(home_games), MIN(home_games), AVG(home_games) FROM stadium
What are the maximum, minimum and average home games each stadium held?
CREATE TABLE stadium (home_games INTEGER)
SELECT COUNT(bronze) FROM table_name_41 WHERE silver > 4 AND nation = "total" AND gold < 30
What is the total number of bronze medals for the team with more than 4 silver and less than 30 gold medals?
CREATE TABLE table_name_41 (bronze VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT green_communist FROM table_name_41 WHERE polling_institute = "euroteste/jn"
What's the green communist when Euroteste/JN is the polling Institute?
CREATE TABLE table_name_41 (green_communist VARCHAR, polling_institute VARCHAR)
SELECT records FROM table_15313204_1 WHERE pct = ".464"
What are the record(s) for the team with a winning percentage of .464?
CREATE TABLE table_15313204_1 (records VARCHAR, pct VARCHAR)
SELECT chart FROM table_name_68 WHERE peak_position = 1
Which Chart has a Peak Position of 1?
CREATE TABLE table_name_68 (chart VARCHAR, peak_position VARCHAR)
SELECT runner_up FROM table_name_53 WHERE year > 2010 AND winner = "ding junhui"
Who came in 2nd place when Ding Junhui won in 2010?
CREATE TABLE table_name_53 (runner_up VARCHAR, year VARCHAR, winner VARCHAR)
SELECT avg_speed FROM table_23018775_3 WHERE lap_four = "22.9049"
What was the average speed where lap four's time was 22.9049?
CREATE TABLE table_23018775_3 (avg_speed VARCHAR, lap_four VARCHAR)
SELECT MAX(rank) FROM table_name_38 WHERE country = "uzbekistan" AND time > 11.44
What is the highest rank in Uzbekistan with a time larger than 11.44?
CREATE TABLE table_name_38 (rank INTEGER, country VARCHAR, time VARCHAR)