answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT name FROM table_name_6 WHERE longitude = "213.0e"
What name has a longitude of 213.0e?
CREATE TABLE table_name_6 (name VARCHAR, longitude VARCHAR)
SELECT MIN(attendance) FROM table_name_53 WHERE opponent = "tampa bay buccaneers" AND points_against < 7
What is the lowest Attendance against the tampa bay buccaneers, with Points Against of less than 7?
CREATE TABLE table_name_53 (attendance INTEGER, opponent VARCHAR, points_against VARCHAR)
SELECT region FROM table_name_19 WHERE catalog = "570 734-2"
Which region had a catalog number of 570 734-2?
CREATE TABLE table_name_19 (region VARCHAR, catalog VARCHAR)
SELECT country FROM table_name_43 WHERE date = "2004" AND catalog_nr = "thr-048"
Which country has the catalog nr of thr-048 in 2004?
CREATE TABLE table_name_43 (country VARCHAR, date VARCHAR, catalog_nr VARCHAR)
SELECT COUNT(composition) FROM table_14598_5 WHERE christians = "39.7"
How many data points for chrstians are 39.7?
CREATE TABLE table_14598_5 (composition VARCHAR, christians VARCHAR)
SELECT MAX(podiums) FROM table_name_31 WHERE wins = 0 AND season > 1985
What is the highest Podiums with 0 as wins, and a season later than 1985?
CREATE TABLE table_name_31 (podiums INTEGER, wins VARCHAR, season VARCHAR)
SELECT release_date FROM table_name_85 WHERE title = "drip-along daffy"
What was the release date of the episode titled Drip-Along Daffy?
CREATE TABLE table_name_85 (release_date VARCHAR, title VARCHAR)
SELECT Status, AVG(Population) FROM city GROUP BY Status
Please show the different statuses of cities and the average population of cities with each status.
CREATE TABLE city (Status VARCHAR, Population INTEGER)
SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District WHERE T2.Committee = "Appropriations"
What are the names of the county that the delegates on "Appropriations" committee belong to?
CREATE TABLE election (District VARCHAR, Committee VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR)
SELECT SUM(lost) FROM table_name_67 WHERE against > 19 AND drawn < 1
How much Lost has an Against larger than 19, and a Drawn smaller than 1?
CREATE TABLE table_name_67 (lost INTEGER, against VARCHAR, drawn VARCHAR)
SELECT date FROM table_name_35 WHERE home_captain = "courtney walsh" AND venue = "queen's park oval"
On which dates played Home Captain Courtney Walsh at the Queen's Park Oval?
CREATE TABLE table_name_35 (date VARCHAR, home_captain VARCHAR, venue VARCHAR)
SELECT COUNT(round) FROM table_name_30 WHERE event = "ufc 114"
How many total rounds were there at UFC 114?
CREATE TABLE table_name_30 (round VARCHAR, event VARCHAR)
SELECT COUNT(type) FROM table_261895_1 WHERE nickname = "Britons"
how many categories fall under the category of britons?
CREATE TABLE table_261895_1 (type VARCHAR, nickname VARCHAR)
SELECT loss FROM table_name_12 WHERE attendance = "38,062"
What is the loss of the game with 38,062 folks in attendance?
CREATE TABLE table_name_12 (loss VARCHAR, attendance VARCHAR)
SELECT type FROM table_name_89 WHERE transfer_window = "summer" AND moving_from = "free agent"
What is the type if the transfer window is summer and the moving from category is free agent?
CREATE TABLE table_name_89 (type VARCHAR, transfer_window VARCHAR, moving_from VARCHAR)
SELECT city FROM table_name_99 WHERE seasons_in_league = 17 AND club = "shakhter"
Which City has Seasons in league of 17, and a Club of shakhter?
CREATE TABLE table_name_99 (city VARCHAR, seasons_in_league VARCHAR, club VARCHAR)
SELECT MAX(year) FROM table_name_30 WHERE points = 3
Tell me the most year for 3 points
CREATE TABLE table_name_30 (year INTEGER, points VARCHAR)
SELECT grand_prix FROM table_name_25 WHERE location = "jerez"
Which Grand Prix is located in Jerez?
CREATE TABLE table_name_25 (grand_prix VARCHAR, location VARCHAR)
SELECT score FROM table_name_14 WHERE date = "28 february 1953" AND tie_no = "3"
Which Score has a Date of 28 february 1953, and a Tie no of 3?
CREATE TABLE table_name_14 (score VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_82 WHERE date = "10 january 1979" AND tie_no = "17"
Who was the away team on 10 January 1979 who had a tie no of 17?
CREATE TABLE table_name_82 (away_team VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT MIN(year) FROM table_name_33 WHERE category = "1" AND stage = 12
What is the lowest year for stage 12, category 1?
CREATE TABLE table_name_33 (year INTEGER, category VARCHAR, stage VARCHAR)
SELECT country FROM table_name_16 WHERE year > 1978 AND score = "295" AND venue = "lindrick golf club"
Which Country has a Year larger than 1978, and a Score of 295, and a Venue of lindrick golf club?
CREATE TABLE table_name_16 (country VARCHAR, venue VARCHAR, year VARCHAR, score VARCHAR)
SELECT COUNT(couple) FROM table_20424140_3 WHERE average = "25.3"
How many couples have an average of 25.3?
CREATE TABLE table_20424140_3 (couple VARCHAR, average VARCHAR)
SELECT opponent FROM table_name_32 WHERE date = "november 27, 2005"
Who was the Opponent on November 27, 2005?
CREATE TABLE table_name_32 (opponent VARCHAR, date VARCHAR)
SELECT status FROM table_name_31 WHERE authors = "woodruff"
What is the Status with an Author that is woodruff?
CREATE TABLE table_name_31 (status VARCHAR, authors VARCHAR)
SELECT time FROM table_name_76 WHERE speed = "96.76mph"
At 96.76mph speed, what is the Time?
CREATE TABLE table_name_76 (time VARCHAR, speed VARCHAR)
SELECT hardness FROM table_name_45 WHERE liquid_at__°c_ = "243"
What is the hardness for the alloy that is liquid at 243 degrees C?
CREATE TABLE table_name_45 (hardness VARCHAR, liquid_at__°c_ VARCHAR)
SELECT time_retired FROM table_name_74 WHERE laps = 42 AND grid = 4
Tell me the time/retired for Laps of 42 and Grids of 4
CREATE TABLE table_name_74 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT opponent_in_the_final FROM table_name_43 WHERE date = "24 november 2008"
Who is the opponent in the final on 24 November 2008?
CREATE TABLE table_name_43 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT entrant FROM table_name_24 WHERE year = 1969
What entrant appeared in 1969?
CREATE TABLE table_name_24 (entrant VARCHAR, year VARCHAR)
SELECT MAX(laps) FROM table_name_68 WHERE grid < 6 AND time_retired = "halfshaft"
What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft?
CREATE TABLE table_name_68 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT field FROM table_name_99 WHERE home_away = "away" AND opponent = "bayhawks"
What Field was played at in an away game against the bayhawks?
CREATE TABLE table_name_99 (field VARCHAR, home_away VARCHAR, opponent VARCHAR)
SELECT COUNT(capacity) FROM table_name_84 WHERE founded = 1944
How much capacity has 1944 as the founded?
CREATE TABLE table_name_84 (capacity VARCHAR, founded VARCHAR)
SELECT soap_opera FROM table_name_10 WHERE years = "2000–2004, 2005—"
what is the soap opera when the years are 2000–2004, 2005—?
CREATE TABLE table_name_10 (soap_opera VARCHAR, years VARCHAR)
SELECT MIN(money___) AS $__ FROM table_name_45 WHERE country = "united states" AND player = "kirk triplett"
what is the least money ($) when the country is united states and the player is kirk triplett?
CREATE TABLE table_name_45 (money___ INTEGER, country VARCHAR, player VARCHAR)
SELECT COUNT(draw) FROM table_name_36 WHERE lost > 11 AND match < 14
How many draws correspond to more than 11 losses in a match less than 14?
CREATE TABLE table_name_36 (draw VARCHAR, lost VARCHAR, match VARCHAR)
SELECT COUNT(no_in_season) FROM table_22265225_1 WHERE no_in_series = "29"
How many episodes were listed as number 29 in the series?
CREATE TABLE table_22265225_1 (no_in_season VARCHAR, no_in_series VARCHAR)
SELECT aircraft FROM table_name_37 WHERE call_sign = "paula 01"
Which Aircraft has the Call Sign Paula 01?
CREATE TABLE table_name_37 (aircraft VARCHAR, call_sign VARCHAR)
SELECT gross FROM table_name_71 WHERE rank > 7 AND director = "barry levinson"
WHAT IS THE GROSS DOLLARS WITH A RANK OF 7 OR MORE, AND DIRECTOR BARRY LEVINSON?
CREATE TABLE table_name_71 (gross VARCHAR, rank VARCHAR, director VARCHAR)
SELECT score FROM table_name_77 WHERE game > 3 AND opponent = "buffalo sabres"
What is the score that has a game greater than 3, with buffalo sabres as the opponent?
CREATE TABLE table_name_77 (score VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT MIN(grid) FROM table_name_83 WHERE time_retired = "engine" AND driver = "emerson fittipaldi" AND laps > 70
Tell me the lowest Grid for engine and driver of emerson fittipaldi with more laps than 70
CREATE TABLE table_name_83 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT venue FROM table_name_87 WHERE opponent = "cronulla sharks"
What is the venue of the match with cronulla sharks as the opponent?
CREATE TABLE table_name_87 (venue VARCHAR, opponent VARCHAR)
SELECT team_1 FROM table_name_87 WHERE team_2 = "hafia fc"
Which team 1 had a team 2 of Hafia FC?
CREATE TABLE table_name_87 (team_1 VARCHAR, team_2 VARCHAR)
SELECT record FROM table_name_34 WHERE date = "july 2"
What was the record on July 2?
CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR)
SELECT league_goals FROM table_name_50 WHERE fa_cup_goals > 0 AND fa_cup_apps = "2" AND league_apps = "45"
what is the league goals when the fa cup goals is higher than 0, the fa cup apps is 2 and the league apps is 45?
CREATE TABLE table_name_50 (league_goals VARCHAR, league_apps VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)
SELECT home_team FROM table_name_60 WHERE away_team = "al-ain fc" AND year = "2002/03"
Which Home team has an Away team of al-ain fc, and a Year of 2002/03?
CREATE TABLE table_name_60 (home_team VARCHAR, away_team VARCHAR, year VARCHAR)
SELECT COUNT(week) FROM table_name_78 WHERE result = "t 10-10"
How many weeks have a Result of t 10-10?
CREATE TABLE table_name_78 (week VARCHAR, result VARCHAR)
SELECT score FROM table_name_68 WHERE date = "april 11, 2007"
What was the final score for the match held on April 11, 2007?
CREATE TABLE table_name_68 (score VARCHAR, date VARCHAR)
SELECT office FROM table_20246201_9 WHERE candidate = "Jon Huntsman"
What office is Jon Huntsman a candidate for?
CREATE TABLE table_20246201_9 (office VARCHAR, candidate VARCHAR)
SELECT MAX(year) FROM table_name_14 WHERE championship = "the open championship"
What is the highest Year with of the open championship?
CREATE TABLE table_name_14 (year INTEGER, championship VARCHAR)
SELECT MAX(round) FROM table_name_28 WHERE time = "4:39"
What is the highest round number with a time of 4:39?
CREATE TABLE table_name_28 (round INTEGER, time VARCHAR)
SELECT name FROM table_name_28 WHERE percentage = "0.59%"
Which name has a percentage of 0.59%?
CREATE TABLE table_name_28 (name VARCHAR, percentage VARCHAR)
SELECT venue FROM table_name_74 WHERE away_team = "melbourne"
When the Away team is melbourne, what venue do they play at?
CREATE TABLE table_name_74 (venue VARCHAR, away_team VARCHAR)
SELECT SUM(total) FROM table_name_47 WHERE player = "seve ballesteros"
What is the Total for Seve Ballesteros?
CREATE TABLE table_name_47 (total INTEGER, player VARCHAR)
SELECT res FROM table_name_86 WHERE opponent = "mark hunt"
The match against Mark Hunt had what result?
CREATE TABLE table_name_86 (res VARCHAR, opponent VARCHAR)
SELECT partnering FROM table_name_25 WHERE score = "4–6, 7–5, [10–8]"
What is the partner with a score of 4–6, 7–5, [10–8]?
CREATE TABLE table_name_25 (partnering VARCHAR, score VARCHAR)
SELECT incumbent FROM table_1342292_2 WHERE candidates = "Sam Hobbs (D) 88.2% C. W. McKay (R) 11.8%"
what's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8%
CREATE TABLE table_1342292_2 (incumbent VARCHAR, candidates VARCHAR)
SELECT MIN(year) FROM table_name_98 WHERE manager = "gene hassell" AND finish = "6th"
Name the least year for gene hassell manager and 6th finish
CREATE TABLE table_name_98 (year INTEGER, manager VARCHAR, finish VARCHAR)
SELECT win__percentage FROM table_name_51 WHERE _number_of_bids = 2 AND conference = "west coast"
When the conference is west coast and the number of bids are at 2, what's the percentage of games won?
CREATE TABLE table_name_51 (win__percentage VARCHAR, _number_of_bids VARCHAR, conference VARCHAR)
SELECT MAX(2010) FROM table_30133_3 WHERE gap_from_thailand_as_of_1980__times_ = "2.43"
What is the max 2010 value for a 1980 gap value is 2.43?
CREATE TABLE table_30133_3 (gap_from_thailand_as_of_1980__times_ VARCHAR)
SELECT attendance FROM table_name_56 WHERE date = "26 december 2004"
What is Attendance, when Date is "26 December 2004"?
CREATE TABLE table_name_56 (attendance VARCHAR, date VARCHAR)
SELECT AVG(year) FROM table_name_46 WHERE team = "team oreca"
What is the average year for Team Oreca?
CREATE TABLE table_name_46 (year INTEGER, team VARCHAR)
SELECT res FROM table_name_6 WHERE method = "decision (unanimous)" AND opponent = "marcus aurélio"
In the match against Marcus Aurélio with a method of decision (unanimous), what was the results?
CREATE TABLE table_name_6 (res VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT college FROM table_21321804_3 WHERE cfl_team = "Hamilton Tiger-Cats"
What college did the player for the Hamilton Tiger-Cats go to?
CREATE TABLE table_21321804_3 (college VARCHAR, cfl_team VARCHAR)
SELECT MIN(crowd) FROM table_name_84 WHERE venue = "mcg"
What is the lowest crowd seen by the mcg Venue?
CREATE TABLE table_name_84 (crowd INTEGER, venue VARCHAR)
SELECT college FROM table_20861261_4 WHERE player = "Terrance Taylor"
What college did Terrance Taylor play for?
CREATE TABLE table_20861261_4 (college VARCHAR, player VARCHAR)
SELECT score FROM table_name_59 WHERE date = "february 18"
What is the score of the game played on February 18?
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR)
SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = "BAL"
Find the names of all the clubs that have at least a member from the city with city code "BAL".
CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)
SELECT MIN(week) FROM table_24786958_2 WHERE kickoff = "6:00 p.m."
What week had kickoff time at 6:00 p.m.?
CREATE TABLE table_24786958_2 (week INTEGER, kickoff VARCHAR)
SELECT date FROM table_name_55 WHERE score = "0 – 2"
Which Date has a Score of 0 – 2?
CREATE TABLE table_name_55 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_48 WHERE record = "7-9"
Which Date has a Record of 7-9?
CREATE TABLE table_name_48 (date VARCHAR, record VARCHAR)
SELECT time FROM table_name_12 WHERE round = 3 AND record = "2–0"
Which Time has a Round of 3, and a Record of 2–0?
CREATE TABLE table_name_12 (time VARCHAR, round VARCHAR, record VARCHAR)
SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1
List the name of the conductor with the most years of work.
CREATE TABLE conductor (Name VARCHAR, Year_of_Work VARCHAR)
SELECT percent_of_slovenes_1991 FROM table_10797463_1 WHERE village__slovenian_ = "Čahorče"
what percent of slovenes did the village called čahorče in slovenian have in 1991?
CREATE TABLE table_10797463_1 (percent_of_slovenes_1991 VARCHAR, village__slovenian_ VARCHAR)
SELECT census_ranking FROM table_176524_2 WHERE official_name = "Perth"
What is the census ranking for the Perth parish?
CREATE TABLE table_176524_2 (census_ranking VARCHAR, official_name VARCHAR)
SELECT leading_scorer FROM table_11964047_9 WHERE date = "March 2"
what's the leading scorer on march 2
CREATE TABLE table_11964047_9 (leading_scorer VARCHAR, date VARCHAR)
SELECT record FROM table_name_49 WHERE leading_scorer = "andrew bogut (29)"
What is the Record with a Leading scorer with andrew bogut (29)?
CREATE TABLE table_name_49 (record VARCHAR, leading_scorer VARCHAR)
SELECT 1 AS st_prize__$__ FROM table_11622496_1 WHERE purse__$__ = 275000
How much was the prize money for the 275000 purse?
CREATE TABLE table_11622496_1 (purse__$__ VARCHAR)
SELECT SUM(draw) FROM table_name_49 WHERE place > 6 AND votes > 38
What is the draw number of the song with a place lower than 6 and more than 38 votes?
CREATE TABLE table_name_49 (draw INTEGER, place VARCHAR, votes VARCHAR)
SELECT horse FROM table_25429986_1 WHERE position = "6th"
what horse is in the 6th position?
CREATE TABLE table_25429986_1 (horse VARCHAR, position VARCHAR)
SELECT no FROM table_26202847_6 WHERE outcome = "Winner" AND surface = "Hard (i)"
Where the outcome is Winner and surface is Hard (i), what is the No.?
CREATE TABLE table_26202847_6 (no VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT no_4 FROM table_name_24 WHERE no_10 = "harper" AND no_5 = "abigail"
Who is number 4 when Harper is number 10 and Abigail is number 5?
CREATE TABLE table_name_24 (no_4 VARCHAR, no_10 VARCHAR, no_5 VARCHAR)
SELECT score FROM table_name_51 WHERE visitor = "pittsburgh"
What was the score when the visitor was pittsburgh?
CREATE TABLE table_name_51 (score VARCHAR, visitor VARCHAR)
SELECT 2007 FROM table_name_8 WHERE 2006 = "a" AND tournament = "canada"
Which 2007 has a 2006 of A, and a Tournament of canada?
CREATE TABLE table_name_8 (tournament VARCHAR)
SELECT country FROM table_name_35 WHERE player = "raymond floyd"
What country is player Raymond Floyd from?
CREATE TABLE table_name_35 (country VARCHAR, player VARCHAR)
SELECT MIN(year) FROM table_name_85 WHERE points < 1
What was the earliest year that had less than 1 point?
CREATE TABLE table_name_85 (year INTEGER, points INTEGER)
SELECT COUNT(bronze) FROM table_name_1 WHERE gold = 0 AND silver < 3 AND rank > 9 AND total = 1
Gold of 0, and a Silver smaller than 3, and a Rank larger than 9, and a Total of 1 has how many numbers of bronze?
CREATE TABLE table_name_1 (bronze VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT home FROM table_name_1 WHERE away = "4-0"
What is the home for the away of 4-0?
CREATE TABLE table_name_1 (home VARCHAR, away VARCHAR)
SELECT time_retired FROM table_name_37 WHERE laps = 49 AND constructor = "vanwall"
What was the Vanwall time/retired with 49 laps?
CREATE TABLE table_name_37 (time_retired VARCHAR, laps VARCHAR, constructor VARCHAR)
SELECT MIN(body_width_mm) FROM table_name_48 WHERE lead_pitch_mm < 0.55 AND body_length_mm > 18.4
Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm larger than 18.4?
CREATE TABLE table_name_48 (body_width_mm INTEGER, lead_pitch_mm VARCHAR, body_length_mm VARCHAR)
SELECT AVG(byes) FROM table_name_75 WHERE against = 1247 AND draws < 0
What is the average number of Byes when there were less than 0 losses and were against 1247?
CREATE TABLE table_name_75 (byes INTEGER, against VARCHAR, draws VARCHAR)
SELECT score FROM table_name_53 WHERE date = "october 22, 1976"
What was the score of the game that took place on october 22, 1976?
CREATE TABLE table_name_53 (score VARCHAR, date VARCHAR)
SELECT record FROM table_name_14 WHERE event = "ufc 27"
What is the record during the event, UFC 27?
CREATE TABLE table_name_14 (record VARCHAR, event VARCHAR)
SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID
Show the names of all the clients with no booking.
CREATE TABLE Clients (Customer_Name VARCHAR, Client_ID VARCHAR); CREATE TABLE Bookings (Customer_ID VARCHAR); CREATE TABLE Clients (Customer_Name VARCHAR)
SELECT COUNT(first_elected) FROM table_1342315_10 WHERE district = "Georgia 1"
How many winners were there in the Georgia 1 district?
CREATE TABLE table_1342315_10 (first_elected VARCHAR, district VARCHAR)
SELECT MIN(year) FROM table_22597626_2 WHERE outcome = "Runner-up" AND championship = "US Open"
In the US Open championship and the outcome is runner-up, what is the minimum year?
CREATE TABLE table_22597626_2 (year INTEGER, outcome VARCHAR, championship VARCHAR)
SELECT date FROM table_17801022_1 WHERE driver = "Jamie McMurray"
What date did Jamie McMurray win the race?
CREATE TABLE table_17801022_1 (date VARCHAR, driver VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE year > 2005 AND moving_from = "nancy"
Moving from Nancy after 2005, what is listed as the lowest rank?
CREATE TABLE table_name_37 (rank INTEGER, year VARCHAR, moving_from VARCHAR)
SELECT title FROM table_25640730_7 WHERE _number = 12
What is the episode title for episode number 12?
CREATE TABLE table_25640730_7 (title VARCHAR, _number VARCHAR)
SELECT high_rebounds FROM table_17323092_7 WHERE high_assists = "Shawn Marion (6)"
When the high assists were Shawn Marion (6) who had high rebounds?
CREATE TABLE table_17323092_7 (high_rebounds VARCHAR, high_assists VARCHAR)