answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT year__ceremony_ FROM table_17919342_1 WHERE original_title = "Milagros"
What year was the film Milagros submitted?
CREATE TABLE table_17919342_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT top_prize FROM table_name_3 WHERE price = "$1" AND launch_date = "february 12, 2008"
What is the top price of $1 with a launch date on February 12, 2008?
CREATE TABLE table_name_3 (top_prize VARCHAR, price VARCHAR, launch_date VARCHAR)
SELECT original_teams FROM table_name_15 WHERE at_home_winner = "mark pinkhasovich"
What were the original teams for the season that was won at-home by Mark Pinkhasovich?
CREATE TABLE table_name_15 (original_teams VARCHAR, at_home_winner VARCHAR)
SELECT venue FROM table_17120964_9 WHERE date = "22nd"
what was the venue where the date was the 22nd?
CREATE TABLE table_17120964_9 (venue VARCHAR, date VARCHAR)
SELECT date FROM table_name_72 WHERE format = "cd" AND catalog = "alca-274"
What date has the format of CD and catalog of alca-274?
CREATE TABLE table_name_72 (date VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT location_attendance FROM table_name_9 WHERE game = "4"
What Location Attendance has a Game of 4?
CREATE TABLE table_name_9 (location_attendance VARCHAR, game VARCHAR)
SELECT home_team FROM table_name_76 WHERE venue = "glenferrie oval"
What home team played at Glenferrie Oval?
CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR)
SELECT SUM(year_opened) FROM table_name_13 WHERE span_feet > 1247 AND span_metres = 384
What is the sum of Year opened when the span feet is more than 1247, and the spam metres is 384?
CREATE TABLE table_name_13 (year_opened INTEGER, span_feet VARCHAR, span_metres VARCHAR)
SELECT MIN(grid) FROM table_name_46 WHERE rider = "colin edwards"
What is the lowest grid number when Colin Edwards is the rider?
CREATE TABLE table_name_46 (grid INTEGER, rider VARCHAR)
SELECT length FROM table_name_37 WHERE stage = "9"
Which length has a Stage of 9?
CREATE TABLE table_name_37 (length VARCHAR, stage VARCHAR)
SELECT distance FROM table_name_21 WHERE winner_or_2nd = "waterline"
What was the distance for the winner or 2nd Waterline?
CREATE TABLE table_name_21 (distance VARCHAR, winner_or_2nd VARCHAR)
SELECT MIN(scotland) FROM table_10128185_2
What was the lowest number of votes Scotland cast?
CREATE TABLE table_10128185_2 (scotland INTEGER)
SELECT qual FROM table_name_35 WHERE laps > 162 AND year = "1953"
What was the qualification with more than 162 laps in 1953?
CREATE TABLE table_name_35 (qual VARCHAR, laps VARCHAR, year VARCHAR)
SELECT MAX(total) FROM table_name_40 WHERE to_par = "+9"
What is the highest total to par of +9?
CREATE TABLE table_name_40 (total INTEGER, to_par VARCHAR)
SELECT televote_points FROM table_name_43 WHERE final_points = "2"
What Televote Points had a Final Points score of 2?
CREATE TABLE table_name_43 (televote_points VARCHAR, final_points VARCHAR)
SELECT team_captain FROM table_23214833_1 WHERE stadium = "Gradski Stadion"
Who's the captain of the team whose stadium is Gradski Stadion?
CREATE TABLE table_23214833_1 (team_captain VARCHAR, stadium VARCHAR)
SELECT set_3 FROM table_name_58 WHERE set_2 = "15–6"
What is the Set 3 with a Set 2 with 15–6?
CREATE TABLE table_name_58 (set_3 VARCHAR, set_2 VARCHAR)
SELECT set_1 FROM table_name_87 WHERE date = "jun 26" AND set_4 = "26-24"
What is Set 1, when Date is Jun 26, and when Set 4 is 26-24?
CREATE TABLE table_name_87 (set_1 VARCHAR, date VARCHAR, set_4 VARCHAR)
SELECT SUM(fa_cup) FROM table_name_44 WHERE malaysia_cup > 0 AND total = 8
Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8?
CREATE TABLE table_name_44 (fa_cup INTEGER, malaysia_cup VARCHAR, total VARCHAR)
SELECT game FROM table_name_87 WHERE april = 6
Which game took place April 6?
CREATE TABLE table_name_87 (game VARCHAR, april VARCHAR)
SELECT opponent FROM table_name_56 WHERE record = "53-24"
Which opponent has a 53-24 record?
CREATE TABLE table_name_56 (opponent VARCHAR, record VARCHAR)
SELECT result FROM table_14984126_1 WHERE record = "0–1"
what's the result with record being 0–1
CREATE TABLE table_14984126_1 (result VARCHAR, record VARCHAR)
SELECT capacity__litres_ FROM table_2155350_2 WHERE cab_size = "Single" AND category = "2 Medium tanker"
Name the capacity for single cab size 2 medium tanker
CREATE TABLE table_2155350_2 (capacity__litres_ VARCHAR, cab_size VARCHAR, category VARCHAR)
SELECT team FROM table_name_28 WHERE conmebol_1995 = "round 1"
Which Team has a round 1 CONMEBOL 1995?
CREATE TABLE table_name_28 (team VARCHAR, conmebol_1995 VARCHAR)
SELECT COUNT(to_par) FROM table_name_16 WHERE total = 163
What is the total to par with a total of 163?
CREATE TABLE table_name_16 (to_par VARCHAR, total VARCHAR)
SELECT graphics FROM table_name_99 WHERE chipset = "intel 850e" AND model = "precision 340"
What type of graphics are present in the Precision 340 model with the intel 850e chipset?
CREATE TABLE table_name_99 (graphics VARCHAR, chipset VARCHAR, model VARCHAR)
SELECT player FROM table_name_58 WHERE round < 13 AND pick = 74
Who is the player from a round less than 13 and has a pick of 74?
CREATE TABLE table_name_58 (player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT COUNT(july) FROM table_name_12 WHERE october < 8.05 AND december > 4.46 AND november > 6.79
What is the total number for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November?
CREATE TABLE table_name_12 (july VARCHAR, november VARCHAR, october VARCHAR, december VARCHAR)
SELECT COUNT(game) FROM table_name_98 WHERE score = "3–3 ot"
How many Games have a Score of 3–3 ot?
CREATE TABLE table_name_98 (game VARCHAR, score VARCHAR)
SELECT date FROM table_name_80 WHERE time = "12:00"
Which Date has a Time of 12:00?
CREATE TABLE table_name_80 (date VARCHAR, time VARCHAR)
SELECT french FROM table_2077192_2 WHERE english = "orange"
What is the French translation for the English word "orange"?
CREATE TABLE table_2077192_2 (french VARCHAR, english VARCHAR)
SELECT SUM(december) FROM table_name_56 WHERE record = "22-12-5"
What is the sum for December when the record was 22-12-5?
CREATE TABLE table_name_56 (december INTEGER, record VARCHAR)
SELECT homeland_security_distinguished_service_medal FROM table_2104176_1 WHERE medal_of_honor = "Coast Guard Medal"
WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal?
CREATE TABLE table_2104176_1 (homeland_security_distinguished_service_medal VARCHAR, medal_of_honor VARCHAR)
SELECT MAX(seats_2001) FROM table_name_71 WHERE _percentage_2006 = 13 AND _percentage_2001 > 12.1
If 2006 is 13% and 2001 is greater than 12.1%, what is the greatest number of seats for 2001?
CREATE TABLE table_name_71 (seats_2001 INTEGER, _percentage_2006 VARCHAR, _percentage_2001 VARCHAR)
SELECT condition FROM table_20592988_1 WHERE platelet_count = "Unaffected" AND prothrombin_time = "Unaffected"
In what conditions are both the platelet count and prothrombin time unaffected?
CREATE TABLE table_20592988_1 (condition VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR)
SELECT title FROM Movie WHERE director = "James Cameron" OR YEAR < 1980
What are names of the movies that are either made before 1980 or directed by James Cameron?
CREATE TABLE Movie (title VARCHAR, director VARCHAR, YEAR VARCHAR)
SELECT away_team FROM table_name_28 WHERE venue = "lake oval"
What is the away team at lake oval?
CREATE TABLE table_name_28 (away_team VARCHAR, venue VARCHAR)
SELECT MAX(attendance) FROM table_name_77 WHERE dolphins_points < 24 AND opponent = "new england patriots"
What's the most in attendance when the Dolphins points were less than 24 and, they played the New England Patriots?
CREATE TABLE table_name_77 (attendance INTEGER, dolphins_points VARCHAR, opponent VARCHAR)
SELECT advisor, COUNT(*) FROM Student GROUP BY advisor
Show all advisors and corresponding number of students.
CREATE TABLE Student (advisor VARCHAR)
SELECT COUNT(win__percentage) FROM table_name_93 WHERE conference = "hockey east" AND _number_of_bids < 4
For the Hockey East conference, what is the total number of win percentages when there are less than 4 bids?
CREATE TABLE table_name_93 (win__percentage VARCHAR, conference VARCHAR, _number_of_bids VARCHAR)
SELECT MAX(swedish_championship_titles) FROM table_name_62 WHERE introduced < 2006
What is the highest amount of swedish championship titles for the team that was introduced before 2006?
CREATE TABLE table_name_62 (swedish_championship_titles INTEGER, introduced INTEGER)
SELECT location FROM table_25773116_2 WHERE pole_position = "Daniel Erickson" AND fastest_lap = "Cole Morgan"
Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?
CREATE TABLE table_25773116_2 (location VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT AVG(first_round) FROM table_name_29 WHERE weight < 229 AND team = "utah jazz"
What is the average first round for Utah Jazz team, with a weight smaller than 229?
CREATE TABLE table_name_29 (first_round INTEGER, weight VARCHAR, team VARCHAR)
SELECT current_singles_ranking FROM table_10295819_1 WHERE player = "Mantas Bugailiškis"
What is the Current singles ranking for the player named Mantas Bugailiškis?
CREATE TABLE table_10295819_1 (current_singles_ranking VARCHAR, player VARCHAR)
SELECT incumbent FROM table_1341423_9 WHERE district = "Florida 9"
Who is the incumbent of Florida 9?
CREATE TABLE table_1341423_9 (incumbent VARCHAR, district VARCHAR)
SELECT date FROM table_name_33 WHERE venue = "westport"
What was the date for Westport?
CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR)
SELECT name FROM table_name_12 WHERE result = 54.67
Who has a Result of 54.67?
CREATE TABLE table_name_12 (name VARCHAR, result VARCHAR)
SELECT sponsor FROM table_name_18 WHERE driver = "neil bonnett"
Who sponsors driver neil bonnett?
CREATE TABLE table_name_18 (sponsor VARCHAR, driver VARCHAR)
SELECT type FROM table_name_35 WHERE name = "kevin muscat"
What type is Kevin Muscat?
CREATE TABLE table_name_35 (type VARCHAR, name VARCHAR)
SELECT MAX(diameter__km_) FROM table_name_4 WHERE name = "alma-merghen planitia" AND year_named < 1997
Which Diameter (km) has a Name of alma-merghen planitia, and a Year named smaller than 1997?
CREATE TABLE table_name_4 (diameter__km_ INTEGER, name VARCHAR, year_named VARCHAR)
SELECT COUNT(date) FROM table_2446333_2 WHERE round = 10
Name the total number of date for 10
CREATE TABLE table_2446333_2 (date VARCHAR, round VARCHAR)
SELECT AVG(weight), pettype FROM pets GROUP BY pettype
Find the average weight for each pet type.
CREATE TABLE pets (pettype VARCHAR, weight INTEGER)
SELECT firefox FROM table_name_60 WHERE source = "w3counter"
According to W3Counter, what percentage of browsers used Firefox?
CREATE TABLE table_name_60 (firefox VARCHAR, source VARCHAR)
SELECT COUNT(goals) FROM table_name_48 WHERE games < 6 AND debut_year = 1939 AND years_at_club = "1939, 1941"
How many Goals have Games smaller than 6, and a Debut year of 1939, and Years at club of 1939, 1941?
CREATE TABLE table_name_48 (goals VARCHAR, years_at_club VARCHAR, games VARCHAR, debut_year VARCHAR)
SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = "08/30/2015"
What are the distinct president votes on 08/30/2015?
CREATE TABLE VOTING_RECORD (PRESIDENT_Vote VARCHAR, Registration_Date VARCHAR)
SELECT winner FROM table_name_21 WHERE score = "199 (-14)" AND date = "oct 31"
who won with a score of 199 (-14) on oct 31?
CREATE TABLE table_name_21 (winner VARCHAR, score VARCHAR, date VARCHAR)
SELECT prefix FROM table_name_73 WHERE chemical_class = "iodoalkane"
What prefix has chemical class Iodoalkane?
CREATE TABLE table_name_73 (prefix VARCHAR, chemical_class VARCHAR)
SELECT partner FROM table_27611593_5 WHERE score = "6–2, 3–6, 6–7 (7-9)"
Who was Petrova's partner where she scored 6–2, 3–6, 6–7 (7-9)?
CREATE TABLE table_27611593_5 (partner VARCHAR, score VARCHAR)
SELECT team_1 FROM table_name_61 WHERE agg = "3-4"
Which teams had an aggregate score of 3-4?
CREATE TABLE table_name_61 (team_1 VARCHAR, agg VARCHAR)
SELECT dpi FROM table_16409745_1 WHERE max_page_size = "216mm x 355mm"
What is the dpi for the scanner with a max page size of 216mm x 355mm?
CREATE TABLE table_16409745_1 (dpi VARCHAR, max_page_size VARCHAR)
SELECT MAX(year) FROM table_name_27 WHERE bronze = "south korea" AND silver = "philippines"
Which Year is the highest one that has a Bronze of south korea, and a Silver of philippines?
CREATE TABLE table_name_27 (year INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT MAX(year) FROM table_name_71 WHERE french_open = "rafael nadal" AND wimbledon = "roger federer" AND australian_open = "roger federer"
What is the latest year rafael nadal was in the French Open, Roger Federer was in Wimbledon, and Roger Federer was in the Australian Open?
CREATE TABLE table_name_71 (year INTEGER, australian_open VARCHAR, french_open VARCHAR, wimbledon VARCHAR)
SELECT COUNT(party) FROM table_19753079_36 WHERE district = "North Carolina 7"
Name the total party for north carolina 7
CREATE TABLE table_19753079_36 (party VARCHAR, district VARCHAR)
SELECT MAX(flaps) FROM table_name_2 WHERE podiums = 24 AND races > 143
WHAT IS THE FLAPS WITH PODIUMS OF 24 AND RACES BIGGER THAN 143?
CREATE TABLE table_name_2 (flaps INTEGER, podiums VARCHAR, races VARCHAR)
SELECT try_bonus FROM table_12792876_4 WHERE points_against = "430"
Name the try bonus of points against at 430
CREATE TABLE table_12792876_4 (try_bonus VARCHAR, points_against VARCHAR)
SELECT COUNT(year) FROM table_1825751_14 WHERE pageant = "Miss Globe International" AND delegate = "Karen Loren Medrano Agustin"
How many years was the pageant miss globe international and delegate was karen loren medrano agustin?
CREATE TABLE table_1825751_14 (year VARCHAR, pageant VARCHAR, delegate VARCHAR)
SELECT state FROM table_name_43 WHERE home_venue = "suwon sports complex"
What is the State with a home venue of suwon sports complex?
CREATE TABLE table_name_43 (state VARCHAR, home_venue VARCHAR)
SELECT class FROM table_name_54 WHERE erp_w > 205 AND frequency_mhz < 93.9 AND call_sign = "k210cb"
Which Class has a ERP W larger than 205, and a Frequency MHz smaller than 93.9, and a Call sign of k210cb?
CREATE TABLE table_name_54 (class VARCHAR, call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR)
SELECT constructor FROM table_name_69 WHERE driver = "tony brooks"
What company built the car driven by Tony Brooks?
CREATE TABLE table_name_69 (constructor VARCHAR, driver VARCHAR)
SELECT COUNT(points) FROM table_name_24 WHERE draw < 12 AND artist = "philipp kirkorov" AND place < 17
What is the total point value when there are less than 12 draws, the rank is less than 17, and Philipp Kirkorov is the artist?
CREATE TABLE table_name_24 (points VARCHAR, place VARCHAR, draw VARCHAR, artist VARCHAR)
SELECT state FROM table_name_84 WHERE evening_gown > 8.86 AND swimsuit < 8.96 AND interview < 8.7
Name the state with an evening gown more than 8.86 and interview less than 8.7 and swimsuit less than 8.96
CREATE TABLE table_name_84 (state VARCHAR, interview VARCHAR, evening_gown VARCHAR, swimsuit VARCHAR)
SELECT location FROM table_name_21 WHERE promotor = "frank moloney" AND opponent = "gennadiy rasalev"
Which location has the promotor Frank Moloney, and the opponent Gennadiy Rasalev?
CREATE TABLE table_name_21 (location VARCHAR, promotor VARCHAR, opponent VARCHAR)
SELECT MAX(wins) FROM table_1708050_3 WHERE position = "16th"
Name the most wins where position is 16th
CREATE TABLE table_1708050_3 (wins INTEGER, position VARCHAR)
SELECT outcome FROM table_name_41 WHERE opponent = "mari andersson"
What was the outcome in mari andersson's tournament?
CREATE TABLE table_name_41 (outcome VARCHAR, opponent VARCHAR)
SELECT cover_date FROM table_1217448_1 WHERE character_s_ = "X-Men ; Magneto"
what's the cover date where character(s) is x-men ; magneto
CREATE TABLE table_1217448_1 (cover_date VARCHAR, character_s_ VARCHAR)
SELECT MIN(parishes) FROM table_name_62 WHERE pastoral_region = "merrimack" AND cemeteries < 4
How many Parishes in Merrimack which has 4 Cemeteries?
CREATE TABLE table_name_62 (parishes INTEGER, pastoral_region VARCHAR, cemeteries VARCHAR)
SELECT time FROM table_name_48 WHERE winner = "screen your friend"
What was the time for Screen Your Friend?
CREATE TABLE table_name_48 (time VARCHAR, winner VARCHAR)
SELECT AVG(december) FROM table_name_25 WHERE record = "8-2-3"
What is the average day in December of the game with a 8-2-3 record?
CREATE TABLE table_name_25 (december INTEGER, record VARCHAR)
SELECT prize AS Pool FROM table_22050544_4 WHERE event__number = "27H"
What was the prize pool for the event number 27H?
CREATE TABLE table_22050544_4 (prize VARCHAR, event__number VARCHAR)
SELECT round FROM table_name_84 WHERE loser = "barbara hawcroft"
In which round was Barbara Hawcroft the loser?
CREATE TABLE table_name_84 (round VARCHAR, loser VARCHAR)
SELECT MAX(overall) FROM table_name_65 WHERE pick__number > 3 AND name = "henri crockett"
What is Henri Crockett's highest overall with more than 3 picks?
CREATE TABLE table_name_65 (overall INTEGER, pick__number VARCHAR, name VARCHAR)
SELECT SUM(bronze) FROM table_name_24 WHERE rank = "3" AND total > 2
what is bronze when the rank is 3 and the total is more than 2?
CREATE TABLE table_name_24 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT location_attendance FROM table_name_6 WHERE record = "3-1-0"
What is the location and attendance of the game with a 3-1-0 record?
CREATE TABLE table_name_6 (location_attendance VARCHAR, record VARCHAR)
SELECT MIN(no) FROM table_11545282_19 WHERE school_club_team = "BYU"
What is the number of school/club teams held by BYU?
CREATE TABLE table_11545282_19 (no INTEGER, school_club_team VARCHAR)
SELECT COUNT(country) FROM table_28005160_2 WHERE city = "Ljungskile"
How many countries played in the city of ljungskile?
CREATE TABLE table_28005160_2 (country VARCHAR, city VARCHAR)
SELECT circuit FROM table_25459168_2 WHERE date = "August 21"
What circuit was used on August 21?
CREATE TABLE table_25459168_2 (circuit VARCHAR, date VARCHAR)
SELECT theme FROM table_26250199_1 WHERE episode = "Top 16 (8 Men)"
In episode Top 16 (8 Men), what are the themes?
CREATE TABLE table_26250199_1 (theme VARCHAR, episode VARCHAR)
SELECT condition_parameter FROM table_15314901_1 WHERE velocity_angle_η_in_i_radians = "ln[(1 + √5)/2] ≅ 0.481"
If the velocity angle is ln[(1 + √5)/2] ≅ 0.481, what is the condition/parameter?
CREATE TABLE table_15314901_1 (condition_parameter VARCHAR, velocity_angle_η_in_i_radians VARCHAR)
SELECT year FROM table_name_75 WHERE position = "6/13"
What year was the position 6/13?
CREATE TABLE table_name_75 (year VARCHAR, position VARCHAR)
SELECT seasons_by_team FROM table_274117_5 WHERE position = "OL" AND number = 11
What are seasons by team for Pro Bowl appearances of the player who was an OL and had 11 appearances?
CREATE TABLE table_274117_5 (seasons_by_team VARCHAR, position VARCHAR, number VARCHAR)
SELECT league FROM table_name_96 WHERE sport = "baseball"
What is the name of a league in the sport of baseball?
CREATE TABLE table_name_96 (league VARCHAR, sport VARCHAR)
SELECT title_of_work FROM table_name_17 WHERE year > 2009
Tell me the title of work for year more than 2009
CREATE TABLE table_name_17 (title_of_work VARCHAR, year INTEGER)
SELECT COUNT(gold) FROM table_name_82 WHERE rank > 3 AND bronze > 1
How many times is the rank higher than 3 and bronze more than 1?
CREATE TABLE table_name_82 (gold VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT opponent_number FROM table_name_73 WHERE attendance = "45,000"
Who was the opponent at the game attended by 45,000?
CREATE TABLE table_name_73 (opponent_number VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_76 WHERE circuit = "mallala motor sport park"
what date was mallala motor sport park the circuit?
CREATE TABLE table_name_76 (date VARCHAR, circuit VARCHAR)
SELECT ranking FROM table_21471897_2 WHERE rr2_pts = 8
Name the ranking for rr2 pts being 8
CREATE TABLE table_21471897_2 (ranking VARCHAR, rr2_pts VARCHAR)
SELECT MIN(pop_density__per_km2_) FROM table_name_12 WHERE district = "santa cruz" AND s_barangay > 82
What is the lowest population density for the district of Santa Cruz and a Barangay larger than 82?
CREATE TABLE table_name_12 (pop_density__per_km2_ INTEGER, district VARCHAR, s_barangay VARCHAR)
SELECT post FROM table_22517564_3 WHERE horse_name = "Chocolate Candy"
Which post had the horse named chocolate candy?
CREATE TABLE table_22517564_3 (post VARCHAR, horse_name VARCHAR)
SELECT MIN(year) FROM table_name_3 WHERE result = "1st" AND extra = "4 x 400 m relay"
Result of 1st, and an Extra of 4 x 400 m relay is in what lowest year?
CREATE TABLE table_name_3 (year INTEGER, result VARCHAR, extra VARCHAR)
SELECT MAX(rushing_yards) FROM table_name_16 WHERE rushes = 283 AND rushing_tds < 10
What was the greatest number of rushing yards for a runner who had 283 rushes and less than 10 rushing TDs?
CREATE TABLE table_name_16 (rushing_yards INTEGER, rushes VARCHAR, rushing_tds VARCHAR)