answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(points) FROM table_name_67 WHERE team = "discovery channel"
Cumulative point total for all teams playing on the Discovery Channel?
CREATE TABLE table_name_67 (points VARCHAR, team VARCHAR)
SELECT school FROM table_11677100_15 WHERE player = "Jeff Malm"
What high school did Jeff Malm attend?
CREATE TABLE table_11677100_15 (school VARCHAR, player VARCHAR)
SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE official_tns_gallup_ratings = 1575000
When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000?
CREATE TABLE table_26591309_2 (first_broadcast_uk___bbc_four__ VARCHAR, official_tns_gallup_ratings VARCHAR)
SELECT dissolved FROM table_name_53 WHERE summoned = "28 february 1467"
What is the dissolved date of the parliament summoned on 28 February 1467?
CREATE TABLE table_name_53 (dissolved VARCHAR, summoned VARCHAR)
SELECT term_end FROM table_name_85 WHERE party = "centre party"
On what date or dates did the term with the Centre Party end?
CREATE TABLE table_name_85 (term_end VARCHAR, party VARCHAR)
SELECT AVG(attendance) FROM table_name_33 WHERE date = "october 30, 1938"
What was the average attendance on October 30, 1938?
CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR)
SELECT inchicore_class FROM table_name_60 WHERE gswr_class < 268 AND type = "0-4-2t"
What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t?
CREATE TABLE table_name_60 (inchicore_class VARCHAR, gswr_class VARCHAR, type VARCHAR)
SELECT total_apps FROM table_name_80 WHERE league_apps = "4 (2)"
what is the total apps when the league apps is 4 (2)?
CREATE TABLE table_name_80 (total_apps VARCHAR, league_apps VARCHAR)
SELECT scorers FROM table_name_41 WHERE venue = "a" AND opponent = "arsenal"
Which Scorers have a Venue of A, and an Opponent of arsenal?
CREATE TABLE table_name_41 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_24 WHERE attendance = "70,721"
What was the score for the game that attendance was 70,721?
CREATE TABLE table_name_24 (result VARCHAR, attendance VARCHAR)
SELECT date_of_vacancy FROM table_name_25 WHERE position_in_table = "16th" AND outgoing_manager = "russell slade"
what is the date of vacancy when the position in table is 16th and the outgoing manager is russell slade?
CREATE TABLE table_name_25 (date_of_vacancy VARCHAR, position_in_table VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(*) FROM architect WHERE NOT id IN (SELECT architect_id FROM mill WHERE built_year < 1850)
How many architects haven't built a mill before year 1850?
CREATE TABLE mill (id VARCHAR, architect_id VARCHAR, built_year INTEGER); CREATE TABLE architect (id VARCHAR, architect_id VARCHAR, built_year INTEGER)
SELECT score FROM table_name_93 WHERE date = "march 12"
What is the Score with a Date that is march 12?
CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)
SELECT T1.owner_id, T2.first_name, T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1
Which owner owns the most dogs? List the owner id, first name and last name.
CREATE TABLE Owners (first_name VARCHAR, last_name VARCHAR, owner_id VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR)
SELECT AVG(byes) FROM table_name_92 WHERE losses > 14 AND wins > 0
How many byes for the team with more than 14 losses and more than 0 wins?
CREATE TABLE table_name_92 (byes INTEGER, losses VARCHAR, wins VARCHAR)
SELECT date FROM table_name_10 WHERE winner = "dick johnson" AND race_title = "calder"
On what date did Dick Johnson with at Calder?
CREATE TABLE table_name_10 (date VARCHAR, winner VARCHAR, race_title VARCHAR)
SELECT tyre FROM table_name_22 WHERE pole_position = "jerry hoyt"
What is the Tyre when Jerry Hoyt was the pole position?
CREATE TABLE table_name_22 (tyre VARCHAR, pole_position VARCHAR)
SELECT surface FROM table_name_39 WHERE opponents = "daniel nestor sandon stolle"
What is Surface, when Opponents is "Daniel Nestor Sandon Stolle"?
CREATE TABLE table_name_39 (surface VARCHAR, opponents VARCHAR)
SELECT place FROM table_name_43 WHERE player = "bobby jones (a)"
Where is bobby jones (a)?
CREATE TABLE table_name_43 (place VARCHAR, player VARCHAR)
SELECT COUNT(group_b_winner) FROM table_1137142_1 WHERE group_c_winner = "Francavilla"
What is the number of group b winner for francavilla?
CREATE TABLE table_1137142_1 (group_b_winner VARCHAR, group_c_winner VARCHAR)
SELECT college_junior_club_team FROM table_1013129_8 WHERE player = "Keith McCambridge"
What team is Keith Mccambridge on?
CREATE TABLE table_1013129_8 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT MAX(position) FROM table_name_10 WHERE team = "nelson" AND played > 24
What is the highest position for Nelson, with a played entry of more than 24?
CREATE TABLE table_name_10 (position INTEGER, team VARCHAR, played VARCHAR)
SELECT club_team FROM table_name_9 WHERE round > 5 AND position = "defense"
What Club team with a Round larger than 5 have a defense position?
CREATE TABLE table_name_9 (club_team VARCHAR, round VARCHAR, position VARCHAR)
SELECT school_club_team FROM table_name_35 WHERE position = "shooting guard"
What school/club did the player who layed shooting guard attend?
CREATE TABLE table_name_35 (school_club_team VARCHAR, position VARCHAR)
SELECT * FROM chip_model
Find the details for all chip models.
CREATE TABLE chip_model (Id VARCHAR)
SELECT result FROM table_name_76 WHERE couple = "mario & karina"
What result has mario & karina as the couple?
CREATE TABLE table_name_76 (result VARCHAR, couple VARCHAR)
SELECT nationality FROM table_name_24 WHERE position = "(d)" AND college = "sc bern ( swiss )"
What is the nationality for the position of (d), and college was SC Bern ( Swiss )?
CREATE TABLE table_name_24 (nationality VARCHAR, position VARCHAR, college VARCHAR)
SELECT COUNT(hometown) FROM table_24192031_2 WHERE height = "m (ft 10 1⁄2 in)"
How many hometowns have a height of m (ft 10 1⁄2 in)?
CREATE TABLE table_24192031_2 (hometown VARCHAR, height VARCHAR)
SELECT AVG(play_offs) FROM table_name_9 WHERE fa_cup > 3
What are the average play-offs that have an FA Cup greater than 3?
CREATE TABLE table_name_9 (play_offs INTEGER, fa_cup INTEGER)
SELECT competition FROM table_name_79 WHERE score = "3-0"
In which competition was the score 3-0?
CREATE TABLE table_name_79 (competition VARCHAR, score VARCHAR)
SELECT time FROM table_name_62 WHERE meet = "duel in the pool" AND date = "19 december 2009"
What is Time, when Meet is "Duel in the Pool", and when Date is "19 December 2009"?
CREATE TABLE table_name_62 (time VARCHAR, meet VARCHAR, date VARCHAR)
SELECT host_country___countries FROM table_name_42 WHERE silver = "[[|]] (2)" AND bronze = "czechoslovakia (3)"
What was the host country when the silver was [[|]] (2) and bronze is czechoslovakia (3)?
CREATE TABLE table_name_42 (host_country___countries VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT MAX(april) FROM table_name_19 WHERE record = "38-33-10"
Name the most april with record of 38-33-10
CREATE TABLE table_name_19 (april INTEGER, record VARCHAR)
SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = "Uganda"
Show the times used by climbers to climb mountains in Country Uganda.
CREATE TABLE mountain (Mountain_ID VARCHAR, Country VARCHAR); CREATE TABLE climber (Time VARCHAR, Mountain_ID VARCHAR)
SELECT location_attendance FROM table_27882867_9 WHERE team = "Milwaukee"
Where was the location and attendance when they played milwaukee?
CREATE TABLE table_27882867_9 (location_attendance VARCHAR, team VARCHAR)
SELECT party FROM table_1341897_6 WHERE district = "Arkansas 5"
When party did the incumbent in the Arkansas 5 district belong to?
CREATE TABLE table_1341897_6 (party VARCHAR, district VARCHAR)
SELECT original_air_date FROM table_24223834_3 WHERE us_viewers__in_millions_ = "1.023"
What date did the episode that had 1.023 million u.s. viewers originally air?
CREATE TABLE table_24223834_3 (original_air_date VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT team_name FROM table_25421463_1 WHERE points = "38"
What team was Sigachev on when he had 38 points?
CREATE TABLE table_25421463_1 (team_name VARCHAR, points VARCHAR)
SELECT 925 FROM table_name_44 WHERE press = "282.5"
Who is the 92.5 with the press 282.5?
CREATE TABLE table_name_44 (press VARCHAR)
SELECT haydon FROM table_name_68 WHERE ben_tahir = "33"
What Haydon had a 33 Ben-Tahir?
CREATE TABLE table_name_68 (haydon VARCHAR, ben_tahir VARCHAR)
SELECT leading_scorer FROM table_name_43 WHERE visitor = "golden state warriors" AND home = "dallas mavericks"
Who was the leading scorer in the match when the Golden State Warriors were visiting the Dallas Mavericks?
CREATE TABLE table_name_43 (leading_scorer VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT country FROM table_name_74 WHERE player = "nick faldo"
What Country has a Player of nick faldo?
CREATE TABLE table_name_74 (country VARCHAR, player VARCHAR)
SELECT AVG(home_run) FROM table_name_43 WHERE location = "tiger stadium" AND date = "june 17"
On June 17 in Tiger stadium, what was the average home run?
CREATE TABLE table_name_43 (home_run INTEGER, location VARCHAR, date VARCHAR)
SELECT state_province FROM table_name_72 WHERE wind_farm = "tehachapi pass wind farm"
Which state is Tehachapi Pass Wind Farm located in?
CREATE TABLE table_name_72 (state_province VARCHAR, wind_farm VARCHAR)
SELECT english FROM table_26919_7 WHERE aramaic = "šlām-āʼ"
if the aramaic is šlām-āʼ, what is the english?
CREATE TABLE table_26919_7 (english VARCHAR, aramaic VARCHAR)
SELECT MIN(runs) FROM table_2985664_8 WHERE average = "42.36"
What is the lowest value for runs when the average is 42.36?
CREATE TABLE table_2985664_8 (runs INTEGER, average VARCHAR)
SELECT white FROM table_name_20 WHERE black = "anand" AND result = "½–½" AND moves = 39 AND opening = "d37 queen's gambit declined"
What's the white for a black of Anand, a result of ½–½, 39 moves, and an opening of d37 queen's gambit declined?
CREATE TABLE table_name_20 (white VARCHAR, opening VARCHAR, moves VARCHAR, black VARCHAR, result VARCHAR)
SELECT MAX(production_code_s_) FROM table_27714985_1 WHERE written_by = "Patty Lin"
What is the maximum production code of an episode written by Patty Lin?
CREATE TABLE table_27714985_1 (production_code_s_ INTEGER, written_by VARCHAR)
SELECT opponent FROM table_13259009_2 WHERE game_site = "Mile High Stadium"
What team was the opponent at Mile High Stadium?
CREATE TABLE table_13259009_2 (opponent VARCHAR, game_site VARCHAR)
SELECT baltimore_group FROM table_name_27 WHERE family = "togaviridae"
Which Baltimore group is of the togaviridae family?
CREATE TABLE table_name_27 (baltimore_group VARCHAR, family VARCHAR)
SELECT AVG(tonnage) FROM table_name_97 WHERE nationality = "sweden" AND name_of_ship = "siljan"
What was the average tonnage for the Siljan ship from Sweden?
CREATE TABLE table_name_97 (tonnage INTEGER, nationality VARCHAR, name_of_ship VARCHAR)
SELECT employee_id FROM employees WHERE salary > (SELECT AVG(salary) FROM employees)
Find the employee id for all employees who earn more than the average salary.
CREATE TABLE employees (employee_id VARCHAR, salary INTEGER)
SELECT outcome FROM table_name_44 WHERE date = "13 november 2006"
Which is the Outcome on 13 november 2006?
CREATE TABLE table_name_44 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_79 WHERE surface = "clay" AND tournament = "morocco f5, rabat , morocco"
Which Outcome has a Surface of clay, and a Tournament of morocco f5, rabat , morocco?
CREATE TABLE table_name_79 (outcome VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT strike_rate FROM table_19662262_6 WHERE wickets = 17
What is the strike rate when there are 17 wickets?
CREATE TABLE table_19662262_6 (strike_rate VARCHAR, wickets VARCHAR)
SELECT AVG(year) FROM table_name_99 WHERE venue = "brookvale oval" AND margin > 46
Name the average year for brookvale oval and margin more than 46
CREATE TABLE table_name_99 (year INTEGER, venue VARCHAR, margin 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 MIN(score) FROM table_name_35 WHERE country = "united states" AND player = "craig stadler"
What was Craig Stadler's lowest score for United states?
CREATE TABLE table_name_35 (score INTEGER, country VARCHAR, player VARCHAR)
SELECT opponent_in_the_final FROM table_name_89 WHERE surface = "hard" AND score = "6–3, 3–6, 7–5"
Who was the opponent in the final in which the court surface was hard and the score was 6–3, 3–6, 7–5?
CREATE TABLE table_name_89 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
SELECT region FROM table_name_13 WHERE label = "chrysalis" AND catalog = "chr 1047"
What region has the Chrysalis label, and a Catalog of chr 1047?
CREATE TABLE table_name_13 (region VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT winner FROM table_name_85 WHERE stage = "22"
Who won at stage 22?
CREATE TABLE table_name_85 (winner VARCHAR, stage VARCHAR)
SELECT result FROM table_name_38 WHERE week = 13
What was the result of week 13?
CREATE TABLE table_name_38 (result VARCHAR, week VARCHAR)
SELECT category FROM table_name_35 WHERE opponent = "matthew barton"
What category is Matthew Barton?
CREATE TABLE table_name_35 (category VARCHAR, opponent VARCHAR)
SELECT opponent_in_the_final FROM table_name_64 WHERE tournament = "cagnes-sur-mer"
who is the opponent in the final when the tournament is cagnes-sur-mer?
CREATE TABLE table_name_64 (opponent_in_the_final VARCHAR, tournament VARCHAR)
SELECT winner FROM table_22941863_19 WHERE sprints_classification = "no award"
What is the name of the winner when the sprints classification is no award?
CREATE TABLE table_22941863_19 (winner VARCHAR, sprints_classification VARCHAR)
SELECT Fname, Lname FROM Student WHERE Age > 18 AND Major <> 600 AND Sex = 'F'
List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.
CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, Sex VARCHAR, Age VARCHAR, Major VARCHAR)
SELECT original_title FROM table_18987377_1 WHERE film_title_used_in_nomination = "The Last Metro"
Name the original title for the last metro
CREATE TABLE table_18987377_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT MAX(wins) FROM table_name_36 WHERE poles < 0
What is the highest number of wins associated with under 0 poles?
CREATE TABLE table_name_36 (wins INTEGER, poles INTEGER)
SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_name ORDER BY COUNT(*) DESC LIMIT 1
What is the name of organization that has the greatest number of contact individuals?
CREATE TABLE organization_contact_individuals (organization_id VARCHAR); CREATE TABLE organizations (organization_name VARCHAR, organization_id VARCHAR)
SELECT sixth FROM table_name_91 WHERE fourth = "western australia" AND first = "tasmania"
What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?
CREATE TABLE table_name_91 (sixth VARCHAR, fourth VARCHAR, first VARCHAR)
SELECT season FROM table_name_84 WHERE champion = "nicolas kiesa"
What season has the champion of Nicolas Kiesa?
CREATE TABLE table_name_84 (season VARCHAR, champion VARCHAR)
SELECT position FROM table_20170644_3 WHERE college = "Regina"
What position is the player who went to Regina?
CREATE TABLE table_20170644_3 (position VARCHAR, college VARCHAR)
SELECT hh_principal FROM table_name_16 WHERE superintendent = "james finch" AND maplemere_principal = "charlie taylor"
Who is the h.h. principal with James Finch as the superintendent and Charlie Taylor as the maplemere principal?
CREATE TABLE table_name_16 (hh_principal VARCHAR, superintendent VARCHAR, maplemere_principal VARCHAR)
SELECT MAX(population__2000_) FROM table_2004733_2 WHERE barangay = "Bulac"
How many people lived in bulac in the year 2000?
CREATE TABLE table_2004733_2 (population__2000_ INTEGER, barangay VARCHAR)
SELECT venue FROM table_name_30 WHERE date = "march 11, 1999"
Where was the game on March 11, 1999 played?
CREATE TABLE table_name_30 (venue VARCHAR, date VARCHAR)
SELECT COUNT(loses) FROM table_name_45 WHERE points_against > 592 AND club = "high park demons" AND points_for > 631
How many losses have points against greater than 592, with high park demons as the club, and points for greater than 631?
CREATE TABLE table_name_45 (loses VARCHAR, points_for VARCHAR, points_against VARCHAR, club VARCHAR)
SELECT AVG(fa_trophy) FROM table_name_52 WHERE player = "mario walsh" AND league > 17
How many FA Trophy has a Player of mario walsh and a League larger than 17?
CREATE TABLE table_name_52 (fa_trophy INTEGER, player VARCHAR, league VARCHAR)
SELECT mac_os_x FROM table_name_44 WHERE gnu_linux = "yes" AND windows = "no"
Which Mac OSX's GNU/Linux was yes when Windows was no?
CREATE TABLE table_name_44 (mac_os_x VARCHAR, gnu_linux VARCHAR, windows VARCHAR)
SELECT title FROM table_23399481_4 WHERE written_by = "Michael Gans & Richard Register"
What is the title of the episode/s written by Michael Gans & Richard Register?
CREATE TABLE table_23399481_4 (title VARCHAR, written_by VARCHAR)
SELECT venue FROM table_name_47 WHERE home_team = "geelong"
Which Venue was used when the Home team was geelong?
CREATE TABLE table_name_47 (venue VARCHAR, home_team VARCHAR)
SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed
List the ids of all distinct orders ordered by placed date.
CREATE TABLE orders (order_id VARCHAR, date_order_placed VARCHAR)
SELECT 1981 AS _census FROM table_10138926_1 WHERE city = "Livorno"
What's the 1981 census of Livorno?
CREATE TABLE table_10138926_1 (city VARCHAR)
SELECT street_address FROM table_name_94 WHERE floors = "40"
What is the street address of the building with 40 floors?
CREATE TABLE table_name_94 (street_address VARCHAR, floors VARCHAR)
SELECT date FROM table_name_23 WHERE time = "2:23:47"
What is the Date of the Event with a Time of 2:23:47?
CREATE TABLE table_name_23 (date VARCHAR, time VARCHAR)
SELECT SUM(attendance) FROM table_name_98 WHERE first_downs < 26 AND opponent = "los angeles rams" AND points_for > 28
Which Attendance has a First Downs smaller than 26, an Opponent of los angeles rams, and Points For larger than 28?
CREATE TABLE table_name_98 (attendance INTEGER, points_for VARCHAR, first_downs VARCHAR, opponent VARCHAR)
SELECT february_2010 FROM table_25256368_1 WHERE january_2010 = "6.2%"
Name the feb 2010 for january 2010 for 6.2%
CREATE TABLE table_25256368_1 (february_2010 VARCHAR, january_2010 VARCHAR)
SELECT appointment FROM table_name_79 WHERE credentials_presented = "jul 2, 1969"
What day was the appointment when Credentials Presented was jul 2, 1969?
CREATE TABLE table_name_79 (appointment VARCHAR, credentials_presented VARCHAR)
SELECT directed_by FROM table_23286722_1 WHERE season__number = 2
Name the directed by season # 2
CREATE TABLE table_23286722_1 (directed_by VARCHAR, season__number VARCHAR)
SELECT municipality FROM table_157826_1 WHERE county = "Finnmark" AND population > 6187.0
Which municipalities located in the county of Finnmark have populations bigger than 6187.0?
CREATE TABLE table_157826_1 (municipality VARCHAR, county VARCHAR, population VARCHAR)
SELECT winner FROM table_name_51 WHERE circuit = "winton motor raceway"
Who was the winner for the Winton Motor Raceway circuit?
CREATE TABLE table_name_51 (winner VARCHAR, circuit VARCHAR)
SELECT AVG(driver_wins) FROM table_name_51 WHERE nation = "sweden"
What is the average number of wins of drivers from Sweden?
CREATE TABLE table_name_51 (driver_wins INTEGER, nation VARCHAR)
SELECT power_output FROM table_name_23 WHERE build_date = "1951–1956"
Which power output had a Build date of 1951–1956?
CREATE TABLE table_name_23 (power_output VARCHAR, build_date VARCHAR)
SELECT MAX(Ends) AS lost FROM table_26912584_2
What is the largest amount of ends lost?
CREATE TABLE table_26912584_2 (Ends INTEGER)
SELECT date FROM table_name_58 WHERE goal = 4
What was the date of the game that had a goal of 4?
CREATE TABLE table_name_58 (date VARCHAR, goal VARCHAR)
SELECT report FROM table_10707176_2 WHERE winning_team = "Porsche North America"
What report was there for the porsche north america?
CREATE TABLE table_10707176_2 (report VARCHAR, winning_team VARCHAR)
SELECT SUM(total_region) FROM table_name_2 WHERE year = 1954 AND nebo > 447
What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 447?
CREATE TABLE table_name_2 (total_region INTEGER, year VARCHAR, nebo VARCHAR)
SELECT event FROM table_name_72 WHERE year = 2000
Which event has a year of 2000?
CREATE TABLE table_name_72 (event VARCHAR, year VARCHAR)
SELECT dates_active FROM table_name_93 WHERE deaths = "204"
When was there 204 deaths?
CREATE TABLE table_name_93 (dates_active VARCHAR, deaths VARCHAR)
SELECT record FROM table_name_49 WHERE home = "montreal canadiens" AND date = "april 22"
Which Record has a Home of Montreal Canadiens and a Date of April 22?
CREATE TABLE table_name_49 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT AVG(transaction_amount), MIN(transaction_amount), MAX(transaction_amount), SUM(transaction_amount) FROM Financial_transactions
What is the average, minimum, maximum, and total transaction amount?
CREATE TABLE Financial_transactions (transaction_amount INTEGER)