answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT area FROM table_name_11 WHERE authority = "state" AND roll > 157
Where is the school with state authority that has a roll of more than 157 students?
CREATE TABLE table_name_11 (area VARCHAR, authority VARCHAR, roll VARCHAR)
SELECT city FROM table_name_2 WHERE opponent = "norway"
What city did Yugoslavia play Norway in?
CREATE TABLE table_name_2 (city VARCHAR, opponent VARCHAR)
SELECT process FROM table_name_61 WHERE date > 2000 AND clock = "1.4-1.6ghz"
Which process has a date later than 2000 and a Clock of 1.4-1.6ghz?
CREATE TABLE table_name_61 (process VARCHAR, date VARCHAR, clock VARCHAR)
SELECT valency_change FROM table_name_1 WHERE type = "associative"
WHat is the Valency change of associative type?
CREATE TABLE table_name_1 (valency_change VARCHAR, type VARCHAR)
SELECT production_cost FROM table_name_39 WHERE director = "2004"
What was the production cost for the film directed by 2004?
CREATE TABLE table_name_39 (production_cost VARCHAR, director VARCHAR)
SELECT COUNT(location_attendance) FROM table_22893781_5 WHERE date = "December 2"
How many attended on december 2?
CREATE TABLE table_22893781_5 (location_attendance VARCHAR, date VARCHAR)
SELECT gender FROM table_28523_3 WHERE religious_affiliation = "Roman Catholic" AND location = "AL4"
What is the gender of the Roman Catholic school is AL4?
CREATE TABLE table_28523_3 (gender VARCHAR, religious_affiliation VARCHAR, location VARCHAR)
SELECT pregame_host FROM table_name_51 WHERE year < 1992 AND play_by_play = "bob irving"
Who was the pregame host before 1992 when there was a play by play of Bob Irving?
CREATE TABLE table_name_51 (pregame_host VARCHAR, year VARCHAR, play_by_play VARCHAR)
SELECT MAX(races) FROM table_name_5 WHERE podiums < 6 AND series = "formula renault 2.0 eurocup" AND wins > 0
What is the largest number of races when there are less than 6 podiums, the series is the formula renault 2.0 eurocup, and there are more than 0 wins?
CREATE TABLE table_name_5 (races INTEGER, wins VARCHAR, podiums VARCHAR, series VARCHAR)
SELECT elena_băsescu FROM table_name_98 WHERE polling_firm = "gallup"
What is the elena basescu when the poling firm of gallup?
CREATE TABLE table_name_98 (elena_băsescu VARCHAR, polling_firm VARCHAR)
SELECT record FROM table_name_57 WHERE home = "washington"
What was the record when the home team is Washington?
CREATE TABLE table_name_57 (record VARCHAR, home VARCHAR)
SELECT opponent FROM table_name_18 WHERE record = "84-69"
Who was the Blue Jays opponent when their record was 84-69?
CREATE TABLE table_name_18 (opponent VARCHAR, record VARCHAR)
SELECT authors FROM table_name_42 WHERE unit = "densuș-ciula formation"
Which authors have a Unit of densuș-ciula formation?
CREATE TABLE table_name_42 (authors VARCHAR, unit VARCHAR)
SELECT profit_before_tax__£m_ FROM table_2856898_1 WHERE turnover__£m_ = "431.06"
What was the profit before tax when the turnover was 431.06?
CREATE TABLE table_2856898_1 (profit_before_tax__£m_ VARCHAR, turnover__£m_ VARCHAR)
SELECT MIN(laps) FROM table_name_64 WHERE driver = "mika salo"
Which is least lap is mika salo in?
CREATE TABLE table_name_64 (laps INTEGER, driver VARCHAR)
SELECT date FROM table_name_45 WHERE time___gmt__ = "23:34"
Which date has time (GMT) of 23:34?
CREATE TABLE table_name_45 (date VARCHAR, time___gmt__ VARCHAR)
SELECT COUNT(crowd) FROM table_name_21 WHERE venue = "arden street oval"
How many people at Arden Street Oval?
CREATE TABLE table_name_21 (crowd VARCHAR, venue VARCHAR)
SELECT score_1 FROM table_name_99 WHERE attendance = "9,205"
What was the final score of the match that had an attendance of 9,205?
CREATE TABLE table_name_99 (score_1 VARCHAR, attendance VARCHAR)
SELECT december FROM table_name_76 WHERE february = "anne-marie fox"
Who is the December playmate with a February playmate Anne-Marie Fox?
CREATE TABLE table_name_76 (december VARCHAR, february VARCHAR)
SELECT candidate FROM table_25818630_2 WHERE result____percentage = "2.9%"
Who as the candidate when the result - % was 2.9%?
CREATE TABLE table_25818630_2 (candidate VARCHAR, result____percentage VARCHAR)
SELECT COUNT(played) FROM table_name_84 WHERE _percentage_win = "50.00%" AND losses = 1 AND wins < 1
How many Played has a % Win of 50.00%, and Losses of 1, and Wins smaller than 1?
CREATE TABLE table_name_84 (played VARCHAR, wins VARCHAR, _percentage_win VARCHAR, losses VARCHAR)
SELECT category FROM table_name_9 WHERE award = "showest award"
What category has showest award for the category awards?
CREATE TABLE table_name_9 (category VARCHAR, award VARCHAR)
SELECT time_retired FROM table_name_89 WHERE constructor = "source:"
What's the time/retired for constructor source:?
CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR)
SELECT liberal FROM table_name_37 WHERE new_democratic = "36%" AND dates = "august 2008"
According to the August 2008 poll that reported 36% New Demcratic, what percentage aligned with the Liberal party?
CREATE TABLE table_name_37 (liberal VARCHAR, new_democratic VARCHAR, dates VARCHAR)
SELECT notes FROM table_name_23 WHERE builder = "ford" AND total = "5"
What are the notes for Ford when the total is 5?
CREATE TABLE table_name_23 (notes VARCHAR, builder VARCHAR, total VARCHAR)
SELECT Name FROM People ORDER BY Name
What are the names of people in ascending alphabetical order?
CREATE TABLE People (Name VARCHAR)
SELECT MIN(total) FROM table_30018460_1
What is the minimum sum?
CREATE TABLE table_30018460_1 (total INTEGER)
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "MADLOCK" AND T1.lastname = "RAY"
How many teachers does the student named MADLOCK RAY have?
CREATE TABLE teachers (classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
SELECT result FROM table_2668352_14 WHERE first_elected = "1810"
Name the result for 1810
CREATE TABLE table_2668352_14 (result VARCHAR, first_elected VARCHAR)
SELECT player FROM table_name_59 WHERE pick = "7"
Who is the Pick 7 player?
CREATE TABLE table_name_59 (player VARCHAR, pick VARCHAR)
SELECT SUM(attendance) FROM table_name_14 WHERE date = "2 may 2007"
How many people attended on 2 may 2007?
CREATE TABLE table_name_14 (attendance INTEGER, date VARCHAR)
SELECT source FROM table_name_18 WHERE cardwell = "20%"
What source has a cardwell of 20%?
CREATE TABLE table_name_18 (source VARCHAR, cardwell VARCHAR)
SELECT margin_of_victory FROM table_275162_1 WHERE location = "Lake Forest, Illinois"
What was the margin of victory for the event in lake forest, illinois?
CREATE TABLE table_275162_1 (margin_of_victory VARCHAR, location VARCHAR)
SELECT time FROM table_name_85 WHERE team = "398cc yamaha"
What is the time of the rider with a 398cc yamaha?
CREATE TABLE table_name_85 (time VARCHAR, team VARCHAR)
SELECT shooter FROM table_name_63 WHERE total = "defending champion"
Who is the shooter that is the Defending Champion?
CREATE TABLE table_name_63 (shooter VARCHAR, total VARCHAR)
SELECT kit_manufacturer FROM table_name_36 WHERE manager = "billy bonds"
What is the kit manufacturer that has billy bonds as the manager?
CREATE TABLE table_name_36 (kit_manufacturer VARCHAR, manager VARCHAR)
SELECT COUNT(silver) FROM table_name_23 WHERE total < 15 AND rank < 5 AND bronze = 4 AND gold < 3
How many times is the total less than 15, rank less than 5, bronze is 4 and gold smaller than 3?
CREATE TABLE table_name_23 (silver VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR, rank VARCHAR)
SELECT entities FROM table_19001916_2 WHERE supply_point = "Itaipu"
What are the electric companies drawing power from Itaipu?
CREATE TABLE table_19001916_2 (entities VARCHAR, supply_point VARCHAR)
SELECT type FROM table_name_46 WHERE name = "cassano"
What is the type for Cassano?
CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR)
SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10
What are the ids and names of the battles that led to more than 10 people killed in total.
CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR)
SELECT COUNT(DISTINCT dormid) FROM has_amenity
Find the number of dorms that have some amenity.
CREATE TABLE has_amenity (dormid VARCHAR)
SELECT COUNT(indoor) FROM table_19534874_2 WHERE region = "NER"
What is the indoor number for the NER region?
CREATE TABLE table_19534874_2 (indoor VARCHAR, region VARCHAR)
SELECT singer_s_ FROM table_29135051_2 WHERE ratings = "1.45m"
Name the singer for 1.45m
CREATE TABLE table_29135051_2 (singer_s_ VARCHAR, ratings VARCHAR)
SELECT prize__eur_ FROM table_20195922_3 WHERE number_of_winning_tickets = 1
What are the prizes when 1 is the number of winning tickets?
CREATE TABLE table_20195922_3 (prize__eur_ VARCHAR, number_of_winning_tickets VARCHAR)
SELECT d_43_√ FROM table_name_64 WHERE d_49_√ = "d 49 √"
What is the D 43 √ with a D 49 √ with d 49 √?
CREATE TABLE table_name_64 (d_43_√ VARCHAR, d_49_√ VARCHAR)
SELECT AVG(points) FROM table_name_41 WHERE touchdowns = 4 AND field_goals > 0
What is the average number of points for players with 4 touchdowns and more than 0 field goals?
CREATE TABLE table_name_41 (points INTEGER, touchdowns VARCHAR, field_goals VARCHAR)
SELECT mountains_classification FROM table_name_82 WHERE general_classification = "kim kirchen" AND stage = "7"
What's the mountains classification of Stage 7 when Kim Kirchen was the general classification?
CREATE TABLE table_name_82 (mountains_classification VARCHAR, general_classification VARCHAR, stage VARCHAR)
SELECT bike FROM table_name_18 WHERE grid < 9 AND time = "+7.764"
What is the name of the bike that has a grid number smaller than 9 with a time of +7.764?
CREATE TABLE table_name_18 (bike VARCHAR, grid VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_63 WHERE position = "center" AND years_in_orlando = "2010–2012"
Which Nationality has a Position of center, and a Years in Orlando of 2010–2012?
CREATE TABLE table_name_63 (nationality VARCHAR, position VARCHAR, years_in_orlando VARCHAR)
SELECT COUNT(events) FROM table_name_44 WHERE top_25 < 0
What is the total number of events with a top-25 less than 0?
CREATE TABLE table_name_44 (events VARCHAR, top_25 INTEGER)
SELECT SUM(points) FROM table_name_68 WHERE played > 34
What is the sum of the points of the club with more than 34 played?
CREATE TABLE table_name_68 (points INTEGER, played INTEGER)
SELECT nhl_team FROM table_name_59 WHERE nationality = "canada" AND position = "right wing" AND pick__number = "43"
What team draft a player from Canada that was picked #43 and plays right wing?
CREATE TABLE table_name_59 (nhl_team VARCHAR, pick__number VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT position FROM table_name_32 WHERE win__number = 2 AND winner = "doug gibson"
What position for doug gibson with 2 wins?
CREATE TABLE table_name_32 (position VARCHAR, win__number VARCHAR, winner VARCHAR)
SELECT prize_money FROM table_name_58 WHERE round = "final"
What is the prize money for the final round?
CREATE TABLE table_name_58 (prize_money VARCHAR, round VARCHAR)
SELECT loan_expires FROM table_name_6 WHERE date = "29 december 2003"
What loan expires date has a Date of 29 december 2003?
CREATE TABLE table_name_6 (loan_expires VARCHAR, date VARCHAR)
SELECT conference_finals FROM table_name_32 WHERE seed = "† denotes division championship"
Which Conference Finals has a Seed of † denotes division championship?
CREATE TABLE table_name_32 (conference_finals VARCHAR, seed VARCHAR)
SELECT employee_name FROM Employees EXCEPT SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id
List the employees who have not showed up in any circulation history of documents. List the employee's name.
CREATE TABLE Circulation_History (employee_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR)
SELECT high_school_name FROM table_2518850_4 WHERE prefecture = "Kyoto"
Which high school is located in Kyoto?
CREATE TABLE table_2518850_4 (high_school_name VARCHAR, prefecture VARCHAR)
SELECT incumbent FROM table_name_84 WHERE party = "democratic" AND district = "south carolina 5"
Who was the Democratic incumbent in the South Carolina 5 District?
CREATE TABLE table_name_84 (incumbent VARCHAR, party VARCHAR, district VARCHAR)
SELECT attendance FROM table_name_66 WHERE venue = "ryavallen"
Which Attendance that has a Venue of ryavallen?
CREATE TABLE table_name_66 (attendance VARCHAR, venue VARCHAR)
SELECT team FROM table_name_80 WHERE laps = 65 AND grid < 20 AND driver = "scott pruett"
Which team did Scott Pruett drive for when the grid was smaller than 20 and there were 65 laps?
CREATE TABLE table_name_80 (team VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT stadium FROM table_name_92 WHERE score = "66-20"
For the match ending in a score of 66-20, what was the stadium?
CREATE TABLE table_name_92 (stadium VARCHAR, score VARCHAR)
SELECT score FROM table_2127933_3 WHERE opponents = "Irving Wright Hazel Hotchkiss Wightman"
What were the scores for matches with irving wright hazel hotchkiss wightman?
CREATE TABLE table_2127933_3 (score VARCHAR, opponents VARCHAR)
SELECT race FROM table_name_43 WHERE purse = "$300,000"
What Race has a Purse of $300,000?
CREATE TABLE table_name_43 (race VARCHAR, purse VARCHAR)
SELECT MAX(percent_yes) FROM table_name_29 WHERE jurisdiction = "alberta" AND percent_no < 60.2
What is the highest percent of yes Alberta, which had less than 60.2 vote no, has?
CREATE TABLE table_name_29 (percent_yes INTEGER, jurisdiction VARCHAR, percent_no VARCHAR)
SELECT name FROM table_name_99 WHERE authors = "gao chiappe meng o'connor wang cheng liu"
What is the name of gao chiappe meng o'connor wang cheng liu?
CREATE TABLE table_name_99 (name VARCHAR, authors VARCHAR)
SELECT part_3 FROM table_1745843_6 WHERE class = "4"
What's the part 3 of the verb whose class is 4?
CREATE TABLE table_1745843_6 (part_3 VARCHAR, class VARCHAR)
SELECT date FROM table_name_71 WHERE opponent = "indiana state college"
What is the Date with an Opponent that is indiana state college?
CREATE TABLE table_name_71 (date VARCHAR, opponent VARCHAR)
SELECT MAX(grid) FROM table_name_99 WHERE constructor = "mclaren - mercedes" AND driver = "david coulthard" AND laps < 66
What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps?
CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT COUNT(time) FROM table_name_66 WHERE lane = 4
How much total time was in lane 4?
CREATE TABLE table_name_66 (time VARCHAR, lane VARCHAR)
SELECT SUM(area) FROM table_name_34 WHERE name = "askøy" AND municipal_code < 1247
What's the area of askøy, with a Municipal code less than 1247?
CREATE TABLE table_name_34 (area INTEGER, name VARCHAR, municipal_code VARCHAR)
SELECT date FROM table_name_82 WHERE home = "detroit" AND visitor = "chicago"
What is the date for the home detroit and visitor was chicago?
CREATE TABLE table_name_82 (date VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT teams FROM table_name_46 WHERE season = "1995-96"
What team(s) played in the 1995-96 season?
CREATE TABLE table_name_46 (teams VARCHAR, season VARCHAR)
SELECT playoffs FROM table_1999350_1 WHERE open_canada_cup = "N/A" AND regular_season = "2nd, New England"
What is the playoffs result in years where Open Canada Cup was "N/A" and regular season result was "2nd, New England"?
CREATE TABLE table_1999350_1 (playoffs VARCHAR, open_canada_cup VARCHAR, regular_season VARCHAR)
SELECT notes FROM table_1181375_1 WHERE withdrawn = "1956–57"
what's the notes where withdrawn is 1956–57
CREATE TABLE table_1181375_1 (notes VARCHAR, withdrawn VARCHAR)
SELECT score FROM table_name_77 WHERE away_team = "blackpool"
What was the score of the game when Blackpool was away?
CREATE TABLE table_name_77 (score VARCHAR, away_team VARCHAR)
SELECT nickname FROM table_name_27 WHERE colors = "black and gold"
What is the nickname of the team that has the colors black and gold?
CREATE TABLE table_name_27 (nickname VARCHAR, colors VARCHAR)
SELECT home_team FROM table_name_85 WHERE road_team = "portland" AND result = "104–110"
Which Home team has a Road team of portland, and a Result of 104–110?
CREATE TABLE table_name_85 (home_team VARCHAR, road_team VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_29 WHERE game = 5
Who was the opponent for game 5?
CREATE TABLE table_name_29 (opponent VARCHAR, game VARCHAR)
SELECT AVG(attendance) FROM table_name_81 WHERE week > 5 AND opponent = "washington redskins"
what is the average attendance when the week is higher than 5 and the opponent is washington redskins?
CREATE TABLE table_name_81 (attendance INTEGER, week VARCHAR, opponent VARCHAR)
SELECT mascot FROM table_name_91 WHERE county = "78 switzerland"
who is the mascot of the county 78 switzerland?
CREATE TABLE table_name_91 (mascot VARCHAR, county VARCHAR)
SELECT COUNT(*) FROM classroom WHERE building = 'Lamberton'
How many rooms does the Lamberton building have?
CREATE TABLE classroom (building VARCHAR)
SELECT high_assists FROM table_17323529_5 WHERE score = "L 98–103 (OT)"
Name the high assists for l 98–103 (ot)
CREATE TABLE table_17323529_5 (high_assists VARCHAR, score VARCHAR)
SELECT MAX(division) FROM table_21602734_1
What is the highest number of divisions mentioned?
CREATE TABLE table_21602734_1 (division INTEGER)
SELECT COUNT(rank) FROM table_name_56 WHERE time = "7:34.24"
What is the total rank for the athlete that had a race time of 7:34.24?
CREATE TABLE table_name_56 (rank VARCHAR, time VARCHAR)
SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000
What are the purchase details of transactions with amount bigger than 10000?
CREATE TABLE PURCHASES (purchase_details VARCHAR, purchase_transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (transaction_id VARCHAR, amount_of_transaction INTEGER)
SELECT MIN(points) FROM table_23308178_5
What's the minimal number of points scored in any game?
CREATE TABLE table_23308178_5 (points INTEGER)
SELECT COUNT(goal) FROM table_name_91 WHERE date = "december 4, 2010" AND score = "1-0"
How many goals have a Date of december 4, 2010, and a Score of 1-0?
CREATE TABLE table_name_91 (goal VARCHAR, date VARCHAR, score VARCHAR)
SELECT republican_ticket FROM table_name_65 WHERE democratic_ticket = "arthur levitt"
Who was the Republican candidate against the Democratic candidate Arthur Levitt?
CREATE TABLE table_name_65 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT AVG(drawn) FROM table_name_64 WHERE difference = "17" AND points = 22
What is the average number of drawn with a difference of 17 and 22 points?
CREATE TABLE table_name_64 (drawn INTEGER, difference VARCHAR, points VARCHAR)
SELECT part_4 FROM table_name_37 WHERE class = "5"
what is part 4 when the class is 5?
CREATE TABLE table_name_37 (part_4 VARCHAR, class VARCHAR)
SELECT category FROM table_name_51 WHERE actor_actress = "al pacino" AND film_title_used_in_nomination = "glengarry glen ross"
What category was al pacino nominated for in the film, glengarry glen ross?
CREATE TABLE table_name_51 (category VARCHAR, actor_actress VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT leading_scorer FROM table_name_13 WHERE date = "april 12, 2008"
Name the leading scorer for april 12, 2008
CREATE TABLE table_name_13 (leading_scorer VARCHAR, date VARCHAR)
SELECT place FROM table_name_82 WHERE country = "united states" AND player = "calvin peete"
Where did Calvin Peete of the United States place?
CREATE TABLE table_name_82 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT COUNT(host) FROM table_14523485_9 WHERE channel = "Seven Network"
How many hosts were on Seven Network?
CREATE TABLE table_14523485_9 (host VARCHAR, channel VARCHAR)
SELECT 153 AS kg FROM table_name_27 WHERE world_record = "clean & jerk"
Who has the world record of 153kg in the clean & jerk?
CREATE TABLE table_name_27 (world_record VARCHAR)
SELECT COUNT(total) FROM table_name_52 WHERE nation = "denmark"
What is the medal total of Denmark?
CREATE TABLE table_name_52 (total VARCHAR, nation VARCHAR)
SELECT season FROM table_name_17 WHERE points < 321 AND percentage_of_possible_points > 65.78 AND races = 16
Which season with 16 races had less than 321 points and a larger percent than 65.78 possible?
CREATE TABLE table_name_17 (season VARCHAR, races VARCHAR, points VARCHAR, percentage_of_possible_points VARCHAR)
SELECT fri_3_june FROM table_29218221_3 WHERE thurs_2_june = "20' 50.45 108.623mph"
What was the Friday June 3 practice time of the rider who did 20' 50.45 108.623mph on Thursday, June 2?
CREATE TABLE table_29218221_3 (fri_3_june VARCHAR, thurs_2_june VARCHAR)
SELECT year FROM table_name_47 WHERE rank = "1"
What year was the ranking 1?
CREATE TABLE table_name_47 (year VARCHAR, rank VARCHAR)