answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT area_km_2 FROM table_170969_2 WHERE official_name = "Dufferin"
What is the area in km2 for Dufferin?
CREATE TABLE table_170969_2 (area_km_2 VARCHAR, official_name VARCHAR)
SELECT COUNT(rank) FROM table_name_49 WHERE assets__bn$_ = 70.74 AND market_value__bn$_ > 11.29
How many ranks have assets of $70.74 billion and market value greater than $11.29 billion?
CREATE TABLE table_name_49 (rank VARCHAR, assets__bn$_ VARCHAR, market_value__bn$_ VARCHAR)
SELECT money_requested__£_ FROM table_name_2 WHERE entrepreneur_s_ = "james seddon"
How much money did James Seddon request?
CREATE TABLE table_name_2 (money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)
SELECT republican AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = "June 30, 2008"
On June 30, 2008 who what was the Republican: Jeff Sessions percentage?
CREATE TABLE table_16751596_12 (republican VARCHAR, dates_administered VARCHAR)
SELECT european_competitions FROM table_name_49 WHERE tier = 2 AND season = "2004–05"
Tier of 2, and a Season of 2004–05 is what European competitions?
CREATE TABLE table_name_49 (european_competitions VARCHAR, tier VARCHAR, season VARCHAR)
SELECT MAX(won__pg_) FROM table_name_85 WHERE goals_conceded__gc_ < 21 AND played__pj_ < 18
What is the highest number of games won where less than 21 games were conceded and less than 18 games were actually played?
CREATE TABLE table_name_85 (won__pg_ INTEGER, goals_conceded__gc_ VARCHAR, played__pj_ VARCHAR)
SELECT home_team FROM table_name_30 WHERE venue = "victoria park"
What team plays their home games in Victoria Park?
CREATE TABLE table_name_30 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(dismissals) FROM table_24039597_26 WHERE matches = 44
How many matches were 44?
CREATE TABLE table_24039597_26 (dismissals VARCHAR, matches VARCHAR)
SELECT COUNT(round) FROM table_name_34 WHERE player = "joe barnes"
What is the total number of rounds that Joe Barnes was picked?
CREATE TABLE table_name_34 (round VARCHAR, player VARCHAR)
SELECT year_introduced_mrwa FROM table_name_76 WHERE wheel_arrangement = "4-6-2"
What was the year the MRWA with a wheel arrangement of 4-6-2 was introduced?
CREATE TABLE table_name_76 (year_introduced_mrwa VARCHAR, wheel_arrangement VARCHAR)
SELECT attendance FROM table_11964047_5 WHERE score = "L 92–101"
what's the attendance where score is l 92–101
CREATE TABLE table_11964047_5 (attendance VARCHAR, score VARCHAR)
SELECT time_retired FROM table_name_13 WHERE fin_pos = "19"
What was the time of the driver with a finish position of 19?
CREATE TABLE table_name_13 (time_retired VARCHAR, fin_pos VARCHAR)
SELECT team FROM table_name_5 WHERE circuit = "winton motor raceway"
Which team won at winton motor raceway?
CREATE TABLE table_name_5 (team VARCHAR, circuit VARCHAR)
SELECT record FROM table_name_96 WHERE method = "submission (triangle choke)" AND time = "0:48"
What is Record, when Method is "submission (triangle choke)", and when Time is 0:48?
CREATE TABLE table_name_96 (record VARCHAR, method VARCHAR, time VARCHAR)
SELECT gold FROM table_name_21 WHERE place = "phoenix"
Who won gold when the world championships were held in Phoenix?
CREATE TABLE table_name_21 (gold VARCHAR, place VARCHAR)
SELECT MAX(overall) FROM table_name_8 WHERE name = "dwight freeney" AND round < 1
Name the most overall for dwight freeney with round less than 1
CREATE TABLE table_name_8 (overall INTEGER, name VARCHAR, round VARCHAR)
SELECT AVG(grid) FROM table_name_29 WHERE driver = "clay regazzoni"
What is the average grid for Clay Regazzoni?
CREATE TABLE table_name_29 (grid INTEGER, driver VARCHAR)
SELECT speed FROM table_name_1 WHERE rider = "brian mateer"
What is Brian Mateer's Speed?
CREATE TABLE table_name_1 (speed VARCHAR, rider VARCHAR)
SELECT COUNT(television) FROM table_23718905_6 WHERE matchup_results = "Iowa State 14, Minnesota 13"
How many different items appear in the television column when the results where Iowa State 14, Minnesota 13?
CREATE TABLE table_23718905_6 (television VARCHAR, matchup_results VARCHAR)
SELECT platform_s_ FROM table_name_78 WHERE year = "2006 (10th)"
What is the platform(s) for the year 2006 (10th)?
CREATE TABLE table_name_78 (platform_s_ VARCHAR, year VARCHAR)
SELECT _number_of_discs FROM table_25721_4 WHERE release = "The Complete Collection Series 1-8 with extras"
How many DVDs where were in the complete collection series 1-8 with extras?
CREATE TABLE table_25721_4 (_number_of_discs VARCHAR, release VARCHAR)
SELECT driver FROM table_2266762_1 WHERE team = "Richard Childress Racing" AND race_time = "2:58:22"
Who was the driver for the Richard Childress Racing team in the race with a time of 2:58:22?
CREATE TABLE table_2266762_1 (driver VARCHAR, team VARCHAR, race_time VARCHAR)
SELECT result FROM table_name_99 WHERE year = "2008"
What was the result in 2008?
CREATE TABLE table_name_99 (result VARCHAR, year VARCHAR)
SELECT year_opened FROM table_name_76 WHERE students = "na" AND size = "10 acres"
What year was the school opened that has a size of 10 acres and students of na?
CREATE TABLE table_name_76 (year_opened VARCHAR, students VARCHAR, size VARCHAR)
SELECT school_club_team FROM table_name_60 WHERE player = "chris robinson"
Which school was Chris Robinson from?
CREATE TABLE table_name_60 (school_club_team VARCHAR, player VARCHAR)
SELECT high_rebounds FROM table_name_41 WHERE date = "june 11"
Who had the most rebounds and how many did he have during the game on June 11?
CREATE TABLE table_name_41 (high_rebounds VARCHAR, date VARCHAR)
SELECT chairman FROM table_26593762_2 WHERE manager = "Mark Robins"
Who is the chairman of Mark Robins team?
CREATE TABLE table_26593762_2 (chairman VARCHAR, manager VARCHAR)
SELECT driver FROM table_name_18 WHERE laps = 58
Tell me the driver for 58 laps
CREATE TABLE table_name_18 (driver VARCHAR, laps VARCHAR)
SELECT time FROM table_name_95 WHERE rower = "lee ka man"
What is Lee Ka Man's Time?
CREATE TABLE table_name_95 (time VARCHAR, rower VARCHAR)
SELECT record FROM table_name_44 WHERE decision = "prusek" AND date = "november 26"
What is the record for November 26, with the decision made by Prusek?
CREATE TABLE table_name_44 (record VARCHAR, decision VARCHAR, date VARCHAR)
SELECT SUM(highest_average_point_ratings) FROM table_name_29 WHERE genre = "modern suspense" AND number_of_episodes = 21
What was the highest average point rating for a modern suspense show with 21 episodes?
CREATE TABLE table_name_29 (highest_average_point_ratings INTEGER, genre VARCHAR, number_of_episodes VARCHAR)
SELECT SUM(ties) FROM table_name_40 WHERE goals_for = 25 AND wins > 5
How many ties do teams with 25 Goals For and more than 5 wins have?
CREATE TABLE table_name_40 (ties INTEGER, goals_for VARCHAR, wins VARCHAR)
SELECT week_13_nov_23 FROM table_name_73 WHERE week_6_oct_5 = "oklahoma state (5-0)"
Which Week 13 Nov 23 has a Week 6 Oct 5 of oklahoma state (5-0)?
CREATE TABLE table_name_73 (week_13_nov_23 VARCHAR, week_6_oct_5 VARCHAR)
SELECT league FROM table_name_7 WHERE season = "1958-59"
In the 1958-59 season, what league did the team play in?
CREATE TABLE table_name_7 (league VARCHAR, season VARCHAR)
SELECT performance_order FROM table_26267849_11 WHERE artist = "Velasco Brothers"
Name the performance order of the velasco brothers
CREATE TABLE table_26267849_11 (performance_order VARCHAR, artist VARCHAR)
SELECT label FROM table_name_28 WHERE format = "cd" AND release = "we are the rage"
What is the label of release we are the rage with a cd format?
CREATE TABLE table_name_28 (label VARCHAR, format VARCHAR, release VARCHAR)
SELECT score FROM table_name_93 WHERE december < 14 AND game = 12
Which Score has a December smaller than 14, and a Game of 12?
CREATE TABLE table_name_93 (score VARCHAR, december VARCHAR, game VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "joe colborne"
WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?
CREATE TABLE table_name_78 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT COUNT(jury) FROM table_name_66 WHERE artist = "chalice & maagiline kuues" AND draw < 5
How much Jury has an Artist of chalice & maagiline kuues, and a Draw smaller than 5?
CREATE TABLE table_name_66 (jury VARCHAR, artist VARCHAR, draw VARCHAR)
SELECT player FROM table_name_69 WHERE finish = "1"
What player has 1 as the place?
CREATE TABLE table_name_69 (player VARCHAR, finish VARCHAR)
SELECT type FROM table_name_6 WHERE source = "realmadrid" AND name = "soldado"
What is the type when the source is Realmadrid, and the name is Soldado?
CREATE TABLE table_name_6 (type VARCHAR, source VARCHAR, name VARCHAR)
SELECT MIN(09 AS _10_oi_2nd) FROM table_24990183_6
What is the lowest overall number of 09-10 oi 2nd?
CREATE TABLE table_24990183_6 (Id VARCHAR)
SELECT COUNT(draws) FROM table_name_20 WHERE wins < 3
What is the total number of draws when there are fewer than 3 wins?
CREATE TABLE table_name_20 (draws VARCHAR, wins INTEGER)
SELECT language FROM table_name_24 WHERE points > 119 AND place > 5
what is the language when the points is more than 119 and the place is higher than 5?
CREATE TABLE table_name_24 (language VARCHAR, points VARCHAR, place VARCHAR)
SELECT replaced_by FROM table_name_71 WHERE team = "gimnasia y esgrima (lp)"
What kind of Replaced has a Team of gimnasia y esgrima (lp)?
CREATE TABLE table_name_71 (replaced_by VARCHAR, team VARCHAR)
SELECT player FROM table_name_54 WHERE total = "158"
What player has a total of 158/
CREATE TABLE table_name_54 (player VARCHAR, total VARCHAR)
SELECT COUNT(year) FROM table_name_9 WHERE score = "734-5d"
How many years had a score of 734-5d?
CREATE TABLE table_name_9 (year VARCHAR, score VARCHAR)
SELECT sail FROM table_name_96 WHERE syndicate = "america 3 foundation" AND yacht = "america 3"
Which sail is in the America 3 Foundation syndicate on the America 3 yacht?
CREATE TABLE table_name_96 (sail VARCHAR, syndicate VARCHAR, yacht VARCHAR)
SELECT pole_position FROM table_name_97 WHERE round < 2
Tell me the pole position with round less than 2
CREATE TABLE table_name_97 (pole_position VARCHAR, round INTEGER)
SELECT score FROM table_name_65 WHERE to_par = "+4" AND player = "anders forsbrand"
What was Anders Forsbrand's score when the TO par is +4?
CREATE TABLE table_name_65 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT host FROM table_name_18 WHERE premiere = "november 10, 2007"
Who was the host of the premiere on November 10, 2007?
CREATE TABLE table_name_18 (host VARCHAR, premiere VARCHAR)
SELECT team_name FROM basketball_match ORDER BY All_Home DESC
List names of all teams in the basketball competition, ordered by all home scores in descending order.
CREATE TABLE basketball_match (team_name VARCHAR, All_Home VARCHAR)
SELECT score FROM table_name_96 WHERE venue = "shay stadium"
What is the score at shay stadium?
CREATE TABLE table_name_96 (score VARCHAR, venue VARCHAR)
SELECT move_only FROM table_26538035_1 WHERE developer = "AiLive"
For the game whose developer was Ailive, is it a Move-only release?
CREATE TABLE table_26538035_1 (move_only VARCHAR, developer VARCHAR)
SELECT district FROM table_1341598_10 WHERE incumbent = "Lawrence J. Smith"
In what district is the incumbent Lawrence J. Smith?
CREATE TABLE table_1341598_10 (district VARCHAR, incumbent 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 comp FROM table_name_42 WHERE year = "1989"
What is the comp for the year 1989?
CREATE TABLE table_name_42 (comp VARCHAR, year VARCHAR)
SELECT years FROM table_29743928_4 WHERE name = "Chris Konopka Category:Articles with hCards"
When chris konopka category:articles with hcards is the name what is the year?
CREATE TABLE table_29743928_4 (years VARCHAR, name VARCHAR)
SELECT COUNT(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE "%a%"
How many lessons taught by staff whose first name has letter 'a' in it?
CREATE TABLE Lessons (staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR)
SELECT COUNT(losses) FROM table_name_38 WHERE byes > 2
How many losses have byes greater than 2?
CREATE TABLE table_name_38 (losses VARCHAR, byes INTEGER)
SELECT loss FROM table_name_67 WHERE date = "april 26"
How much did they lose by on April 26?
CREATE TABLE table_name_67 (loss VARCHAR, date VARCHAR)
SELECT COUNT(assets_2013__bil) AS $_ FROM table_24307126_3 WHERE base = "Australia"
Name the number of assets for australia
CREATE TABLE table_24307126_3 (assets_2013__bil VARCHAR, base VARCHAR)
SELECT played FROM table_1676073_12 WHERE points_against = "686"
How many games played for the team with 686 points against?
CREATE TABLE table_1676073_12 (played VARCHAR, points_against VARCHAR)
SELECT nasl_club_s_ FROM table_237757_9 WHERE accolades__pre_nasl_ = "Won several titles with Leeds United"
What nasl club won several titles with leeds united?
CREATE TABLE table_237757_9 (nasl_club_s_ VARCHAR, accolades__pre_nasl_ VARCHAR)
SELECT MIN(races) FROM table_name_53 WHERE podiums > 1
What is the lowest Races, when Podiums is greater than 1?
CREATE TABLE table_name_53 (races INTEGER, podiums INTEGER)
SELECT aircraft_landings FROM table_name_27 WHERE cargo__tonnes_ = "18 344"
How manu aircraft landings when the cargo tonnes are 18 344?
CREATE TABLE table_name_27 (aircraft_landings VARCHAR, cargo__tonnes_ VARCHAR)
SELECT time FROM table_name_94 WHERE show_name = "best mix overnight"
What's time is Best Mix Overnight?
CREATE TABLE table_name_94 (time VARCHAR, show_name VARCHAR)
SELECT founded FROM table_1971074_1 WHERE type = "Private/Non-sectarian"
When was the private/non-sectarian school founded?
CREATE TABLE table_1971074_1 (founded VARCHAR, type VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_18 WHERE position = "defence" AND nationality = "canada" AND round < 5 AND player = "josiah didier"
What is College/Junior/Club Team (League), when Position is "Defence", when Nationality is "Canada", when Round is less than 5, and when Player is "Josiah Didier"?
CREATE TABLE table_name_18 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT no_in_series FROM table_1876825_3 WHERE original_air_date = "February 25, 2001"
What episode number in the series originally aired on February 25, 2001?
CREATE TABLE table_1876825_3 (no_in_series VARCHAR, original_air_date VARCHAR)
SELECT SUM(rebounds) FROM table_name_21 WHERE name = "fedor likholitov" AND rank > 8
How many rebounds does Fedor likholitov have with a rank greater than 8?
CREATE TABLE table_name_21 (rebounds INTEGER, name VARCHAR, rank VARCHAR)
SELECT prothrombin_time FROM table_name_28 WHERE platelet_count = "unaffected" AND bleeding_time = "unaffected" AND partial_thromboplastin_time = "normal or mildly prolonged"
Which Prothrombin time has a Platelet count of unaffected, and a Bleeding time of unaffected, and a Partial thromboplastin time of normal or mildly prolonged?
CREATE TABLE table_name_28 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR, bleeding_time VARCHAR)
SELECT opposing_team FROM table_name_7 WHERE against = 20
What opposing team has 20 against?
CREATE TABLE table_name_7 (opposing_team VARCHAR, against VARCHAR)
SELECT year FROM table_name_29 WHERE report = "not held"
When was a report not held?
CREATE TABLE table_name_29 (year VARCHAR, report VARCHAR)
SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID ORDER BY T1.Year_working
Show names of companies and that of employees in descending order of number of years working for that employee.
CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR, Year_working VARCHAR)
SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = "T"
What is the total number of unique official languages spoken in the countries that are founded before 1930?
CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR)
SELECT MIN(draw) FROM table_name_89 WHERE artist = "ketil stokkan" AND points < 44
What is the draw for the artist Ketil Stokkan which has less than 44 points?
CREATE TABLE table_name_89 (draw INTEGER, artist VARCHAR, points VARCHAR)
SELECT COUNT(losing_hand) FROM table_12454156_1 WHERE year = 2007
How many losing hands are there before 2007?
CREATE TABLE table_12454156_1 (losing_hand VARCHAR, year VARCHAR)
SELECT MAX(season) FROM table_name_98 WHERE attendance_g < 3 OFFSET 289
What season had the highest attendance/g than 3,289?
CREATE TABLE table_name_98 (season INTEGER, attendance_g INTEGER)
SELECT title FROM table_20174050_1 WHERE story__number = 91
What's the title of the audio book with story number 91?
CREATE TABLE table_20174050_1 (title VARCHAR, story__number VARCHAR)
SELECT College FROM match_season GROUP BY College ORDER BY COUNT(*) DESC LIMIT 3
Show the top 3 most common colleges of players in match seasons.
CREATE TABLE match_season (College VARCHAR)
SELECT score FROM table_name_62 WHERE date = "april 9"
What's the score on April 9?
CREATE TABLE table_name_62 (score VARCHAR, date VARCHAR)
SELECT acquisition_via FROM table_name_33 WHERE name = "dennis miranda"
What is the Acquisition via for Dennis Miranda?
CREATE TABLE table_name_33 (acquisition_via VARCHAR, name VARCHAR)
SELECT MIN(year) FROM table_name_18 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "alvin and the chipmunks meet the wolfman"
What's the earliest year with a role of alvin seville simon seville david 'dave' seville, and a Title of alvin and the chipmunks meet the wolfman?
CREATE TABLE table_name_18 (year INTEGER, role VARCHAR, title VARCHAR)
SELECT date FROM table_name_88 WHERE team = "clare" AND player = "ger loughnane"
On which date did Ger Loughnane from Team Clare have a match?
CREATE TABLE table_name_88 (date VARCHAR, team VARCHAR, player VARCHAR)
SELECT original_air_date FROM table_24425976_2 WHERE production_code = "110"
What date did the episode with code 110 originally air?
CREATE TABLE table_24425976_2 (original_air_date VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_92 WHERE game = 4
What was the date of game 4?
CREATE TABLE table_name_92 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_11 WHERE result = "3–4"
Which Date has a Result of 3–4?
CREATE TABLE table_name_11 (date VARCHAR, result VARCHAR)
SELECT athlete FROM table_name_50 WHERE notes = "q" AND country = "egypt"
Who was the athlete from egypt with q in the notes?
CREATE TABLE table_name_50 (athlete VARCHAR, notes VARCHAR, country VARCHAR)
SELECT knockouts_of_the_night FROM table_21114902_1 WHERE fighter = "Joe Lauzon"
How many knockout of the night occurred when joe lauzon fought.
CREATE TABLE table_21114902_1 (knockouts_of_the_night VARCHAR, fighter VARCHAR)
SELECT COUNT(silver) FROM table_name_67 WHERE gold > 2
How many silvers have more than 2 golds?
CREATE TABLE table_name_67 (silver VARCHAR, gold INTEGER)
SELECT title FROM table_name_21 WHERE production_number = "627"
Which title has a production number of 627?
CREATE TABLE table_name_21 (title VARCHAR, production_number VARCHAR)
SELECT MAX(round) FROM table_name_60 WHERE school = "washington state university"
What is the highest round that has a draftee from Washington State University?
CREATE TABLE table_name_60 (round INTEGER, school VARCHAR)
SELECT sing_pres FROM table_name_51 WHERE sing_pret = "ou" AND subj_pres = "ie"
What is the singular present that is associated with a singular preterite of ou and a subjunctive present of ie?
CREATE TABLE table_name_51 (sing_pres VARCHAR, sing_pret VARCHAR, subj_pres VARCHAR)
SELECT water_depth FROM table_name_59 WHERE location = "nigeria" AND name = "sedco 702"
What is the water depth of Sedco 702, located in Nigeria?
CREATE TABLE table_name_59 (water_depth VARCHAR, location VARCHAR, name VARCHAR)
SELECT T1.fname, T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog' AND NOT T1.stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')
Find the first name and age of students who have a dog but do not have a cat as a pet.
CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)
SELECT captain FROM table_name_52 WHERE manager = "howard wilkinson"
Which captain has howard wilkinson as the manager?
CREATE TABLE table_name_52 (captain VARCHAR, manager VARCHAR)
SELECT DISTINCT rank FROM Faculty
What ranks do we have for faculty?
CREATE TABLE Faculty (rank VARCHAR)
SELECT money___£__ FROM table_name_68 WHERE score = 76 - 70 - 75 - 72 = 293
What is the money with a Score of 76-70-75-72=293?
CREATE TABLE table_name_68 (money___£__ VARCHAR, score VARCHAR)
SELECT school_club_team FROM table_name_13 WHERE player = "lawrence roberts"
Which school was Lawrence Roberts from ?
CREATE TABLE table_name_13 (school_club_team VARCHAR, player VARCHAR)