answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT player FROM table_name_71 WHERE to_par = "–4"
What is the Player that has a To standard of –4?
CREATE TABLE table_name_71 (player VARCHAR, to_par VARCHAR)
SELECT score FROM table_name_8 WHERE opponent = "montreal canadiens"
What was the score when the opponent was Montreal Canadiens?
CREATE TABLE table_name_8 (score VARCHAR, opponent VARCHAR)
SELECT starting_odds FROM table_22517564_3 WHERE opening_odds = "2-1"
What were the starting odds for the opening odds of 2-1?
CREATE TABLE table_22517564_3 (starting_odds VARCHAR, opening_odds VARCHAR)
SELECT score FROM table_name_72 WHERE competition = "friendly" AND date = "03-jun-62"
Competition of friendly, and a Date of 03-jun-62 had what score?
CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT name FROM table_name_72 WHERE date = "9 july"
What is the name of the race on 9 July?
CREATE TABLE table_name_72 (name VARCHAR, date VARCHAR)
SELECT geographic_character FROM table_name_69 WHERE population__2010_ > 2539 AND urban_rural = "rural" AND population__2007_ = 2572
WHAT IS THE TYPE OF LAND WITH A 2010 POPULATION GREATER THAN 2539, A RURAL AREA, AND A 2007 POPULATION OF 2572?
CREATE TABLE table_name_69 (geographic_character VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR, urban_rural VARCHAR)
SELECT profession FROM table_name_4 WHERE name = "slađana pejić"
What is slađana pejić's profession?
CREATE TABLE table_name_4 (profession VARCHAR, name VARCHAR)
SELECT hits FROM table_name_86 WHERE year < 1883
Name the hits for years before 1883
CREATE TABLE table_name_86 (hits VARCHAR, year INTEGER)
SELECT team_classification FROM table_22410316_17 WHERE combativity_prize = "Ricardo Serrano"
what team had ricardo serrano for combativity prize?
CREATE TABLE table_22410316_17 (team_classification VARCHAR, combativity_prize VARCHAR)
SELECT result FROM table_name_33 WHERE venue = "h" AND opponent = "newcastle united"
What was the final score for the match played in Venue H and the opponent was Newcastle United?
CREATE TABLE table_name_33 (result VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT february FROM table_1539201_1
Name all of the february
CREATE TABLE table_1539201_1 (february VARCHAR)
SELECT AVG(longitude) FROM table_name_75 WHERE water__sqmi_ = 0.317 AND ansi_code > 1759695
what is the longitude when the water (sqmi) is 0.317 and the ansi code is higher than 1759695?
CREATE TABLE table_name_75 (longitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)
SELECT film_name FROM table_name_63 WHERE year = 2002
Which film was released in the year 2002?
CREATE TABLE table_name_63 (film_name VARCHAR, year VARCHAR)
SELECT date FROM table_name_46 WHERE election = "1953"
When was the Election of 1953?
CREATE TABLE table_name_46 (date VARCHAR, election VARCHAR)
SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie')
How many states that have some college students playing in the mid position but not in the goalie position.
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)
SELECT depth FROM table_name_35 WHERE time__utc_ = "19:48"
What is the depth of the quake that occurred at 19:48?
CREATE TABLE table_name_35 (depth VARCHAR, time__utc_ VARCHAR)
SELECT MIN(heat) FROM table_name_44 WHERE lane = 4 AND quart > 44.62
When a lane of 4 has a QUART greater than 44.62, what is the lowest HEAT?
CREATE TABLE table_name_44 (heat INTEGER, lane VARCHAR, quart VARCHAR)
SELECT opponent FROM table_name_53 WHERE score = "6–4, 6–7 (2–7) , 7–5"
Who was the opponent when the score was 6–4, 6–7 (2–7) , 7–5?
CREATE TABLE table_name_53 (opponent VARCHAR, score VARCHAR)
SELECT SUM(december) FROM table_name_61 WHERE game > 31 AND score = "5 - 2"
What is the sum of December, when Game is greater than 31, and when Score is "5 - 2"?
CREATE TABLE table_name_61 (december INTEGER, game VARCHAR, score VARCHAR)
SELECT position FROM table_name_37 WHERE pick__number = 53
what is the position of pick #53?
CREATE TABLE table_name_37 (position VARCHAR, pick__number VARCHAR)
SELECT directed_by FROM table_18268826_1 WHERE us_viewers__million_ = "3.93"
Who directed the episode seen by 3.93 million people in the US?
CREATE TABLE table_18268826_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT attendance FROM table_21796261_4 WHERE date = "July 10"
How many people were present at the July 10 game?
CREATE TABLE table_21796261_4 (attendance VARCHAR, date VARCHAR)
SELECT AVG(laps) FROM table_name_42 WHERE driver = "niki lauda" AND grid < 3
How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?
CREATE TABLE table_name_42 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT country FROM table_name_41 WHERE score = 72 AND player = "andrew brooks"
Which country has a score of 72 by Andrew Brooks?
CREATE TABLE table_name_41 (country VARCHAR, score VARCHAR, player VARCHAR)
SELECT COUNT(against) FROM table_name_12 WHERE draw > 48
What is the total number of Against, when Draw is greater than 48?
CREATE TABLE table_name_12 (against VARCHAR, draw INTEGER)
SELECT result FROM table_name_77 WHERE year > 1999 AND white = "kramnik" AND tournament = "mainz cc champions duel (5)"
What is Result, when Year is greater than 1999, when White is "Kramnik", and when Tournament is "Mainz CC Champions Duel (5)"?
CREATE TABLE table_name_77 (result VARCHAR, tournament VARCHAR, year VARCHAR, white VARCHAR)
SELECT AVG(elevation__m_) FROM table_name_22 WHERE country = "vanuatu" AND rank < 3
What is the elevation of Vanuatu, when the rank is smaller than 3?
CREATE TABLE table_name_22 (elevation__m_ INTEGER, country VARCHAR, rank VARCHAR)
SELECT COUNT(wins) FROM table_name_99 WHERE year = "2010" AND matches > 14
What is the total number of wins in 2010, when there were more than 14 matches?
CREATE TABLE table_name_99 (wins VARCHAR, year VARCHAR, matches VARCHAR)
SELECT inception FROM table_name_47 WHERE assets_us$billion = "25.5" AND abbreviation = "psf"
What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?
CREATE TABLE table_name_47 (inception VARCHAR, assets_us$billion VARCHAR, abbreviation VARCHAR)
SELECT engine_s_ FROM table_name_7 WHERE year = 1992
What engines have the year 1992?
CREATE TABLE table_name_7 (engine_s_ VARCHAR, year VARCHAR)
SELECT pre_race_host FROM table_name_87 WHERE lap_by_lap = "mike joy" AND year = 2005
Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005?
CREATE TABLE table_name_87 (pre_race_host VARCHAR, lap_by_lap VARCHAR, year VARCHAR)
SELECT MAX(year) FROM table_name_42 WHERE owner = "michael e. pegram"
What year was owner Michael E. Pegram's last win?
CREATE TABLE table_name_42 (year INTEGER, owner VARCHAR)
SELECT 2007 FROM table_name_5 WHERE tournament = "madrid masters"
WHAT IS THE 2007 AT MADRID MASTERS?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT result FROM table_2668199_2 WHERE district = "Pennsylvania 6"
What is the result for district pennsylvania 6?
CREATE TABLE table_2668199_2 (result VARCHAR, district VARCHAR)
SELECT date_of_birth__age_ FROM table_name_46 WHERE player = "paino hehea"
What is Paino Hehea's date of birth?
CREATE TABLE table_name_46 (date_of_birth__age_ VARCHAR, player VARCHAR)
SELECT MAX(dvd_no) FROM table_1467951_4
What is the largest number of DVDs?
CREATE TABLE table_1467951_4 (dvd_no INTEGER)
SELECT location_attendance FROM table_name_49 WHERE date = "february 10"
On February 10, what was the location attendance?
CREATE TABLE table_name_49 (location_attendance VARCHAR, date VARCHAR)
SELECT away_team AS score FROM table_name_79 WHERE venue = "arden street oval"
At the match which took place in arden street oval, how much did the away team score?
CREATE TABLE table_name_79 (away_team VARCHAR, venue VARCHAR)
SELECT year FROM table_20193855_2 WHERE book_title = "The Ordinary"
Which year is the book title the ordinary?
CREATE TABLE table_20193855_2 (year VARCHAR, book_title VARCHAR)
SELECT original_title FROM table_name_1 WHERE film_title_used_in_nomination = "brecha en el silencio"
What's the original title of the nomination title, "brecha en el silencio"?
CREATE TABLE table_name_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT MIN(run_2) FROM table_name_90 WHERE run_1 = 52.44 AND run_3 < 52.35
What is the lowest run 2 of the athlete with a run 1 of 52.44 and a run 3 less than 52.35?
CREATE TABLE table_name_90 (run_2 INTEGER, run_1 VARCHAR, run_3 VARCHAR)
SELECT AVG(pick) FROM table_name_87 WHERE school = "pasco, wa"
What is the average Pick for the Pasco, Wa school?
CREATE TABLE table_name_87 (pick INTEGER, school VARCHAR)
SELECT per_capita_income FROM table_name_61 WHERE median_family_income = "$40,492"
What is the per capita income of the county with a median family income of $40,492?
CREATE TABLE table_name_61 (per_capita_income VARCHAR, median_family_income VARCHAR)
SELECT MIN(silver) FROM table_name_70 WHERE gold > 0 AND rank = "total" AND bronze < 32
Which Silver is the lowest one that has a Gold larger than 0, and a Rank of total, and a Bronze smaller than 32?
CREATE TABLE table_name_70 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT result FROM table_name_49 WHERE date = "november 20, 1988"
What was the result on November 20, 1988?
CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR)
SELECT SUM(year) FROM table_name_84 WHERE award = "outer critics circle award" AND nominee = "nathan lane"
What is the sum of Year, when Award is "Outer Critics Circle Award", and when Nominee is "Nathan Lane"?
CREATE TABLE table_name_84 (year INTEGER, award VARCHAR, nominee VARCHAR)
SELECT COUNT(*) FROM climber
How many climbers are there?
CREATE TABLE climber (Id VARCHAR)
SELECT SUM(pct) FROM table_name_70 WHERE wins > 72 AND name = "john yovicsin"
Which percent has Wins larger than 72, and a Name of john yovicsin?
CREATE TABLE table_name_70 (pct INTEGER, wins VARCHAR, name 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
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 date FROM table_name_74 WHERE away_team = "south melbourne"
Which date did South Melbourne play as the away team?
CREATE TABLE table_name_74 (date VARCHAR, away_team VARCHAR)
SELECT MIN(time) FROM table_name_45 WHERE athlete = "muna lee"
What is the athlete muna lee lowest time?
CREATE TABLE table_name_45 (time INTEGER, athlete VARCHAR)
SELECT AVG(year_completed) FROM table_name_82 WHERE floors = 10
What year was the building completed that has 10 floors?
CREATE TABLE table_name_82 (year_completed INTEGER, floors VARCHAR)
SELECT class FROM table_name_59 WHERE part_2 = "*fraus"
Which class has *fraus as Part 2?
CREATE TABLE table_name_59 (class VARCHAR, part_2 VARCHAR)
SELECT original_air_date FROM table_18335117_2 WHERE production_code = 102
When did the episode first air that had a production code of 102?
CREATE TABLE table_18335117_2 (original_air_date VARCHAR, production_code VARCHAR)
SELECT score FROM table_name_27 WHERE tournament = "zadar"
What score has zadar as the tournament?
CREATE TABLE table_name_27 (score VARCHAR, tournament VARCHAR)
SELECT SUM(wins) FROM table_name_80 WHERE fastest_laps = 0 AND races < 16 AND season = "2007" AND podiums < 0
What is the total number of wins in the 2007 season when the fastest laps is 0, there are less than 0 podiums, and there are less than 16 races?
CREATE TABLE table_name_80 (wins INTEGER, podiums VARCHAR, season VARCHAR, fastest_laps VARCHAR, races VARCHAR)
SELECT COUNT(title) FROM table_20065425_1 WHERE termination_of_mission = "August 5, 1984"
How many different titles does the representative whose mission was terminated on August 5, 1984 have?
CREATE TABLE table_20065425_1 (title VARCHAR, termination_of_mission VARCHAR)
SELECT SUM(score) FROM table_name_29 WHERE venue = "halmstad" AND year < 2002
What was the sum of the scores before the year 2002, that had the venue of Halmstad?
CREATE TABLE table_name_29 (score INTEGER, venue VARCHAR, year VARCHAR)
SELECT stuffit FROM table_name_99 WHERE bzip2 = "no" AND lha_lzh = "no"
What is the stuffit that has bzip and LHA/LZH of no?
CREATE TABLE table_name_99 (stuffit VARCHAR, bzip2 VARCHAR, lha_lzh VARCHAR)
SELECT ratio FROM table_name_2 WHERE in_×_in = "17 × 22"
Which Ratio has an in × in of 17 × 22?
CREATE TABLE table_name_2 (ratio VARCHAR, in_×_in VARCHAR)
SELECT winner FROM table_name_18 WHERE date = "wednesday, august 27"
Who won the race on wednesday, august 27?
CREATE TABLE table_name_18 (winner VARCHAR, date VARCHAR)
SELECT phone, postal_code FROM address WHERE address = '1031 Daugavpils Parkway'
What is the phone number and postal code of the address 1031 Daugavpils Parkway?
CREATE TABLE address (phone VARCHAR, postal_code VARCHAR, address VARCHAR)
SELECT team FROM table_name_93 WHERE position = "of" AND pick = 24
WHAT IS THE TEAM WITH AN OF POSITION AND PICK OF 24?
CREATE TABLE table_name_93 (team VARCHAR, position VARCHAR, pick VARCHAR)
SELECT venue FROM table_name_11 WHERE round = 20
What venue was round 20 held at?
CREATE TABLE table_name_11 (venue VARCHAR, round VARCHAR)
SELECT date FROM table_name_22 WHERE uci_rating = "1.1" AND race_name = "omloop van de vlaamse scheldeboorden"
What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1?
CREATE TABLE table_name_22 (date VARCHAR, uci_rating VARCHAR, race_name VARCHAR)
SELECT equipment FROM table_name_51 WHERE position > 28 AND points > 10
What is Equipment, when Position is greater than 28, and when Points is greater than 10?
CREATE TABLE table_name_51 (equipment VARCHAR, position VARCHAR, points VARCHAR)
SELECT wins FROM table_1697190_1 WHERE tournaments_played = 14
Name the wins for tournaments played being 14
CREATE TABLE table_1697190_1 (wins VARCHAR, tournaments_played VARCHAR)
SELECT bronze FROM table_name_66 WHERE rank = "37"
Which bronze has a Rank of 37?
CREATE TABLE table_name_66 (bronze VARCHAR, rank VARCHAR)
SELECT COUNT(year_acquired) FROM table_1397655_1 WHERE station = "CHAN"
how any were gained as the chan
CREATE TABLE table_1397655_1 (year_acquired VARCHAR, station VARCHAR)
SELECT margin_of_victory FROM table_name_78 WHERE tournament = "cyber agent ladies"
Which margin of victory has cyber agent ladies as the tournament?
CREATE TABLE table_name_78 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT name FROM table_25794010_1 WHERE organization_date = "Unknown"
Name the name for organization date being unknown
CREATE TABLE table_25794010_1 (name VARCHAR, organization_date VARCHAR)
SELECT week FROM table_name_48 WHERE result = "l 14–9"
What week was the result l 14–9?
CREATE TABLE table_name_48 (week VARCHAR, result VARCHAR)
SELECT MAX(jankovic) FROM table_name_68 WHERE round = "sf" AND tournament = "indian wells"
What is the highest result for Jankovic at Indian Wells and round of SF?
CREATE TABLE table_name_68 (jankovic INTEGER, round VARCHAR, tournament VARCHAR)
SELECT AVG(evening_gown) FROM table_name_32 WHERE average = 8.686
What is the mean evening gown number when the average is 8.686?
CREATE TABLE table_name_32 (evening_gown INTEGER, average VARCHAR)
SELECT song_choice FROM table_name_38 WHERE result = "advanced" AND week = "top 20"
Which song garnered an advanced result during top 20 week ?
CREATE TABLE table_name_38 (song_choice VARCHAR, result VARCHAR, week VARCHAR)
SELECT SUM(points) FROM table_name_92 WHERE rank = "61t"
What is the sum of the points for the player who was a rank of 61t?
CREATE TABLE table_name_92 (points INTEGER, rank VARCHAR)
SELECT COUNT(cfl_team) FROM table_20170644_5 WHERE college = "Laval"
How many players were drafted from laval?
CREATE TABLE table_20170644_5 (cfl_team VARCHAR, college VARCHAR)
SELECT installation_date FROM table_21821014_1 WHERE chapter = "Delta"
What is the installation date for the Delta Chapter?
CREATE TABLE table_21821014_1 (installation_date VARCHAR, chapter VARCHAR)
SELECT MAX(year) FROM table_13169136_1
What is the most recent year?
CREATE TABLE table_13169136_1 (year INTEGER)
SELECT COUNT(*) FROM Faculty WHERE Sex = 'F' AND Rank = "Professor"
How many female Professors do we have?
CREATE TABLE Faculty (Sex VARCHAR, Rank VARCHAR)
SELECT SUM(billboard_200_peak) FROM table_name_38 WHERE year > 1971
What is the sum of the Billboard 200 Peak scores after the Year 1971?
CREATE TABLE table_name_38 (billboard_200_peak INTEGER, year INTEGER)
SELECT high_rebounds FROM table_name_58 WHERE game = 81
What is the highest rebounds for game 81?
CREATE TABLE table_name_58 (high_rebounds VARCHAR, game VARCHAR)
SELECT tournament FROM table_name_5 WHERE 2006 = "0-0"
What tournament in 2006 had a score of 0-0?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT to_par FROM table_name_63 WHERE place = "t3"
What is the To par of the T3 Player?
CREATE TABLE table_name_63 (to_par VARCHAR, place VARCHAR)
SELECT COUNT(name) FROM table_12803263_1 WHERE _number = 4
What is the number of the name for number 4?
CREATE TABLE table_12803263_1 (name VARCHAR, _number VARCHAR)
SELECT COUNT(points) FROM table_name_97 WHERE engine = "ferrari v6" AND year = 1962
In 1962, what was the total number of points, when the Engine was Ferrari v6?
CREATE TABLE table_name_97 (points VARCHAR, engine VARCHAR, year VARCHAR)
SELECT college FROM table_name_51 WHERE pick = 85
What college had the pick of 85?
CREATE TABLE table_name_51 (college VARCHAR, pick VARCHAR)
SELECT score FROM table_name_11 WHERE date = "december 12, 1998"
What's the score on December 12, 1998?
CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_27755603_8 WHERE date = "January 14"
Name the high rebounds for january 14
CREATE TABLE table_27755603_8 (high_rebounds VARCHAR, date VARCHAR)
SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Heathrow" INTERSECT SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport...
Show the names of aircrafts that are associated with both an airport named "London Heathrow" and an airport named "London Gatwick"
CREATE TABLE airport (Airport_ID VARCHAR, Airport_Name VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR)
SELECT us_viewers__millions_ FROM table_22570439_1 WHERE season__number = 5
How many u.s. viewers (millions) have 5 as the season #?
CREATE TABLE table_22570439_1 (us_viewers__millions_ VARCHAR, season__number VARCHAR)
SELECT home_team FROM table_name_86 WHERE away_team = "carlton"
What is the name of the home team that played Carlton?
CREATE TABLE table_name_86 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(ep) FROM table_20967430_4 WHERE prod_code = "5M13"
How many episodes had a production code of 5m13?
CREATE TABLE table_20967430_4 (ep VARCHAR, prod_code VARCHAR)
SELECT network FROM table_name_80 WHERE premiere = "13 january 2009"
Tell me the network for 13 january 2009
CREATE TABLE table_name_80 (network VARCHAR, premiere VARCHAR)
SELECT MAX(grid) FROM table_name_70 WHERE bike = "honda cbr1000rr" AND time = "+20.848" AND laps > 24
What is the largest Grid that has a Bike of honda cbr1000rr, and a Time of +20.848, and a Lap greater than 24?
CREATE TABLE table_name_70 (grid INTEGER, laps VARCHAR, bike VARCHAR, time VARCHAR)
SELECT team FROM table_name_41 WHERE race_2 = "5"
What is Team, when Race 2 is "5"?
CREATE TABLE table_name_41 (team VARCHAR, race_2 VARCHAR)
SELECT COUNT(team_captain) FROM table_23214833_1 WHERE club = "Sliven 2000"
How many different team captains does the club Sliven 2000 have?
CREATE TABLE table_23214833_1 (team_captain VARCHAR, club VARCHAR)
SELECT 1 AS st_prize___$__ FROM table_name_56 WHERE winner = "ken green (4)"
What is the amount of the 1st prize when the Winner was ken green (4)?
CREATE TABLE table_name_56 (winner VARCHAR)
SELECT SUM(attendance) FROM table_name_22 WHERE date = "1983-11-21" AND week < 12
before week 12 what was the attendance on 1983-11-21?
CREATE TABLE table_name_22 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT MIN(rating) FROM table_name_27 WHERE rank__night_ < 7 AND rank__timeslot_ < 5 AND episode > 6
What is the smallest rating with nightly rank smaller than 7, timeslot rank smaller than 5 and eposide after episode 6?
CREATE TABLE table_name_27 (rating INTEGER, episode VARCHAR, rank__night_ VARCHAR, rank__timeslot_ VARCHAR)