answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT opponent FROM table_name_89 WHERE h_a_n = "h" AND score = "120-99"
What is the Opponent of the game with a H/A/N of H and Score of 120-99?
CREATE TABLE table_name_89 (opponent VARCHAR, h_a_n VARCHAR, score VARCHAR)
SELECT player FROM table_name_84 WHERE s_wicket = "48"
Which player has a s wicket at 48?
CREATE TABLE table_name_84 (player VARCHAR, s_wicket VARCHAR)
SELECT voltage_center__v_ FROM table_name_71 WHERE input_clock__mhz_ = "25 x 3" AND part_number = "a80486dx4-75"
Which Voltage Center (V) has an Input Clock (MHz) of 25 x 3, and a Part Number of a80486dx4-75?
CREATE TABLE table_name_71 (voltage_center__v_ VARCHAR, input_clock__mhz_ VARCHAR, part_number VARCHAR)
SELECT years FROM table_179174_2 WHERE flights = "134 Orbital"
What years had 134 orbital flights?
CREATE TABLE table_179174_2 (years VARCHAR, flights VARCHAR)
SELECT year_joined FROM table_name_66 WHERE school = "hagerstown"
What's the year that Hagerstown joined?
CREATE TABLE table_name_66 (year_joined VARCHAR, school VARCHAR)
SELECT MIN(week) FROM table_name_72 WHERE game_site = "ralph wilson stadium" AND date = "october 7, 2001"
What was the lowest week at Ralph Wilson Stadium on October 7, 2001?
CREATE TABLE table_name_72 (week INTEGER, game_site VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_15 WHERE date = "april 8, 2007"
How many people were in attendance on the game on April 8, 2007?
CREATE TABLE table_name_15 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(high_assists) FROM table_23248940_10 WHERE game = 71
How many people led in assists on game 71?
CREATE TABLE table_23248940_10 (high_assists VARCHAR, game VARCHAR)
SELECT format FROM table_name_90 WHERE country = "uk" AND catalog = "s 63795"
What is the format for UK catalog S 63795?
CREATE TABLE table_name_90 (format VARCHAR, country VARCHAR, catalog VARCHAR)
SELECT 2009 FROM table_name_45 WHERE total = 1 AND 2004 = "7th"
Which 2009 year has a total of 1, and 2004 year of 7th?
CREATE TABLE table_name_45 (total VARCHAR)
SELECT AVG(bronze) FROM table_name_15 WHERE total < 1
Which Bronze has a Total smaller than 1?
CREATE TABLE table_name_15 (bronze INTEGER, total INTEGER)
SELECT position FROM table_name_31 WHERE nationality = "canada" AND round > 3
What is Position, when Nationality is "Canada", and when Round is greater than 3?
CREATE TABLE table_name_31 (position VARCHAR, nationality VARCHAR, round VARCHAR)
SELECT location FROM table_15346009_1 WHERE tournament = "Outback Steakhouse Pro-Am"
Where was Outback Steakhouse Pro-AM held?
CREATE TABLE table_15346009_1 (location VARCHAR, tournament VARCHAR)
SELECT COUNT(rank) FROM table_name_89 WHERE name = "chen yan" AND lane < 2
What is the number of the rank for the name of Chen Yan in a lane less than 2?
CREATE TABLE table_name_89 (rank VARCHAR, name VARCHAR, lane VARCHAR)
SELECT COUNT(DISTINCT student_id) FROM Student_Course_Enrolment
How many distinct students are enrolled in courses?
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR)
SELECT rider FROM table_name_43 WHERE bike = "honda cbr1000rr" AND laps < 22 AND time = "+2 laps"
Who rode a Honda CBR1000rr, had fewer than 22 laps, and a time of +2 laps?
CREATE TABLE table_name_43 (rider VARCHAR, time VARCHAR, bike VARCHAR, laps VARCHAR)
SELECT year FROM table_name_90 WHERE points < 1.5 AND entrant = "escuderia bandeirantes" AND engine = "maserati straight-4"
What year were there less than 1.5 points and an Entrant of escuderia bandeirantes, and a maserati straight-4 engine?
CREATE TABLE table_name_90 (year VARCHAR, engine VARCHAR, points VARCHAR, entrant VARCHAR)
SELECT AVG(18 AS _49) FROM table_name_44 WHERE viewers < 3.5 AND order > 35
What is the average 18-49 for the episode that had an order number higher than 35 and less than 3.5 viewers?
CREATE TABLE table_name_44 (viewers VARCHAR, order VARCHAR)
SELECT team FROM table_name_87 WHERE primary_sponsor_s_ = "peak fitness"
Which team has Peak Fitness as the primary sponsor?
CREATE TABLE table_name_87 (team VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT overall_record FROM table_name_4 WHERE last_10_meetings = "ou, 7-3" AND at_norman = "ou, 18-3"
What is the Overall Record when the Last 10 Meetings is ou, 7-3, and Norman is ou, 18-3?
CREATE TABLE table_name_4 (overall_record VARCHAR, last_10_meetings VARCHAR, at_norman VARCHAR)
SELECT AVG(total) FROM table_name_41 WHERE rank = "7" AND gold > 0
what is the total when the rank is 7 and gold is more than 0?
CREATE TABLE table_name_41 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT COUNT(official_name) FROM table_170961_2 WHERE area_km_2 = "508.30"
What is the name of the parish where the area is 508.30?
CREATE TABLE table_170961_2 (official_name VARCHAR, area_km_2 VARCHAR)
SELECT away_team FROM table_name_99 WHERE home_team = "south melbourne"
Who was away team at the home game of south melbourne?
CREATE TABLE table_name_99 (away_team VARCHAR, home_team VARCHAR)
SELECT money___$__ FROM table_name_19 WHERE player = "lloyd mangrum"
What was the Money ($) amount for Lloyd Mangrum?
CREATE TABLE table_name_19 (money___$__ VARCHAR, player VARCHAR)
SELECT AVG(byes) FROM table_name_50 WHERE wins > 16
How many byes when there are more than 16 wins?
CREATE TABLE table_name_50 (byes INTEGER, wins INTEGER)
SELECT bötzow FROM table_11680175_1 WHERE vehlefanz = "1.800"
What was the number for Bötzow where Vehlefanz is 1.800?
CREATE TABLE table_11680175_1 (bötzow VARCHAR, vehlefanz VARCHAR)
SELECT coverage_area FROM table_name_65 WHERE genre = "music" AND station = "muzik fm"
What is the coverage area of muzik fm station, which has a music genre?
CREATE TABLE table_name_65 (coverage_area VARCHAR, genre VARCHAR, station VARCHAR)
SELECT game_site FROM table_name_1 WHERE date = "october 17, 1999"
Which Game Site has a Date of october 17, 1999?
CREATE TABLE table_name_1 (game_site VARCHAR, date VARCHAR)
SELECT record FROM table_name_88 WHERE score = "l 97–99 (ot)"
Which Record has a Score of l 97–99 (ot)?
CREATE TABLE table_name_88 (record VARCHAR, score VARCHAR)
SELECT score FROM table_name_33 WHERE result = "5-0"
What is the Score of the Competition with a 5-0 Result?
CREATE TABLE table_name_33 (score VARCHAR, result VARCHAR)
SELECT MAX(founded) FROM table_2076608_1 WHERE enrollment = "696"
What was the largest founded year for schools having enrollment of exactly 696?
CREATE TABLE table_2076608_1 (founded INTEGER, enrollment VARCHAR)
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss'
Find the names of the swimmers who have both "win" and "loss" results in the record.
CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR)
SELECT date FROM table_name_34 WHERE year > 1981 AND location = "morocco"
What was the date for morocco when the year was lerger than 1981?
CREATE TABLE table_name_34 (date VARCHAR, year VARCHAR, location VARCHAR)
SELECT role FROM table_name_91 WHERE year = "2001"
What was the role in 2001?
CREATE TABLE table_name_91 (role VARCHAR, year VARCHAR)
SELECT 2008 FROM table_name_89 WHERE 2009 = "ch our charming lady"
What is the 2008 for the 2009 ch our charming lady?
CREATE TABLE table_name_89 (Id VARCHAR)
SELECT decision FROM table_name_71 WHERE visitor = "chicago"
What was the decision of the Kings game when Chicago was the visiting team?
CREATE TABLE table_name_71 (decision VARCHAR, visitor VARCHAR)
SELECT COUNT(incumbent) FROM table_2668401_12 WHERE district = "Pennsylvania 5"
How many incumbents are there in Pennsylvania 5?
CREATE TABLE table_2668401_12 (incumbent VARCHAR, district VARCHAR)
SELECT AVG(post_position) FROM table_name_74 WHERE lengths_behind = "0"
What's the post position when the lengths behind is 0?
CREATE TABLE table_name_74 (post_position INTEGER, lengths_behind VARCHAR)
SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote
Find the distinct majors of students who have treasurer votes.
CREATE TABLE VOTING_RECORD (Treasurer_Vote VARCHAR); CREATE TABLE STUDENT (Major VARCHAR, StuID VARCHAR)
SELECT nature_of_help FROM table_name_31 WHERE people_assisted = "1,000"
In the disaster in which 1,000 people were helped, what was the nature of help?
CREATE TABLE table_name_31 (nature_of_help VARCHAR, people_assisted VARCHAR)
SELECT 2010 FROM table_name_85 WHERE 2004 = "2r" AND 2011 = "3r"
What is the 2010 value with a 2r in 200r and a 3r in 2011?
CREATE TABLE table_name_85 (Id VARCHAR)
SELECT score FROM table_name_25 WHERE competition = "1998 fifa world cup qualification"
What was the score of the 1998 FIFA World Cup qualification competition?
CREATE TABLE table_name_25 (score VARCHAR, competition VARCHAR)
SELECT COUNT(*), city FROM employees WHERE title = 'IT Staff' GROUP BY city
Find the number of employees whose title is IT Staff from each city?
CREATE TABLE employees (city VARCHAR, title VARCHAR)
SELECT quarterfinalists FROM table_29295463_9 WHERE champion = "Terry Moor 3-6, 7-6, 6-2"
Who were the quarter-finalists in the event where the champion was Terry Moor 3-6, 7-6, 6-2?
CREATE TABLE table_29295463_9 (quarterfinalists VARCHAR, champion VARCHAR)
SELECT platform_s_ FROM table_name_95 WHERE year = 2007
What is the platform of the game from 2007?
CREATE TABLE table_name_95 (platform_s_ VARCHAR, year VARCHAR)
SELECT MIN(wins) FROM table_15829930_5 WHERE success_rate = "56.25%"
Name the least wins of 56.25%
CREATE TABLE table_15829930_5 (wins INTEGER, success_rate VARCHAR)
SELECT MIN(points) FROM table_name_57 WHERE class = "125cc" AND wins = 1 AND year < 1961
What is the least points for class 125cc with 1 win earlier than 1961?
CREATE TABLE table_name_57 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR)
SELECT away_team AS score FROM table_name_54 WHERE away_team = "melbourne"
What is the away team score of Melbourne?
CREATE TABLE table_name_54 (away_team VARCHAR)
SELECT score FROM table_27734769_8 WHERE team = "Milwaukee"
What is the score when the team is milwaukee?
CREATE TABLE table_27734769_8 (score VARCHAR, team VARCHAR)
SELECT AVG(points) FROM table_name_46 WHERE draw = 2
Which Points have a Draw of 2?
CREATE TABLE table_name_46 (points INTEGER, draw VARCHAR)
SELECT AVG(crowd) FROM table_name_43 WHERE venue = "glenferrie oval"
What was the average crowd size of games held at Glenferrie Oval?
CREATE TABLE table_name_43 (crowd INTEGER, venue VARCHAR)
SELECT date FROM table_name_68 WHERE week > 7 AND record = "9–1"
What is the Date for a week higher than 7 with a record of 9–1?
CREATE TABLE table_name_68 (date VARCHAR, week VARCHAR, record VARCHAR)
SELECT stadium FROM table_10647401_1 WHERE week = 5
In which stadium is the week 5 game played?
CREATE TABLE table_10647401_1 (stadium VARCHAR, week VARCHAR)
SELECT first_leg FROM table_name_16 WHERE round = "quarter-final"
What was the first leg score during the quarter-final game?
CREATE TABLE table_name_16 (first_leg VARCHAR, round VARCHAR)
SELECT cName, enr FROM College WHERE enr > 10000 AND state = "LA"
Find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state LA.
CREATE TABLE College (cName VARCHAR, enr VARCHAR, state VARCHAR)
SELECT opponent FROM table_name_39 WHERE game < 70 AND record = "43–16–8"
Game smaller than 70, and a Record of 43–16–8 is what opponent?
CREATE TABLE table_name_39 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT written_by FROM table_22269839_1 WHERE production_code = "7ACX08"
Who wrote the title with the production code is 7acx08?
CREATE TABLE table_22269839_1 (written_by VARCHAR, production_code VARCHAR)
SELECT title FROM table_name_83 WHERE track = 7
What is the title of track 7?
CREATE TABLE table_name_83 (title VARCHAR, track VARCHAR)
SELECT AVG(year) FROM table_name_19 WHERE issue_price__proof_ = "$49.95" AND artist = "w.h.j. blakemore"
What's the average Year with an Issue Price (Proof) of $49.95, and Artist of W.H.J. Blakemore?
CREATE TABLE table_name_19 (year INTEGER, issue_price__proof_ VARCHAR, artist VARCHAR)
SELECT venue FROM table_name_41 WHERE home_team = "footscray"
Where did Footscray play as the home team?
CREATE TABLE table_name_41 (venue VARCHAR, home_team VARCHAR)
SELECT player FROM table_name_52 WHERE hometown = "los angeles, ca"
Who has a hometown of los angeles, ca?
CREATE TABLE table_name_52 (player VARCHAR, hometown VARCHAR)
SELECT weight__kg_ FROM table_1358608_4 WHERE race = "Ranvet Stakes"
What was the weight in kg on the day of the race at Ranvet Stakes?
CREATE TABLE table_1358608_4 (weight__kg_ VARCHAR, race VARCHAR)
SELECT AVG(tonnage) FROM table_name_87 WHERE date = "18 october 1940" AND name_of_ship = "beatus"
What was the average tonnage for Beatus, raided on 18 October 1940?
CREATE TABLE table_name_87 (tonnage INTEGER, date VARCHAR, name_of_ship VARCHAR)
SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1
What is the description of the type of the company who concluded its contracts most recently?
CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_end_date VARCHAR); CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR, company_type_code VARCHAR); CREATE TABLE Ref_Company_Types (company_type_code VARCHAR)
SELECT score FROM table_name_5 WHERE opponents_in_the_final = "james cerretani todd perry"
What is the score for the match where the opponent in the final was james cerretani todd perry?
CREATE TABLE table_name_5 (score VARCHAR, opponents_in_the_final VARCHAR)
SELECT country FROM table_name_71 WHERE stadium = "grandstand stadium"
What country has grandstand stadium as the stadium?
CREATE TABLE table_name_71 (country VARCHAR, stadium VARCHAR)
SELECT clubs FROM table_name_43 WHERE round = "first round"
What are the club number for the first round?
CREATE TABLE table_name_43 (clubs VARCHAR, round VARCHAR)
SELECT MIN(year) FROM table_225880_1 WHERE runner_s__up = "Walter Hagen"
Name the least year for walter hagen
CREATE TABLE table_225880_1 (year INTEGER, runner_s__up VARCHAR)
SELECT father FROM table_name_58 WHERE mother = "presendia huntington buell"
Who is the father of the child whose mother is Presendia Huntington Buell?
CREATE TABLE table_name_58 (father VARCHAR, mother VARCHAR)
SELECT week FROM table_name_88 WHERE result = "l 35–37"
What week's game had a result of l 35–37?
CREATE TABLE table_name_88 (week VARCHAR, result VARCHAR)
SELECT date_of_birth FROM table_name_63 WHERE name = "daniel moro"
When was Daniel Moro born?
CREATE TABLE table_name_63 (date_of_birth VARCHAR, name VARCHAR)
SELECT plural FROM table_name_47 WHERE singular = "nyaqot"
What is the plural if the singular is nyaqot?
CREATE TABLE table_name_47 (plural VARCHAR, singular VARCHAR)
SELECT MAX(el_places) FROM table_name_4 WHERE rank_2013 = "15"
Which EL places have a Rank 2013 of 15?
CREATE TABLE table_name_4 (el_places INTEGER, rank_2013 VARCHAR)
SELECT location FROM table_name_54 WHERE opponent = "aleksandr pitchkounov"
what is the location when the opponent is aleksandr pitchkounov?
CREATE TABLE table_name_54 (location VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_53 WHERE venue = "brunswick street oval"
The venue of Brunswick Street Oval was used on what date?
CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR)
SELECT MAX(highest) FROM table_11207040_5 WHERE team = "St. Johnstone"
What is the highest attendance at a game played by St. Johnstone?
CREATE TABLE table_11207040_5 (highest INTEGER, team VARCHAR)
SELECT school_year FROM table_14603212_1 WHERE class_aAA = Wimberley AND class_a = "Canadian"
If class a is canadian and class aaa is wimberley, which possible school years could this fall on?
CREATE TABLE table_14603212_1 (school_year VARCHAR, class_aAA VARCHAR, Wimberley VARCHAR, class_a VARCHAR)
SELECT MAX(round) FROM table_name_42 WHERE pick = 3
What is the highest round of pick 3?
CREATE TABLE table_name_42 (round INTEGER, pick VARCHAR)
SELECT MAX(series__number) FROM table_14346689_1 WHERE directed_by = "Rob Bailey"
What was the series number of the episode directed by Rob Bailey?
CREATE TABLE table_14346689_1 (series__number INTEGER, directed_by VARCHAR)
SELECT kit_manufacturer FROM table_name_1 WHERE shirt_sponsor = "walkers"
What is the kit manufacturer with Walkers as the shirt sponsor?
CREATE TABLE table_name_1 (kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)
SELECT format FROM table_name_59 WHERE label = "alfa records" AND date = "july 27, 1994"
Name the format on july 27, 1994 for alfa records
CREATE TABLE table_name_59 (format VARCHAR, label VARCHAR, date VARCHAR)
SELECT COUNT(interview) FROM table_11690135_1 WHERE country = "Virginia"
How many interviews were there for Miss Virginia?
CREATE TABLE table_11690135_1 (interview VARCHAR, country VARCHAR)
SELECT place FROM table_name_50 WHERE score = 71 - 70 - 73 - 71 = 285
What place had a score of 71-70-73-71=285?
CREATE TABLE table_name_50 (place VARCHAR, score VARCHAR)
SELECT goals FROM table_name_45 WHERE caps > 16
How many goals were scored by players with more than 16 caps?
CREATE TABLE table_name_45 (goals VARCHAR, caps INTEGER)
SELECT COUNT(result) FROM table_1342370_39 WHERE district = "South Carolina 5"
what is the total number of results where the district is south carolina 5?
CREATE TABLE table_1342370_39 (result VARCHAR, district VARCHAR)
SELECT MAX(points) FROM table_name_49 WHERE entrant = "modena team spa" AND year > 1991
What is the highest number of points for the Modena Team Spa after 1991?
CREATE TABLE table_name_49 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE official_barb_ratings = 1085000
When was the first UK broadcast when the official Barb ratings was 1085000?
CREATE TABLE table_26591309_2 (first_broadcast_uk___bbc_four__ VARCHAR, official_barb_ratings VARCHAR)
SELECT rating FROM table_name_7 WHERE air_date = "july 24, 2008*" AND weekly_winner = "sales rep. oscar ledezma"
What is Rating, when Air Date is "July 24, 2008*", and when Weekly Winner is "Sales Rep. Oscar Ledezma"?
CREATE TABLE table_name_7 (rating VARCHAR, air_date VARCHAR, weekly_winner VARCHAR)
SELECT directed_by FROM table_12033013_3 WHERE production_code = "3ADK-03"
Who directed the episode with a production code 3ADK-03?
CREATE TABLE table_12033013_3 (directed_by VARCHAR, production_code VARCHAR)
SELECT train_name FROM table_name_44 WHERE frequency__inbound_outbound_ = "daily" AND destination = "rajgir"
What is the train name of the rail with a daily frequency and a destination of Rajgir?
CREATE TABLE table_name_44 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR)
SELECT MIN(games) FROM table_name_26 WHERE drawn < 0
What is the lowest game that has a drawn less than 0?
CREATE TABLE table_name_26 (games INTEGER, drawn INTEGER)
SELECT MAX(drawn) FROM table_name_64 WHERE position < 4 AND lost < 2
Which Drawn is the highest one that has a Position smaller than 4, and a Lost smaller than 2?
CREATE TABLE table_name_64 (drawn INTEGER, position VARCHAR, lost VARCHAR)
SELECT team FROM table_name_21 WHERE year > 1997
Are there any Teams after 1997?
CREATE TABLE table_name_21 (team VARCHAR, year INTEGER)
SELECT AVG(Attendance) FROM performance
What is the average number of attendees for performances?
CREATE TABLE performance (Attendance INTEGER)
SELECT title FROM table_22347090_5 WHERE us_viewers__million_ = "1.54"
Name the title that got 1.54 viewers
CREATE TABLE table_22347090_5 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT opponent FROM table_name_93 WHERE date = "november 16"
What opponent did the Broncos play on November 16?
CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR)
SELECT 1980 FROM table_name_48 WHERE 1984 = "1r" AND 1981 = "1r"
What is the 1980 value with a 1r in 1984 and a 1r in 1981?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT score FROM table_name_49 WHERE save = "||25,354||63–43"
What was the score when a save of ||25,354||63–43 occurred?
CREATE TABLE table_name_49 (score VARCHAR, save VARCHAR)
SELECT opponent FROM table_name_63 WHERE date = "mar 10"
Which Opponent is on mar 10?
CREATE TABLE table_name_63 (opponent VARCHAR, date VARCHAR)
SELECT AVG(goals_conceded__gc_) FROM table_name_80 WHERE goals_scored__gf_ > 19 AND points__pts_ = 31 AND draw__pe_ > 7
What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?
CREATE TABLE table_name_80 (goals_conceded__gc_ INTEGER, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR, points__pts_ VARCHAR)