question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the Week on December 17?
CREATE TABLE table_name_12 (week INTEGER, date VARCHAR)
SELECT MIN(week) FROM table_name_12 WHERE date = "december 17"
Which Game has an Opponent of @ pittsburgh penguins?
CREATE TABLE table_name_14 (game INTEGER, opponent VARCHAR)
SELECT MAX(game) FROM table_name_14 WHERE opponent = "@ pittsburgh penguins"
Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?
CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Feb INTEGER, Jun VARCHAR)
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city
What is the team at Stadion Maksimir?
CREATE TABLE table_name_48 (team VARCHAR, stadium VARCHAR)
SELECT team FROM table_name_48 WHERE stadium = "stadion maksimir"
How many points did the team that won 5 games make?
CREATE TABLE table_28201906_1 (pts_for VARCHAR, won VARCHAR)
SELECT pts_for FROM table_28201906_1 WHERE won = 5
Name the D 48 O with D 41 √ of d 41 √
CREATE TABLE table_name_47 (d_48_o VARCHAR, d_41_√ VARCHAR)
SELECT d_48_o FROM table_name_47 WHERE d_41_√ = "d 41 √"
What is the 2010 value with A in 2008, A in 2011, and 2r in 2012?
CREATE TABLE table_name_50 (Id VARCHAR)
SELECT 2010 FROM table_name_50 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "2r"
Who is the winner when the st kilda score is 13.10.88?
CREATE TABLE table_28211103_1 (winner VARCHAR, st_kilda_score VARCHAR)
SELECT winner FROM table_28211103_1 WHERE st_kilda_score = "13.10.88"
What was the Decision when the Visitor was Carolina?
CREATE TABLE table_name_53 (decision VARCHAR, visitor VARCHAR)
SELECT decision FROM table_name_53 WHERE visitor = "carolina"
WHat in 2005 has a Win % of 82.61?
CREATE TABLE table_name_59 (win__percentage VARCHAR)
SELECT 2005 FROM table_name_59 WHERE win__percentage = "82.61"
Which Height (cm) has a Birthplace of bloomfield hills, michigan?
CREATE TABLE table_name_52 (height__cm_ INTEGER, birthplace VARCHAR)
SELECT AVG(height__cm_) FROM table_name_52 WHERE birthplace = "bloomfield hills, michigan"
Which method had Travis Fulton as an opponent?
CREATE TABLE table_name_68 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_68 WHERE opponent = "travis fulton"
What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses?
CREATE TABLE table_name_91 (played INTEGER, losses VARCHAR, points VARCHAR, wins VARCHAR, goals_for VARCHAR)
SELECT AVG(played) FROM table_name_91 WHERE wins < 11 AND goals_for > 42 AND points > 22 AND losses = 11
What is the score for the away team when they played Hawthorn?
CREATE TABLE table_name_46 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_46 WHERE home_team = "hawthorn"
The catcher went to what school?
CREATE TABLE table_11677100_7 (school VARCHAR, position VARCHAR)
SELECT school FROM table_11677100_7 WHERE position = "Catcher"
What was Jim Hoff's sum of losses and a wins smaller than 12?
CREATE TABLE table_name_9 (losses INTEGER, manager VARCHAR, wins VARCHAR)
SELECT SUM(losses) FROM table_name_9 WHERE manager = "jim hoff" AND wins < 12
Show the apartment type codes and apartment numbers in the buildings managed by "Kyle".
CREATE TABLE Apartment_Buildings (building_id VARCHAR, building_manager VARCHAR); CREATE TABLE Apartments (apt_type_code VARCHAR, apt_number VARCHAR, building_id VARCHAR)
SELECT T2.apt_type_code, T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T1.building_manager = "Kyle"
What is the Date of the game with a Loss of Leneveu (1–0–1)?
CREATE TABLE table_name_75 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_75 WHERE loss = "leneveu (1–0–1)"
Find the city and state of the bank branch named morningside.
CREATE TABLE bank (city VARCHAR, state VARCHAR, bname VARCHAR)
SELECT city, state FROM bank WHERE bname = 'morningside'
What is the range of married filing jointly or qualified widower in which married filing separately is $33,951–$68,525?
CREATE TABLE table_11647327_2 (married_filing_jointly_or_qualified_widow_er_ VARCHAR, married_filing_separately VARCHAR)
SELECT married_filing_jointly_or_qualified_widow_er_ FROM table_11647327_2 WHERE married_filing_separately = "$33,951–$68,525"
How many problems does the product with the most problems have? List the number of the problems and product name.
CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_name VARCHAR, product_id VARCHAR)
SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1
What is the American version of the British ə?
CREATE TABLE table_name_62 (american VARCHAR, british VARCHAR)
SELECT american FROM table_name_62 WHERE british = "ə"
What player is from canterbury (ushs)?
CREATE TABLE table_name_67 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT player FROM table_name_67 WHERE college_junior_club_team = "canterbury (ushs)"
What candidates were featured in the 1974 election?
CREATE TABLE table_1341640_14 (candidates VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_1341640_14 WHERE first_elected = 1974
Name the drawn for lost being 5 and tries for 89
CREATE TABLE table_27293285_4 (drawn VARCHAR, lost VARCHAR, tries_for VARCHAR)
SELECT drawn FROM table_27293285_4 WHERE lost = "5" AND tries_for = "89"
What is the goal low with caps less than 38 and an average less than 1.083?
CREATE TABLE table_name_93 (goals INTEGER, caps VARCHAR, average VARCHAR)
SELECT MIN(goals) FROM table_name_93 WHERE caps < 38 AND average < 1.083
What is the top grid that laps less than 66 and a retried engine?
CREATE TABLE table_name_28 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT MAX(grid) FROM table_name_28 WHERE time_retired = "engine" AND laps < 66
Did the legislation pass that had 42.87% yes votes?
CREATE TABLE table_256286_63 (passed VARCHAR, _percentage_yes VARCHAR)
SELECT passed FROM table_256286_63 WHERE _percentage_yes = "42.87%"
What week's game had a result of l 35–37?
CREATE TABLE table_name_88 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_88 WHERE result = "l 35–37"
What moving has fra as the country?
CREATE TABLE table_name_63 (moving_from VARCHAR, country VARCHAR)
SELECT moving_from FROM table_name_63 WHERE country = "fra"
Which opponent has a game larger than 61, february smaller than 28, and fewer points than 69?
CREATE TABLE table_name_73 (opponent VARCHAR, points VARCHAR, game VARCHAR, february VARCHAR)
SELECT opponent FROM table_name_73 WHERE game > 61 AND february < 28 AND points < 69
How many votes went to other candidates in the county that gave 1.9% votes to them, and 160,390 total votes to Bush?
CREATE TABLE table_name_12 (others_number INTEGER, others_percentage VARCHAR, bush_number VARCHAR)
SELECT MIN(others_number) FROM table_name_12 WHERE others_percentage = "1.9%" AND bush_number < 160 OFFSET 390
What is the tries against for the team that has a losing bonus?
CREATE TABLE table_name_48 (tries_against VARCHAR, losing_bonus VARCHAR)
SELECT tries_against FROM table_name_48 WHERE losing_bonus = "losing bonus"
Find the name of the train whose route runs through greatest number of stations.
CREATE TABLE route (train_id VARCHAR); CREATE TABLE train (name VARCHAR, id VARCHAR)
SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id = t2.train_id GROUP BY t2.train_id ORDER BY COUNT(*) DESC LIMIT 1
Which Byes have Losses larger than 0, and an Against larger than 3049?
CREATE TABLE table_name_7 (byes INTEGER, losses VARCHAR, against VARCHAR)
SELECT AVG(byes) FROM table_name_7 WHERE losses > 0 AND against > 3049
When did the Texans play at LP Field?
CREATE TABLE table_name_90 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_90 WHERE game_site = "lp field"
For the Australian Open, in 2007 the result was A, but what was the result in 2012?
CREATE TABLE table_name_4 (tournament VARCHAR)
SELECT 2012 FROM table_name_4 WHERE 2007 = "a" AND tournament = "australian open"
Tell me the date for dinah pfizenmaier anna zaja and winner
CREATE TABLE table_name_46 (date VARCHAR, outcome VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_46 WHERE outcome = "winner" AND opponents = "dinah pfizenmaier anna zaja"
Which stadium had the club Kuwait?
CREATE TABLE table_name_3 (stadium VARCHAR, club VARCHAR)
SELECT stadium FROM table_name_3 WHERE club = "kuwait"
How many different high points results are there for the game on May 15?
CREATE TABLE table_30087032_5 (high_points VARCHAR, date VARCHAR)
SELECT COUNT(high_points) FROM table_30087032_5 WHERE date = "May 15"
What date did the Indians have a record of 14-28?
CREATE TABLE table_name_89 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_89 WHERE record = "14-28"
What is the try bonus when the loss is 13 and the draw is 2?
CREATE TABLE table_name_51 (try_bonus VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT try_bonus FROM table_name_51 WHERE lost = "13" AND drawn = "2"
What is the highest rank of Austria, which had less than 0 silvers?
CREATE TABLE table_name_83 (rank INTEGER, nation VARCHAR, silver VARCHAR)
SELECT MIN(rank) FROM table_name_83 WHERE nation = "austria" AND silver < 0
What is catcher Josh Donaldson's pick number?
CREATE TABLE table_name_11 (pick VARCHAR, position VARCHAR, player VARCHAR)
SELECT pick FROM table_name_11 WHERE position = "catcher" AND player = "josh donaldson"
Where are all the 1485khz frequency located?
CREATE TABLE table_28794440_1 (location VARCHAR, frequency VARCHAR)
SELECT location FROM table_28794440_1 WHERE frequency = "1485kHz"
Show the Color which has a Thai name of วันพฤหัสบดี?
CREATE TABLE table_name_19 (color VARCHAR, thai_name VARCHAR)
SELECT color FROM table_name_19 WHERE thai_name = "วันพฤหัสบดี"
What is the league cup app with league cup goals more than 0?
CREATE TABLE table_name_76 (league_cup_apps VARCHAR, league_cup_goals INTEGER)
SELECT league_cup_apps FROM table_name_76 WHERE league_cup_goals > 0
what is the throughput (including analysis) when the analysis time is 4 hours?
CREATE TABLE table_name_77 (throughput__including_analysis_ VARCHAR, analysis_time VARCHAR)
SELECT throughput__including_analysis_ FROM table_name_77 WHERE analysis_time = "4 hours"
What was the home team's score at Victoria Park?
CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_27 WHERE venue = "victoria park"
what team play in february 18 in the supersonic season
CREATE TABLE table_17382360_7 (team VARCHAR, date VARCHAR)
SELECT team FROM table_17382360_7 WHERE date = "February 18"
at the area of 113.12, what was the population?
CREATE TABLE table_170961_2 (population VARCHAR, area_km_2 VARCHAR)
SELECT population FROM table_170961_2 WHERE area_km_2 = "113.12"
What was the attendance when Fitzroy played as the away team?
CREATE TABLE table_name_76 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_76 WHERE away_team = "fitzroy"
What is the mean number of wins for the norton team in 1966, when there are 8 points?
CREATE TABLE table_name_8 (wins INTEGER, points VARCHAR, team VARCHAR, year VARCHAR)
SELECT AVG(wins) FROM table_name_8 WHERE team = "norton" AND year = 1966 AND points = 8
What percentage of users were using Firefox according to the source that reported 21.70% used Internet Explorer?
CREATE TABLE table_name_22 (firefox VARCHAR, internet_explorer VARCHAR)
SELECT firefox FROM table_name_22 WHERE internet_explorer = "21.70%"
What is the party that has the largest number of representatives?
CREATE TABLE representative (Party VARCHAR)
SELECT Party, COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1
in which state where John Laurance (f) as a vacator?
CREATE TABLE table_224840_3 (state__class_ VARCHAR, vacator VARCHAR)
SELECT state__class_ FROM table_224840_3 WHERE vacator = "John Laurance (F)"
What is Date, when Record is 12-58?
CREATE TABLE table_name_31 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_31 WHERE record = "12-58"
Which Wins has a Top-5 of 6?
CREATE TABLE table_name_26 (wins INTEGER, top_5 VARCHAR)
SELECT AVG(wins) FROM table_name_26 WHERE top_5 = 6
When the away team was st kilda, what did the home team score?
CREATE TABLE table_name_7 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_7 WHERE away_team = "st kilda"
Name the lowest Col (m) with a Peak of pico basilé, and a Prominence (m) smaller than 3,011?
CREATE TABLE table_name_50 (col__m_ INTEGER, peak VARCHAR, prominence__m_ VARCHAR)
SELECT MIN(col__m_) FROM table_name_50 WHERE peak = "pico basilé" AND prominence__m_ < 3 OFFSET 011
What party represents the district with incumbent matthew clay?
CREATE TABLE table_2668378_18 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_2668378_18 WHERE incumbent = "Matthew Clay"
Which Competition has a Result of france 46-16 scotland?
CREATE TABLE table_name_60 (competition VARCHAR, result VARCHAR)
SELECT competition FROM table_name_60 WHERE result = "france 46-16 scotland"
On what date were there 50,324 votes?
CREATE TABLE table_name_78 (date VARCHAR, votes VARCHAR)
SELECT date FROM table_name_78 WHERE votes = "50,324"
What is Left Office, when Inaugurate is "15 March 1930"?
CREATE TABLE table_name_1 (left_office VARCHAR, inaugurated VARCHAR)
SELECT left_office FROM table_name_1 WHERE inaugurated = "15 march 1930"
What is the Name of the Player from Charlotte, NC?
CREATE TABLE table_name_91 (name VARCHAR, home_town VARCHAR)
SELECT name FROM table_name_91 WHERE home_town = "charlotte, nc"
What is the number of years that the event was foil team and took place in Los Angeles?
CREATE TABLE table_name_77 (year VARCHAR, venue VARCHAR, event VARCHAR)
SELECT COUNT(year) FROM table_name_77 WHERE venue = "los angeles" AND event = "foil team"
Which Telebooms have a Brigade of total?
CREATE TABLE table_name_78 (telebooms VARCHAR, brigade VARCHAR)
SELECT telebooms FROM table_name_78 WHERE brigade = "total"
What is the most Bronze medals won among the participants that won less than 22 medals overall and less than 5 silver medals?
CREATE TABLE table_name_5 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT MAX(bronze) FROM table_name_5 WHERE total < 22 AND silver < 5
Who wrote the episode with the production code 519?
CREATE TABLE table_21550897_1 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_21550897_1 WHERE production_code = 519
I want to know the HP model with a #HDD of 1 of sides of ds
CREATE TABLE table_name_68 (hp_model VARCHAR, _number_hdd VARCHAR, sides VARCHAR)
SELECT hp_model FROM table_name_68 WHERE _number_hdd = 1 AND sides = "ds"
What years for the rockets did player ford, alton alton ford play?
CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR)
SELECT years_for_rockets FROM table_11734041_6 WHERE player = "Ford, Alton Alton Ford"
who is the the incumbent with dbeingtrict being arkansas 1
CREATE TABLE table_1342331_5 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1342331_5 WHERE district = "Arkansas 1"
What rank has a mark of NM and is from India?
CREATE TABLE table_name_85 (rank VARCHAR, mark VARCHAR, nationality VARCHAR)
SELECT rank FROM table_name_85 WHERE mark = "nm" AND nationality = "india"
What is Country, when To Par is "+11"?
CREATE TABLE table_name_37 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_37 WHERE to_par = "+11"
What is the directed/undirected of fpf (mavisto), which has an induced/non-induced of induced?
CREATE TABLE table_name_25 (directed___undirected VARCHAR, induced___non_induced VARCHAR, name VARCHAR)
SELECT directed___undirected FROM table_name_25 WHERE induced___non_induced = "induced" AND name = "fpf (mavisto)"
What is the record when the loss is westbrook (1-6)?
CREATE TABLE table_name_76 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_76 WHERE loss = "westbrook (1-6)"
In which city is the station licensed whose frequency MHz is higher than 102.3 and whose call sign is K292EU?
CREATE TABLE table_name_28 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT city_of_license FROM table_name_28 WHERE frequency_mhz > 102.3 AND call_sign = "k292eu"
What is the date where the winner was the Oakland Raiders in 1975?
CREATE TABLE table_name_95 (date VARCHAR, year VARCHAR, winner VARCHAR)
SELECT date FROM table_name_95 WHERE year = 1975 AND winner = "oakland raiders"
What are the names and trade names of the medicines which has 'Yes' value in the FDA record?
CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, FDA_approved VARCHAR)
SELECT name, trade_name FROM medicine WHERE FDA_approved = 'Yes'
When did Shirley Fry Irvin win the US Open?
CREATE TABLE table_2092557_12 (us_open INTEGER, player VARCHAR)
SELECT MIN(us_open) FROM table_2092557_12 WHERE player = "Shirley Fry Irvin"
Can you tell me the lowest React that has the Lane of 5?
CREATE TABLE table_name_50 (react INTEGER, lane VARCHAR)
SELECT MIN(react) FROM table_name_50 WHERE lane = 5
WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?
CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR)
SELECT europe FROM table_name_68 WHERE head_coach = "vainauskas , sakalauskas" AND regional_competitions = "nebl finalist"
What is Director Erik Matti's Producer?
CREATE TABLE table_name_57 (producer VARCHAR, director VARCHAR)
SELECT producer FROM table_name_57 WHERE director = "erik matti"
How many head coaches are there for the website, http://www.burleighbulldogs.org/?
CREATE TABLE table_11365528_2 (head_coach VARCHAR, website VARCHAR)
SELECT COUNT(head_coach) FROM table_11365528_2 WHERE website = "http://www.burleighbulldogs.org/"
What venue did he finish 7th?
CREATE TABLE table_name_55 (venue VARCHAR, position VARCHAR)
SELECT venue FROM table_name_55 WHERE position = "7th"
How much Year Left has a Location of howe?
CREATE TABLE table_name_13 (year_left INTEGER, location VARCHAR)
SELECT SUM(year_left) FROM table_name_13 WHERE location = "howe"
When the runner-up was Jing-qian Yi, who was the winner?
CREATE TABLE table_name_74 (winner VARCHAR, runner_up VARCHAR)
SELECT winner FROM table_name_74 WHERE runner_up = "jing-qian yi"
What is To Par, when Country is "United States", when Place is "T4", and when Player is "Arnold Palmer"?
CREATE TABLE table_name_96 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_96 WHERE country = "united states" AND place = "t4" AND player = "arnold palmer"
What was the TV Time for opponent jacksonville jaguars?
CREATE TABLE table_name_51 (tv_time VARCHAR, opponent VARCHAR)
SELECT tv_time FROM table_name_51 WHERE opponent = "jacksonville jaguars"
Who is the winning driver when rd. is 3?
CREATE TABLE table_19850806_3 (winning_driver VARCHAR, rd VARCHAR)
SELECT winning_driver FROM table_19850806_3 WHERE rd = "3"
How many cinema do we have?
CREATE TABLE cinema (Id VARCHAR)
SELECT COUNT(*) FROM cinema
What was the series count at for game 5?
CREATE TABLE table_11963601_11 (series VARCHAR, game VARCHAR)
SELECT series FROM table_11963601_11 WHERE game = 5
When Sagittarius is the wester name what is the sanskrit gloss?
CREATE TABLE table_186462_1 (sanskrit VARCHAR, western_name VARCHAR)
SELECT sanskrit AS gloss FROM table_186462_1 WHERE western_name = "Sagittarius"
What is the lowest number of districts (kecamatan) in the north sulawesi province with more than 1,510 villages?
CREATE TABLE table_name_97 (number_of_districts__kecamatan_ INTEGER, province VARCHAR, villages VARCHAR)
SELECT MIN(number_of_districts__kecamatan_) FROM table_name_97 WHERE province = "north sulawesi" AND villages > 1 OFFSET 510
Who was the opponent at the game that had a loss of Saarloos (7-7)?
CREATE TABLE table_name_7 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_7 WHERE loss = "saarloos (7-7)"
When was a mintage of 1264 with more than 24.95 issued?
CREATE TABLE table_name_45 (year INTEGER, mintage VARCHAR, issue_price VARCHAR)
SELECT MAX(year) FROM table_name_45 WHERE mintage = "1264" AND issue_price > 24.95
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 opponent_in_the_final FROM table_name_89 WHERE surface = "hard" AND score = "6–3, 3–6, 7–5"
On what Date was the Attendance 16,212?
CREATE TABLE table_name_82 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_82 WHERE attendance = "16,212"
What was the result F-A for round 5?
CREATE TABLE table_name_22 (result_f___a VARCHAR, round VARCHAR)
SELECT result_f___a FROM table_name_22 WHERE round = "round 5"
Name the position for chivu
CREATE TABLE table (position VARCHAR, player VARCHAR, Chivu VARCHAR)
SELECT position FROM table WHERE player = Chivu