answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(established) FROM table_142950_1 WHERE location = "Leicester"
What is the year leicester was established?
CREATE TABLE table_142950_1 (established INTEGER, location VARCHAR)
SELECT genre FROM table_name_48 WHERE role = "episode actor" AND original_title = "franciska vasárnapjai (hungarian)"
What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi?
CREATE TABLE table_name_48 (genre VARCHAR, role VARCHAR, original_title VARCHAR)
SELECT snatch FROM table_name_1 WHERE marcin_dołęga___pol__ = "430kg"
What is the snatch when Marcin Dołęga ( POL ) was 430kg?
CREATE TABLE table_name_1 (snatch VARCHAR, marcin_dołęga___pol__ VARCHAR)
SELECT result FROM table_name_57 WHERE week = 12
what's the results of week 12?
CREATE TABLE table_name_57 (result VARCHAR, week VARCHAR)
SELECT venue FROM table_name_53 WHERE away_team = "melbourne"
Where was the game when Melbourne was the away team?
CREATE TABLE table_name_53 (venue VARCHAR, away_team VARCHAR)
SELECT directed_by FROM table_27716091_1 WHERE production_code = 227424
who put on the show where the numbers were 227424
CREATE TABLE table_27716091_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT name FROM table_29562161_1 WHERE starting_price = "66/1"
What horse had a starting price of 66/1?
CREATE TABLE table_29562161_1 (name VARCHAR, starting_price VARCHAR)
SELECT MIN(laps) FROM table_name_14 WHERE grid > 24
What is the lowest number of laps with a grid larger than 24?
CREATE TABLE table_name_14 (laps INTEGER, grid INTEGER)
SELECT original_name FROM table_1104312_5 WHERE english_name = "South Bogor"
What is the original name of the district with the current English name of South Bogor?
CREATE TABLE table_1104312_5 (original_name VARCHAR, english_name VARCHAR)
SELECT us_ac FROM table_name_13 WHERE year = 1974
What is the US A.C. in 1974?
CREATE TABLE table_name_13 (us_ac VARCHAR, year VARCHAR)
SELECT score FROM table_name_43 WHERE country = "australia" AND place = "t1"
What is Australia's score where they were in place t1?
CREATE TABLE table_name_43 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT name FROM airport WHERE country <> 'Iceland'
What are the names of the airports which are not in the country 'Iceland'?
CREATE TABLE airport (name VARCHAR, country VARCHAR)
SELECT opponent_in_the_final FROM table_name_49 WHERE date = "26 march 2006"
Who is the opponent in the final of the match on 26 March 2006?
CREATE TABLE table_name_49 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT report FROM table_1140111_5 WHERE circuit = "Pau"
What kind of report is for the Pau circuit?
CREATE TABLE table_1140111_5 (report VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_58 WHERE week > 9 AND tv_time = "abc 8:00pm"
On what date was there a tv time of ABC 8:00pm and after week 9?
CREATE TABLE table_name_58 (date VARCHAR, week VARCHAR, tv_time VARCHAR)
SELECT clean_and_jerk FROM table_name_13 WHERE snatch = "190kg"
What was the Clean and Jerk weight for the year that had a Snatch result of 190kg?
CREATE TABLE table_name_13 (clean_and_jerk VARCHAR, snatch VARCHAR)
SELECT home_team AS score FROM table_name_52 WHERE away_team = "footscray"
Who was the home team of the game where Footscray is the away team?
CREATE TABLE table_name_52 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(before) FROM table_28498999_4 WHERE score = 63 - 67 - 66 - 71 = 267
What is the before for the score of 63-67-66-71=267?
CREATE TABLE table_28498999_4 (before INTEGER, score VARCHAR)
SELECT rate FROM table_name_9 WHERE goals > 22
What was the rate when there were more than 22 goals?
CREATE TABLE table_name_9 (rate VARCHAR, goals INTEGER)
SELECT AVG(attendance) FROM table_name_19 WHERE date = "march 1"
How many attended on march 1?
CREATE TABLE table_name_19 (attendance INTEGER, date VARCHAR)
SELECT creator FROM table_1574968_1 WHERE viewer = "GDDM, AFP viewer"
Who is the creator when the view happens to gddm, afp viewer?
CREATE TABLE table_1574968_1 (creator VARCHAR, viewer VARCHAR)
SELECT entrant FROM table_name_15 WHERE engine = "offenhauser l4" AND year < 1955 AND chassis = "kurtis kraft kk500a" AND points = 9
Which entrant, with an Offenhauser L4 engine and a Kurtis Kraft KK500A chassis, scored 9 points before 1955?
CREATE TABLE table_name_15 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, engine VARCHAR, year VARCHAR)
SELECT location FROM table_name_34 WHERE game = 64
What location did game 64 take place
CREATE TABLE table_name_34 (location VARCHAR, game 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 MIN(shots) FROM table_21538523_1
What is the fewest shots a glazing can handle?
CREATE TABLE table_21538523_1 (shots INTEGER)
SELECT opponent FROM table_24951872_2 WHERE game_site = "Waldstadion"
What opponents played Waldstadion in a game?
CREATE TABLE table_24951872_2 (opponent VARCHAR, game_site VARCHAR)
SELECT tracking_method FROM table_name_62 WHERE supported_databases = "mysql" AND name = "open web analytics"
Which tracking method supports MySQL databases and is named Open Web Analytics?
CREATE TABLE table_name_62 (tracking_method VARCHAR, supported_databases VARCHAR, name VARCHAR)
SELECT overall_record FROM table_27862483_3 WHERE loss = "A. Pracher (4-1)"
What was the overall record of the game lost by A. Pracher (4-1)?
CREATE TABLE table_27862483_3 (overall_record VARCHAR, loss VARCHAR)
SELECT club_province FROM table_name_77 WHERE date_of_birth__age_ = "12 may 1984"
What is the club/province of the player born on 12 May 1984?
CREATE TABLE table_name_77 (club_province VARCHAR, date_of_birth__age_ VARCHAR)
SELECT to_par FROM table_name_15 WHERE year_s__won = "1982"
What To par was won in 1982?
CREATE TABLE table_name_15 (to_par VARCHAR, year_s__won VARCHAR)
SELECT MAX(_percentage_growth__2000_2008_) FROM table_10733530_3 WHERE nation = "Burundi"
What is the maximum percentage grown 2000-2008 in burundi
CREATE TABLE table_10733530_3 (_percentage_growth__2000_2008_ INTEGER, nation VARCHAR)
SELECT record FROM table_name_59 WHERE date = "april 2"
What is their record on April 2?
CREATE TABLE table_name_59 (record VARCHAR, date VARCHAR)
SELECT callsign FROM table_name_9 WHERE on_air_id = "7bu"
what is the callsign whtat uses 7bu?
CREATE TABLE table_name_9 (callsign VARCHAR, on_air_id VARCHAR)
SELECT COUNT(catalog_number) FROM table_11222744_3 WHERE title = "Quick Callanetics"
how many titles have the name "quick callanetics"?
CREATE TABLE table_11222744_3 (catalog_number VARCHAR, title VARCHAR)
SELECT famous_for FROM table_14345690_4 WHERE finished = "9th"
Name who was famous for finished in 9th
CREATE TABLE table_14345690_4 (famous_for VARCHAR, finished VARCHAR)
SELECT tourism_receipts__2003___as__percentage_of_gdp_ FROM table_18524_6 WHERE country = "Colombia"
Name the tourism receipts 2003 for colombia
CREATE TABLE table_18524_6 (tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR, country VARCHAR)
SELECT nickname FROM table_name_65 WHERE established = 1773
What is the nickname of the college established in 1773?
CREATE TABLE table_name_65 (nickname VARCHAR, established VARCHAR)
SELECT country FROM table_name_19 WHERE rank = 79
What country is ranked 79?
CREATE TABLE table_name_19 (country VARCHAR, rank VARCHAR)
SELECT attendance FROM table_name_13 WHERE score = "4-10"
When the Score was 4-10, what was the Attendance?
CREATE TABLE table_name_13 (attendance VARCHAR, score VARCHAR)
SELECT division FROM table_name_93 WHERE year = 1993
What divisions was in the year 1993?
CREATE TABLE table_name_93 (division VARCHAR, year VARCHAR)
SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING COUNT(*) > 2
Which parts have more than 2 faults? Show the part name and id.
CREATE TABLE Parts (part_name VARCHAR, part_id VARCHAR); CREATE TABLE Part_Faults (part_id VARCHAR)
SELECT engine FROM table_name_27 WHERE chassis = "lotus 44 f2"
What engine was in the lotus 44 f2 Chassis?
CREATE TABLE table_name_27 (engine VARCHAR, chassis VARCHAR)
SELECT mission_name FROM table_1558077_8 WHERE lunar_landing_site = "Ocean of Storms"
Name the mission name for ocean of storms
CREATE TABLE table_1558077_8 (mission_name VARCHAR, lunar_landing_site VARCHAR)
SELECT frequency FROM table_name_6 WHERE owner = "bell media" AND call_sign = "chsu-fm"
What is the frequency for the radio owned by bell media with a call sign of chsu-fm?
CREATE TABLE table_name_6 (frequency VARCHAR, owner VARCHAR, call_sign VARCHAR)
SELECT finish FROM table_name_95 WHERE rank = "1"
Which finish has 1 as the rank?
CREATE TABLE table_name_95 (finish VARCHAR, rank VARCHAR)
SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer)
List all song names by singers above the average age.
CREATE TABLE singer (song_name VARCHAR, age INTEGER)
SELECT product_type_code, product_name FROM products WHERE product_price > 1000 OR product_price < 500
Show the product type and name for the products with price higher than 1000 or lower than 500.
CREATE TABLE products (product_type_code VARCHAR, product_name VARCHAR, product_price VARCHAR)
SELECT couple FROM table_19744915_15 WHERE vote_percentage = "7.691%"
What couple had a vote percentage of 7.691%
CREATE TABLE table_19744915_15 (couple VARCHAR, vote_percentage VARCHAR)
SELECT MAX(current_branch_opened) FROM table_name_79 WHERE neighborhood = "w. portland park"
What is the highest Current Branch Opened, when Neighborhood is W. Portland Park?
CREATE TABLE table_name_79 (current_branch_opened INTEGER, neighborhood VARCHAR)
SELECT away_team AS score FROM table_name_78 WHERE venue = "victoria park"
Which team played away at Victoria park?
CREATE TABLE table_name_78 (away_team VARCHAR, venue VARCHAR)
SELECT composer_s_ FROM table_name_85 WHERE length = "6:24"
Who is the composer of the song with a length of 6:24?
CREATE TABLE table_name_85 (composer_s_ VARCHAR, length VARCHAR)
SELECT home FROM table_name_83 WHERE score = "13-19"
Who was at Home when the Score was 13-19?
CREATE TABLE table_name_83 (home VARCHAR, score VARCHAR)
SELECT description FROM table_name_40 WHERE reserve = "half moon caye"
What is the description when the reserve is Half Moon Caye?
CREATE TABLE table_name_40 (description VARCHAR, reserve VARCHAR)
SELECT COUNT(goals_scored) FROM table_name_74 WHERE points > 45
What is the total number of Goals scored that has more than 45 Points?
CREATE TABLE table_name_74 (goals_scored VARCHAR, points INTEGER)
SELECT MAX(altitude__mslm_) FROM table_name_20 WHERE area__km_2__ < 13.01 AND population = 74536 AND density__inhabitants_km_2__ > 5869
Which Altitude (mslm) is the highest one that has an Area (km 2) smaller than 13.01, and a Population of 74536, and a Density (inhabitants/km 2) larger than 5869?
CREATE TABLE table_name_20 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR, population VARCHAR)
SELECT pole_position FROM table_26258348_4 WHERE grand_prix = "Canadian grand_prix"
Who had the pole position in the Canadian Grand Prix?
CREATE TABLE table_26258348_4 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT MAX(district) FROM table_name_30 WHERE delegate = "cheryl glenn" AND took_office > 2006
What is the largest district for delegate Cheryl Glenn, that she had taken after 2006?
CREATE TABLE table_name_30 (district INTEGER, delegate VARCHAR, took_office VARCHAR)
SELECT MIN(silver) FROM table_name_77 WHERE bronze > 1 AND sport = "total" AND gold < 1
What is the lowest Silver in the Total Sport has less than 1 Gold and more than 1 Bronze?
CREATE TABLE table_name_77 (silver INTEGER, gold VARCHAR, bronze VARCHAR, sport VARCHAR)
SELECT gt4_cup_winner FROM table_30060356_3 WHERE circuit = "Spa-Francorchamps Report"
List all GT4 Cup winners played on the Spa-Francorchamps Report.
CREATE TABLE table_30060356_3 (gt4_cup_winner VARCHAR, circuit VARCHAR)
SELECT MIN(period__days_) FROM table_name_1 WHERE planetary_mass___m⊕__ = 1 AND stellar_mass___m__ > 0.21 AND type = "m0"
What is the smallest period (days) to have a planetary mass of 1, a stellar mass greater than 0.21 and of the type M0?
CREATE TABLE table_name_1 (period__days_ INTEGER, type VARCHAR, planetary_mass___m⊕__ VARCHAR, stellar_mass___m__ VARCHAR)
SELECT part_1 FROM table_1745843_5 WHERE part_4 = "haitans"
What is the 1st participle of the verb whose 4th participle is haitans?
CREATE TABLE table_1745843_5 (part_1 VARCHAR, part_4 VARCHAR)
SELECT broadcast_date FROM table_2102782_1 WHERE viewers__in_millions_ = "6.0"
Name the broadcast date for 6.0 viewers
CREATE TABLE table_2102782_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT version FROM table_name_39 WHERE genre = "action" AND title = "hairball"
What is Version, when Genre is "Action", and when Title is "Hairball"?
CREATE TABLE table_name_39 (version VARCHAR, genre VARCHAR, title VARCHAR)
SELECT population__2011_ FROM table_26321719_1 WHERE name = "Beaubassin East"
What is the population in 2011 for the name Beaubassin East?
CREATE TABLE table_26321719_1 (population__2011_ VARCHAR, name VARCHAR)
SELECT MIN(world) FROM table_19017269_5
what is the worlds smallest population?
CREATE TABLE table_19017269_5 (world INTEGER)
SELECT vacator FROM table_225102_4 WHERE reason_for_change = "Died August 13, 1826"
Name the vacator for died august 13, 1826
CREATE TABLE table_225102_4 (vacator VARCHAR, reason_for_change VARCHAR)
SELECT nationality FROM table_name_79 WHERE position = "right wing" AND pick__number = "20"
What Nationality has a Position of right wing, with a #20 pick?
CREATE TABLE table_name_79 (nationality VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT school FROM table_name_56 WHERE mascot = "greyhounds"
What school has the greyhounds as mascots?
CREATE TABLE table_name_56 (school VARCHAR, mascot VARCHAR)
SELECT film FROM table_name_66 WHERE year = 1971
What film was released in 1971?
CREATE TABLE table_name_66 (film VARCHAR, year VARCHAR)
SELECT Elimination_Move FROM Elimination WHERE Team = "Team Orton"
What are the elimination moves of wrestlers whose team is "Team Orton"?
CREATE TABLE Elimination (Elimination_Move VARCHAR, Team VARCHAR)
SELECT COUNT(high_points) FROM table_17311783_6 WHERE team = "Oklahoma City"
How many numbers were recorded for high points when the team played against Oklahoma City?
CREATE TABLE table_17311783_6 (high_points VARCHAR, team VARCHAR)
SELECT nation FROM table_name_29 WHERE total > 3 AND bronze > 5 AND silver < 4
What nation has a total more than 3, with more than 5 for bronze, and less than 4 for the silver?
CREATE TABLE table_name_29 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT name, salary FROM Employee ORDER BY salary
Show name and salary for all employees sorted by salary.
CREATE TABLE Employee (name VARCHAR, salary VARCHAR)
SELECT margin_of_victory FROM table_name_7 WHERE winner = "nikki garrett"
What is the margin of victory for nikki garrett?
CREATE TABLE table_name_7 (margin_of_victory VARCHAR, winner VARCHAR)
SELECT loss FROM table_name_4 WHERE date = "may 1"
Name the loss for may 1
CREATE TABLE table_name_4 (loss VARCHAR, date VARCHAR)
SELECT COUNT(goals_against) FROM table_name_48 WHERE wins > 12 AND club = "ud las palmas" AND position > 5
How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5?
CREATE TABLE table_name_48 (goals_against VARCHAR, position VARCHAR, wins VARCHAR, club VARCHAR)
SELECT cores FROM table_name_58 WHERE l3_cache = "8 mb" AND frequency = "2.5 ghz"
What is the cores when the L3 cache is 8 mb, and the frequency is 2.5 ghz?
CREATE TABLE table_name_58 (cores VARCHAR, l3_cache VARCHAR, frequency VARCHAR)
SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY COUNT(*) DESC LIMIT 1
which course has most number of registered students?
CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_Id VARCHAR)
SELECT cash_on_hand FROM table_name_93 WHERE after_debt = "$82,741"
How much cash was on hand after debt of $82,741?
CREATE TABLE table_name_93 (cash_on_hand VARCHAR, after_debt VARCHAR)
SELECT nationality FROM table_name_51 WHERE position = "center" AND player = "mark eaton"
What nationality is mark eaton, center position?
CREATE TABLE table_name_51 (nationality VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(race_time) FROM table_2241259_1 WHERE driver = "Kevin Harvick"
Name the total number of race time for kevin harvick
CREATE TABLE table_2241259_1 (race_time VARCHAR, driver VARCHAR)
SELECT T2.customer_first_name, T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.account_name = "900"
Show the first name and last name for the customer with account name 900.
CREATE TABLE Accounts (customer_id VARCHAR, account_name VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
SELECT dc FROM table_name_65 WHERE races < 20 AND points > 0 AND drivers = "christian vietoris" AND wins = 1
What kind of D.C. has Races smaller than 20, and Points larger than 0, and Drivers of christian vietoris, and Wins of 1?
CREATE TABLE table_name_65 (dc VARCHAR, wins VARCHAR, drivers VARCHAR, races VARCHAR, points VARCHAR)
SELECT player FROM table_name_92 WHERE place = "t7" AND country = "england"
WHAT IS THE PLAYER WITH T7 PLACE, FOR ENGLAND?
CREATE TABLE table_name_92 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT date FROM table_name_92 WHERE week < 10 AND game_site = "texas stadium" AND opponent = "atlanta falcons"
What is the date of the game in a week earlier than 10 played in Texas stadium agains the Atlanta Falcons?
CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT MAX(goals_for) FROM table_name_66 WHERE goals_against > 51 AND played < 30
What is the highest amount of goals with more than 51 goals against and less than 30 played?
CREATE TABLE table_name_66 (goals_for INTEGER, goals_against VARCHAR, played VARCHAR)
SELECT event FROM table_name_3 WHERE opponent = "jason yee"
Which Event has the Opponent, Jason Yee?
CREATE TABLE table_name_3 (event VARCHAR, opponent VARCHAR)
SELECT scoring_rank FROM table_name_19 WHERE events_played < 21 AND rank = "n/a" AND year < 2011
What is the Scoring rank when there are less than 21 events played with a rank of n/a in years less than 2011?
CREATE TABLE table_name_19 (scoring_rank VARCHAR, year VARCHAR, events_played VARCHAR, rank VARCHAR)
SELECT MIN(age), MAX(age), AVG(age) FROM people
Show the minimum, maximum, and average age for all people.
CREATE TABLE people (age INTEGER)
SELECT original_title FROM table_name_55 WHERE country = "canada"
What is the Original title with a Country that is canada?
CREATE TABLE table_name_55 (original_title VARCHAR, country VARCHAR)
SELECT winning_driver FROM table_name_21 WHERE fastest_lap = "giuseppe farina" AND race = "british grand prix"
Who was the winning driver of the British Grand Prix where Giuseppe Farina had the fastest lap?
CREATE TABLE table_name_21 (winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR)
SELECT AVG(lat), AVG(long) FROM station WHERE city = "San Jose"
What is the average latitude and longitude of stations located in San Jose city?
CREATE TABLE station (lat INTEGER, long INTEGER, city VARCHAR)
SELECT frequency FROM table_name_76 WHERE call_sign = "kqlx"
What is the frequency of KQLX?
CREATE TABLE table_name_76 (frequency VARCHAR, call_sign VARCHAR)
SELECT location FROM table_name_72 WHERE capacity = "101,119"
Which location has 101,119 as the capacity?
CREATE TABLE table_name_72 (location VARCHAR, capacity VARCHAR)
SELECT share FROM table_name_12 WHERE weekly_rank = "8" AND date = "15 june"
Which Share has a weekly Rank of 8 and is dated 15 June?
CREATE TABLE table_name_12 (share VARCHAR, weekly_rank VARCHAR, date VARCHAR)
SELECT COUNT(type) FROM table_22673956_1 WHERE track = "Phoenix International Raceway"
How many types of tracks are there on the Phoenix International raceway?
CREATE TABLE table_22673956_1 (type VARCHAR, track VARCHAR)
SELECT founded FROM table_11604804_5 WHERE color = "Navy Blue"
What was the founding of navy blue?
CREATE TABLE table_11604804_5 (founded VARCHAR, color VARCHAR)
SELECT Phone FROM EMPLOYEE
List the phone numbers of all employees.
CREATE TABLE EMPLOYEE (Phone VARCHAR)
SELECT primary_payload_s_ FROM table_14118521_1 WHERE launch_date = "July 8, 1994"
what's the primary payload(s) with launch date being july 8, 1994
CREATE TABLE table_14118521_1 (primary_payload_s_ VARCHAR, launch_date VARCHAR)
SELECT word__number FROM table_name_37 WHERE name = "omega dot"
What is the word count that is named omega dot?
CREATE TABLE table_name_37 (word__number VARCHAR, name VARCHAR)