answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(2 AS nd) FROM table_14836185_3 WHERE scoring_average = "71.62"
In the year where Angela Stanford had a scoring average of 71.62, how many times did she take second place?
CREATE TABLE table_14836185_3 (scoring_average VARCHAR)
SELECT musical_guest_song_performed FROM table_name_85 WHERE original_airdate = "january 2008"
What is the Musical Guest/Song with an original airdate of january 2008?
CREATE TABLE table_name_85 (musical_guest_song_performed VARCHAR, original_airdate VARCHAR)
SELECT date FROM table_name_28 WHERE record = "54-69"
When was the game with a record of 54-69?
CREATE TABLE table_name_28 (date VARCHAR, record VARCHAR)
SELECT edition FROM table_19061741_3 WHERE total_days_in_pbb_house = 77 AND status = "Winner"
When winner is the status and 77 is the total days in pbb house what is the edition?
CREATE TABLE table_19061741_3 (edition VARCHAR, total_days_in_pbb_house VARCHAR, status VARCHAR)
SELECT visitor FROM table_name_97 WHERE home = "boston bruins" AND date = "november 15"
Who is listed as the Visitor that has a Home of Boston Bruins and a Date of November 15?
CREATE TABLE table_name_97 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT motor FROM table_name_84 WHERE class = "bs 1910"
Which motor's class was bs 1910?
CREATE TABLE table_name_84 (motor VARCHAR, class VARCHAR)
SELECT date FROM table_name_30 WHERE away_team = "richmond"
What is the date where the away team is Richmond?
CREATE TABLE table_name_30 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(s_no) FROM table_name_88 WHERE margin = "16 runs"
What is the total number of S No(s), when the Margin is 16 runs?
CREATE TABLE table_name_88 (s_no VARCHAR, margin VARCHAR)
SELECT cost_per_capita FROM table_12340907_1 WHERE municipality = "Courtenay"
What is the cost per capita in the Courtenay municipality?
CREATE TABLE table_12340907_1 (cost_per_capita VARCHAR, municipality VARCHAR)
SELECT team FROM table_21824695_8 WHERE match_played = "10 4"
Which team has a match played of 10 4?
CREATE TABLE table_21824695_8 (team VARCHAR, match_played VARCHAR)
SELECT high_rebounds FROM table_13464416_6 WHERE record = "12-30"
who made the recovers where the score is 12-30
CREATE TABLE table_13464416_6 (high_rebounds VARCHAR, record VARCHAR)
SELECT team FROM table_20938922_2 WHERE carries = 27
Which team did the player have who had 27 total carries?
CREATE TABLE table_20938922_2 (team VARCHAR, carries VARCHAR)
SELECT year_s__won FROM table_name_84 WHERE player = "payne stewart"
What year did player payne stewart win?
CREATE TABLE table_name_84 (year_s__won VARCHAR, player VARCHAR)
SELECT talent__female_ FROM table_name_41 WHERE year = 1999
Who is the female talent in 1999?
CREATE TABLE table_name_41 (talent__female_ VARCHAR, year VARCHAR)
SELECT title FROM table_29102100_1 WHERE directed_by = "Rich Correll" AND written_by = "Dennis Rinsler"
What is the title of the episode directed by Rich Correll and written by Dennis Rinsler?
CREATE TABLE table_29102100_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT Episode, Rating FROM TV_series ORDER BY Rating DESC LIMIT 3
List top 3 highest Rating TV series. List the TV series's Episode and Rating.
CREATE TABLE TV_series (Episode VARCHAR, Rating VARCHAR)
SELECT date FROM table_name_93 WHERE japan = "0.61 million"
Which date had Japanese sales of 0.61 million?
CREATE TABLE table_name_93 (date VARCHAR, japan VARCHAR)
SELECT venue FROM table_name_39 WHERE home_team = "carlton"
What venue is the home of the Carlton team?
CREATE TABLE table_name_39 (venue VARCHAR, home_team VARCHAR)
SELECT 2009 FROM table_name_82 WHERE 2003 = "lq"
Which year has a 2003 of lq?
CREATE TABLE table_name_82 (Id VARCHAR)
SELECT COUNT(written_by) FROM table_23255941_1 WHERE directed_by = "Charles Haid"
How many writers were there in the episode directed by Charles Haid?
CREATE TABLE table_23255941_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT total FROM table_name_55 WHERE set_3 = "13–25"
What was the total with a score in set 3 of 13–25?
CREATE TABLE table_name_55 (total VARCHAR, set_3 VARCHAR)
SELECT signal_power FROM table_2638104_1 WHERE callsign = "JOAB-DTV"
What is the signal power for JOAB-DTV?
CREATE TABLE table_2638104_1 (signal_power VARCHAR, callsign VARCHAR)
SELECT nationality FROM table_name_73 WHERE college_junior_club_team__league_ = "guelph storm ( ohl )"
What is Nationality, when College/Junior/Club Team (League) is "Guelph Storm ( OHL )"?
CREATE TABLE table_name_73 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT irrigation_district FROM table_20018310_1 WHERE users___number_ = 4733
Which irrigation district has 4733 users?
CREATE TABLE table_20018310_1 (irrigation_district VARCHAR, users___number_ VARCHAR)
SELECT COUNT(birth_2012) FROM table_25703_2 WHERE january_december_2012 = "Kurgan Oblast"
What is the total number of birth/2012 for January–December 2012 in Kurgan Oblast?
CREATE TABLE table_25703_2 (birth_2012 VARCHAR, january_december_2012 VARCHAR)
SELECT voltage FROM table_24096813_15 WHERE part_number_s_ = "TT80503300"
What's the voltage of the model with part number TT80503300?
CREATE TABLE table_24096813_15 (voltage VARCHAR, part_number_s_ VARCHAR)
SELECT venue FROM table_name_89 WHERE away_team = "north melbourne"
Where was the game held where North Melbourne was the away team?
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)
SELECT year FROM table_name_99 WHERE finish = "champions"
In what Year was the Finish Champions?
CREATE TABLE table_name_99 (year VARCHAR, finish VARCHAR)
SELECT name FROM table_name_27 WHERE place_of_birth = "porsgrunn"
Who was born in Porsgrunn?
CREATE TABLE table_name_27 (name VARCHAR, place_of_birth VARCHAR)
SELECT fcc_info FROM table_name_96 WHERE erp_w = 2
What FCC info is listed for the ERP W of 2?
CREATE TABLE table_name_96 (fcc_info VARCHAR, erp_w VARCHAR)
SELECT tournament FROM table_name_82 WHERE 2002 = "grand slam tournaments"
Which Tournament has a 2002 of grand slam tournaments?
CREATE TABLE table_name_82 (tournament VARCHAR)
SELECT us_viewers__million_ FROM table_29920800_1 WHERE written_by = "Liz Feldman"
How many millions of U.S viewers watched the episode written by Liz Feldman?
CREATE TABLE table_29920800_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)
SELECT COUNT(insurgents) FROM table_21636599_1 WHERE period = "2003"
How many insurgents have 2003 as a period?
CREATE TABLE table_21636599_1 (insurgents VARCHAR, period VARCHAR)
SELECT COUNT(*) FROM enzyme WHERE NOT id IN (SELECT enzyme_id FROM medicine_enzyme_interaction)
How many enzymes do not have any interactions?
CREATE TABLE medicine_enzyme_interaction (id VARCHAR, enzyme_id VARCHAR); CREATE TABLE enzyme (id VARCHAR, enzyme_id VARCHAR)
SELECT 1993 FROM table_name_49 WHERE 1997 = "grand slams"
What is the 1993 value of the 1997 Grand Slams?
CREATE TABLE table_name_49 (Id VARCHAR)
SELECT MIN(size_in_km²) FROM table_16577990_1 WHERE central_forest_reserve = "Itwara"
What is the size of Itwara central forest reserve?
CREATE TABLE table_16577990_1 (size_in_km² INTEGER, central_forest_reserve VARCHAR)
SELECT race_1 FROM table_11581984_2 WHERE driver = "Mark Skaife"
For driver Mark Skaife what is the result for race 1?
CREATE TABLE table_11581984_2 (race_1 VARCHAR, driver VARCHAR)
SELECT place FROM table_name_92 WHERE score = 67 - 74 - 73 = 214
What place was the scorer of 67-74-73=214?
CREATE TABLE table_name_92 (place VARCHAR, score VARCHAR)
SELECT location FROM table_10568553_1 WHERE milepost = "12.8"
Where is milepost 12.8?
CREATE TABLE table_10568553_1 (location VARCHAR, milepost VARCHAR)
SELECT COUNT(against) FROM table_name_73 WHERE losses < 3 AND wins > 16
What is the number against when losses are smaller than 3, and wins arelarger than 16?
CREATE TABLE table_name_73 (against VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT visitor FROM table_name_75 WHERE date = "october 31"
Who was the visitor on October 31?
CREATE TABLE table_name_75 (visitor VARCHAR, date VARCHAR)
SELECT MAX(laps) FROM table_name_71 WHERE driver = "françois cevert"
What is the high lap total for françois cevert?
CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR)
SELECT MIN(2 AS nd_throw) FROM table_17265535_7 WHERE equation = "8 × 9² + 8 × 9 + 8"
If the equation is 8 × 9² + 8 × 9 + 8, what is the 2nd throw?
CREATE TABLE table_17265535_7 (equation VARCHAR)
SELECT runner_up FROM table_name_93 WHERE venue = "pocking" AND year = "1980"
Who was the runner-up in 1980 at the Pocking venue?
CREATE TABLE table_name_93 (runner_up VARCHAR, venue VARCHAR, year VARCHAR)
SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_21 WHERE winner = "scott simpson (7)"
Which 1st prize ($) has a Winner of scott simpson (7)?
CREATE TABLE table_name_21 (winner VARCHAR)
SELECT COUNT(overall_gms) FROM table_27094070_4 WHERE overall_avg = 12796
How many games had an average of 12796?
CREATE TABLE table_27094070_4 (overall_gms VARCHAR, overall_avg VARCHAR)
SELECT attendance FROM table_name_86 WHERE date = "november 7, 1999"
What was the Attendance on November 7, 1999?
CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR)
SELECT migration FROM table_13677808_1 WHERE trade = "5.7"
What is the migration rating when trade is 5.7?
CREATE TABLE table_13677808_1 (migration VARCHAR, trade VARCHAR)
SELECT contestant FROM table_27515452_3 WHERE sizes = "33-23-36"
who are the participants that wear clothing in 33-23-36
CREATE TABLE table_27515452_3 (contestant VARCHAR, sizes VARCHAR)
SELECT MAX(week) FROM table_name_40 WHERE result = "w 24-0" AND attendance < 10 OFFSET 000
Which Week has a Result of w 24-0, and an Attendance smaller than 10,000?
CREATE TABLE table_name_40 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT three FROM table_name_83 WHERE date = "16 december 1676"
Name the three for 16 december 1676
CREATE TABLE table_name_83 (three VARCHAR, date VARCHAR)
SELECT AVG(bronze) FROM table_name_18 WHERE nation = "united kingdom" AND silver < 0
How many bronze medals for the United Kingdom when the silver was less than 0?
CREATE TABLE table_name_18 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT date FROM table_name_1 WHERE venue = "windy hill"
What dates were the matches at windy hill?
CREATE TABLE table_name_1 (date VARCHAR, venue VARCHAR)
SELECT wins FROM table_name_12 WHERE points > 145 AND passenger = "sven verbrugge" AND races < 17
What were the wins with more than 145 points, less than 17 races, and Sven Verbrugge as a passenger?
CREATE TABLE table_name_12 (wins VARCHAR, races VARCHAR, points VARCHAR, passenger VARCHAR)
SELECT MAX(founded) FROM table_255188_1 WHERE institution = "Piedmont College"
When was Piedmont College founded?
CREATE TABLE table_255188_1 (founded INTEGER, institution VARCHAR)
SELECT brian_moran FROM table_21535453_1 WHERE creigh_deeds = "30%"
What was Brian Moran's share of the votes when Creigh Deeds had 30%?
CREATE TABLE table_21535453_1 (brian_moran VARCHAR, creigh_deeds VARCHAR)
SELECT COUNT(goal_difference) FROM table_name_49 WHERE position > 20
Name the total number of goal difference when the position is more than 20
CREATE TABLE table_name_49 (goal_difference VARCHAR, position INTEGER)
SELECT score FROM table_name_22 WHERE partner = "mashona washington" AND date = "january 10, 2011"
What is the final score for the game played on January 10, 2011 with partner Mashona Washington?
CREATE TABLE table_name_22 (score VARCHAR, partner VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM products WHERE product_category_code = "Seeds"
How many products are there under the category "Seeds"?
CREATE TABLE products (product_category_code VARCHAR)
SELECT make FROM table_name_88 WHERE year = 2008
what is the make for the year 2008?
CREATE TABLE table_name_88 (make VARCHAR, year VARCHAR)
SELECT profession FROM table_name_87 WHERE city = "leskovac"
What is the profession of the housemate from Leskovac city?
CREATE TABLE table_name_87 (profession VARCHAR, city VARCHAR)
SELECT region FROM table_name_93 WHERE catalog = "sir021-6"
What region has the catalog sir021-6?
CREATE TABLE table_name_93 (region VARCHAR, catalog VARCHAR)
SELECT document_name, access_count FROM documents ORDER BY access_count DESC LIMIT 1
Find the name of the document that has been accessed the greatest number of times, as well as the count of how many times it has been accessed?
CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR)
SELECT weight FROM table_name_65 WHERE series = "iii series" AND reverse = "modern pentathlon"
How much did the Modern Pentathlon III Series coin weigh?
CREATE TABLE table_name_65 (weight VARCHAR, series VARCHAR, reverse VARCHAR)
SELECT MIN(projected_opening) FROM table_22771048_3
Name the least projected opening
CREATE TABLE table_22771048_3 (projected_opening INTEGER)
SELECT opponent FROM table_name_23 WHERE record = "15-21-6"
Who was the opponent with the record of 15-21-6?
CREATE TABLE table_name_23 (opponent VARCHAR, record VARCHAR)
SELECT venue FROM table_name_37 WHERE competition = "friendly" AND date = "26 may 1999"
what is the venue when the competition is friendly on 26 may 1999?
CREATE TABLE table_name_37 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT crowd FROM table_name_85 WHERE home_team = "st kilda"
Which Crowd has a Home team of st kilda?
CREATE TABLE table_name_85 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(location) FROM table_10082596_1 WHERE affiliation = "Private/Presbyterian"
How many of the schools are designated private/Presbyterian?
CREATE TABLE table_10082596_1 (location VARCHAR, affiliation VARCHAR)
SELECT date FROM table_name_90 WHERE tv_time = "cbs 1:00et" AND result = "w 22–16"
What is the Date of the Game with a Result of w 22–16 in TV Time of CBS 1:00ET?
CREATE TABLE table_name_90 (date VARCHAR, tv_time VARCHAR, result VARCHAR)
SELECT country FROM table_name_83 WHERE date = "october 20, 1976"
Which country is dated October 20, 1976?
CREATE TABLE table_name_83 (country VARCHAR, date VARCHAR)
SELECT MAX(total) FROM table_name_99 WHERE year_s__won < 1959
What is Highest Total, when Year(s) Won is before 1959?
CREATE TABLE table_name_99 (total INTEGER, year_s__won INTEGER)
SELECT COUNT(first_driver_s_) FROM table_13416000_3 WHERE country = "Canada"
How many entries are there for first driver for Canada?
CREATE TABLE table_13416000_3 (first_driver_s_ VARCHAR, country VARCHAR)
SELECT motive FROM table_name_25 WHERE year < 2007
What is the motive before 2007?
CREATE TABLE table_name_25 (motive VARCHAR, year INTEGER)
SELECT date FROM table_name_55 WHERE time = "3:44"
What date did a game have a time of 3:44?
CREATE TABLE table_name_55 (date VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_43 WHERE date = "31 jul"
who is the opponent on 31 jul?
CREATE TABLE table_name_43 (opponent VARCHAR, date VARCHAR)
SELECT AVG(driver_wins) FROM table_name_51 WHERE nation = "sweden"
What is the average number of wins of drivers from Sweden?
CREATE TABLE table_name_51 (driver_wins INTEGER, nation VARCHAR)
SELECT d_49 FROM table_name_64 WHERE d_46 = "r 13"
Tell me the D 49 and D 46 of r 13
CREATE TABLE table_name_64 (d_49 VARCHAR, d_46 VARCHAR)
SELECT SUM(longitude) FROM table_name_65 WHERE diameter__km_ = 22.6 AND latitude < -12.4
Tell me the sum of longitude for diameter being 22.6 and latitude less than -12.4
CREATE TABLE table_name_65 (longitude INTEGER, diameter__km_ VARCHAR, latitude VARCHAR)
SELECT intergiro_classification FROM table_name_34 WHERE points_classification = "fabrizio guidi" AND winner = "nicolaj bo larsen"
What is the Intergiro classification of Nicolaj bo Larsen, who has a Fabrizio guidi point classification?
CREATE TABLE table_name_34 (intergiro_classification VARCHAR, points_classification VARCHAR, winner VARCHAR)
SELECT home_team AS score FROM table_name_87 WHERE away_team = "richmond"
What is the home team's score when richmond is away?
CREATE TABLE table_name_87 (home_team VARCHAR, away_team VARCHAR)
SELECT engine FROM table_name_19 WHERE chassis = "cooper t43"
What engine was for the vehicle with a cooper t43 chassis?
CREATE TABLE table_name_19 (engine VARCHAR, chassis VARCHAR)
SELECT competition FROM table_name_87 WHERE venue = "arles, france"
Which competition was held in Arles, France?
CREATE TABLE table_name_87 (competition VARCHAR, venue VARCHAR)
SELECT music FROM table_name_63 WHERE uncut_run_time = "95 minutes"
What music is in the film with an Uncut run time of 95 minutes?
CREATE TABLE table_name_63 (music VARCHAR, uncut_run_time VARCHAR)
SELECT COUNT(team) FROM table_2522473_1 WHERE seasons = 8
How many teams have been in Topperserien for 8 seasons?
CREATE TABLE table_2522473_1 (team VARCHAR, seasons VARCHAR)
SELECT gold FROM table_name_8 WHERE bronze = "17" AND total = "31"
How many golds were there in a game that has 17 bronze and a total of 31?
CREATE TABLE table_name_8 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT colors FROM table_name_77 WHERE host = "christopher"
What are the colors of the team hosted by Christopher?
CREATE TABLE table_name_77 (colors VARCHAR, host VARCHAR)
SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3
What are the names and countries of origin for the artists who produced the top three highly rated songs.
CREATE TABLE song (artist_name VARCHAR, rating VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
SELECT T1.claim_id, T1.date_claim_made, COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY COUNT(*) DESC LIMIT 1
Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.
CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR); CREATE TABLE Settlements (claim_id VARCHAR)
SELECT SUM(goals_scored) FROM table_name_44 WHERE draw < 8 AND points = 19 AND goals_conceded > 26
what is the goals scored when draw is less than 8, points is 19 and goals conceded is more than 26?
CREATE TABLE table_name_44 (goals_scored INTEGER, goals_conceded VARCHAR, draw VARCHAR, points VARCHAR)
SELECT player FROM table_name_32 WHERE eliminated = "episode 4"
Who's the player that was eliminated on episode 4?
CREATE TABLE table_name_32 (player VARCHAR, eliminated VARCHAR)
SELECT scores FROM table_23575917_7 WHERE lees_team = "Clare Balding and Miranda Hart"
If the lees team is Clare Balding and Miranda Hart, what was the score?
CREATE TABLE table_23575917_7 (scores VARCHAR, lees_team VARCHAR)
SELECT to_par FROM table_name_31 WHERE score = 76 - 73 - 67 - 69 = 285
When the score was 76-73-67-69=285 what was the To par?
CREATE TABLE table_name_31 (to_par VARCHAR, score VARCHAR)
SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate
Find the names of the candidates whose support percentage is lower than their oppose rate.
CREATE TABLE candidate (people_id VARCHAR, support_rate INTEGER, oppose_rate VARCHAR); CREATE TABLE people (name VARCHAR, people_id VARCHAR)
SELECT score FROM table_name_20 WHERE team = "@ cleveland"
what is the score when the team is @ cleveland?
CREATE TABLE table_name_20 (score VARCHAR, team VARCHAR)
SELECT COUNT(rank) FROM table_name_46 WHERE name = "ku hyo-jin"
What did Ku Hyo-Jin rank?
CREATE TABLE table_name_46 (rank VARCHAR, name VARCHAR)
SELECT format FROM table_name_26 WHERE catalogno = "st 491"
Whati s the format for the catalogno of st 491?
CREATE TABLE table_name_26 (format VARCHAR, catalogno VARCHAR)
SELECT score_points FROM table_name_99 WHERE event = "wc kerrville" AND rank_points = "8"
What is the score points in WC Kerrville, when rank was points of 8?
CREATE TABLE table_name_99 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)
SELECT COUNT(apogee__km_) FROM table_name_74 WHERE alt_name = "ops-8285" AND mass__kg_ > 1500
How many Apogee sis Ops-8285 with more than 1500 kg?
CREATE TABLE table_name_74 (apogee__km_ VARCHAR, alt_name VARCHAR, mass__kg_ VARCHAR)
SELECT MAX(points) FROM table_name_88 WHERE winnings = "$127,541" AND car__number > 31
How many points did the driver who won $127,541 driving car #31 get?
CREATE TABLE table_name_88 (points INTEGER, winnings VARCHAR, car__number VARCHAR)