answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(established) FROM table_name_57 WHERE venue = "brian timmis stadium"
What is the Established date of the Brian Timmis Stadium?
CREATE TABLE table_name_57 (established VARCHAR, venue VARCHAR)
SELECT class FROM table_name_39 WHERE part_4 = "*rādanaz"
What was the class when part 4 was *rādanaz?
CREATE TABLE table_name_39 (class VARCHAR, part_4 VARCHAR)
SELECT winner FROM table_name_89 WHERE _number_of_weeks < 13 AND third_place = "robert kudelski"
Who won when robert kudelski finished with under 13 weeks?
CREATE TABLE table_name_89 (winner VARCHAR, _number_of_weeks VARCHAR, third_place VARCHAR)
SELECT results¹ FROM table_name_12 WHERE type_of_game = "friendly" AND date = "june 25"
What is the Results¹ that was a friendly game and played on June 25?
CREATE TABLE table_name_12 (results¹ VARCHAR, type_of_game VARCHAR, date VARCHAR)
SELECT mlb_draft FROM table_11677100_12 WHERE hometown = "Opa-locka, FL"
Who were the MLB draft with the hometown Opa-locka, Fl?
CREATE TABLE table_11677100_12 (mlb_draft VARCHAR, hometown VARCHAR)
SELECT MAX(win__number) FROM table_name_87 WHERE winner = "knoxville cherokees" AND playoff_result = "lost 1st round ( lou )" AND points < 94
What is the highest Win #, when Winner is "Knoxville Cherokees", when Playoff Result is "Lost 1st Round ( LOU )", and when Points is less than 94?
CREATE TABLE table_name_87 (win__number INTEGER, points VARCHAR, winner VARCHAR, playoff_result VARCHAR)
SELECT report FROM table_name_67 WHERE circuit = "mosport park"
What's the report for the mosport park circuit?
CREATE TABLE table_name_67 (report VARCHAR, circuit VARCHAR)
SELECT timeslot FROM table_15358729_6 WHERE season = 3
What is the show's time slot during season 3?
CREATE TABLE table_15358729_6 (timeslot VARCHAR, season VARCHAR)
SELECT player FROM table_name_45 WHERE position = "d" AND team_from = "hotchkiss school"
Who is the player from Hotchkiss School with a position of d?
CREATE TABLE table_name_45 (player VARCHAR, position VARCHAR, team_from VARCHAR)
SELECT home__2nd_leg_ FROM table_name_59 WHERE aggregate = "2-3"
What was the home team for the 2nd leg of the match having an aggregate of 2-3?
CREATE TABLE table_name_59 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)
SELECT MAX(population_millions) FROM table_name_55 WHERE influence = 1.02
What is the highest population in the millions that has an influence of 1.02?
CREATE TABLE table_name_55 (population_millions INTEGER, influence VARCHAR)
SELECT Name FROM wrestler WHERE NOT Wrestler_ID IN (SELECT Wrestler_ID FROM elimination)
List the names of wrestlers that have not been eliminated.
CREATE TABLE elimination (Name VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR)
SELECT Total FROM body_builder ORDER BY Total
List the total scores of body builders in ascending order.
CREATE TABLE body_builder (Total VARCHAR)
SELECT hand_guards FROM table_name_1 WHERE barrel_profile = "a2" AND rear_sight = "weaver"
Which Hand guards has a Barrel profile of a2 and a Rear sight of weaver?
CREATE TABLE table_name_1 (hand_guards VARCHAR, barrel_profile VARCHAR, rear_sight VARCHAR)
SELECT duration FROM table_10416547_1 WHERE major_instrument_s_ = "Piano" AND date = "2004-02-03"
What is the duration of the song where the major instrument is the piano and the date is 2004-02-03?
CREATE TABLE table_10416547_1 (duration VARCHAR, major_instrument_s_ VARCHAR, date VARCHAR)
SELECT race_4 FROM table_name_55 WHERE race_3 = "dns" AND race_2 = "27"
What's the value for race 4 when race 3 is dns and race 2 is 27?
CREATE TABLE table_name_55 (race_4 VARCHAR, race_3 VARCHAR, race_2 VARCHAR)
SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1
Show the detail of vehicle with id 1.
CREATE TABLE Vehicles (vehicle_details VARCHAR, vehicle_id VARCHAR)
SELECT real_life_eventual_outcome FROM table_243664_1 WHERE currently¹_part_of = "Amtrak"
Name the real life for eventual outcome is amtrak
CREATE TABLE table_243664_1 (real_life_eventual_outcome VARCHAR, currently¹_part_of VARCHAR)
SELECT builder FROM table_142159_1 WHERE location = "Irton Road shed"
Who is the builder for the location Irton Road shed
CREATE TABLE table_142159_1 (builder VARCHAR, location VARCHAR)
SELECT T3.course_name, COUNT(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id
How many registed students do each course have? List course name and the number of their registered students?
CREATE TABLE students (student_id VARCHAR); CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR)
SELECT record FROM table_name_72 WHERE nationality = "bahamas" AND games = "2012 hamilton"
What is the Record of the 2012 Hamilton Games from Bahamas?
CREATE TABLE table_name_72 (record VARCHAR, nationality VARCHAR, games VARCHAR)
SELECT COUNT(season) FROM table_name_58 WHERE viewer_rank___number_ = "#4"
What season had a viewer rank of #4?
CREATE TABLE table_name_58 (season VARCHAR, viewer_rank___number_ VARCHAR)
SELECT class FROM table_name_90 WHERE call_sign = "w269ax"
what is the class of w269ax
CREATE TABLE table_name_90 (class VARCHAR, call_sign VARCHAR)
SELECT result FROM table_13700749_1 WHERE film_title = "Life, Above All"
What was the result for the film life, above all?
CREATE TABLE table_13700749_1 (result VARCHAR, film_title VARCHAR)
SELECT occupation FROM table_name_71 WHERE rank = "5th" AND gender = "m" AND residence = "orono"
Which Occupation has a Rank of 5th, a Gender of M, with a Residence of orono?
CREATE TABLE table_name_71 (occupation VARCHAR, residence VARCHAR, rank VARCHAR, gender VARCHAR)
SELECT pitcher FROM table_19864214_3 WHERE seasons = "1982, 1984, 1985, 1987, 1988, 1989"
who was the pitcher in seasons 1982, 1984, 1985, 1987, 1988, 1989
CREATE TABLE table_19864214_3 (pitcher VARCHAR, seasons VARCHAR)
SELECT AVG(wins) FROM table_name_1 WHERE class = "250cc" AND year = 1972
Count the average Wins which has a Class of 250cc, and a Year of 1972?
CREATE TABLE table_name_1 (wins INTEGER, class VARCHAR, year VARCHAR)
SELECT MAX(number_of_major_hurricanes) FROM table_2930244_3
What is the largest overall number of major hurricanes?
CREATE TABLE table_2930244_3 (number_of_major_hurricanes INTEGER)
SELECT birth FROM table_name_2 WHERE death = "october 1389"
WHAT IS THE BIRTH DATE WITH A DEATH OF OCTOBER 1389?
CREATE TABLE table_name_2 (birth VARCHAR, death VARCHAR)
SELECT rank FROM table_name_95 WHERE director_s_ = "maximilian jezo-parovsky"
What Rank is the director of maximilian jezo-parovsky?
CREATE TABLE table_name_95 (rank VARCHAR, director_s_ VARCHAR)
SELECT MAX(championships) FROM table_name_48 WHERE league = "evergreen premier league"
How many championships does Evergreen Premier League have?
CREATE TABLE table_name_48 (championships INTEGER, league VARCHAR)
SELECT constructor FROM table_name_78 WHERE chassis = "talbot-lago t26c" AND driver = "charles pozzi"
Who is the constructor when the chassis is talbot-lago t26c and the driver is charles pozzi?
CREATE TABLE table_name_78 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT end_date FROM table_name_99 WHERE to_club = "celtic"
A player was moved to celtic had an end of what date?
CREATE TABLE table_name_99 (end_date VARCHAR, to_club VARCHAR)
SELECT location FROM table_name_47 WHERE length___m__ = "63"
Where is the longest arch with a length in meters of 63?
CREATE TABLE table_name_47 (location VARCHAR, length___m__ VARCHAR)
SELECT original_air_date FROM table_16390576_3 WHERE production_code = "08-02-214"
what are the air dates for episodes with the production code 08-02-214
CREATE TABLE table_16390576_3 (original_air_date VARCHAR, production_code VARCHAR)
SELECT MIN(episode) FROM table_2140071_12 WHERE coach = "Donnie Klang"
Name the least episode for donnie klang
CREATE TABLE table_2140071_12 (episode INTEGER, coach VARCHAR)
SELECT DISTINCT T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T2.velocity < 200
What are the distinct types of the companies that have operated any flights with velocity less than 200?
CREATE TABLE flight (Id VARCHAR); CREATE TABLE operate_company (type VARCHAR, id VARCHAR)
SELECT surface FROM table_24074130_5 WHERE against = "Sweden"
What is every surface against Sweden?
CREATE TABLE table_24074130_5 (surface VARCHAR, against VARCHAR)
SELECT aspect_ratio FROM table_15928363_1 WHERE horizontal = 720
Name the aspect ratio for 720
CREATE TABLE table_15928363_1 (aspect_ratio VARCHAR, horizontal VARCHAR)
SELECT AVG(issue_price) FROM table_name_73 WHERE special_notes = "from toronto maple leafs gift set" AND mintage = "3527"
What is the average issue price with from Toronto maple leafs gift set, and a Mintage of 3527?
CREATE TABLE table_name_73 (issue_price INTEGER, special_notes VARCHAR, mintage VARCHAR)
SELECT COUNT(knots) FROM table_name_11 WHERE ship = "ms moby vincent" AND passengers < 1.6
How many knots did the Ms Moby Vincent have when passengers was less than 1.6?
CREATE TABLE table_name_11 (knots VARCHAR, ship VARCHAR, passengers VARCHAR)
SELECT MIN(rank) FROM table_21100348_10 WHERE player = "Michael Bevan"
What was the smallest numbered rank for Michael Bevan?
CREATE TABLE table_21100348_10 (rank INTEGER, player VARCHAR)
SELECT tournament FROM table_29296103_10 WHERE week_of = "24 October" AND champion = "Matt Doyle 1–6, 6–1, 6–2"
Which tournament was on the week of 24 october and champion is matt doyle 1–6, 6–1, 6–2?
CREATE TABLE table_29296103_10 (tournament VARCHAR, week_of VARCHAR, champion VARCHAR)
SELECT AVG(top_10) FROM table_name_42 WHERE wins < 1 AND top_25 = 5 AND cuts_made < 10
Tell me the average top 10 for cuts made less than 10, wins less than 1 and top 25 of 5
CREATE TABLE table_name_42 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR, top_25 VARCHAR)
SELECT character FROM table_name_13 WHERE actor = "nadine spruß"
How long did the soap opera run in which Nadine Spruß acted in?
CREATE TABLE table_name_13 (character VARCHAR, actor VARCHAR)
SELECT MAX(total) FROM table_name_82 WHERE nation = "algeria" AND bronze > 2
What is the high total for algeria with over 2 bronzes?
CREATE TABLE table_name_82 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT COUNT(province) FROM table_1888051_1 WHERE area__km²_ = "1605.35"
when area (km²) is 1605.35, how many provinces are there?
CREATE TABLE table_1888051_1 (province VARCHAR, area__km²_ VARCHAR)
SELECT time FROM table_name_94 WHERE epicenter = "bam"
What is the Time when the Epicenter was Bam?
CREATE TABLE table_name_94 (time VARCHAR, epicenter VARCHAR)
SELECT MAX(round) FROM table_name_53 WHERE name = "anthony gonzalez"
what is the highest round for anthony gonzalez?
CREATE TABLE table_name_53 (round INTEGER, name VARCHAR)
SELECT country FROM table_name_38 WHERE total < 136.1 AND solar = 0.02
What country has a less than 136.1 total and a 0.02 solar?
CREATE TABLE table_name_38 (country VARCHAR, total VARCHAR, solar VARCHAR)
SELECT system FROM table_2296507_1 WHERE constellation = "Aries"
Name the system for aries
CREATE TABLE table_2296507_1 (system VARCHAR, constellation VARCHAR)
SELECT builder FROM table_20236726_2 WHERE wd_no = 22
Name the builder for wd number being 22
CREATE TABLE table_20236726_2 (builder VARCHAR, wd_no VARCHAR)
SELECT MAX(modified_speed__6th_gear_) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "98"
when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98
CREATE TABLE table_19704392_1 (modified_speed__6th_gear_ INTEGER, standard_speed__6th_gear_ VARCHAR)
SELECT nationality FROM table_11545282_12 WHERE player = "Jim Les"
Which country is Jim Les from?
CREATE TABLE table_11545282_12 (nationality VARCHAR, player VARCHAR)
SELECT county FROM table_name_85 WHERE mascot = "red ramblers"
What counties mascot are the Red Ramblers?
CREATE TABLE table_name_85 (county VARCHAR, mascot VARCHAR)
SELECT date__ddmmyyyy_ FROM table_229917_2 WHERE tail_number = "RA-85282"
When did the airplane with tail number RA-85282 crash?
CREATE TABLE table_229917_2 (date__ddmmyyyy_ VARCHAR, tail_number VARCHAR)
SELECT date FROM table_name_37 WHERE result = "7–20"
Which Date had a Result of 7–20?
CREATE TABLE table_name_37 (date VARCHAR, result VARCHAR)
SELECT production_code FROM table_25604014_9 WHERE written_by = "Theresa Rebeck"
Name the production code for theresa rebeck
CREATE TABLE table_25604014_9 (production_code VARCHAR, written_by VARCHAR)
SELECT result FROM table_name_77 WHERE first_elected = "1884" AND incumbent = "joseph mckenna"
What was the result for incumbent Joseph McKenna who was first elected in 1884?
CREATE TABLE table_name_77 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT opponent FROM table_name_38 WHERE score = "5–4 (11)"
What team was the opponent when there was a score of 5–4 (11)?
CREATE TABLE table_name_38 (opponent VARCHAR, score VARCHAR)
SELECT winner FROM table_name_63 WHERE college = "connecticut" AND hometown = "north syracuse, ny"
Who is the winner who attended college at Connecticut and is from North Syracuse, NY?
CREATE TABLE table_name_63 (winner VARCHAR, college VARCHAR, hometown VARCHAR)
SELECT surface FROM table_name_31 WHERE opponent = "jiří vaněk"
What is Surface, when Opponent is "Jiří Vaněk"?
CREATE TABLE table_name_31 (surface VARCHAR, opponent VARCHAR)
SELECT home FROM table_name_49 WHERE attendance = 2709
Who was the home team during the match where there were 2709 in attendance?
CREATE TABLE table_name_49 (home VARCHAR, attendance VARCHAR)
SELECT name FROM table_name_50 WHERE direction = "bi-directional" AND terminus = "ecat/rosa park transit center"
Which bi-directional route has a terminus at Ecat/Rosa Park Transit Center?
CREATE TABLE table_name_50 (name VARCHAR, direction VARCHAR, terminus VARCHAR)
SELECT opponent FROM table_1341568_6 WHERE district = "California 9"
Who are the opponents in district California 9?
CREATE TABLE table_1341568_6 (opponent VARCHAR, district VARCHAR)
SELECT MIN(game) FROM table_27755603_10 WHERE location_attendance = "The Palace of Auburn Hills 15,166"
What was the game number when the location attendance was the Palace of Auburn Hills 15,166?
CREATE TABLE table_27755603_10 (game INTEGER, location_attendance VARCHAR)
SELECT SUM(bronze) FROM table_name_91 WHERE total > 27
What is the sum of Bronze when the total is more than 27?
CREATE TABLE table_name_91 (bronze INTEGER, total INTEGER)
SELECT COUNT(opponents) FROM table_16710971_2 WHERE record = "6-4"
How many opponents were there for the game recorded as 6-4 in the Atlanta Falcons 1978 season?
CREATE TABLE table_16710971_2 (opponents VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_73 WHERE club = "essendon" AND score = "13.4.82"
Which opponent has a Club of essendon, and a Score of 13.4.82?
CREATE TABLE table_name_73 (opponent VARCHAR, club VARCHAR, score VARCHAR)
SELECT chipset FROM table_name_97 WHERE graphics = "pci express" AND model = "precision t3400"
What type of chipset is in the Precision t3400 model with the PCI Express graphics?
CREATE TABLE table_name_97 (chipset VARCHAR, graphics VARCHAR, model VARCHAR)
SELECT season FROM table_name_87 WHERE pld = "36" AND div = "bbl" AND pos = "6th"
What season has 36 pld, a bbl div, and 6th position?
CREATE TABLE table_name_87 (season VARCHAR, pos VARCHAR, pld VARCHAR, div VARCHAR)
SELECT 4 AS th_placed FROM table_21808535_1 WHERE winner = "Greg Hancock"
Who placed fourth when the winner was Greg Hancock?
CREATE TABLE table_21808535_1 (winner VARCHAR)
SELECT MAX(season__number) FROM table_29102100_1 WHERE prod_code = 334
What number episode in the season had a production code of 334?
CREATE TABLE table_29102100_1 (season__number INTEGER, prod_code VARCHAR)
SELECT date FROM table_name_42 WHERE result = "0–0"
Which Date has a Result of 0–0?
CREATE TABLE table_name_42 (date VARCHAR, result VARCHAR)
SELECT moving_parts FROM table_name_74 WHERE technology = "lead-acid"
What are the moving parts of lead-acid?
CREATE TABLE table_name_74 (moving_parts VARCHAR, technology VARCHAR)
SELECT fatalities FROM table_name_60 WHERE tail_number = "unknown"
How many fatalities occurred for an unknown tail number?
CREATE TABLE table_name_60 (fatalities VARCHAR, tail_number VARCHAR)
SELECT builder FROM table_20236726_2 WHERE serial_no = 377
Name the builder for serial number being 377
CREATE TABLE table_20236726_2 (builder VARCHAR, serial_no VARCHAR)
SELECT second_runner_up FROM table_name_46 WHERE miss_universe_philippines = "bianca manalo"
When Bianca Manalo won Miss Universe Philippines who was the second runner-up?
CREATE TABLE table_name_46 (second_runner_up VARCHAR, miss_universe_philippines VARCHAR)
SELECT score FROM table_name_76 WHERE game > 2 AND opponent = "indians"
What is the score against the indians after game 2?
CREATE TABLE table_name_76 (score VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT MIN(goals_for) FROM table_name_72 WHERE played > 30
What is the goals for when played is larger than 30?
CREATE TABLE table_name_72 (goals_for INTEGER, played INTEGER)
SELECT AVG(week) FROM table_name_54 WHERE date = "august 10, 1956"
In what week was the game on August 10, 1956 played?
CREATE TABLE table_name_54 (week INTEGER, date VARCHAR)
SELECT plant_patent_number FROM table_name_63 WHERE habit = "standard" AND mutated_from = "yakata 7001"
What's the patent number when it was mutated from Yakata 7001 and a standard habit?
CREATE TABLE table_name_63 (plant_patent_number VARCHAR, habit VARCHAR, mutated_from VARCHAR)
SELECT opponent FROM table_14563349_11 WHERE location = "Riverfront Stadium"
Who was the opposing team played at Riverfront Stadium?
CREATE TABLE table_14563349_11 (opponent VARCHAR, location VARCHAR)
SELECT 2008 FROM table_name_54 WHERE 2010 = "1r" AND 2007 = "a" AND 2009 = "1r"
What 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009?
CREATE TABLE table_name_54 (Id VARCHAR)
SELECT T1.FacID, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID
Show the faculty id of each faculty member, along with the number of students he or she advises.
CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR)
SELECT MAX(round) FROM table_11803648_22 WHERE club_team = "Guelph Storm (OHL)"
What is the last round with club team Guelph Storm (ohl)?
CREATE TABLE table_11803648_22 (round INTEGER, club_team VARCHAR)
SELECT akkadian FROM table_26919_7 WHERE geez = "libb"
if the geez is libb, what is the akkadian?
CREATE TABLE table_26919_7 (akkadian VARCHAR, geez VARCHAR)
SELECT COUNT(long) FROM table_name_30 WHERE avg_g > 0.2 AND loss < 2 AND gain < 8
What's the total long for an avg/g over 0.2, fewer than 2 loss, and a gain less than 8?
CREATE TABLE table_name_30 (long VARCHAR, gain VARCHAR, avg_g VARCHAR, loss VARCHAR)
SELECT date FROM table_name_13 WHERE course = "moena to aprica"
What date was moena to aprica the course?
CREATE TABLE table_name_13 (date VARCHAR, course VARCHAR)
SELECT player FROM table_name_45 WHERE score = 71 - 72 = 143 AND country = "spain"
Which player had the score 71-72=143 in Spain?
CREATE TABLE table_name_45 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT 2006 FROM table_name_73 WHERE 2010 = "107"
What is the result for 2006 of a tournament that is 107 in 2010?
CREATE TABLE table_name_73 (Id VARCHAR)
SELECT finish FROM table_name_11 WHERE qual = "159.384"
What is the number of finish of the Qual of 159.384?
CREATE TABLE table_name_11 (finish VARCHAR, qual VARCHAR)
SELECT venue FROM table_name_89 WHERE competition = "friendly" AND date = "october 16, 2012"
Name the venue for friendly competition october 16, 2012
CREATE TABLE table_name_89 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT player FROM table_name_21 WHERE total < 11 AND tally = "0-9"
Which Player has a Total smaller than 11, and a Tally of 0-9?
CREATE TABLE table_name_21 (player VARCHAR, total VARCHAR, tally VARCHAR)
SELECT MAX(attendance) FROM table_name_89 WHERE record = "80-81"
Of the games with a record of 80-81, what was the highest attendance?
CREATE TABLE table_name_89 (attendance INTEGER, record VARCHAR)
SELECT icao FROM table_name_62 WHERE iata = "ccu"
Name the ICAO for IATA of ccu
CREATE TABLE table_name_62 (icao VARCHAR, iata VARCHAR)
SELECT estimated_value FROM table_1217448_1 WHERE cover_date = "August 1962"
what's the estimated value where cover date is august 1962
CREATE TABLE table_1217448_1 (estimated_value VARCHAR, cover_date VARCHAR)
SELECT AVG(attendance) FROM table_name_58 WHERE visitor = "montreal" AND decision = "price"
What was the average attendance when the decision was price and montreal were the visitors?
CREATE TABLE table_name_58 (attendance INTEGER, visitor VARCHAR, decision VARCHAR)
SELECT COUNT(round) FROM table_name_1 WHERE position = "defensive tackle" AND pick__number < 19
In what Round was a Defensive Tackle Pick # less than 19?
CREATE TABLE table_name_1 (round VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT score FROM table_23944006_4 WHERE championship = "San Diego"
Name the score for san diego
CREATE TABLE table_23944006_4 (score VARCHAR, championship VARCHAR)