answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MIN(total) FROM table_name_5 WHERE rank = "11" AND bronze < 1
When the rank is 11, and bronze a smaller than 1 what is the lowest total?
CREATE TABLE table_name_5 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT set_2 FROM table_name_3 WHERE set_1 = "19:21"
What Set 2 has a set one at 19:21?
CREATE TABLE table_name_3 (set_2 VARCHAR, set_1 VARCHAR)
SELECT attendance FROM table_name_29 WHERE date = "16 august 2008" AND away = "platense"
When Platense was the away team on 16 August 2008 how many people attended the game?
CREATE TABLE table_name_29 (attendance VARCHAR, date VARCHAR, away VARCHAR)
SELECT award FROM table_name_81 WHERE result = "nominated" AND production = "an officer and a gentleman"
Which award was An Officer and a Gentleman nominated for?
CREATE TABLE table_name_81 (award VARCHAR, result VARCHAR, production VARCHAR)
SELECT composer FROM table_28005100_1 WHERE title = "Te3rafy"
Who was the composer of te3rafy?
CREATE TABLE table_28005100_1 (composer VARCHAR, title VARCHAR)
SELECT DISTINCT T1.date_arrived, T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id
What are the arriving date and the departing date of the dogs who have gone through a treatment?
CREATE TABLE Dogs (date_arrived VARCHAR, date_departed VARCHAR, dog_id VARCHAR); CREATE TABLE Treatments (dog_id VARCHAR)
SELECT party FROM table_1342393_16 WHERE first_elected = 1920
Name the party or first elected is 1920
CREATE TABLE table_1342393_16 (party VARCHAR, first_elected VARCHAR)
SELECT date_of_ceremony FROM table_26282750_1 WHERE participants_recipients = "Takakazu Watanabe"
What date was the participant/recipient takakazu watanabe?
CREATE TABLE table_26282750_1 (date_of_ceremony VARCHAR, participants_recipients VARCHAR)
SELECT COUNT(played) FROM table_name_76 WHERE difference = "22" AND against < 34
What is the total number played with a difference of 22 and less than 34 against?
CREATE TABLE table_name_76 (played VARCHAR, difference VARCHAR, against VARCHAR)
SELECT country FROM table_name_6 WHERE name = "paul runyan"
What country is Paul Runyan from?
CREATE TABLE table_name_6 (country VARCHAR, name VARCHAR)
SELECT score FROM table_name_79 WHERE date = "january 26"
What was the score on January 26?
CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR)
SELECT MAX(total_passengers) FROM table_name_49 WHERE annual_change = "18.3%" AND rank < 11
What is the highest Total Passengers when the annual change is 18.3%, and the rank is less than 11?
CREATE TABLE table_name_49 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR)
SELECT jersey_number_s_ FROM table_name_54 WHERE years = "1986 – 1991 1997 – 1999"
What is the jersey number of the player from years 1986 – 1991 1997 – 1999?
CREATE TABLE table_name_54 (jersey_number_s_ VARCHAR, years VARCHAR)
SELECT score FROM table_name_50 WHERE date = "may 5"
What is the score of the game on May 5?
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
SELECT player FROM table_name_37 WHERE pick > 2 AND position = "forward"
Which Player has a Pick larger than 2, and a Position of forward?
CREATE TABLE table_name_37 (player VARCHAR, pick VARCHAR, position VARCHAR)
SELECT COUNT(gregorian_calendar) FROM table_169955_1 WHERE sign_of_zodiac = "Gemini"
Name the number of gregorian calenda rof gemini
CREATE TABLE table_169955_1 (gregorian_calendar VARCHAR, sign_of_zodiac VARCHAR)
SELECT track FROM table_name_34 WHERE opened = "1992"
Where is the track located that opened in 1992?
CREATE TABLE table_name_34 (track VARCHAR, opened VARCHAR)
SELECT score FROM table_name_45 WHERE opponent = "richmond"
What was the score when Richmond was the opponent?
CREATE TABLE table_name_45 (score VARCHAR, opponent VARCHAR)
SELECT icao FROM table_name_52 WHERE airport = "yangon international airport"
What is the ICAO for the Yangon International Airport?
CREATE TABLE table_name_52 (icao VARCHAR, airport VARCHAR)
SELECT country FROM table_name_85 WHERE icao = "enzv"
What country has an ICAO of ENZV?
CREATE TABLE table_name_85 (country VARCHAR, icao VARCHAR)
SELECT school_year FROM table_name_73 WHERE class_aAA = dalhart AND class_aAAAA = edinburg
Which school year was the Class AAA dalhart and the class AAAAA edinburg?
CREATE TABLE table_name_73 (school_year VARCHAR, class_aAA VARCHAR, dalhart VARCHAR, class_aAAAA VARCHAR, edinburg VARCHAR)
SELECT opponent FROM table_name_32 WHERE method = "tko"
Who was the opponent when there was a TKO method?
CREATE TABLE table_name_32 (opponent VARCHAR, method VARCHAR)
SELECT COUNT(attendance) FROM table_name_4 WHERE result = "l 35-17"
Tell me the number of attendance that has a result of l 35-17
CREATE TABLE table_name_4 (attendance VARCHAR, result VARCHAR)
SELECT crowd FROM table_name_26 WHERE away_team = "footscray"
What was the crowd when the away team is footscray?
CREATE TABLE table_name_26 (crowd VARCHAR, away_team VARCHAR)
SELECT course FROM table_name_58 WHERE type = "team time trial"
Name the course for team time trial
CREATE TABLE table_name_58 (course VARCHAR, type VARCHAR)
SELECT hometown FROM table_name_33 WHERE college = "usc"
What is the hometown of the player who went to college at USC?
CREATE TABLE table_name_33 (hometown VARCHAR, college VARCHAR)
SELECT LOCATION FROM school ORDER BY Enrollment
List the locations of schools in ascending order of enrollment.
CREATE TABLE school (LOCATION VARCHAR, Enrollment VARCHAR)
SELECT MIN(points) FROM table_name_43 WHERE lost < 4 AND against < 16
What is the least amount of points when there were less than 4 losses and less than 16 against?
CREATE TABLE table_name_43 (points INTEGER, lost VARCHAR, against VARCHAR)
SELECT class_aA FROM table_name_52 WHERE school_year = "1994-95"
What team was class AA in years 1994-95?
CREATE TABLE table_name_52 (class_aA VARCHAR, school_year VARCHAR)
SELECT COUNT(established) FROM table_16432543_3 WHERE institution = "University of Maryland"
How many teams were established at University of Maryland?
CREATE TABLE table_16432543_3 (established VARCHAR, institution VARCHAR)
SELECT COUNT(winning_score) FROM table_17335602_1 WHERE tournament = "RR Donnelley LPGA Founders Cup"
How many winning scores were there in the rr donnelley lpga founders cup?
CREATE TABLE table_17335602_1 (winning_score VARCHAR, tournament VARCHAR)
SELECT district FROM table_1342292_2 WHERE first_elected = 1938
what's the district  with first elected being 1938
CREATE TABLE table_1342292_2 (district VARCHAR, first_elected VARCHAR)
SELECT MAX(long) FROM table_name_91 WHERE car = 59
Who has the highest Long with 59 Car?
CREATE TABLE table_name_91 (long INTEGER, car VARCHAR)
SELECT best FROM table_name_47 WHERE name = "alex figge"
What was Alex Figge's Best?
CREATE TABLE table_name_47 (best VARCHAR, name VARCHAR)
SELECT split_off___continuation_of FROM table_name_40 WHERE date = "1836"
Which church had a Split off/Continuation in 1836?
CREATE TABLE table_name_40 (split_off___continuation_of VARCHAR, date VARCHAR)
SELECT place FROM table_name_19 WHERE to_par = "+3"
What is the Place of the Player with a +3 To par?
CREATE TABLE table_name_19 (place VARCHAR, to_par VARCHAR)
SELECT away_team FROM table_name_83 WHERE home_team = "west ham united"
What is Away Team, when Home Team is "West Ham United"?
CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR)
SELECT player FROM table_name_11 WHERE team_from = "south shore kings"
Which Player has a Team from of south shore kings?
CREATE TABLE table_name_11 (player VARCHAR, team_from VARCHAR)
SELECT Box AS score FROM table_name_3 WHERE home_team = "melbourne tigers"
what is the box score when the home team is melbourne tigers?
CREATE TABLE table_name_3 (Box VARCHAR, home_team VARCHAR)
SELECT MAX(postal_code) FROM table_28891101_3 WHERE administrative_capital = "Bori"
What is the postal code when the administrative capital in Bori?
CREATE TABLE table_28891101_3 (postal_code INTEGER, administrative_capital VARCHAR)
SELECT MAX(renewable_electricity__gw) AS •h_ FROM table_25244412_1 WHERE state = "Delaware"
What is the maximum renewable energy (gw×h) for the state of Delaware?
CREATE TABLE table_25244412_1 (renewable_electricity__gw INTEGER, state VARCHAR)
SELECT AVG(crowd) FROM table_name_39 WHERE away_team = "south melbourne"
What is the size of the crowd for the game where the away team South Melbourne played?
CREATE TABLE table_name_39 (crowd INTEGER, away_team VARCHAR)
SELECT team FROM table_name_19 WHERE position = "ss" AND player = "rich mckinney"
What is SS Player Rich McKinney's Team?
CREATE TABLE table_name_19 (team VARCHAR, position VARCHAR, player VARCHAR)
SELECT genre FROM table_name_93 WHERE network = "zee tv"
What Genre has the Network Zee TV?
CREATE TABLE table_name_93 (genre VARCHAR, network VARCHAR)
SELECT analog FROM table_name_9 WHERE callsign = "wxmi"
what is the analog type for wxmi?
CREATE TABLE table_name_9 (analog VARCHAR, callsign VARCHAR)
SELECT SUM(draws) FROM table_name_97 WHERE wimmera_fl = "ararat" AND byes < 2
What's the total draws for Ararat when the byes are less than 2?
CREATE TABLE table_name_97 (draws INTEGER, wimmera_fl VARCHAR, byes VARCHAR)
SELECT away_team FROM table_name_56 WHERE home_team = "richmond"
Who was the opponent when Richmond played as the home team?
CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR)
SELECT MIN(total) FROM table_name_96 WHERE nation = "barbados" AND bronze > 0
What is the lowest total that has barbados as the nation with a bronze greater than 0?
CREATE TABLE table_name_96 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT partner FROM table_name_26 WHERE outcome = "runner-up" AND date = "april 6, 1992"
Who is the partner with a runner-up outcome on April 6, 1992?
CREATE TABLE table_name_26 (partner VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_12 WHERE date = "october 22, 2000"
what is the attendance when the date is october 22, 2000?
CREATE TABLE table_name_12 (attendance VARCHAR, date VARCHAR)
SELECT SUM(silver) FROM table_name_92 WHERE gold = 4 AND nation = "belarus (blr)" AND bronze > 4
How many silver medals does Belarus (blr) along with 4 gold and 4 bronze?
CREATE TABLE table_name_92 (silver INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT children_together FROM table_24143253_2 WHERE deceased_spouse = "Dennis Hawley"
How many children did Dennis Hawley have at his time of death?
CREATE TABLE table_24143253_2 (children_together VARCHAR, deceased_spouse VARCHAR)
SELECT date_of_inauguration FROM table_name_78 WHERE length_of_retirement = "00,624 days"
What is the date of the inauguration with a Length of retirement of 00,624 days?
CREATE TABLE table_name_78 (date_of_inauguration VARCHAR, length_of_retirement VARCHAR)
SELECT COUNT(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = "voluptatem"
How many problems are there for product voluptatem?
CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_id VARCHAR, product_name VARCHAR)
SELECT place FROM table_name_8 WHERE country = "united states" AND score = 68 - 73 - 68 = 209
What place is the United States in that has a score of 68-73-68=209?
CREATE TABLE table_name_8 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT vehicle FROM table_24620684_2 WHERE epa_rated_combined_fuel_economy = "102 mpg-e (33kW-hrs/100mi)"
When 102 mpg-e (33kw-hrs/100mi) is the epa rated combined fuel economy what is the vehicle type?
CREATE TABLE table_24620684_2 (vehicle VARCHAR, epa_rated_combined_fuel_economy VARCHAR)
SELECT classifaction FROM table_name_55 WHERE language = "cantonese" AND publisher = "universal pictures japan"
What classification has cantonese as the language, and universal pictures japan as the publisher?
CREATE TABLE table_name_55 (classifaction VARCHAR, language VARCHAR, publisher VARCHAR)
SELECT competition FROM table_name_48 WHERE away_result = "0–3" AND season = "1969-70"
Away result of 0–3, and a Season of 1969-70 is what competition?
CREATE TABLE table_name_48 (competition VARCHAR, away_result VARCHAR, season VARCHAR)
SELECT MIN(cuts_made) FROM table_name_72 WHERE tournament = "masters tournament" AND top_25 < 0
What is the lowest cuts made of the Masters tournament, which had a top-25 less than 0?
CREATE TABLE table_name_72 (cuts_made INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT MIN(year_drafted) FROM table_18373863_2 WHERE years_played = "2005"
When 2005 is the year played what is the lowest year drafted?
CREATE TABLE table_18373863_2 (year_drafted INTEGER, years_played VARCHAR)
SELECT nominated_work FROM table_name_62 WHERE year < 2003
What was the Nominated Work earlier than 2003?
CREATE TABLE table_name_62 (nominated_work VARCHAR, year INTEGER)
SELECT record FROM table_17323042_11 WHERE high_points = "Andre Miller (30)"
What was the W-L record when HIgh Points was andre miller (30)?
CREATE TABLE table_17323042_11 (record VARCHAR, high_points VARCHAR)
SELECT manufacturer FROM table_name_13 WHERE rider = "loris capirossi"
Which manufacturer does Loris Capirossi ride for?
CREATE TABLE table_name_13 (manufacturer VARCHAR, rider VARCHAR)
SELECT result FROM table_name_91 WHERE opponent = "los angeles rams"
What was the result of the los angeles rams game?
CREATE TABLE table_name_91 (result VARCHAR, opponent VARCHAR)
SELECT position FROM table_11803648_21 WHERE player = "Cody Ceci"
What position does Cody Ceci play?
CREATE TABLE table_11803648_21 (position VARCHAR, player VARCHAR)
SELECT SUM(pick) FROM table_name_66 WHERE player = "bill bray"
Which pick was Bill Bray?
CREATE TABLE table_name_66 (pick INTEGER, player VARCHAR)
SELECT us_viewers__millions_ FROM table_23294081_11 WHERE no = 226
How many millions of people in the US saw the episode number 226?
CREATE TABLE table_23294081_11 (us_viewers__millions_ VARCHAR, no VARCHAR)
SELECT MIN(bathroom_count), MAX(bathroom_count) FROM Apartments
What is the minimum and maximum number of bathrooms of all the apartments?
CREATE TABLE Apartments (bathroom_count INTEGER)
SELECT season FROM table_name_5 WHERE acquisition_via = "trade" AND school_club_team = "la salle"
Which season had a trade with the school/club team La Salle?
CREATE TABLE table_name_5 (season VARCHAR, acquisition_via VARCHAR, school_club_team VARCHAR)
SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010
Find the name of students who took any class in the years of 2009 and 2010.
CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (id VARCHAR)
SELECT SUM(land___sqmi__) FROM table_name_36 WHERE ansi_code < 1036538 AND pop__2010_ < 42 AND longitude > -99.442872 AND water__sqmi_ > 0.882
What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water?
CREATE TABLE table_name_36 (land___sqmi__ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR, ansi_code VARCHAR, pop__2010_ VARCHAR)
SELECT location FROM table_name_12 WHERE opponent = "jonathan goulet"
What is Location, when Opponent is "Jonathan Goulet"?
CREATE TABLE table_name_12 (location VARCHAR, opponent VARCHAR)
SELECT MAX(rank) FROM table_1682026_6 WHERE assets__billion_$_ = "1,715.8"
What is the highest rank of a company that has 1,715.8 billion in assets?
CREATE TABLE table_1682026_6 (rank INTEGER, assets__billion_$_ VARCHAR)
SELECT score FROM table_name_69 WHERE year = 2004
What is the score for 2004?
CREATE TABLE table_name_69 (score VARCHAR, year VARCHAR)
SELECT position FROM table_name_37 WHERE school = "university of alabama"
what is the position for the player from university of alabama?
CREATE TABLE table_name_37 (position VARCHAR, school VARCHAR)
SELECT finish FROM table_name_94 WHERE player = "lee janzen"
Name the finish for lee janzen
CREATE TABLE table_name_94 (finish VARCHAR, player VARCHAR)
SELECT marriage FROM table_name_28 WHERE spouse = "antoinette jeanne yvonne boegner"
On waht date did Antoinette Jeanne Yvonne Boegner get married?
CREATE TABLE table_name_28 (marriage VARCHAR, spouse VARCHAR)
SELECT opponent FROM table_name_22 WHERE method = "technical submission (guillotine choke)"
Who is the opponent when the method is technical submission (guillotine choke)?
CREATE TABLE table_name_22 (opponent VARCHAR, method VARCHAR)
SELECT MAX(attendance) FROM table_name_58 WHERE date = "november 11, 1979" AND week > 11
How many people attended the Cleveland Browns game on November 11, 1979?
CREATE TABLE table_name_58 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT championship FROM table_24901152_4 WHERE score = "6–4, 5–7, 6–2"
Which championship was the score 6–4, 5–7, 6–2?
CREATE TABLE table_24901152_4 (championship VARCHAR, score VARCHAR)
SELECT AVG(bronze) FROM table_name_42 WHERE gold > 1 AND silver > 2
What was the average bronze when gold was larger than 1 and silver was larger than 2?
CREATE TABLE table_name_42 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT res FROM table_name_89 WHERE record = "2-0"
What was the resolution of the fight when matt grice had a record of 2-0?
CREATE TABLE table_name_89 (res VARCHAR, record VARCHAR)
SELECT player FROM table_name_63 WHERE venue = "esher"
Who is the player associated with the Esher venue?
CREATE TABLE table_name_63 (player VARCHAR, venue VARCHAR)
SELECT directed_by FROM table_23242968_1 WHERE written_by = "Jonathan Fener"
Who directed the episode that was written by Jonathan Fener?
CREATE TABLE table_23242968_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT order__number FROM table_22736523_1 WHERE song_choice = "Coba"
If Coba is the song choice, what is the order number?
CREATE TABLE table_22736523_1 (order__number VARCHAR, song_choice VARCHAR)
SELECT nhl_team FROM table_1965650_4 WHERE college_junior_club_team = "Sudbury Wolves (OHA)"
What's the NHL team that drafted the player from Sudbury Wolves (OHA)?
CREATE TABLE table_1965650_4 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Dameon" AND T2.staff_last_name = "Frami" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Jolie" AND T2.staff_last_name = "Weber"
What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?
CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR)
SELECT incumbent FROM table_2668416_18 WHERE district = "Virginia 8"
If the district is Virginia 8, who is the Incumbent?
CREATE TABLE table_2668416_18 (incumbent VARCHAR, district 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 road_team FROM table_name_61 WHERE result = "117-114"
Which road team has a result of 117-114?
CREATE TABLE table_name_61 (road_team VARCHAR, result VARCHAR)
SELECT score FROM table_1547951_3 WHERE opponents = "Rick Leach Zina Garrison"
Name the score for rick leach zina garrison
CREATE TABLE table_1547951_3 (score VARCHAR, opponents VARCHAR)
SELECT SUM(february) FROM table_name_88 WHERE opponent = "montreal canadiens"
What's the February for the game against the Montreal Canadiens?
CREATE TABLE table_name_88 (february INTEGER, opponent VARCHAR)
SELECT MAX(total) FROM table_name_89 WHERE silver > 0 AND bronze < 0
What is the total when silver is more than 0, and bronze less than 0?
CREATE TABLE table_name_89 (total INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT MAX(rank) FROM table_name_8 WHERE country = "ethiopia"
What is the highest rank of a player from Ethiopia?
CREATE TABLE table_name_8 (rank INTEGER, country VARCHAR)
SELECT location FROM table_name_24 WHERE years_member = "1963–1968"
What Location has Years Member of 1963–1968?
CREATE TABLE table_name_24 (location VARCHAR, years_member VARCHAR)
SELECT COUNT(name) FROM table_26321719_1 WHERE area__km²_ = "8.12"
How many names correspond to an area of 8.12?
CREATE TABLE table_26321719_1 (name VARCHAR, area__km²_ VARCHAR)
SELECT written_by FROM table_21313327_1 WHERE no_in_season = 3
In season number 3, who were the writers?
CREATE TABLE table_21313327_1 (written_by VARCHAR, no_in_season VARCHAR)
SELECT AVG(year) FROM table_name_65 WHERE points > 0
Which year did the team receive more than 0 points?
CREATE TABLE table_name_65 (year INTEGER, points INTEGER)
SELECT AVG(seat) FROM table_name_81 WHERE series_3 = "dana bérová"
What is the seat number when Series 3 shows Dana Bérová?
CREATE TABLE table_name_81 (seat INTEGER, series_3 VARCHAR)
SELECT place FROM table_name_13 WHERE player = "bobby wadkins"
What place did bobby wadkins come in?
CREATE TABLE table_name_13 (place VARCHAR, player VARCHAR)