answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT venue FROM table_name_35 WHERE goals = "h.paul 8/9"
Which venue has h.paul 8/9 goals?
CREATE TABLE table_name_35 (venue VARCHAR, goals VARCHAR)
SELECT home FROM table_name_58 WHERE ground = "humber college north" AND time = "15:00"
What is Home, when Ground is Humber College North, and when Time is 15:00?
CREATE TABLE table_name_58 (home VARCHAR, ground VARCHAR, time VARCHAR)
SELECT name FROM table_name_80 WHERE style = "ballet" AND status = "original cast"
Who had a ballet style with original cast?
CREATE TABLE table_name_80 (name VARCHAR, style VARCHAR, status VARCHAR)
SELECT constructor FROM table_name_2 WHERE rounds = "all" AND engine = "peugeot a12 ev5 3.0 v10"
Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds?
CREATE TABLE table_name_2 (constructor VARCHAR, rounds VARCHAR, engine VARCHAR)
SELECT opponent FROM table_name_61 WHERE week = "3"
I want to know the opponent that ha a week of 3
CREATE TABLE table_name_61 (opponent VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_88 WHERE score = "4 – 5"
How many Attendances have a Score of 4 – 5? Question 4
CREATE TABLE table_name_88 (attendance INTEGER, score VARCHAR)
SELECT MIN(week) FROM table_name_58 WHERE opponent = "atlanta falcons" AND attendance < 63 OFFSET 114
Which Week has an Opponent of atlanta falcons, and an Attendance smaller than 63,114?
CREATE TABLE table_name_58 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_6 WHERE opponent = "philadelphia 76ers"
What is Date, when Opponent is "Philadelphia 76ers"?
CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR)
SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = "24:57"
On the episode that had a run time of 24:57, how many million viewers were there?
CREATE TABLE table_name_5 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT location_attendance FROM table_27700530_14 WHERE date = "April 3"
Where was the game and what was the attendance on April 3?
CREATE TABLE table_27700530_14 (location_attendance VARCHAR, date VARCHAR)
SELECT StuID FROM Student WHERE age > 20
Show all student ids who are older than 20.
CREATE TABLE Student (StuID VARCHAR, age INTEGER)
SELECT 3 AS _dart_average FROM table_20948329_1 WHERE high_checkout = 112
What is the 3-dart average with a high checkout of 112?
CREATE TABLE table_20948329_1 (high_checkout VARCHAR)
SELECT record FROM table_name_3 WHERE visitor = "columbus" AND decision = "denis" AND home = "phoenix"
What is the record for game where Columbus is visitor, Phoenix is home, and decision is made by Denis?
CREATE TABLE table_name_3 (record VARCHAR, home VARCHAR, visitor VARCHAR, decision VARCHAR)
SELECT MAX(martyred) FROM table_name_64 WHERE beatified = 1909 AND name = "john hoan trinh doan / st. john hoan" AND canonised > 1988
When was John Hoan Trinh Doan / St. John Hoan, who was beatified in 1909 and canonised after 1988, martyred?
CREATE TABLE table_name_64 (martyred INTEGER, canonised VARCHAR, beatified VARCHAR, name VARCHAR)
SELECT home FROM table_name_31 WHERE record = "3-2"
For a record of 3-2, what team was home?
CREATE TABLE table_name_31 (home VARCHAR, record VARCHAR)
SELECT census_ranking FROM table_name_93 WHERE area_km_2 < 9.94 AND population < 817
What is the census ranking for the community with an area smaller than 9.94 km2 and a population smaller than 817?
CREATE TABLE table_name_93 (census_ranking VARCHAR, area_km_2 VARCHAR, population VARCHAR)
SELECT cpu_type FROM table_27765443_2 WHERE period_of_operation = "June 2005 - April 2009"
Name the cpu type for june 2005 - april 2009
CREATE TABLE table_27765443_2 (cpu_type VARCHAR, period_of_operation VARCHAR)
SELECT method FROM table_name_55 WHERE location = "brazil"
What is the Method for Brazil?
CREATE TABLE table_name_55 (method VARCHAR, location VARCHAR)
SELECT country FROM table_name_81 WHERE year = 2002
Name the country for 2002
CREATE TABLE table_name_81 (country VARCHAR, year VARCHAR)
SELECT burmese FROM table_14850099_18 WHERE cardinal_direction = "West"
What is the Burmese term associated with a cardinal direction of west?
CREATE TABLE table_14850099_18 (burmese VARCHAR, cardinal_direction VARCHAR)
SELECT save FROM table_name_79 WHERE loss = "moran (1-2)"
What is the save of the game where moran (1-2) lost?
CREATE TABLE table_name_79 (save VARCHAR, loss VARCHAR)
SELECT pos FROM table_name_76 WHERE to_club = "released" AND player = "teerasil dangda"
Teerasil Dangda who had a to club of released plays what position?
CREATE TABLE table_name_76 (pos VARCHAR, to_club VARCHAR, player VARCHAR)
SELECT MAX(games) FROM table_name_41 WHERE points = 32 AND team = "montepaschi siena" AND rank > 4
What is the highest game that has 32 points and a team rank larger than 4 named montepaschi siena
CREATE TABLE table_name_41 (games INTEGER, rank VARCHAR, points VARCHAR, team VARCHAR)
SELECT COUNT(grid) FROM table_name_27 WHERE driver = "pedro de la rosa"
What is Pedro De La Rosa's total number of Grid?
CREATE TABLE table_name_27 (grid VARCHAR, driver VARCHAR)
SELECT 2008 FROM table_name_70 WHERE 2006 = "1r"
What is 2008, when 2006 is "1R"?
CREATE TABLE table_name_70 (Id VARCHAR)
SELECT MAX(round) FROM table_name_91 WHERE player = "darryl fedorak"
What is Darryl Fedorak's highest round?
CREATE TABLE table_name_91 (round INTEGER, player VARCHAR)
SELECT latin_motto FROM table_name_94 WHERE translation = "spouse"
What is the Latin motto of the sign that translates to spouse?
CREATE TABLE table_name_94 (latin_motto VARCHAR, translation VARCHAR)
SELECT team AS captain FROM table_26593762_2 WHERE manager = "Neil Warnock"
Who is the captain of Neil Warnock's team?
CREATE TABLE table_26593762_2 (team VARCHAR, manager VARCHAR)
SELECT yield FROM table_name_69 WHERE purpose = "weapons development" AND location = "nts area u2r"
What is the yield in NTS Area U2R when the purpose is weapons development?
CREATE TABLE table_name_69 (yield VARCHAR, purpose VARCHAR, location VARCHAR)
SELECT to_par FROM table_name_26 WHERE player = "curtis strange"
What is curtis strange's to par?
CREATE TABLE table_name_26 (to_par VARCHAR, player VARCHAR)
SELECT name FROM table_name_87 WHERE lane = 6
What is the name of the swimmer in lane 6?
CREATE TABLE table_name_87 (name VARCHAR, lane VARCHAR)
SELECT COUNT(no_in_series) FROM table_13301516_1 WHERE original_air_date = "April 29, 2008"
How many episodes originally aired on April 29, 2008?
CREATE TABLE table_13301516_1 (no_in_series VARCHAR, original_air_date VARCHAR)
SELECT distance FROM table_2581397_4 WHERE weight__kg_ = "56" AND winner_2nd = "2nd - Fritz"
What was the distance in the race where the weight in kg was 56 and the winner/2nd was 2nd - Fritz?
CREATE TABLE table_2581397_4 (distance VARCHAR, weight__kg_ VARCHAR, winner_2nd VARCHAR)
SELECT date_to_[h_] FROM table_name_38 WHERE position_[f_] = "defender" AND goals < 3 AND appearances > 113 AND date_from_[g_] = "1997"
What is Date to [H], when Position [F] is "Defender", when Goals is less than 3, when Appearances is greater than 113, and when Date From [G] is "1997"?
CREATE TABLE table_name_38 (date_to_ VARCHAR, h_ VARCHAR, appearances VARCHAR, date_from_ VARCHAR, g_ VARCHAR, goals VARCHAR, position_ VARCHAR, f_ VARCHAR)
SELECT LOCATION FROM perpetrator ORDER BY Killed DESC LIMIT 1
What is the location of the perpetrator with the largest kills.
CREATE TABLE perpetrator (LOCATION VARCHAR, Killed VARCHAR)
SELECT vacator FROM table_1802522_4 WHERE district = "Tennessee 1st"
Name the vacator for tennessee 1st
CREATE TABLE table_1802522_4 (vacator VARCHAR, district VARCHAR)
SELECT MAX(week) FROM table_name_1 WHERE date = "november 9, 1997"
What is the highest week of the game on November 9, 1997?
CREATE TABLE table_name_1 (week INTEGER, date VARCHAR)
SELECT burglary FROM table_1818254_1 WHERE violent_crime = "974.7"
How many burglaries occurred in the city where the violent crime rate was 974.7?
CREATE TABLE table_1818254_1 (burglary VARCHAR, violent_crime VARCHAR)
SELECT SUM(bronze) FROM table_name_27 WHERE nation = "puerto rico" AND total < 1
What is the total bronze from Puerto Rico with a total of less than 1?
CREATE TABLE table_name_27 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT MIN(laps) FROM table_name_60 WHERE time_retired = "+ 3:27.3" AND grid > 16
What is the low lap total for a grid larger than 16 and has a Time/Retired of + 3:27.3?
CREATE TABLE table_name_60 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT result FROM table_name_59 WHERE opponent = "tampa bay buccaneers"
Who one in the Tampa Bay Buccaneers?
CREATE TABLE table_name_59 (result VARCHAR, opponent VARCHAR)
SELECT MIN(lost) FROM table_name_72 WHERE team = "kirkby town" AND goals_for > 83
What is Kirkby Town's lowest lost with more than 83 goals?
CREATE TABLE table_name_72 (lost INTEGER, team VARCHAR, goals_for VARCHAR)
SELECT semi_finalists FROM table_name_81 WHERE runner_up = "alexia dechaume-balleret sandrine testud"
Who were the semi finalists when Alexia Dechaume-Balleret Sandrine testud was the runner-up?
CREATE TABLE table_name_81 (semi_finalists VARCHAR, runner_up VARCHAR)
SELECT SUM(year) FROM table_name_10 WHERE competition = "olympic games"
What year were the Olympic Games?
CREATE TABLE table_name_10 (year INTEGER, competition VARCHAR)
SELECT player FROM table_name_62 WHERE to_par = "–3" AND score = 73 - 68 = 141
what player has To par of –3, and a Score of 73-68=141?
CREATE TABLE table_name_62 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT report FROM table_name_10 WHERE ages = "2-17"
What is the Report for the School for Ages of 2-17?
CREATE TABLE table_name_10 (report VARCHAR, ages VARCHAR)
SELECT COUNT(penalties) FROM table_20505342_1 WHERE conversions = 29
How many seasons featured 29 conversions?
CREATE TABLE table_20505342_1 (penalties VARCHAR, conversions VARCHAR)
SELECT silver FROM table_name_86 WHERE notes = "6.24km, 23controls"
What is Silver, when Notes is "6.24km, 23controls"?
CREATE TABLE table_name_86 (silver VARCHAR, notes VARCHAR)
SELECT date FROM table_name_66 WHERE country = "japan"
Which date was for Japan?
CREATE TABLE table_name_66 (date VARCHAR, country VARCHAR)
SELECT date FROM table_name_53 WHERE home = "hornets"
Which date had the Hornets as the home team?
CREATE TABLE table_name_53 (date VARCHAR, home VARCHAR)
SELECT driver FROM table_name_38 WHERE grid > 11 AND laps > 52
Which driver has a grid value larger than 11, and drove more than 52 laps?
CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT margin_of_victory FROM table_name_19 WHERE runner_s__up = "mark o'meara"
Which Margin of victory has a Runner(s)-up of mark o'meara?
CREATE TABLE table_name_19 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT 1821 FROM table_name_30 WHERE 1861 = "3733"
Name the 1821 with 1861 of 3733
CREATE TABLE table_name_30 (Id VARCHAR)
SELECT SUM(year) FROM table_name_87 WHERE cause = "firedamp" AND death_toll > 11
Which Year has a cause of firedamp and a Death toll larger than 11?
CREATE TABLE table_name_87 (year INTEGER, cause VARCHAR, death_toll VARCHAR)
SELECT MAX(tournaments) FROM table_name_13 WHERE pro_debut = "july 2002"
What is the highest Tournaments, when Pro Debut is "July 2002"?
CREATE TABLE table_name_13 (tournaments INTEGER, pro_debut VARCHAR)
SELECT COUNT(science) FROM table_2534578_1 WHERE mathematics = "98.02"
How many years did the school have a mathetmatics score of 98.02?
CREATE TABLE table_2534578_1 (science VARCHAR, mathematics VARCHAR)
SELECT rank FROM table_name_82 WHERE player = "bill ponsford (vic)"
What rank has Bill Ponsford (vic) as the player?
CREATE TABLE table_name_82 (rank VARCHAR, player VARCHAR)
SELECT shield_animal FROM table_name_57 WHERE knight = "phil"
What is the shield animal of knight phil?
CREATE TABLE table_name_57 (shield_animal VARCHAR, knight VARCHAR)
SELECT best_finish FROM table_10021158_3 WHERE scoring_rank = "117"
When the scoring rank was 117, what was the best finish?
CREATE TABLE table_10021158_3 (best_finish VARCHAR, scoring_rank VARCHAR)
SELECT date FROM table_name_46 WHERE home_team = "footscray"
What was the date of the footscray home game?
CREATE TABLE table_name_46 (date VARCHAR, home_team VARCHAR)
SELECT opponent FROM table_name_89 WHERE date = "sun, sept 9"
Can you tell me the Opponent that has the Date of sun, sept 9?
CREATE TABLE table_name_89 (opponent VARCHAR, date VARCHAR)
SELECT drawn FROM table_name_54 WHERE percentage = "100.00%" AND played = 7
how many draws are there when percentage is 100.00% and played is 7?
CREATE TABLE table_name_54 (drawn VARCHAR, percentage VARCHAR, played VARCHAR)
SELECT distance FROM table_name_69 WHERE date = "5 september"
What is the distance for the 5 September race?
CREATE TABLE table_name_69 (distance VARCHAR, date VARCHAR)
SELECT record FROM table_name_8 WHERE date = "august 4"
What was the team's record on August 4?
CREATE TABLE table_name_8 (record VARCHAR, date VARCHAR)
SELECT points__percentage FROM table_name_29 WHERE total_w_l_h = "1-2-2"
WHAT IS THE POINTS PERCENTAGE WITH A TOTAL OF 1-2-2 RECORD?
CREATE TABLE table_name_29 (points__percentage VARCHAR, total_w_l_h VARCHAR)
SELECT away_team FROM table_name_52 WHERE home_team = "collingwood"
When Collingwood was the home team who was the opposing away team?
CREATE TABLE table_name_52 (away_team VARCHAR, home_team VARCHAR)
SELECT pitcher FROM table_name_55 WHERE inn = "7th"
Who was the pitcher with the record recorded in the 7th inning?
CREATE TABLE table_name_55 (pitcher VARCHAR, inn VARCHAR)
SELECT region FROM table_name_33 WHERE date = "december 7, 2004"
Name the region for december 7, 2004
CREATE TABLE table_name_33 (region VARCHAR, date VARCHAR)
SELECT AVG(opened) FROM table_name_40 WHERE line_name = "line e" AND last_extension < 2003
What is the average opened year of line e, which had their last extension before 2003?
CREATE TABLE table_name_40 (opened INTEGER, line_name VARCHAR, last_extension VARCHAR)
SELECT AVG(total_points) FROM table_name_29 WHERE matches = 34 AND rides = 111 AND bonus_pts > 15
What is the total for 34 matches with 111 rides, but no more than 15 bonus points?
CREATE TABLE table_name_29 (total_points INTEGER, bonus_pts VARCHAR, matches VARCHAR, rides VARCHAR)
SELECT COUNT(*) FROM Student WHERE sex = "M" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food")
Find the number of male (sex is 'M') students who have some food type allery.
CREATE TABLE Has_allergy (Allergy VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Student (sex VARCHAR, StuID VARCHAR)
SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Hittite Old Kingdom , Minoan eruption"
When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age?
CREATE TABLE table_23537091_1 (copper_age VARCHAR, ubaid_period_in_mesopotamia VARCHAR)
SELECT trainer FROM table_name_50 WHERE odds = "6/1"
Who has 6/1 odds?
CREATE TABLE table_name_50 (trainer VARCHAR, odds VARCHAR)
SELECT city FROM table_name_40 WHERE iata = "ssg"
Which city has the IATA SSG?
CREATE TABLE table_name_40 (city VARCHAR, iata VARCHAR)
SELECT opponent FROM table_name_47 WHERE date = "2006-04-08"
Who was the opponent of the match on 2006-04-08?
CREATE TABLE table_name_47 (opponent VARCHAR, date VARCHAR)
SELECT player FROM table_name_33 WHERE country = "united states" AND total = 297
What player from the United States had a total of 297?
CREATE TABLE table_name_33 (player VARCHAR, country VARCHAR, total VARCHAR)
SELECT T3.dept_name, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'
What is department name and office for the professor whose last name is Heffington?
CREATE TABLE employee (emp_num VARCHAR, emp_lname VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR)
SELECT position FROM table_22402438_7 WHERE player = "Bernie Doan"
Which position is player bernie doan?
CREATE TABLE table_22402438_7 (position VARCHAR, player VARCHAR)
SELECT employee__real_name_ FROM table_name_9 WHERE pick__number > 10 AND brand__to_ = "raw"
what is the employee (real name) when the pick # is higher than 10 and the brand (to) is raw?
CREATE TABLE table_name_9 (employee__real_name_ VARCHAR, pick__number VARCHAR, brand__to_ VARCHAR)
SELECT nationality FROM table_name_18 WHERE school_club_team = "duke"
What is the nationality of the player from Duke?
CREATE TABLE table_name_18 (nationality VARCHAR, school_club_team VARCHAR)
SELECT country FROM table_name_10 WHERE music = "nino oliviero"
What country is the film that has music of nino oliviero?
CREATE TABLE table_name_10 (country VARCHAR, music VARCHAR)
SELECT COUNT(week) FROM table_name_99 WHERE record = "1–0"
What is the total number of weeks that the Steelers had a record of 1–0?
CREATE TABLE table_name_99 (week VARCHAR, record VARCHAR)
SELECT label FROM table_name_77 WHERE catalog = "alca-9197"
What label is the ALCA-9197 Catalog?
CREATE TABLE table_name_77 (label VARCHAR, catalog VARCHAR)
SELECT tries_against FROM table_17675675_2 WHERE points_for = "667"
With the given points of 667, what was the number of tries against?
CREATE TABLE table_17675675_2 (tries_against VARCHAR, points_for VARCHAR)
SELECT county_team FROM table_name_88 WHERE player = "jimmy finn"
Which county team has jimmy finn as the player?
CREATE TABLE table_name_88 (county_team VARCHAR, player VARCHAR)
SELECT radio_station_production_company FROM table_name_73 WHERE role = "interviewee & monologues"
Radio Station/Production Company that has a Role of interviewee & monologues is what radio station?
CREATE TABLE table_name_73 (radio_station_production_company VARCHAR, role VARCHAR)
SELECT party FROM table_2668264_22 WHERE incumbent = "Joel R. Poinsett"
What party does joel r. poinsett represent?
CREATE TABLE table_2668264_22 (party VARCHAR, incumbent VARCHAR)
SELECT AVG(to_par) FROM table_name_52 WHERE score = 78 - 74 - 71 - 75 = 298
Which To par has a Score of 78-74-71-75=298?
CREATE TABLE table_name_52 (to_par INTEGER, score VARCHAR)
SELECT COUNT(gold) FROM table_name_92 WHERE bronze > 11 AND total = 29
How many golds were there when there was more than 11 bronze and 29 in total?
CREATE TABLE table_name_92 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT location FROM table_25840200_1 WHERE notes = "Undercard of Stevenson/Bellew"
Where was the Undercard of Stevenson/Bellew?
CREATE TABLE table_25840200_1 (location VARCHAR, notes VARCHAR)
SELECT overall_rank FROM table_11354111_3 WHERE viewers__m_ = "7.44"
what's the overall rank with viewers (m) of 7.44
CREATE TABLE table_11354111_3 (overall_rank VARCHAR, viewers__m_ VARCHAR)
SELECT class FROM table_name_16 WHERE chassis = "mazda 787b"
Which Class has a Chassis of Mazda 787B?
CREATE TABLE table_name_16 (class VARCHAR, chassis VARCHAR)
SELECT original_airdate FROM table_name_26 WHERE youtube_hero = "greg pattillo"
What is the Original Airdate for the YouTube Hero greg pattillo?
CREATE TABLE table_name_26 (original_airdate VARCHAR, youtube_hero VARCHAR)
SELECT pos FROM table_name_40 WHERE player = "brian butch"
What position does Brian Butch play?
CREATE TABLE table_name_40 (pos VARCHAR, player VARCHAR)
SELECT AVG(tries) FROM table_name_79 WHERE player = "mike forshaw" AND points < 28
What is the average number of Tries with less than 28 Points for Mike Forshaw?
CREATE TABLE table_name_79 (tries INTEGER, player VARCHAR, points VARCHAR)
SELECT year FROM table_name_63 WHERE nominee = "mary elizabeth mastrantonio"
What year was Mary Elizabeth Mastrantonio nominated?
CREATE TABLE table_name_63 (year VARCHAR, nominee VARCHAR)
SELECT team FROM table_name_14 WHERE name = "garth tander"
What team features garth tander?
CREATE TABLE table_name_14 (team VARCHAR, name VARCHAR)
SELECT tournament_winner FROM table_28884880_4 WHERE conference = "Southwestern Athletic conference"
Who was the tournament winner in the Southwestern Athletic Conference?
CREATE TABLE table_28884880_4 (tournament_winner VARCHAR, conference VARCHAR)
SELECT college_team FROM table_name_18 WHERE round < 2 AND nationality = "united states"
What is College/Team, when Round is less than 2, and when Nationality is "United States"?
CREATE TABLE table_name_18 (college_team VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT COUNT(DISTINCT Status) FROM city
How many different statuses do cities have?
CREATE TABLE city (Status VARCHAR)