answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT visitor FROM table_name_63 WHERE home = "toronto maple leafs" AND score = "4–1"
What was the Visitor when the home was toronto maple leafs and the score was 4–1?
CREATE TABLE table_name_63 (visitor VARCHAR, home VARCHAR, score VARCHAR)
SELECT miss_universe_philippines FROM table_name_86 WHERE second_runner_up = "regina hahn"
Who won Miss Universe Philippines when Regina Hahn was second runner-up?
CREATE TABLE table_name_86 (miss_universe_philippines VARCHAR, second_runner_up VARCHAR)
SELECT manner_of_departure FROM table_24231638_3 WHERE team = "Racing Santander"
What is the manner of departure for the team racing santander?
CREATE TABLE table_24231638_3 (manner_of_departure VARCHAR, team VARCHAR)
SELECT chassis FROM table_name_87 WHERE year = 1987
What chassis has the year 1987?
CREATE TABLE table_name_87 (chassis VARCHAR, year VARCHAR)
SELECT condition FROM table_1099080_1 WHERE partial_thromboplastin_time = "Prolonged" AND bleeding_time = "Prolonged"
What conditions had both prolonged bleeding times and prolonged partial thromboplastin times
CREATE TABLE table_1099080_1 (condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR)
SELECT SUM(SurfaceArea) FROM country WHERE Region = "Caribbean"
What is the total surface area of the countries in the Caribbean region?
CREATE TABLE country (SurfaceArea INTEGER, Region VARCHAR)
SELECT MIN(elected) FROM table_1341568_34 WHERE incumbent = "Martin Lancaster"
What year was incumbent Martin Lancaster elected?
CREATE TABLE table_1341568_34 (elected INTEGER, incumbent VARCHAR)
SELECT regional_page__number FROM table_287659_2 WHERE state_name = "CA/NV"
In Ca/Nv, what are all of the regional page #s?
CREATE TABLE table_287659_2 (regional_page__number VARCHAR, state_name VARCHAR)
SELECT location FROM table_name_54 WHERE driver = "denny hulme"
What is the location where Denny Hulme was the driver?
CREATE TABLE table_name_54 (location VARCHAR, driver VARCHAR)
SELECT district FROM table_name_41 WHERE name = "abhayapuri south"
What district has abhayapuri south as the name?
CREATE TABLE table_name_41 (district VARCHAR, name VARCHAR)
SELECT COUNT(production) FROM table_26686908_2 WHERE rd = "Rd 2"
How many productions are shown for rd 2?
CREATE TABLE table_26686908_2 (production VARCHAR, rd VARCHAR)
SELECT social_democratic FROM table_1463383_1 WHERE left_bloc = "5.5%"
What percentages of social democratic correspond to a 5.5% left bloc?
CREATE TABLE table_1463383_1 (social_democratic VARCHAR, left_bloc VARCHAR)
SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed"
How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?
CREATE TABLE Lessons (customer_id VARCHAR, lesson_status_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT MIN(against) FROM table_name_66 WHERE status = "tour match" AND venue = "ravenhill , belfast"
Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast?
CREATE TABLE table_name_66 (against INTEGER, status VARCHAR, venue VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
What are the vocal types used in song "Le Pop"?
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT COUNT(college) FROM table_16575609_5 WHERE pick__number = 36
How many colleges did the player drafted at 36 attend?
CREATE TABLE table_16575609_5 (college VARCHAR, pick__number VARCHAR)
SELECT MAX(pick__number) FROM table_2508633_5 WHERE nfl_team = "Los Angeles Raiders"
What is the highest pick number the los angeles raiders got?
CREATE TABLE table_2508633_5 (pick__number INTEGER, nfl_team VARCHAR)
SELECT MAX(year) FROM table_name_71 WHERE place = "thun"
What is the latest year the world championships were held in Thun?
CREATE TABLE table_name_71 (year INTEGER, place VARCHAR)
SELECT AVG(points_2) FROM table_name_96 WHERE played > 46
What is the Points 2 average of teams that have played more than 46 games?
CREATE TABLE table_name_96 (points_2 INTEGER, played INTEGER)
SELECT COUNT(goals_for) FROM table_name_13 WHERE played > 44
Name the total number of goals which have played more than 44
CREATE TABLE table_name_13 (goals_for VARCHAR, played INTEGER)
SELECT SUM(attendance) FROM table_name_83 WHERE date = "april 17"
What was the attendance of april 17?
CREATE TABLE table_name_83 (attendance INTEGER, date VARCHAR)
SELECT winning_span FROM table_1953516_1 WHERE name = "Bernard Gallacher"
What is the winning span for the name of bernard gallacher?
CREATE TABLE table_1953516_1 (winning_span VARCHAR, name VARCHAR)
SELECT player FROM table_name_89 WHERE finish = "t35"
Which player finished t35?
CREATE TABLE table_name_89 (player VARCHAR, finish VARCHAR)
SELECT turnout FROM table_name_81 WHERE candidates = 15 AND valid_poll > 377 OFFSET 591
What is the turnout with 15 candidates and more than 377,591 valid poll?
CREATE TABLE table_name_81 (turnout VARCHAR, candidates VARCHAR, valid_poll VARCHAR)
SELECT country FROM table_name_14 WHERE year_s__won = "1991"
What county won in 1991?
CREATE TABLE table_name_14 (country VARCHAR, year_s__won VARCHAR)
SELECT SUM(crowd) FROM table_name_50 WHERE venue = "victoria park"
What was the crowd numbers when the VFL played Victoria Park?
CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR)
SELECT 2006 FROM table_name_63 WHERE 2007 = "1r" AND 2002 = "q2"
What is 2006, when 2007 is "1R", and when 2002 is "Q2"?
CREATE TABLE table_name_63 (Id VARCHAR)
SELECT MIN(bronze) FROM table_name_91 WHERE gold < 5 AND rank = "6" AND total > 1
What's the lowest bronze with a 6 rank, smaller than 5 gold, and a total of more than 1?
CREATE TABLE table_name_91 (bronze INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT SUM(rank) FROM table_name_85 WHERE name = "meagen nay" AND lane > 5
What is Meagen Nay's rank with a lane greater than 5?
CREATE TABLE table_name_85 (rank INTEGER, name VARCHAR, lane VARCHAR)
SELECT AVG(laps) FROM table_name_96 WHERE time_retired = "+ 2 laps" AND driver = "mike hailwood" AND grid > 12
When the driver mike hailwood has a grid greater than 12 and a Time/Retired of + 2 laps, what is the average number of laps?
CREATE TABLE table_name_96 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT champions FROM table_name_95 WHERE runner_up = "tobol" AND coeff = "1.125"
Which Champions have a Runner-up of tobol, and a Coeff of 1.125?
CREATE TABLE table_name_95 (champions VARCHAR, runner_up VARCHAR, coeff VARCHAR)
SELECT country FROM table_name_88 WHERE to_par = 11
What country was the player who was 11 off par from?
CREATE TABLE table_name_88 (country VARCHAR, to_par VARCHAR)
SELECT COUNT(round) FROM table_name_76 WHERE position = "rb" AND college = "purdue" AND pick < 3
What is the total round of the rb player from Purdue with a pick less than 3?
CREATE TABLE table_name_76 (round VARCHAR, pick VARCHAR, position VARCHAR, college VARCHAR)
SELECT language FROM table_1930857_1 WHERE year_founded = "1949"
What's the language of the school founded in 1949?
CREATE TABLE table_1930857_1 (language VARCHAR, year_founded VARCHAR)
SELECT tournament FROM table_name_18 WHERE partner = "janet young"
In what Tournament was Janet Young a Partner?
CREATE TABLE table_name_18 (tournament VARCHAR, partner VARCHAR)
SELECT date FROM table_name_67 WHERE pictorials = "mercedes mcnab, girls of hawaiian tropic"
Which Date has a Pictorials of mercedes mcnab, girls of hawaiian tropic?
CREATE TABLE table_name_67 (date VARCHAR, pictorials VARCHAR)
SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = "918"
What are the email addresses of teachers whose address has zip code "918"?
CREATE TABLE Addresses (address_id VARCHAR, zip_postcode VARCHAR); CREATE TABLE Teachers (email_address VARCHAR, address_id VARCHAR)
SELECT MAX(losses) FROM table_14871601_2 WHERE scored = 25
What was the number of losses when the scored value was 25?
CREATE TABLE table_14871601_2 (losses INTEGER, scored VARCHAR)
SELECT us_viewers__millions_ FROM table_2791668_1 WHERE directed_by = "Ed Sherin"
how many millions of North American people saw the episode whose director was Ed Sherin?
CREATE TABLE table_2791668_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT MAX(no) FROM table_12962773_14 WHERE player = "Aleksandar Ćapin"
What number does aleksandar ćapin wear?
CREATE TABLE table_12962773_14 (no INTEGER, player VARCHAR)
SELECT rating / SHARE(18 AS –49) FROM table_23793770_2 WHERE total_viewers__in_millions_ = "11.49"
What was the reating share when the total viewers was 11.49 million?
CREATE TABLE table_23793770_2 (rating VARCHAR, total_viewers__in_millions_ VARCHAR)
SELECT winning_driver FROM table_name_15 WHERE circuit = "lausitzring"
Who was the winning driver of the Circuit of Lausitzring?
CREATE TABLE table_name_15 (winning_driver VARCHAR, circuit VARCHAR)
SELECT result FROM table_name_5 WHERE district = "pennsylvania 13"
Which Result has a District of pennsylvania 13?
CREATE TABLE table_name_5 (result VARCHAR, district VARCHAR)
SELECT date FROM table_name_56 WHERE high_points = "danny granger (32)"
What is Date, when High Points is "Danny Granger (32)"?
CREATE TABLE table_name_56 (date VARCHAR, high_points VARCHAR)
SELECT event FROM table_name_74 WHERE method = "tko (punches)" AND opponent = "jason macdonald"
What event had a tko (punches) method and jason macdonald as the opponent?
CREATE TABLE table_name_74 (event VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT MAX(assets__usd__millions) FROM table_name_37 WHERE bank = "equity bank" AND number_of_branches < 44
What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?
CREATE TABLE table_name_37 (assets__usd__millions INTEGER, bank VARCHAR, number_of_branches VARCHAR)
SELECT COUNT(rnd) FROM table_27965906_2 WHERE ss_winning_car = "Kim Baker, Bobby Archer, Tommy Archer"
Name the total number of rnd for kim baker, bobby archer, tommy archer
CREATE TABLE table_27965906_2 (rnd VARCHAR, ss_winning_car VARCHAR)
SELECT home_team FROM table_name_87 WHERE date = "june 22"
What home team has june 22 as the date?
CREATE TABLE table_name_87 (home_team VARCHAR, date VARCHAR)
SELECT date FROM table_name_88 WHERE away_team = "carlton"
When did the away team carlton play?
CREATE TABLE table_name_88 (date VARCHAR, away_team VARCHAR)
SELECT ihsaa_class FROM table_name_4 WHERE school = "mitchell"
Which IHSAA Class has a School of mitchell?
CREATE TABLE table_name_4 (ihsaa_class VARCHAR, school VARCHAR)
SELECT COUNT(wins) FROM table_19864214_3 WHERE pitcher = "Jon Matlack Category:Articles with hCards"
how many wins did pitcher jon matlack category:articles with hcards achieve
CREATE TABLE table_19864214_3 (wins VARCHAR, pitcher VARCHAR)
SELECT location FROM table_name_58 WHERE score = "w 105-99"
what is the location when the score is w 105-99?
CREATE TABLE table_name_58 (location VARCHAR, score VARCHAR)
SELECT MIN(first_elected) FROM table_1342249_5
What is the earliest years any of the incumbents were first elected?
CREATE TABLE table_1342249_5 (first_elected INTEGER)
SELECT AVG(laps) FROM table_name_88 WHERE grid = 15
What are the average Laps on Grid 15?
CREATE TABLE table_name_88 (laps INTEGER, grid VARCHAR)
SELECT location_attendance FROM table_name_98 WHERE high_points = "allen iverson (23)"
What is Location Attendance, when High Points is "Allen Iverson (23)"?
CREATE TABLE table_name_98 (location_attendance VARCHAR, high_points VARCHAR)
SELECT district FROM table_1341453_45 WHERE incumbent = "Ruben Hinojosa"
What district is ruben hinojosa from?
CREATE TABLE table_1341453_45 (district VARCHAR, incumbent VARCHAR)
SELECT name FROM table_name_40 WHERE group = "b" AND mark = "6.17"
Who has a mark of 6.17 in group B?
CREATE TABLE table_name_40 (name VARCHAR, group VARCHAR, mark VARCHAR)
SELECT 1993 FROM table_name_68 WHERE tournament = "french open"
What is the 1993 value of the French open?
CREATE TABLE table_name_68 (tournament VARCHAR)
SELECT format FROM table_name_67 WHERE region = "worldwide" AND date = "july 22, 2008"
Tell me the format for worldwide region july 22, 2008
CREATE TABLE table_name_67 (format VARCHAR, region VARCHAR, date VARCHAR)
SELECT SUM(points) FROM table_name_73 WHERE game < 8 AND record = "1–0–0"
Which Points have a Game smaller than 8, and a Record of 1–0–0?
CREATE TABLE table_name_73 (points INTEGER, game VARCHAR, record VARCHAR)
SELECT major_instrument_s_ FROM table_10416547_1 WHERE duration = "4:32"
What is the major instrument of the song that lasts 4:32?
CREATE TABLE table_10416547_1 (major_instrument_s_ VARCHAR, duration VARCHAR)
SELECT event FROM table_name_5 WHERE opponent = "takaharu murahama"
At what event did he fight takaharu murahama?
CREATE TABLE table_name_5 (event VARCHAR, opponent VARCHAR)
SELECT position FROM table_name_14 WHERE bats = "l" AND surname = "anderson"
Which position has L bats and Anderson as a surname?
CREATE TABLE table_name_14 (position VARCHAR, bats VARCHAR, surname VARCHAR)
SELECT time FROM table_name_52 WHERE round = 3 AND record = "9-3"
What is the time of the match with 3 rounds and a 9-3 record?
CREATE TABLE table_name_52 (time VARCHAR, round VARCHAR, record VARCHAR)
SELECT MIN(yards) FROM table_name_65 WHERE average < 2.6
What is the least amount of yards when the average is less than 2.6?
CREATE TABLE table_name_65 (yards INTEGER, average INTEGER)
SELECT COUNT(*), T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid
Find the number of pets for each student who has any pet and student id.
CREATE TABLE has_pet (stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)
SELECT MAX(total) FROM table_name_32 WHERE silver > 1 AND nation = "yugoslavia"
What is the total when the Yugoslavia number of silver won is more than 1?
CREATE TABLE table_name_32 (total INTEGER, silver VARCHAR, nation VARCHAR)
SELECT distribution FROM table_1357052_6 WHERE grsecurity = "Optional" AND compile_time_buffer_checks = "Yes"
what's the dbeingtribution with grsecurity being optional and compile time buffer checks being yes
CREATE TABLE table_1357052_6 (distribution VARCHAR, grsecurity VARCHAR, compile_time_buffer_checks VARCHAR)
SELECT SUM(population__2011_) FROM table_name_28 WHERE land_area__km²_ > 15.69 AND population_density__per_km²_ > 57.3
How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than 57.3?
CREATE TABLE table_name_28 (population__2011_ INTEGER, land_area__km²_ VARCHAR, population_density__per_km²_ VARCHAR)
SELECT high_points FROM table_10812293_4 WHERE date = "December 23"
Who was the scoring leader and how many points did he get in games on December 23?
CREATE TABLE table_10812293_4 (high_points VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_45 WHERE team = "philadelphia"
What was the attendance during the game against Philadelphia?
CREATE TABLE table_name_45 (location_attendance VARCHAR, team VARCHAR)
SELECT to_par FROM table_name_65 WHERE player = "geoff ogilvy"
what is the to par for geoff ogilvy?
CREATE TABLE table_name_65 (to_par VARCHAR, player VARCHAR)
SELECT record FROM table_name_72 WHERE game = 19
Can you tell me the Record that has the Game of 19?
CREATE TABLE table_name_72 (record VARCHAR, game VARCHAR)
SELECT skip FROM table_name_83 WHERE second = "joan mccusker"
Which Skip will play Joan Mccusker?
CREATE TABLE table_name_83 (skip VARCHAR, second VARCHAR)
SELECT MIN(year) FROM table_name_37 WHERE label - Nr = st - 43
What is the earliest year with a label-Nr of st-43?
CREATE TABLE table_name_37 (year INTEGER, label VARCHAR, Nr VARCHAR, st VARCHAR)
SELECT theme FROM table_name_22 WHERE issue_price = "$489.95" AND year > 2005
What theme had an issue price of $489.95 after 2005?
CREATE TABLE table_name_22 (theme VARCHAR, issue_price VARCHAR, year VARCHAR)
SELECT finish FROM table_name_95 WHERE year = "1954"
What was Jack McGrath's finish number in 1954?
CREATE TABLE table_name_95 (finish VARCHAR, year VARCHAR)
SELECT leading_scorer FROM table_name_99 WHERE date = "9 january 2008"
Who was the leading scorer on 9 January 2008?
CREATE TABLE table_name_99 (leading_scorer VARCHAR, date VARCHAR)
SELECT rushing_yards_per_game FROM table_27487336_1 WHERE sacks = "25"
What is every value for rushing yards per game if sacks if 25?
CREATE TABLE table_27487336_1 (rushing_yards_per_game VARCHAR, sacks VARCHAR)
SELECT result FROM table_20746062_1 WHERE record = "2-1"
What was the result of the game when they were 2-1?
CREATE TABLE table_20746062_1 (result VARCHAR, record VARCHAR)
SELECT MAX(sinhalese) FROM table_24574438_1 WHERE ds_division = "Manthai West"
Name the sinhalese for manthai west
CREATE TABLE table_24574438_1 (sinhalese INTEGER, ds_division VARCHAR)
SELECT date FROM table_name_52 WHERE score = "3-1" AND attendance = "32 590"
Name the Date which has a Score of 3-1 and Attendances of 32 590?
CREATE TABLE table_name_52 (date VARCHAR, score VARCHAR, attendance VARCHAR)
SELECT AVG(jersey__number) FROM table_name_71 WHERE name = "steve griffith" AND weight__kg_ < 84
What was the average Jersey # of Steve Griffith, when his Weight (kg) was less than 84?
CREATE TABLE table_name_71 (jersey__number INTEGER, name VARCHAR, weight__kg_ VARCHAR)
SELECT road_team FROM table_name_29 WHERE date = "april 10"
What is Road Team, when Date is "April 10"?
CREATE TABLE table_name_29 (road_team VARCHAR, date VARCHAR)
SELECT designated_visitors FROM table_name_42 WHERE designated_home = "atlanta falcons"
Who were the visitors when the Atlanta Falcons were the home team?
CREATE TABLE table_name_42 (designated_visitors VARCHAR, designated_home VARCHAR)
SELECT MIN(round) FROM table_name_97 WHERE event = "total combat 15"
Tell me the lowest round for total combat 15
CREATE TABLE table_name_97 (round INTEGER, event VARCHAR)
SELECT production_company FROM table_name_45 WHERE year = "2005"
Which production company has the year of 2005 listed?
CREATE TABLE table_name_45 (production_company VARCHAR, year VARCHAR)
SELECT event FROM table_name_2 WHERE snatch = 122.5
What event has a 122.5 snatch rate?
CREATE TABLE table_name_2 (event VARCHAR, snatch VARCHAR)
SELECT method FROM table_name_82 WHERE time = "4:15"
What was the method of the bout lasting 4:15?
CREATE TABLE table_name_82 (method VARCHAR, time VARCHAR)
SELECT venue FROM table_name_22 WHERE result = "3–0" AND competition = "2006 fifa world cup qualifier" AND score = "3–0"
What is the Venue with a Result of 3–0, and a Competition with 2006 fifa world cup qualifier, and with a Score of 3–0?
CREATE TABLE table_name_22 (venue VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
SELECT naming FROM table_2088_1 WHERE fluency = "fluent" AND auditory_comprehension = "poor"
Name the naming for fluent and poor comprehension
CREATE TABLE table_2088_1 (naming VARCHAR, fluency VARCHAR, auditory_comprehension VARCHAR)
SELECT roll FROM table_name_45 WHERE decile = "6" AND name = "poroti school"
What is the roll number of Poroti school, which has a 6 decile?
CREATE TABLE table_name_45 (roll VARCHAR, decile VARCHAR, name VARCHAR)
SELECT team_2 FROM table_name_91 WHERE score = "1-2"
What is the name of team 2 that has 1-2 as the score?
CREATE TABLE table_name_91 (team_2 VARCHAR, score VARCHAR)
SELECT venue FROM table_name_31 WHERE founded < 2000 AND sport = "basketball"
Which venue was fouded before 2000 for basketball?
CREATE TABLE table_name_31 (venue VARCHAR, founded VARCHAR, sport VARCHAR)
SELECT COUNT(date) FROM table_name_37 WHERE type = "0-4-4 forney locomotive" AND number < 20 AND works_number = 1251
What is the sum of number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251?
CREATE TABLE table_name_37 (date VARCHAR, works_number VARCHAR, type VARCHAR, number VARCHAR)
SELECT city_code FROM Student WHERE Fname = "Linda" AND Lname = "Smith"
Which city does student Linda Smith live in?
CREATE TABLE Student (city_code VARCHAR, Fname VARCHAR, Lname VARCHAR)
SELECT call_sign FROM table_name_51 WHERE city_of_license = "brownfield, texas"
What is Call Sign, when City of License is Brownfield, Texas?
CREATE TABLE table_name_51 (call_sign VARCHAR, city_of_license VARCHAR)
SELECT T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T2.Type = "Program Talent Show"
Show the names of festivals that have nominated artworks of type "Program Talent Show".
CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR, Type VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR)
SELECT species FROM table_name_70 WHERE gender = "male"
Which species is male?
CREATE TABLE table_name_70 (species VARCHAR, gender VARCHAR)
SELECT MIN(score) FROM table_name_5 WHERE to_par = "+2" AND country = "japan"
What is the low score for TO par +2 in japan?
CREATE TABLE table_name_5 (score INTEGER, to_par VARCHAR, country VARCHAR)