question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the 1977 value that has a 1974 a value?
CREATE TABLE table_name_65 (Id VARCHAR)
SELECT 1977 FROM table_name_65 WHERE 1974 = "a"
What days were games played at Hofstra Stadium?
CREATE TABLE table_name_20 (date VARCHAR, field VARCHAR)
SELECT date FROM table_name_20 WHERE field = "hofstra stadium"
When there was a tie of 16 what was the attendance?
CREATE TABLE table_name_8 (attendance VARCHAR, tie_no VARCHAR)
SELECT attendance FROM table_name_8 WHERE tie_no = "16"
What is the engine type when the max torque at rpm is n·m ( lbf·ft ) @ 4,800 Answers:?
CREATE TABLE table_1147705_1 (engine_type VARCHAR, max_torque_at_rpm VARCHAR)
SELECT engine_type FROM table_1147705_1 WHERE max_torque_at_rpm = "N·m ( lbf·ft ) @ 4,800"
What is the Region of Catalog 885 973-4?
CREATE TABLE table_name_74 (region VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_74 WHERE catalog = "885 973-4"
What week of the season had a date of october 5, 1975?
CREATE TABLE table_name_24 (week INTEGER, date VARCHAR)
SELECT MIN(week) FROM table_name_24 WHERE date = "october 5, 1975"
If the player is Marcelo, what is the minimum R?
CREATE TABLE table (r INTEGER, player VARCHAR, Marcelo VARCHAR)
SELECT MIN(r) FROM table WHERE player = Marcelo
What is the sum of Year(s), when Championship is "Australian Open", when Outcome is "Runner-Up", and when Score in Final is 3-6, 6-3, 6-2?
CREATE TABLE table_name_36 (year INTEGER, score_in_final VARCHAR, championship VARCHAR, outcome VARCHAR)
SELECT SUM(year) FROM table_name_36 WHERE championship = "australian open" AND outcome = "runner-up" AND score_in_final = "3-6, 6-3, 6-2"
Who did Collingwood play at home?
CREATE TABLE table_name_89 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_89 WHERE away_team = "collingwood"
What venue will hold the 2013 Concacaf Gold Cup competition?
CREATE TABLE table_name_59 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_59 WHERE competition = "2013 concacaf gold cup"
Which Player had a From club of atlético madrid?
CREATE TABLE table_name_36 (player VARCHAR, from_club VARCHAR)
SELECT player FROM table_name_36 WHERE from_club = "atlético madrid"
Find all the albums in 2012.
CREATE TABLE Albums (YEAR VARCHAR)
SELECT * FROM Albums WHERE YEAR = 2012
Which Third has Runners-up of 0, and Winners of 0, and a Club of far rabat?
CREATE TABLE table_name_4 (third INTEGER, club VARCHAR, runners_up VARCHAR, winners VARCHAR)
SELECT AVG(third) FROM table_name_4 WHERE runners_up = 0 AND winners = 0 AND club = "far rabat"
What Partner has a Score of 3–6, 2–6?
CREATE TABLE table_name_59 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_name_59 WHERE score = "3–6, 2–6"
What is the exit date of the player who transferred to Portsmouth?
CREATE TABLE table_name_58 (exit_date VARCHAR, to_club VARCHAR)
SELECT exit_date FROM table_name_58 WHERE to_club = "portsmouth"
What is the Status of Mexborough?
CREATE TABLE table_name_83 (status VARCHAR, name VARCHAR)
SELECT status FROM table_name_83 WHERE name = "mexborough"
Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011?
CREATE TABLE table_27487310_5 (judges VARCHAR, country VARCHAR, air_dates VARCHAR)
SELECT judges FROM table_27487310_5 WHERE country = "Netherlands" AND air_dates = "28 November 2011 – 24 December 2011"
How many total points were earned from the couple that averaged 29.0 points?
CREATE TABLE table_23662356_3 (total_points_earned INTEGER, average VARCHAR)
SELECT MAX(total_points_earned) FROM table_23662356_3 WHERE average = "29.0"
Shirt number of 18, and a Height larger than 195 has how much weight?
CREATE TABLE table_name_63 (weight VARCHAR, shirt_no VARCHAR, height VARCHAR)
SELECT COUNT(weight) FROM table_name_63 WHERE shirt_no = 18 AND height > 195
What is the Home Team in the game with a Result of 124-109?
CREATE TABLE table_name_48 (home_team VARCHAR, result VARCHAR)
SELECT home_team FROM table_name_48 WHERE result = "124-109"
When was the date successor seated when the vacator was charles e. chamberlain (r)?
CREATE TABLE table_1134091_4 (date_successor_seated VARCHAR, vacator VARCHAR)
SELECT date_successor_seated FROM table_1134091_4 WHERE vacator = "Charles E. Chamberlain (R)"
How many total points belong to the team with a goal difference of 8?
CREATE TABLE table_name_94 (points INTEGER, goal_difference VARCHAR)
SELECT SUM(points) FROM table_name_94 WHERE goal_difference = 8
Which Copa Libertadores 1992 has a Supercopa Sudamericana 1992 of round of 16, and a Team of grêmio?
CREATE TABLE table_name_59 (copa_libertadores_1992 VARCHAR, supercopa_sudamericana_1992 VARCHAR, team VARCHAR)
SELECT copa_libertadores_1992 FROM table_name_59 WHERE supercopa_sudamericana_1992 = "round of 16" AND team = "grêmio"
What is the population for County Mayo with the English Name Carrowteige?
CREATE TABLE table_101196_1 (population VARCHAR, county VARCHAR, english_name VARCHAR)
SELECT population FROM table_101196_1 WHERE county = "county Mayo" AND english_name = "Carrowteige"
What was the partial thromboplastin time for factor x deficiency as seen in amyloid purpura
CREATE TABLE table_1099080_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR)
SELECT partial_thromboplastin_time FROM table_1099080_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura"
Title is the total number where u.s. viewers (million) is 7.56.
CREATE TABLE table_27115960_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(title) FROM table_27115960_1 WHERE us_viewers__million_ = "7.56"
What is the result when there was an attendance of 54,418?
CREATE TABLE table_name_21 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_21 WHERE attendance = "54,418"
On what date was the opponent in the final Gwinyai Tongoona?
CREATE TABLE table_name_62 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_62 WHERE opponent_in_the_final = "gwinyai tongoona"
Which date has an Opponent of bye?
CREATE TABLE table_name_78 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_78 WHERE opponent = "bye"
What was the record at the game where Deron Williams (6) did the high assists?
CREATE TABLE table_23286223_8 (record VARCHAR, high_assists VARCHAR)
SELECT record FROM table_23286223_8 WHERE high_assists = "Deron Williams (6)"
Who was the jockey at Rosehill and the weight was 57.5 kg?
CREATE TABLE table_1360997_3 (jockey VARCHAR, venue VARCHAR, weight__kg_ VARCHAR)
SELECT jockey FROM table_1360997_3 WHERE venue = "Rosehill" AND weight__kg_ = "57.5"
What's the most points for Ea Schongau with more than 1 drawn?
CREATE TABLE table_name_38 (points INTEGER, name VARCHAR, drawn VARCHAR)
SELECT MAX(points) FROM table_name_38 WHERE name = "ea schongau" AND drawn > 1
What is the original airdate of episode #31?
CREATE TABLE table_28967275_2 (original_air_date VARCHAR, episode__number VARCHAR)
SELECT original_air_date FROM table_28967275_2 WHERE episode__number = 31
If the year is 2010, what is the minimum amount of years 5-9?
CREATE TABLE table_174266_6 (year VARCHAR)
SELECT MIN(5 AS _9_years) FROM table_174266_6 WHERE year = 2010
For the event held in Tartu, Estonia, what is the name of the runner-up?
CREATE TABLE table_name_90 (runner_up VARCHAR, venue VARCHAR)
SELECT runner_up FROM table_name_90 WHERE venue = "tartu, estonia"
When did they play Miami?
CREATE TABLE table_17323042_8 (date VARCHAR, team VARCHAR)
SELECT date FROM table_17323042_8 WHERE team = "Miami"
What part number(s) has a frequency of 2.4 ghz?
CREATE TABLE table_name_20 (part_number_s_ VARCHAR, frequency VARCHAR)
SELECT part_number_s_ FROM table_name_20 WHERE frequency = "2.4 ghz"
When did South Melbourne play as the home team?
CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_66 WHERE home_team = "south melbourne"
What name is in the number 2 spot when Ethan is in the number 6 spot and Mason is in the number 3 spot?
CREATE TABLE table_name_7 (no_2 VARCHAR, no_6 VARCHAR, no_3 VARCHAR)
SELECT no_2 FROM table_name_7 WHERE no_6 = "ethan" AND no_3 = "mason"
What are the names of all campuses located at Chico?
CREATE TABLE campuses (campus VARCHAR, LOCATION VARCHAR)
SELECT campus FROM campuses WHERE LOCATION = "Chico"
Name the incumbent for virginia 18
CREATE TABLE table_2668387_18 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_2668387_18 WHERE district = "Virginia 18"
What is the maximum draws when less than 2514 is the against, and less than 0 byes?
CREATE TABLE table_name_52 (draws INTEGER, against VARCHAR, byes VARCHAR)
SELECT MAX(draws) FROM table_name_52 WHERE against < 2514 AND byes < 0
What was the margin of victory over Brad Faxon?
CREATE TABLE table_name_51 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_51 WHERE runner_s__up = "brad faxon"
What is Illinois 13 District's Party?
CREATE TABLE table_name_59 (party VARCHAR, district VARCHAR)
SELECT party FROM table_name_59 WHERE district = "illinois 13"
Show names of teachers and the number of courses they teach.
CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)
SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name
What is the average heat ranked at 30?
CREATE TABLE table_name_54 (heat INTEGER, rank VARCHAR)
SELECT AVG(heat) FROM table_name_54 WHERE rank = 30
Name the sum of drawn for points less than 6 and games more than 8
CREATE TABLE table_name_85 (drawn INTEGER, points VARCHAR, games VARCHAR)
SELECT SUM(drawn) FROM table_name_85 WHERE points < 6 AND games > 8
How many games were played by the player at FB?
CREATE TABLE table_name_18 (games VARCHAR, position VARCHAR)
SELECT COUNT(games) AS ↑ FROM table_name_18 WHERE position = "fb"
what is the tournament when the score is 2-6, 4-6?
CREATE TABLE table_name_1 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_1 WHERE score = "2-6, 4-6"
What party did Beau Boulter represent?
CREATE TABLE table_1341577_44 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341577_44 WHERE incumbent = "Beau Boulter"
What is the Cause of death of the Officer with a Date of death of 1956-09-07?
CREATE TABLE table_name_49 (cause_of_death VARCHAR, date_of_death VARCHAR)
SELECT cause_of_death FROM table_name_49 WHERE date_of_death = "1956-09-07"
At a latitude of 67.5n, what is the diameter?
CREATE TABLE table_16799784_3 (diameter__km_ VARCHAR, latitude VARCHAR)
SELECT diameter__km_ FROM table_16799784_3 WHERE latitude = "67.5N"
What was the venue when Jack Hargreaves finished third?
CREATE TABLE table_name_63 (venue VARCHAR, third VARCHAR)
SELECT venue FROM table_name_63 WHERE third = "jack hargreaves"
How many years have a Catalog Number of 80429 / bta80429?
CREATE TABLE table_name_69 (year VARCHAR, catalog_number VARCHAR)
SELECT COUNT(year) FROM table_name_69 WHERE catalog_number = "80429 / bta80429"
What is the lowest Year, when Co-Driver is Warren Luff, when Position is 7th, and when Laps is less than 161?
CREATE TABLE table_name_47 (year INTEGER, laps VARCHAR, co_driver VARCHAR, position VARCHAR)
SELECT MIN(year) FROM table_name_47 WHERE co_driver = "warren luff" AND position = "7th" AND laps < 161
What position did pick 36 play?
CREATE TABLE table_name_45 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_45 WHERE pick = 36
Which producer did Daniel Cormack direct?
CREATE TABLE table_name_50 (producer_s_ VARCHAR, director_s_ VARCHAR)
SELECT producer_s_ FROM table_name_50 WHERE director_s_ = "daniel cormack"
What game was located at the Los Angeles Memorial Sports Arena?
CREATE TABLE table_name_60 (game VARCHAR, location_attendance VARCHAR)
SELECT game FROM table_name_60 WHERE location_attendance = "los angeles memorial sports arena"
Which engine has a Chassis of lotus 44 f2?
CREATE TABLE table_name_24 (engine VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_24 WHERE chassis = "lotus 44 f2"
what was the gp/gs in 2003 when the total points was "did not play"?
CREATE TABLE table_name_96 (gp_gs VARCHAR, total_points VARCHAR, year VARCHAR)
SELECT gp_gs FROM table_name_96 WHERE total_points = "did not play" AND year = "2003"
Name the number for florida air academy
CREATE TABLE table_25360865_1 (_number VARCHAR, last_school VARCHAR)
SELECT _number FROM table_25360865_1 WHERE last_school = "Florida Air Academy"
Name the most peak performance for october 2006 - january 2010
CREATE TABLE table_27765443_2 (maximum_peak_performance___teraflops__ VARCHAR, period_of_operation VARCHAR)
SELECT maximum_peak_performance___teraflops__ FROM table_27765443_2 WHERE period_of_operation = "October 2006 - January 2010"
What is Score, when Song is 第九夜?
CREATE TABLE table_name_99 (score VARCHAR, song VARCHAR)
SELECT score FROM table_name_99 WHERE song = "第九夜"
What is the Average of bergen, norway?
CREATE TABLE table_name_81 (average INTEGER, city VARCHAR)
SELECT MIN(average) FROM table_name_81 WHERE city = "bergen, norway"
What's the points that has a lost more 6, played less than 14 and a position more than 1?
CREATE TABLE table_name_54 (points INTEGER, played VARCHAR, position VARCHAR, lost VARCHAR)
SELECT SUM(points) FROM table_name_54 WHERE position > 1 AND lost > 6 AND played < 14
Name the most wins
CREATE TABLE table_15327489_1 (wins INTEGER)
SELECT MIN(wins) FROM table_15327489_1
What is the class of team liqui moly equipe, which has less than 71 laps?
CREATE TABLE table_name_85 (class VARCHAR, laps VARCHAR, team VARCHAR)
SELECT class FROM table_name_85 WHERE laps < 71 AND team = "liqui moly equipe"
Which Wicket was it that had a 104 (69) Runs (balls) amount?
CREATE TABLE table_name_55 (wicket VARCHAR, runs__balls_ VARCHAR)
SELECT wicket FROM table_name_55 WHERE runs__balls_ = "104 (69)"
What was the outcome on 25 october 2004?
CREATE TABLE table_name_99 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_99 WHERE date = "25 october 2004"
WHAT IS THE LOWEST NANQUAN WITH A RANK BIGGER THAN 2, TOTAL LESS THAN 18.36 AND SMALLER THAN 8.85?
CREATE TABLE table_name_40 (nanquan INTEGER, nangun VARCHAR, rank VARCHAR, total VARCHAR)
SELECT MIN(nanquan) FROM table_name_40 WHERE rank > 2 AND total < 18.36 AND nangun < 8.85
What is the Height of the Sophomore Guard weighing 185?
CREATE TABLE table_name_54 (height VARCHAR, weight VARCHAR, year VARCHAR, position VARCHAR)
SELECT height FROM table_name_54 WHERE year = "sophomore" AND position = "guard" AND weight = 185
In which year did he compete in the Universiade?
CREATE TABLE table_name_21 (year VARCHAR, competition VARCHAR)
SELECT year FROM table_name_21 WHERE competition = "universiade"
On what date was Tie #13 played?
CREATE TABLE table_name_93 (date VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_93 WHERE tie_no = "13"
Which Region that has a growth of −3.6%?
CREATE TABLE table_name_24 (region VARCHAR, _percentage_growth VARCHAR)
SELECT region FROM table_name_24 WHERE _percentage_growth = "−3.6"
What digital channel corresponds to virtual channel 23.2?
CREATE TABLE table_2857352_3 (digital_channel VARCHAR, virtual_channel VARCHAR)
SELECT digital_channel FROM table_2857352_3 WHERE virtual_channel = "23.2"
Find the unit of measurement and product category code of product named "chervil".
CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR)
SELECT t2.unit_of_measure, t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "chervil"
How many clubs were remaining in the preliminary round?
CREATE TABLE table_28039032_1 (clubs_remaining VARCHAR, round VARCHAR)
SELECT clubs_remaining FROM table_28039032_1 WHERE round = "Preliminary round"
Who is the home team in the game where South Melbourne was the away team?
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_20 WHERE away_team = "south melbourne"
Who was the recipient when the show was nominated for Most Popular Drama after 2004?
CREATE TABLE table_name_5 (recipient_s_ VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)
SELECT recipient_s_ FROM table_name_5 WHERE result = "nominated" AND category = "most popular drama" AND year > 2004
How many bronze had a rank of less than 6 and a total less than 5?
CREATE TABLE table_name_43 (bronze VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(bronze) FROM table_name_43 WHERE rank < 6 AND total < 5
what is the stage when the winner is charly mottet?
CREATE TABLE table_name_80 (stage VARCHAR, winner VARCHAR)
SELECT stage FROM table_name_80 WHERE winner = "charly mottet"
What is the rate change % when the rate limit is 82.86?
CREATE TABLE table_25316812_1 (rate_change___percentage_ VARCHAR, rate_limit__p_ VARCHAR)
SELECT rate_change___percentage_ FROM table_25316812_1 WHERE rate_limit__p_ = "82.86"
Which MLS tea, drafted a player affilaited with the university of california?
CREATE TABLE table_name_29 (mls_team VARCHAR, affiliation VARCHAR)
SELECT mls_team FROM table_name_29 WHERE affiliation = "university of california"
What is the finish position in the year prior to 2009?
CREATE TABLE table_name_64 (finish_position VARCHAR, year INTEGER)
SELECT finish_position FROM table_name_64 WHERE year < 2009
Which Week is the highest one that has a Result of w 23-20, and an Attendance smaller than 34,127?
CREATE TABLE table_name_92 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT MAX(week) FROM table_name_92 WHERE result = "w 23-20" AND attendance < 34 OFFSET 127
How many cuts did he make at the PGA championship in 3 events?
CREATE TABLE table_name_36 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR)
SELECT MAX(cuts_made) FROM table_name_36 WHERE tournament = "pga championship" AND events > 3
When Star Zemba was featured in Week 3, who was the cyber girl for Week 2?
CREATE TABLE table_name_11 (week_2 VARCHAR, week_3 VARCHAR)
SELECT week_2 FROM table_name_11 WHERE week_3 = "star zemba"
Find the name of rooms whose price is higher than the average price.
CREATE TABLE Rooms (roomName VARCHAR, basePrice INTEGER)
SELECT roomName FROM Rooms WHERE basePrice > (SELECT AVG(basePrice) FROM Rooms)
How much did Dale Jarrett win?
CREATE TABLE table_21297652_1 (winnings VARCHAR, driver VARCHAR)
SELECT winnings FROM table_21297652_1 WHERE driver = "Dale Jarrett"
What is the total number of 2nd place finishes for riders active in years 2009-2010 and more than 0 wins?
CREATE TABLE table_name_83 (years_active VARCHAR, wins VARCHAR)
SELECT SUM(2 AS nd_pl) FROM table_name_83 WHERE years_active = "2009-2010" AND wins > 0
what is the winning driver in taunus
CREATE TABLE table_name_19 (winning_driver VARCHAR, circuit VARCHAR)
SELECT winning_driver FROM table_name_19 WHERE circuit = "taunus"
What was the score when Richmond was the opponent?
CREATE TABLE table_name_45 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_45 WHERE opponent = "richmond"
Name the role for pick number 17
CREATE TABLE table_26397277_3 (role_s_ VARCHAR, pick__number VARCHAR)
SELECT role_s_ FROM table_26397277_3 WHERE pick__number = 17
What was the highest place a song by Jacques Raymond reached, with a draw over 14?
CREATE TABLE table_name_97 (place INTEGER, artist VARCHAR, draw VARCHAR)
SELECT MAX(place) FROM table_name_97 WHERE artist = "jacques raymond" AND draw > 14
What competition listed is dated November 17, 2003?
CREATE TABLE table_name_32 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_32 WHERE date = "november 17, 2003"
What was the score on 1/10/1974?
CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_79 WHERE date = "1/10/1974"
When the earning per share is listed as 22.0 what is the year to april?
CREATE TABLE table_18077713_1 (year_to_april VARCHAR, earnings_per_share__¢_ VARCHAR)
SELECT COUNT(year_to_april) FROM table_18077713_1 WHERE earnings_per_share__¢_ = "22.0"
What was the score of the game against away team crewe alexandra?
CREATE TABLE table_name_3 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_3 WHERE away_team = "crewe alexandra"
What is the release date for Eclipse Foundation?
CREATE TABLE table_name_43 (release_date VARCHAR, vendor VARCHAR)
SELECT release_date FROM table_name_43 WHERE vendor = "eclipse foundation"
What is the circuit of round 5?
CREATE TABLE table_24732149_2 (circuit VARCHAR, round VARCHAR)
SELECT circuit FROM table_24732149_2 WHERE round = 5