answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT surface FROM table_name_6 WHERE tournament = "eastbourne" AND date = "14 june 1999"
Tell me the surface for eastbourne 14 june 1999
CREATE TABLE table_name_6 (surface VARCHAR, tournament VARCHAR, date VARCHAR)
SELECT MAX(votes) FROM table_name_20 WHERE occupation = "french professor"
What is the highest number of votes for the French Professor?
CREATE TABLE table_name_20 (votes INTEGER, occupation VARCHAR)
SELECT MIN(squad_no) FROM table_name_28 WHERE total_goals > 6 AND league_goals < 8 AND playoff_goals > 0
What's the lowest squad number with more than 6 goals, fewer than 8 league goals, and more than 0 playoff goals?
CREATE TABLE table_name_28 (squad_no INTEGER, playoff_goals VARCHAR, total_goals VARCHAR, league_goals VARCHAR)
SELECT home_captain FROM table_name_14 WHERE venue = "adelaide oval"
Who is the home captain at the Adelaide Oval?
CREATE TABLE table_name_14 (home_captain VARCHAR, venue VARCHAR)
SELECT COUNT(against) FROM table_15319684_1 WHERE team = "Portuguesa Santista"
Name the number of against for portuguesa santista
CREATE TABLE table_15319684_1 (against VARCHAR, team VARCHAR)
SELECT MIN(f_laps) FROM table_20398823_1
Name the least f/laps
CREATE TABLE table_20398823_1 (f_laps INTEGER)
SELECT driver FROM table_20090682_4 WHERE best_time_of_day = "1:16.93"
which driver got best time of day 1:16.93
CREATE TABLE table_20090682_4 (driver VARCHAR, best_time_of_day VARCHAR)
SELECT dance FROM table_name_52 WHERE worst_dancer_s_ = "marissa jaret winokur"
Which dance has the worst dancer(s) as marissa jaret winokur?
CREATE TABLE table_name_52 (dance VARCHAR, worst_dancer_s_ VARCHAR)
SELECT date FROM table_name_23 WHERE visiting_team = "new england patriots"
When did the New England Patriots play as the visiting team?
CREATE TABLE table_name_23 (date VARCHAR, visiting_team VARCHAR)
SELECT date FROM table_name_10 WHERE series = "0–1"
What was the date of the game when the record of the series was 0–1?
CREATE TABLE table_name_10 (date VARCHAR, series VARCHAR)
SELECT away_team AS score FROM table_name_63 WHERE venue = "kardinia park"
What away team played at Kardinia Park?
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)
SELECT result FROM table_name_54 WHERE date = "april 3"
What is Result, when Date is "April 3"?
CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR)
SELECT party FROM table_name_50 WHERE results = "re-elected" AND first_elected = 2000
What party is the person who was first elected in 2000 and was re-elected?
CREATE TABLE table_name_50 (party VARCHAR, results VARCHAR, first_elected VARCHAR)
SELECT site FROM table_name_15 WHERE date = "november 13"
What is Site, when Date is "November 13"?
CREATE TABLE table_name_15 (site VARCHAR, date VARCHAR)
SELECT COUNT(*), AVG(age), city_code FROM student WHERE sex = 'M' GROUP BY city_code
Find the average age and number of male students (with sex M) from each city.
CREATE TABLE student (city_code VARCHAR, age INTEGER, sex VARCHAR)
SELECT constructor FROM table_name_22 WHERE race_name = "vii kanonloppet"
Name the constructor for vii kanonloppet
CREATE TABLE table_name_22 (constructor VARCHAR, race_name VARCHAR)
SELECT AVG(laps) FROM table_name_4 WHERE driver = "peter gethin" AND grid < 25
When the driver peter gethin has a grid less than 25, what is the average number of laps?
CREATE TABLE table_name_4 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT country_of_origin FROM table_29474407_11 WHERE name__designation = "Flieger-Doppelpistole 1919"
What country made the Flieger-Doppelpistole 1919?
CREATE TABLE table_29474407_11 (country_of_origin VARCHAR, name__designation VARCHAR)
SELECT township FROM table_18600760_15 WHERE land___sqmi__ = "35.766"
Which township is 35.766 sqmi?
CREATE TABLE table_18600760_15 (township VARCHAR, land___sqmi__ VARCHAR)
SELECT tournament FROM table_name_40 WHERE surface = "hard" AND date = "24 september 2011"
Which Tournament has a Surface of hard, and a Date of 24 september 2011?
CREATE TABLE table_name_40 (tournament VARCHAR, surface VARCHAR, date VARCHAR)
SELECT date FROM table_name_17 WHERE away_team = "wrexham"
What was the date of the game for the Wrexham away team?
CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR)
SELECT T2.Denomination FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID ORDER BY COUNT(*) DESC LIMIT 1
Show the denomination of the school that has the most players.
CREATE TABLE player (School_ID VARCHAR); CREATE TABLE school (Denomination VARCHAR, School_ID VARCHAR)
SELECT result FROM table_name_80 WHERE date = "10/06/1934"
What was the result on 10/06/1934?
CREATE TABLE table_name_80 (result VARCHAR, date VARCHAR)
SELECT MAX(fall_08) FROM table_name_95 WHERE fall_09 = 792 AND fall_05 < 791
What is the largest value for Fall 08 when Fall 09 is 792 and Fall 05 is less than 791?
CREATE TABLE table_name_95 (fall_08 INTEGER, fall_09 VARCHAR, fall_05 VARCHAR)
SELECT result FROM table_name_63 WHERE week = 5
Can you tell me the Result that has the Week of 5?
CREATE TABLE table_name_63 (result VARCHAR, week VARCHAR)
SELECT planet FROM table_name_50 WHERE orbital_period = "3.23 days"
What planet orbits in 3.23 days?
CREATE TABLE table_name_50 (planet VARCHAR, orbital_period VARCHAR)
SELECT SUM(rank) FROM table_name_56 WHERE nation = "new zealand" AND bronze < 1
What is the total rank for New Zealand, when less than 1 bronze medals were won?
CREATE TABLE table_name_56 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT venue FROM table_name_67 WHERE result = "draw"
In which venue was the result a draw?
CREATE TABLE table_name_67 (venue VARCHAR, result VARCHAR)
SELECT Ref_Shipping_Agents.shipping_agent_name, COUNT(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY COUNT(Documents.document_id) DESC LIMIT 1
Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.
CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Shipping_Agents (Id VARCHAR)
SELECT SUM(points) FROM table_name_47 WHERE year < 1963
What is the total points before 1963?
CREATE TABLE table_name_47 (points INTEGER, year INTEGER)
SELECT departure FROM table_18332845_2 WHERE arrival = "14.40"
What was the departure time when the arrival was 14.40?
CREATE TABLE table_18332845_2 (departure VARCHAR, arrival VARCHAR)
SELECT MAX(altitude__mslm_) FROM table_name_47 WHERE city = "legnano" AND population > 59492
Which Altitude (mslm) is the highest one that has a City of legnano, and a Population larger than 59492?
CREATE TABLE table_name_47 (altitude__mslm_ INTEGER, city VARCHAR, population VARCHAR)
SELECT no_4 FROM table_name_83 WHERE no_5 = "madison" AND no_9 = "abigail"
What was the No. 4 name when Madison was No. 5 and Abigail was No. 9?
CREATE TABLE table_name_83 (no_4 VARCHAR, no_5 VARCHAR, no_9 VARCHAR)
SELECT MAX(winners) FROM table_12303563_1 WHERE nation = "BEC Tero Sasana"
How many times did bec tero sasana win?
CREATE TABLE table_12303563_1 (winners INTEGER, nation VARCHAR)
SELECT visitor FROM table_name_81 WHERE home = "vancouver" AND date = "february 24"
Name the visitor from vancouver on february 24
CREATE TABLE table_name_81 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT vacator FROM table_2159571_2 WHERE reason_for_change = "Resigned December 31, 1959"
Who is every vacator with reason for change as resigned December 31, 1959?
CREATE TABLE table_2159571_2 (vacator VARCHAR, reason_for_change VARCHAR)
SELECT country FROM table_name_48 WHERE player = "vijay singh"
From Country is Vijay Singh?
CREATE TABLE table_name_48 (country VARCHAR, player VARCHAR)
SELECT AVG(people_on_board) FROM table_name_48 WHERE airline = "iberia" AND aircraft_type = "lockheed l-1049g"
What is the number of people on board at Iberia Airline, with the aircraft type of lockheed l-1049g?
CREATE TABLE table_name_48 (people_on_board INTEGER, airline VARCHAR, aircraft_type VARCHAR)
SELECT time FROM table_name_82 WHERE attendance = "66,772"
I want to know the time which has attendance of 66,772
CREATE TABLE table_name_82 (time VARCHAR, attendance VARCHAR)
SELECT Competition_type, Country FROM competition
What are the types and countries of competitions?
CREATE TABLE competition (Competition_type VARCHAR, Country VARCHAR)
SELECT Ends AS lost FROM table_1505809_2 WHERE blank_ends = 9
What is the value of Ends Lost when Blank Ends is 9.
CREATE TABLE table_1505809_2 (Ends VARCHAR, blank_ends VARCHAR)
SELECT directed_by FROM table_name_77 WHERE season > 8 AND episode = "xvi"
Who was the director of the episode with a season after 8 and an episode of XVI?
CREATE TABLE table_name_77 (directed_by VARCHAR, season VARCHAR, episode VARCHAR)
SELECT MIN(long) FROM table_name_56 WHERE yards = 293 AND returns < 16
Can you tell me the lowest Long that has the Yards 293, and the Returns smaller than 16?
CREATE TABLE table_name_56 (long INTEGER, yards VARCHAR, returns VARCHAR)
SELECT MIN(draws) FROM table_name_68 WHERE south_west_dfl = "tyrendarra" AND byes > 0
What is the lowest value for Draws, when South West DFL is "Tyrendarra", and when Byes is greater than 0?
CREATE TABLE table_name_68 (draws INTEGER, south_west_dfl VARCHAR, byes VARCHAR)
SELECT year_location FROM table_28138035_13 WHERE mens_singles = "Chen Qi"
When and where did Chen Qi win in men singles?
CREATE TABLE table_28138035_13 (year_location VARCHAR, mens_singles VARCHAR)
SELECT notes FROM table_name_62 WHERE rank = 2
What notes have 2 as the rank?
CREATE TABLE table_name_62 (notes VARCHAR, rank VARCHAR)
SELECT COUNT(name) FROM table_15463188_17 WHERE school_club_team = "Washington"
How many players are listed for the school/club team Washington?
CREATE TABLE table_15463188_17 (name VARCHAR, school_club_team VARCHAR)
SELECT country FROM table_name_69 WHERE winner_and_nominees = "hidden agenda"
The winner and nominee 'Hidden Agenda' is from which country?
CREATE TABLE table_name_69 (country VARCHAR, winner_and_nominees VARCHAR)
SELECT final FROM table_name_34 WHERE no2 = "alzira ricardo b."
What was the final of play No. 2, Alzira Ricardo B.?
CREATE TABLE table_name_34 (final VARCHAR, no2 VARCHAR)
SELECT total FROM table_name_58 WHERE set_2 = "21:12"
What is the Total of Set 2 of 21:12?
CREATE TABLE table_name_58 (total VARCHAR, set_2 VARCHAR)
SELECT champions FROM table_13416000_3 WHERE first_driver_s_ = "Hiroki Yoshimoto ( 2005 )"
How many champions were there when the first driver was hiroki yoshimoto ( 2005 )?
CREATE TABLE table_13416000_3 (champions VARCHAR, first_driver_s_ VARCHAR)
SELECT MIN(league_goals) FROM table_name_46 WHERE fa_cup_apps = "0" AND total_apps = "1 (3)"
What is the lowest league goals that have 0 as the FA Cup Apps, with 1 (3) as totals apps?
CREATE TABLE table_name_46 (league_goals INTEGER, fa_cup_apps VARCHAR, total_apps VARCHAR)
SELECT COUNT(population_density) FROM table_name_6 WHERE name = "siglunes" AND change___percentage_ < -8.1
What is the population density of Siglunes when the change was smaller than -8.1 percent?
CREATE TABLE table_name_6 (population_density VARCHAR, name VARCHAR, change___percentage_ VARCHAR)
SELECT extra FROM table_name_80 WHERE year = 2002 AND result = "8th"
What event (Extra) in 2002 did the competitor compete in and place 8th?
CREATE TABLE table_name_80 (extra VARCHAR, year VARCHAR, result VARCHAR)
SELECT COUNT(district) FROM table_1341549_33 WHERE candidates = "Eliot L. Engel (D) 85.2% Martin Richman (R) 14.8%"
how many district with candidates being eliot l. engel (d) 85.2% martin richman (r) 14.8%
CREATE TABLE table_1341549_33 (district VARCHAR, candidates VARCHAR)
SELECT club FROM table_name_90 WHERE lost = "15"
What club had a loss of 15?
CREATE TABLE table_name_90 (club VARCHAR, lost VARCHAR)
SELECT MIN(points) FROM table_name_5 WHERE chassis = "epperly indy roadster" AND year = 1959
What is the lowest amount of points held by the Epperly Indy roadster in 1959?
CREATE TABLE table_name_5 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT 2007 FROM table_name_10 WHERE 1999 = "3r"
What was in 2007 that has a 3r of 1999?
CREATE TABLE table_name_10 (Id VARCHAR)
SELECT date FROM table_name_64 WHERE loss = "tavárez"
When did tavárez lose?
CREATE TABLE table_name_64 (date VARCHAR, loss VARCHAR)
SELECT COUNT(city_area_km_2__) FROM table_name_1 WHERE headquartered_city = "vehari city" AND serial_no > 36
What was the total city area for vehari city with a serial number bigger than 36?
CREATE TABLE table_name_1 (city_area_km_2__ VARCHAR, headquartered_city VARCHAR, serial_no VARCHAR)
SELECT COUNT(winner) FROM table_25551880_2 WHERE mountains_classification = "not awarded"
How many winners were there when the mountains classification was not awarded?
CREATE TABLE table_25551880_2 (winner VARCHAR, mountains_classification VARCHAR)
SELECT SUM(year) FROM table_name_22 WHERE rank_final < 7 AND competition_description = "olympic games" AND score_final < 186.525
How many years have a Rank-Final smaller than 7, and a Competition Description of olympic games, and a Score-Final smaller than 186.525?
CREATE TABLE table_name_22 (year INTEGER, score_final VARCHAR, rank_final VARCHAR, competition_description VARCHAR)
SELECT year FROM table_name_81 WHERE points = 0 AND chassis = "ags jh23b"
Which year had 0 points and an AGS JH23B chassis?
CREATE TABLE table_name_81 (year VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT COUNT(average_speed__mph_) FROM table_2268216_1 WHERE year = "2003"
How many average speeds are listed in the year 2003?
CREATE TABLE table_2268216_1 (average_speed__mph_ VARCHAR, year VARCHAR)
SELECT 2006 FROM table_name_96 WHERE 2001 = "4r"
Which 2006 tournament had a 4R performance in 2001?
CREATE TABLE table_name_96 (Id VARCHAR)
SELECT COUNT(bronze) FROM table_name_98 WHERE silver < 0
What is the total number of bronze medals for teams with less than 0 silver?
CREATE TABLE table_name_98 (bronze VARCHAR, silver INTEGER)
SELECT team FROM table_name_91 WHERE rank > 4 AND speed = "104.574mph"
What teams rank is higher than 4 with a speed of 104.574mph?
CREATE TABLE table_name_91 (team VARCHAR, rank VARCHAR, speed VARCHAR)
SELECT MAX(silver) FROM table_name_55 WHERE rank = 9 AND nation = "germany" AND gold < 0
What is the highest silver that has 9 as the rank, germany as the nation, with a gold less than 0?
CREATE TABLE table_name_55 (silver INTEGER, gold VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT location FROM table_name_40 WHERE method = "decision"
Which Location has a Method of decision?
CREATE TABLE table_name_40 (location VARCHAR, method VARCHAR)
SELECT COUNT(winning_driver) FROM table_1140116_6 WHERE race_name = "I Dessau Autobahnspinne"
How many winners did I Dessau Autobahnspinne have?
CREATE TABLE table_1140116_6 (winning_driver VARCHAR, race_name VARCHAR)
SELECT engine_† FROM table_name_34 WHERE tyre = "m" AND driver = "fernando alonso"
what is the engine when the tyre is m and the driver is fernando alonso?
CREATE TABLE table_name_34 (engine_† VARCHAR, tyre VARCHAR, driver VARCHAR)
SELECT nationality FROM table_name_65 WHERE goals = 33
What was the nationality for the player with 33 goals?
CREATE TABLE table_name_65 (nationality VARCHAR, goals VARCHAR)
SELECT viewers__millions_ FROM table_22822468_2 WHERE rating / SHARE(18 AS –49) = 1.2 / 4
Name the viewers for 1.2/4 rating
CREATE TABLE table_22822468_2 (viewers__millions_ VARCHAR, rating VARCHAR)
SELECT sail_number FROM table_1858574_2 WHERE yacht = "Aspect Computing"
When aspect computing is the yacht what is the sail number?
CREATE TABLE table_1858574_2 (sail_number VARCHAR, yacht VARCHAR)
SELECT week_arrived_on_main_island FROM table_11764007_2 WHERE original_tribe = "Shark" AND week_sent_to_third_island = "14"
What week did the member who's original tribe was shark and who was sent to the third island on week 14 arrive on the main island?
CREATE TABLE table_11764007_2 (week_arrived_on_main_island VARCHAR, original_tribe VARCHAR, week_sent_to_third_island VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_81 WHERE actor_actress = "emma thompson" AND category = "best supporting actress"
What was the film title that emma thompson was the actress nominated for best supporting actress?
CREATE TABLE table_name_81 (film_title_used_in_nomination VARCHAR, actor_actress VARCHAR, category VARCHAR)
SELECT COUNT(week) FROM table_name_21 WHERE opponent = "new york giants"
What week number had the New York Giants as opponent?
CREATE TABLE table_name_21 (week VARCHAR, opponent VARCHAR)
SELECT COUNT(games) FROM table_name_38 WHERE goals_against > 288 AND lost < 34
How many games have more than 288 goals and less than 34 losses?
CREATE TABLE table_name_38 (games VARCHAR, goals_against VARCHAR, lost VARCHAR)
SELECT sport FROM table_name_7 WHERE gold > 0 AND silver = 2
What sport has a Gold larger than 0, and a Silver of 2?
CREATE TABLE table_name_7 (sport VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT team FROM table_name_56 WHERE car__number = 24 AND date = "august 30"
What team ran car #24 on August 30?
CREATE TABLE table_name_56 (team VARCHAR, car__number VARCHAR, date VARCHAR)
SELECT bronze FROM table_name_1 WHERE nation = "bulgaria"
How many bronze medals did Bulgaria receive?
CREATE TABLE table_name_1 (bronze VARCHAR, nation VARCHAR)
SELECT date_s__of_original_removal FROM table_19114172_11 WHERE new_channel_s_ = "Five"
When five is the new channel what is the date of original removal?
CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, new_channel_s_ VARCHAR)
SELECT gender FROM table_name_68 WHERE name = "lynmore primary school"
What genders did Lynmore Primary School take?
CREATE TABLE table_name_68 (gender VARCHAR, name VARCHAR)
SELECT opponents FROM table_name_13 WHERE score_f_a = "3–0" AND date = "31 july 2007"
Score F–A of 3–0, and a Date of 31 july 2007 had what opponents?
CREATE TABLE table_name_13 (opponents VARCHAR, score_f_a VARCHAR, date VARCHAR)
SELECT length FROM table_name_38 WHERE numbers = "2600-2825 (223 buses)"
For numbers of 2600-2825 (223 buses), what is the length?
CREATE TABLE table_name_38 (length VARCHAR, numbers VARCHAR)
SELECT frequency FROM table_name_70 WHERE city = "nuevo laredo" AND name = "el diario de nuevo laredo"
What is the frequency of the newspaper, el diario de nuevo laredo in the city of nuevo laredo ?
CREATE TABLE table_name_70 (frequency VARCHAR, city VARCHAR, name VARCHAR)
SELECT COUNT(points) FROM table_13282157_3 WHERE country = "South Korea"
Name the number of points for south korea
CREATE TABLE table_13282157_3 (points VARCHAR, country VARCHAR)
SELECT AVG(laps) FROM table_name_56 WHERE grid < 19 AND time_retired = "+21.3 secs"
What is the mean number of laps when the grid is less than 19 and time/retired is +21.3 secs?
CREATE TABLE table_name_56 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT type FROM table_name_79 WHERE res = "win" AND opponent = "michael gomez"
What is the type of the match with a win result and Michael Gomez as the opponent?
CREATE TABLE table_name_79 (type VARCHAR, res VARCHAR, opponent VARCHAR)
SELECT player FROM table_name_48 WHERE years_for_grizzlies = "2002-2003"
Which Player has Years for Grizzlies of 2002-2003?
CREATE TABLE table_name_48 (player VARCHAR, years_for_grizzlies VARCHAR)
SELECT format FROM table_name_15 WHERE catalog = "3645" AND date > 1981 AND label = "luaka bop"
What is the format for the album under the label, luaka bop, that had a catalog number of 3645 and dated after 1981?
CREATE TABLE table_name_15 (format VARCHAR, label VARCHAR, catalog VARCHAR, date VARCHAR)
SELECT harris FROM table_name_84 WHERE marplan = "1.3%"
What is Harris, when Marplan is 1.3%
CREATE TABLE table_name_84 (harris VARCHAR, marplan VARCHAR)
SELECT year FROM table_name_78 WHERE distance_duration = "44 laps" AND driver = "robin buck"
What year does robin buck go 44 laps?
CREATE TABLE table_name_78 (year VARCHAR, distance_duration VARCHAR, driver VARCHAR)
SELECT AVG(against) FROM table_name_80 WHERE draws < 0
What is the average entry in the against column with draws smaller than 0?
CREATE TABLE table_name_80 (against INTEGER, draws INTEGER)
SELECT 2 AS nd_leg FROM table_name_62 WHERE team_2 = "san francisco"
What's the 2nd leg for team 2 san francisco?
CREATE TABLE table_name_62 (team_2 VARCHAR)
SELECT nhl_team FROM table_name_87 WHERE player = "wade belak"
I want the NHL team for wade belak
CREATE TABLE table_name_87 (nhl_team VARCHAR, player VARCHAR)
SELECT location FROM table_name_15 WHERE mascot = "royals"
Where is the school with Royals as their mascot?
CREATE TABLE table_name_15 (location VARCHAR, mascot VARCHAR)
SELECT skip FROM table_name_90 WHERE second = "zrinka muhek"
Which skip has Zrinka Muhek as Second?
CREATE TABLE table_name_90 (skip VARCHAR, second VARCHAR)
SELECT SUM(wins) FROM table_name_82 WHERE losses = 16 AND against < 3213
How many wins have 16 losses and an Against smaller than 3213?
CREATE TABLE table_name_82 (wins INTEGER, losses VARCHAR, against VARCHAR)
SELECT pos FROM table_name_91 WHERE play_offs = "quarter-final" AND pts = "56"
During the play-off quarter-final which team scored position was the team that scored 56 points?
CREATE TABLE table_name_91 (pos VARCHAR, play_offs VARCHAR, pts VARCHAR)