answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_25 WHERE region = "united states"
What date was the United States the region?
CREATE TABLE table_name_25 (date VARCHAR, region VARCHAR)
SELECT circuit FROM table_name_84 WHERE pole_position = "jack brabham" AND fastest_lap = "graham hill"
What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap?
CREATE TABLE table_name_84 (circuit VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT AVG(civil_liberties_2012) FROM table_name_42 WHERE status_2011 = "not free" AND political_rights_2012 > 6 AND political_rights_2011 > 7
What is the average 2012 civil liberties value associated with a 2011 status of not free, political rights 2012 over 6, and political rights 2011 over 7?
CREATE TABLE table_name_42 (civil_liberties_2012 INTEGER, political_rights_2011 VARCHAR, status_2011 VARCHAR, political_rights_2012 VARCHAR)
SELECT T1.activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID
Show all the activity names and the number of faculty involved in each activity.
CREATE TABLE Faculty_participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR)
SELECT MIN(date) FROM table_name_37 WHERE building = "victoria hall"
Name the least date for the place which has a building of victoria hall
CREATE TABLE table_name_37 (date INTEGER, building VARCHAR)
SELECT Name FROM country WHERE IndepYear > 1950
What are the names of all the countries that became independent after 1950?
CREATE TABLE country (Name VARCHAR, IndepYear INTEGER)
SELECT state__class_ FROM table_name_54 WHERE successor = "harry f. byrd, jr. (d)"
Which State (class) has a Successor of harry f. byrd, jr. (d)? Question
CREATE TABLE table_name_54 (state__class_ VARCHAR, successor VARCHAR)
SELECT country FROM table_name_57 WHERE to_par = "+3"
What country has a +3 to par?
CREATE TABLE table_name_57 (country VARCHAR, to_par VARCHAR)
SELECT tournament FROM table_name_78 WHERE date = "september 25, 2006"
Which tournament happened on september 25, 2006?
CREATE TABLE table_name_78 (tournament VARCHAR, date VARCHAR)
SELECT MIN(attendance) FROM table_name_1 WHERE date = "february 5"
What was the lowest Attendance for Games played on the Date of February 5?
CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR)
SELECT opponent FROM table_name_66 WHERE arena = "honda center" AND date = "march 29"
What is the Opponent at the Honda Center on March 29?
CREATE TABLE table_name_66 (opponent VARCHAR, arena VARCHAR, date VARCHAR)
SELECT mens_doubles FROM table_12171145_1 WHERE mens_singles = "Flemming Delfs"
Who is themens doubles when the mens singles is flemming delfs?
CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, mens_singles VARCHAR)
SELECT MIN(losses) FROM table_name_27 WHERE against = 2190 AND draws > 0
What is the fewest losses that had an against score of 2190 and more than 0 draws?
CREATE TABLE table_name_27 (losses INTEGER, against VARCHAR, draws VARCHAR)
SELECT circuit FROM table_name_11 WHERE winner = "event cancelled"
What's the circuit that had an event cancelled?
CREATE TABLE table_name_11 (circuit VARCHAR, winner VARCHAR)
SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1
Find the first name and country code of the player who did the most number of tours.
CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR)
SELECT present_share FROM table_23195_5 WHERE producing_nation = "Australia"
Name the present share for australia
CREATE TABLE table_23195_5 (present_share VARCHAR, producing_nation VARCHAR)
SELECT written_by FROM table_28760804_1 WHERE us_viewers__million_ = "5.95"
Who wrote the episode that got 5.95 million U.S. viewers?
CREATE TABLE table_28760804_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT MAX(attendance) FROM table_name_42 WHERE venue = "a" AND opponent = "west ham united"
What is the highest attendance for the match against west ham united at the venue of a?
CREATE TABLE table_name_42 (attendance INTEGER, venue VARCHAR, opponent VARCHAR)
SELECT MAX(run_2) FROM table_name_54 WHERE athlete = "eric neilson" AND run_3 > 55.97
What is the highest run 2 of athlete eric neilson, who has a run 3 larger than 55.97?
CREATE TABLE table_name_54 (run_2 INTEGER, athlete VARCHAR, run_3 VARCHAR)
SELECT population FROM table_name_81 WHERE _percentage_muslim = "30%"
What is the population when the % Muslim shows 30%?
CREATE TABLE table_name_81 (population VARCHAR, _percentage_muslim VARCHAR)
SELECT reason_for_change FROM table_2417395_4 WHERE date_successor_seated = "December 13, 1880"
What was the reason for change to the successor that was seated on December 13, 1880?
CREATE TABLE table_2417395_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT winning_car FROM table_name_35 WHERE circuit = "oulton park" AND winning_driver = "tony trimmer"
What car did Tony Trimmer drive at the Oulton Park Circuit?
CREATE TABLE table_name_35 (winning_car VARCHAR, circuit VARCHAR, winning_driver VARCHAR)
SELECT place FROM table_name_93 WHERE date = "12 feb 2012"
Which place was earned on 12 feb 2012?
CREATE TABLE table_name_93 (place VARCHAR, date VARCHAR)
SELECT COUNT(no_in_season) FROM table_28787871_3 WHERE original_air_date = "June 3, 2012"
How many numbers in the season have an air date of June 3, 2012?
CREATE TABLE table_28787871_3 (no_in_season VARCHAR, original_air_date VARCHAR)
SELECT date FROM table_name_85 WHERE home = "colorado"
What date was Colorado the home team?
CREATE TABLE table_name_85 (date VARCHAR, home VARCHAR)
SELECT analog FROM table_name_45 WHERE affiliation = "cw" AND digital = "26"
what is the analog type for cw on digital 26?
CREATE TABLE table_name_45 (analog VARCHAR, affiliation VARCHAR, digital VARCHAR)
SELECT neck FROM table_name_48 WHERE bullet = "10.566 (.416)" AND base = "14.78 (.582)"
Which Neck has a Bullet of 10.566 (.416), and a Base of 14.78 (.582)?
CREATE TABLE table_name_48 (neck VARCHAR, bullet VARCHAR, base VARCHAR)
SELECT date FROM table_name_49 WHERE home_team = "north melbourne"
When the Home team was north melbourne what was the Date of the game?
CREATE TABLE table_name_49 (date VARCHAR, home_team VARCHAR)
SELECT package_option FROM table_name_68 WHERE content = "religione" AND country = "italy"
What is the package/option in Italy when the content is religione?
CREATE TABLE table_name_68 (package_option VARCHAR, content VARCHAR, country VARCHAR)
SELECT score FROM table_name_41 WHERE time = "2:28"
Which Score has a Time of 2:28?
CREATE TABLE table_name_41 (score VARCHAR, time VARCHAR)
SELECT region FROM table_name_88 WHERE format = "cd" AND catalog = "alca-271"
What record had an alca-271 cd?
CREATE TABLE table_name_88 (region VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT AVG(rank) FROM table_name_41 WHERE points < 274.4 AND name = "roman koudelka"
What is the average rank of Roman Koudelka, who has less than 274.4 points?
CREATE TABLE table_name_41 (rank INTEGER, points VARCHAR, name VARCHAR)
SELECT T2.Name, T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID
What are the names of wrestlers and the elimination moves?
CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE elimination (Elimination_Move VARCHAR, Wrestler_ID VARCHAR)
SELECT MAX(year) FROM table_name_35 WHERE venue = "berlin, germany"
what is the latest year when the venue is berlin, germany?
CREATE TABLE table_name_35 (year INTEGER, venue VARCHAR)
SELECT termini FROM table_name_2 WHERE junctions = "i-35 fm 3338 sh 255"
What's the termini of the route with junctions of i-35 fm 3338 sh 255?
CREATE TABLE table_name_2 (termini VARCHAR, junctions VARCHAR)
SELECT record_company FROM table_name_32 WHERE conductor = "robert craft"
What record company has robert craft conducting?
CREATE TABLE table_name_32 (record_company VARCHAR, conductor VARCHAR)
SELECT tries_against FROM table_name_24 WHERE points_against = "429"
Having 429 points against, what is the Tries Against?
CREATE TABLE table_name_24 (tries_against VARCHAR, points_against VARCHAR)
SELECT branding FROM table_name_73 WHERE callsign = "dxed-tv"
What is Branding, when Callsign is "DXED-TV"?
CREATE TABLE table_name_73 (branding VARCHAR, callsign VARCHAR)
SELECT home_team AS score FROM table_name_69 WHERE away_team = "north melbourne"
What is the Home team score for the Away team of North Melbourne?
CREATE TABLE table_name_69 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_94 WHERE game = "game 2"
Who is the home team in game 2?
CREATE TABLE table_name_94 (home_team VARCHAR, game VARCHAR)
SELECT title FROM table_name_67 WHERE track < 7 AND translation = "an island"
Which title has tracks smaller than 7 with translation of an island?
CREATE TABLE table_name_67 (title VARCHAR, track VARCHAR, translation VARCHAR)
SELECT COUNT(rank) FROM table_name_55 WHERE time = "2:15.98" AND lane > 7
What is the number of the rank when the time is 2:15.98, in a lane larger than 7?
CREATE TABLE table_name_55 (rank VARCHAR, time VARCHAR, lane VARCHAR)
SELECT away_team FROM table_name_45 WHERE home_team = "collingwood"
If the Home team of collingwood was playing, what was the Away team?
CREATE TABLE table_name_45 (away_team VARCHAR, home_team VARCHAR)
SELECT MIN(game) FROM table_name_93 WHERE record = "3–33"
What is the lowest game number that has a Record of 3–33?
CREATE TABLE table_name_93 (game INTEGER, record VARCHAR)
SELECT to_par FROM table_name_50 WHERE country = "united states" AND place = "t1" AND score = 76 - 68 = 144
What is the to par of the player from the United States with a place of t1 and a 76-68=144 score?
CREATE TABLE table_name_50 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT SUM(assists) FROM table_name_6 WHERE venue = "ulsan" AND competition = "k-league" AND name = "kang jae-soon"
What is the sum of the assists kang jae-soon had in the k-league competition in ulsan?
CREATE TABLE table_name_6 (assists INTEGER, name VARCHAR, venue VARCHAR, competition VARCHAR)
SELECT nfl_club FROM table_name_39 WHERE pick < 74 AND round > 2
What is the NFL club with a pick less than 74 and a round greater than 2?
CREATE TABLE table_name_39 (nfl_club VARCHAR, pick VARCHAR, round VARCHAR)
SELECT COUNT(total) FROM table_name_17 WHERE country = "switzerland" AND gold < 7 AND silver < 3
How many times does Switzerland have under 7 golds and less than 3 silvers?
CREATE TABLE table_name_17 (total VARCHAR, silver VARCHAR, country VARCHAR, gold VARCHAR)
SELECT score FROM table_23286158_9 WHERE record = "37-27"
What was the score for the game when the record was 37-27?
CREATE TABLE table_23286158_9 (score VARCHAR, record VARCHAR)
SELECT team FROM table_name_52 WHERE high_points = "vince carter (19)"
What was the team when vince carter (19) had the high points?
CREATE TABLE table_name_52 (team VARCHAR, high_points VARCHAR)
SELECT AVG(erp_w) FROM table_name_90 WHERE city_of_license = "pound, virginia" AND frequency_mhz > 91.3
Name the average ERP W when it has a city of license of pound, virginia and frequency mhz more than 91.3
CREATE TABLE table_name_90 (erp_w INTEGER, city_of_license VARCHAR, frequency_mhz VARCHAR)
SELECT type FROM table_name_52 WHERE list_entry_number = 1356677
Which type has list entry number of 1356677?
CREATE TABLE table_name_52 (type VARCHAR, list_entry_number VARCHAR)
SELECT date FROM table_name_87 WHERE score = "6–3, 6–2"
Tell me the date for 6–3, 6–2
CREATE TABLE table_name_87 (date VARCHAR, score VARCHAR)
SELECT AVG(attendance) FROM table_name_54 WHERE venue = "candlestick park" AND date = "november 25"
What is the average Attendance, when Venue is "Candlestick Park", and when Date is "November 25"?
CREATE TABLE table_name_54 (attendance INTEGER, venue VARCHAR, date VARCHAR)
SELECT team FROM table_name_73 WHERE points = "26"
Which team has 26 points?
CREATE TABLE table_name_73 (team VARCHAR, points VARCHAR)
SELECT MIN(series__number) FROM table_12564633_1 WHERE written_by = "Jack Orman"
What was the first series in this list that Jack Orman wrote?
CREATE TABLE table_12564633_1 (series__number INTEGER, written_by VARCHAR)
SELECT toronto___broadway FROM table_10402018_1 WHERE uk_tour = "n/a"
Which person is in the tronto/broadway and has a uk tour of n/a
CREATE TABLE table_10402018_1 (toronto___broadway VARCHAR, uk_tour VARCHAR)
SELECT college_junior_club_team FROM table_1965650_8 WHERE player = "Bob Law"
What cub team or college did Bob Law come from?
CREATE TABLE table_1965650_8 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT SUM(year) FROM table_name_39 WHERE attendance = "95,000" AND runner_up = "dresdner sc"
What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc?
CREATE TABLE table_name_39 (year INTEGER, attendance VARCHAR, runner_up VARCHAR)
SELECT MAX(total) FROM table_name_25 WHERE gold = 0 AND bronze > 1
What is the total when the gold of 0, and a bronze larger than 1?
CREATE TABLE table_name_25 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT state FROM table_name_43 WHERE home_venue = "suwon sports complex"
What is the State with a home venue of suwon sports complex?
CREATE TABLE table_name_43 (state VARCHAR, home_venue VARCHAR)
SELECT score FROM table_11964047_5 WHERE record = "0–2"
what's the score where record is 0–2
CREATE TABLE table_11964047_5 (score VARCHAR, record VARCHAR)
SELECT tournament FROM table_name_81 WHERE opponent_in_the_final = "marielle bruens"
Which tournament has marielle bruens for the opponent in the final?
CREATE TABLE table_name_81 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT MAX(pick__number) FROM table_name_81 WHERE overall = 228 AND round < 7
What is the highest pick # that has a 228 overall and a round less than 7?
CREATE TABLE table_name_81 (pick__number INTEGER, overall VARCHAR, round VARCHAR)
SELECT duration FROM table_name_79 WHERE test_flight = "free flight #3"
What it Duration, when Test Flight is Free Flight #3?
CREATE TABLE table_name_79 (duration VARCHAR, test_flight VARCHAR)
SELECT stroke FROM table_21021796_1 WHERE applications = "1999 W210 E-Class , 2000 W203 C-Class"
For the 1999 w210 e-class , 2000 w203 c-class, what is the stroke?
CREATE TABLE table_21021796_1 (stroke VARCHAR, applications VARCHAR)
SELECT attendance FROM table_name_27 WHERE result = "won 1-0"
Name the attendance with result of won 1-0
CREATE TABLE table_name_27 (attendance VARCHAR, result VARCHAR)
SELECT venue FROM table_name_33 WHERE away_team = "north melbourne"
What was the Venue of the North Melbourne Away Team?
CREATE TABLE table_name_33 (venue VARCHAR, away_team VARCHAR)
SELECT event FROM table_name_98 WHERE year = 1971 AND result = "6th"
In which event did he place 6th in 1971?
CREATE TABLE table_name_98 (event VARCHAR, year VARCHAR, result VARCHAR)
SELECT date FROM table_name_15 WHERE score = "15–6"
What was the date of the game with a score of 15–6?
CREATE TABLE table_name_15 (date VARCHAR, score VARCHAR)
SELECT AVG(long) FROM table_name_44 WHERE name = "rock cartwright" AND loss > 11
What was Rock Cartwright's highest long with more than 11 losses?
CREATE TABLE table_name_44 (long INTEGER, name VARCHAR, loss VARCHAR)
SELECT conference FROM table_28365816_2 WHERE tournament_winner = "North Carolina"
During what conference is North Carolina listed as the tournament winner?
CREATE TABLE table_28365816_2 (conference VARCHAR, tournament_winner VARCHAR)
SELECT T1.first_name, T1.last_name, T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY COUNT(*) LIMIT 1
Which staff handled least number of payments? List the full name and the id.
CREATE TABLE payment (staff_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR)
SELECT actors_name FROM table_10236830_6 WHERE film_name = "Chopin: Desire for Love" AND nomination = "Best Actress in a Leading Role"
What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?
CREATE TABLE table_10236830_6 (actors_name VARCHAR, film_name VARCHAR, nomination VARCHAR)
SELECT capital FROM table_16278894_1 WHERE county = "Bungoma"
What is the capital of Bungoma county?
CREATE TABLE table_16278894_1 (capital VARCHAR, county VARCHAR)
SELECT COUNT(qualifying_start_date) FROM table_23995075_2 WHERE confederation = "CONCACAF"
How many qualifying start dates for the Concacaf confederation?
CREATE TABLE table_23995075_2 (qualifying_start_date VARCHAR, confederation VARCHAR)
SELECT MIN(round) FROM table_29033869_3 WHERE result__includes_margin_ = "Lost by 36 points"
What is the earliest round where collingswood lost by 36 points?
CREATE TABLE table_29033869_3 (round INTEGER, result__includes_margin_ VARCHAR)
SELECT area_province FROM table_name_64 WHERE district = "córdoba"
Name the area for District of córdoba
CREATE TABLE table_name_64 (area_province VARCHAR, district VARCHAR)
SELECT MIN(diagram) FROM table_name_4 WHERE built = "1962" AND lot_no < 30702
What diagram built in 1962 has a lot number smaller than 30702?
CREATE TABLE table_name_4 (diagram INTEGER, built VARCHAR, lot_no VARCHAR)
SELECT decision FROM table_name_20 WHERE visitor = "buffalo"
What is the decision when Buffalo was the visitor?
CREATE TABLE table_name_20 (decision VARCHAR, visitor VARCHAR)
SELECT SUM(points) FROM table_name_6 WHERE played < 38
What is the points when played is less than 38?
CREATE TABLE table_name_6 (points INTEGER, played INTEGER)
SELECT competition FROM table_name_68 WHERE date = "july 7"
What is the Competition on July 7?
CREATE TABLE table_name_68 (competition VARCHAR, date VARCHAR)
SELECT country FROM table_name_58 WHERE player = "johnny miller"
Which country has the player Johnny Miller?
CREATE TABLE table_name_58 (country VARCHAR, player VARCHAR)
SELECT team FROM table_name_5 WHERE county = "sussex"
Which team is in Sussex county?
CREATE TABLE table_name_5 (team VARCHAR, county VARCHAR)
SELECT result FROM table_22801331_1 WHERE record = "6-2"
What was the result against the team which the Cowboys have a 6-2 record against?
CREATE TABLE table_22801331_1 (result VARCHAR, record VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE home_team = "footscray"
What is the away team score for the home team listed as Footscray?
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_15 WHERE attendance = "4,286"
What is the date that 4,286 attended?
CREATE TABLE table_name_15 (date VARCHAR, attendance VARCHAR)
SELECT name FROM table_name_23 WHERE loss > 2 AND avg_g > -16 AND gp_gs = "11–7" AND gain > 86
which Name has a Loss larger than 2, and a Avg/G larger than -16, and a GP-GS of 11–7, and a Gain larger than 86?
CREATE TABLE table_name_23 (name VARCHAR, gain VARCHAR, gp_gs VARCHAR, loss VARCHAR, avg_g VARCHAR)
SELECT title FROM table_name_28 WHERE rank = 9
Which title had rank 9?
CREATE TABLE table_name_28 (title VARCHAR, rank VARCHAR)
SELECT SUM(year) FROM table_name_22 WHERE location = "pacific ring of fire" AND eruptions = "pinatubo"
How many years have a Location of pacific ring of fire, and Eruptions of pinatubo?
CREATE TABLE table_name_22 (year INTEGER, location VARCHAR, eruptions VARCHAR)
SELECT MIN(wins) FROM table_name_33 WHERE goal_difference > 0 AND goals_against > 40 AND position < 6 AND club = "sd indauchu"
Which Wins have a Goal Difference larger than 0, and Goals against larger than 40, and a Position smaller than 6, and a Club of sd indauchu?
CREATE TABLE table_name_33 (wins INTEGER, club VARCHAR, position VARCHAR, goal_difference VARCHAR, goals_against VARCHAR)
SELECT score FROM table_name_11 WHERE match < 13 AND home_away = "home" AND date = "april 21, 2008"
What was the score for a match before 13, and a home game on April 21, 2008?
CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR, match VARCHAR, home_away VARCHAR)
SELECT spa_fea FROM table_name_60 WHERE lms_fea = "5"
What was the SPA FEA when the LMS FEA was 5?
CREATE TABLE table_name_60 (spa_fea VARCHAR, lms_fea VARCHAR)
SELECT away_team AS score FROM table_name_18 WHERE home_team = "geelong"
What is the score of the away team that played home team Geelong?
CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR)
SELECT country FROM table_name_64 WHERE place = "t4" AND player = "scott simpson"
What is the Country, when Place is "T4", and when Player is "Scott Simpson"?
CREATE TABLE table_name_64 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT SUM(played) FROM table_name_55 WHERE wins = 21 AND position > 3
what is the played when the wins is 21 and the positions is higher than 3?
CREATE TABLE table_name_55 (played INTEGER, wins VARCHAR, position VARCHAR)
SELECT method FROM table_name_78 WHERE event = "pride 17"
What method was used in the Pride 17 event?
CREATE TABLE table_name_78 (method VARCHAR, event 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 AVG(touchdowns) FROM table_name_7 WHERE yards < 293 AND long > 39
What is the average Touchdowns, when Yards is less than 293, and when Long is greater than 39?
CREATE TABLE table_name_7 (touchdowns INTEGER, yards VARCHAR, long VARCHAR)
SELECT MAX(drawn) FROM table_name_75 WHERE lost > 4
Lost larger than 4 is what highest drawn?
CREATE TABLE table_name_75 (drawn INTEGER, lost INTEGER)