answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT surface FROM table_name_84 WHERE tournament = "italy f28"
On what type of surface was the tournament of Italy f28?
CREATE TABLE table_name_84 (surface VARCHAR, tournament VARCHAR)
SELECT tournament FROM table_name_50 WHERE result = "18th"
What is Tournament, when Result is 18th?
CREATE TABLE table_name_50 (tournament VARCHAR, result VARCHAR)
SELECT written_by FROM table_name_90 WHERE original_airdate = "june 6, 1999"
Who wrote the program that originally aired on June 6, 1999?
CREATE TABLE table_name_90 (written_by VARCHAR, original_airdate VARCHAR)
SELECT date FROM table_name_60 WHERE cause = "gas explosion" AND death_toll < 63 AND location = "penygraig"
When has a cause of gas explosion, a Death toll smaller than 63, and a Location of penygraig?
CREATE TABLE table_name_60 (date VARCHAR, location VARCHAR, cause VARCHAR, death_toll VARCHAR)
SELECT COUNT(*), T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name
Find the number of checking accounts for each account name.
CREATE TABLE checking (custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT COUNT(transmitting_from) FROM table_14670060_1 WHERE call_sign = "XEZV"
How many times does the call sign XEZV appear?
CREATE TABLE table_14670060_1 (transmitting_from VARCHAR, call_sign VARCHAR)
SELECT MAX(laps) FROM table_name_67 WHERE start = "33" AND finish = "18"
How many laps were completed with a start of 33, and a finish of 18?
CREATE TABLE table_name_67 (laps INTEGER, start VARCHAR, finish VARCHAR)
SELECT highest_score FROM table_16570286_2 WHERE innings = 9 AND player = "Donald Bradman"
What was the score when Donald Bradman in 9 innings?
CREATE TABLE table_16570286_2 (highest_score VARCHAR, innings VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_55 WHERE position = "forward-center" AND player = "amal mccaskill"
Amal McCaskill who plays forward-center played for what school/club team?
CREATE TABLE table_name_55 (school_club_team VARCHAR, position VARCHAR, player VARCHAR)
SELECT dainty_june FROM table_name_27 WHERE herbie = "boyd gaines"
Who was Dainty June when Boyd Gaines was Herbie?
CREATE TABLE table_name_27 (dainty_june VARCHAR, herbie VARCHAR)
SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Hittite Old Kingdom , Minoan eruption"
When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age?
CREATE TABLE table_23537091_1 (copper_age VARCHAR, ubaid_period_in_mesopotamia VARCHAR)
SELECT race FROM table_name_25 WHERE pole_position = "jacques laffite"
What race has a Pole Position of Jacques Laffite?
CREATE TABLE table_name_25 (race VARCHAR, pole_position VARCHAR)
SELECT venue FROM table_name_76 WHERE away_team = "footscray"
Where did Footscray play as the away team?
CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR)
SELECT high_points FROM table_27756314_8 WHERE team = "Charlotte"
Who had the high points when the team was charlotte?
CREATE TABLE table_27756314_8 (high_points VARCHAR, team VARCHAR)
SELECT population_in_1000__1931_ FROM table_11654169_1 WHERE car_plates__since_1937_ = "30-34"
List population when their car plates are 30-34.
CREATE TABLE table_11654169_1 (population_in_1000__1931_ VARCHAR, car_plates__since_1937_ VARCHAR)
SELECT country FROM table_name_26 WHERE score = 71 - 71 - 69 = 211
What is Country, when Score is 71-71-69=211?
CREATE TABLE table_name_26 (country VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_99 WHERE date = "may 28"
How many people attended the May 28 game?
CREATE TABLE table_name_99 (attendance VARCHAR, date VARCHAR)
SELECT score FROM table_name_62 WHERE money___$__ = "22,500"
What's the score for $22,500?
CREATE TABLE table_name_62 (score VARCHAR, money___$__ VARCHAR)
SELECT partially_deleted FROM table_name_95 WHERE deleted = "–" AND county = "valley"
What is the partially deleted result for a deleted of m– in Valley?
CREATE TABLE table_name_95 (partially_deleted VARCHAR, deleted VARCHAR, county VARCHAR)
SELECT COUNT(points) FROM table_17360840_5 WHERE record = "6-8-6"
How many points were scored when the record was 6-8-6?
CREATE TABLE table_17360840_5 (points VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_99 WHERE type_of_game = "1990 wcq" AND results¹ = "0:0"
Which opponent played a 1990 wcq type of game, where the results were 0:0?
CREATE TABLE table_name_99 (opponent VARCHAR, type_of_game VARCHAR, results¹ VARCHAR)
SELECT rec FROM table_name_25 WHERE player = "jerel myers"
Which Rec has Jerel Myers as the Player?
CREATE TABLE table_name_25 (rec VARCHAR, player VARCHAR)
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Stephanie" AND t1.lname = "Weirich"
Which papers have "Stephanie Weirich" as an author?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)
SELECT release_date FROM table_name_12 WHERE company = "bbc audio" AND writer = "ford, phil phil ford"
What is the release date of the album written by Ford, Phil Phil Ford under BBC Audio?
CREATE TABLE table_name_12 (release_date VARCHAR, company VARCHAR, writer VARCHAR)
SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 20
Name the gdp world rank for asian rank being 20
CREATE TABLE table_2249029_1 (gdp_world_rank VARCHAR, asian_rank VARCHAR)
SELECT college FROM table_16376436_1 WHERE position = "Defensive Back"
What college did the defensive back attend?
CREATE TABLE table_16376436_1 (college VARCHAR, position VARCHAR)
SELECT year FROM table_name_41 WHERE arena = "pepsi arena"
In what year was the competition at the Pepsi Arena?
CREATE TABLE table_name_41 (year VARCHAR, arena VARCHAR)
SELECT gold FROM table_name_19 WHERE rank = "6"
How many gold medals for the nation ranked 6?
CREATE TABLE table_name_19 (gold VARCHAR, rank VARCHAR)
SELECT surface FROM table_name_62 WHERE tournament = "olbia"
Which Surface has a Tournament of olbia?
CREATE TABLE table_name_62 (surface VARCHAR, tournament VARCHAR)
SELECT serial_format FROM table_name_72 WHERE design = "white on blue" AND serials_issued = "ss-00-00 to zz-99-99"
What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99?
CREATE TABLE table_name_72 (serial_format VARCHAR, design VARCHAR, serials_issued VARCHAR)
SELECT points FROM table_name_35 WHERE try_bonus = "2"
How many points were there when the try bonus was 2?
CREATE TABLE table_name_35 (points VARCHAR, try_bonus VARCHAR)
SELECT episode FROM table_23292220_13 WHERE seans_team = "Jack Dee and Stacey Solomon"
What was the episode that had Jack Dee and Stacey Solomon on Sean's team?
CREATE TABLE table_23292220_13 (episode VARCHAR, seans_team VARCHAR)
SELECT MIN(drawn) FROM table_name_36 WHERE lost < 2
What is the lowest number drawn with less than 2 lost?
CREATE TABLE table_name_36 (drawn INTEGER, lost INTEGER)
SELECT COUNT(attendance) FROM table_name_34 WHERE opponent = "clemson"
How many people attended the game against Clemson?
CREATE TABLE table_name_34 (attendance VARCHAR, opponent VARCHAR)
SELECT COUNT(regular_judge) FROM table_1597866_3 WHERE host = "Bernie Chan"
Name the number of regular judge when host is bernie chan
CREATE TABLE table_1597866_3 (regular_judge VARCHAR, host VARCHAR)
SELECT SUM(rank) FROM table_name_85 WHERE municipality = "winnipeg" AND area__km_2__ > 464.01
What is the total Rank that has a Municipality of Winnipeg, an Area (KM 2) that's larger than 464.01?
CREATE TABLE table_name_85 (rank INTEGER, municipality VARCHAR, area__km_2__ VARCHAR)
SELECT hometown FROM table_name_51 WHERE college = "lsu"
What's the hometown of the player with a college of lsu?
CREATE TABLE table_name_51 (hometown VARCHAR, college VARCHAR)
SELECT position FROM table_name_6 WHERE team = "baltimore orioles"
What is the position of the player for the Baltimore Orioles?
CREATE TABLE table_name_6 (position VARCHAR, team VARCHAR)
SELECT COUNT(earnings___) AS $__ FROM table_name_43 WHERE events < 28 AND rank < 3
How much money did the player ranked above 3 with under 28 events earn?
CREATE TABLE table_name_43 (earnings___ VARCHAR, events VARCHAR, rank VARCHAR)
SELECT height_in_ft FROM table_name_70 WHERE no_s_ = "24"
What is the height in feet of player number 24?
CREATE TABLE table_name_70 (height_in_ft VARCHAR, no_s_ VARCHAR)
SELECT winner FROM table_name_33 WHERE loser = "baltimore colts" AND location = "schaefer stadium" AND result = "42-3"
Who is the Winner, when the Loser is the Baltimore Colts, when the Location is Schaefer Stadium, and when the Result is 42-3?
CREATE TABLE table_name_33 (winner VARCHAR, result VARCHAR, loser VARCHAR, location VARCHAR)
SELECT party FROM table_1342149_18 WHERE result = "Re-elected" AND district = "Louisiana 6"
What party's candidate was re-elected in the Louisiana 6 district?
CREATE TABLE table_1342149_18 (party VARCHAR, result VARCHAR, district VARCHAR)
SELECT party FROM table_1341453_40 WHERE incumbent = "Tim Holden"
Incumbent Tim Holden belonged to what party?
CREATE TABLE table_1341453_40 (party VARCHAR, incumbent VARCHAR)
SELECT MAX(silver) FROM table_name_1 WHERE nation = "total" AND bronze < 18
Which Silver has a Nation of total, and a Bronze smaller than 18?
CREATE TABLE table_name_1 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT player FROM table_name_33 WHERE cfl_team = "hamilton"
which player played on Team Hamilton?
CREATE TABLE table_name_33 (player VARCHAR, cfl_team VARCHAR)
SELECT place FROM table_name_84 WHERE player = "mark brooks"
What place did player mark brooks take?
CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR)
SELECT SUM(crowd) FROM table_name_57 WHERE home_team = "st kilda"
How many people attended games with st kilda as the home side?
CREATE TABLE table_name_57 (crowd INTEGER, home_team VARCHAR)
SELECT score FROM table_name_2 WHERE date = "november 2"
Which score has a Date of november 2?
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
SELECT skip FROM table_name_22 WHERE third = "martina baumann"
What skip has martina baumann as the third?
CREATE TABLE table_name_22 (skip VARCHAR, third VARCHAR)
SELECT shooter FROM table_name_56 WHERE rank_points = "15" AND score_points = "0"
Who is the shooter with 15 rank points, and 0 score points?
CREATE TABLE table_name_56 (shooter VARCHAR, rank_points VARCHAR, score_points VARCHAR)
SELECT player FROM table_22824312_1 WHERE weight = 170
Who are the player's who weighed 170?
CREATE TABLE table_22824312_1 (player VARCHAR, weight VARCHAR)
SELECT place FROM table_name_16 WHERE score = 67
What is the Place of the Player with a Score of 67?
CREATE TABLE table_name_16 (place VARCHAR, score VARCHAR)
SELECT score FROM table_name_57 WHERE opponents_in_the_final = "nathan healey igor kunitsyn"
Name the score for opponents of nathan healey igor kunitsyn
CREATE TABLE table_name_57 (score VARCHAR, opponents_in_the_final VARCHAR)
SELECT SUM(enrollment) FROM table_name_53 WHERE mascot = "hot dogs"
What is the enrollment of the school whose mascot is hot dogs?
CREATE TABLE table_name_53 (enrollment INTEGER, mascot VARCHAR)
SELECT destination FROM Flight GROUP BY destination ORDER BY COUNT(*) LIMIT 1
Which destination has least number of flights?
CREATE TABLE Flight (destination VARCHAR)
SELECT last_appearance FROM table_11240028_1 WHERE portrayed_by = "Sela Ward"
On which episode did actress Sela Ward make her last appearance?
CREATE TABLE table_11240028_1 (last_appearance VARCHAR, portrayed_by VARCHAR)
SELECT notes FROM table_name_48 WHERE year = 2002
Which Notes have a Year of 2002?
CREATE TABLE table_name_48 (notes VARCHAR, year VARCHAR)
SELECT MAX(performances) FROM table_name_43 WHERE role = "geoffrey fitton"
Name the most performances for geoffrey fitton
CREATE TABLE table_name_43 (performances INTEGER, role VARCHAR)
SELECT MIN(bronze) FROM table_name_51 WHERE nation = "soviet union" AND total < 11
what is the least bronze when the nation is soviet union and the total is less than 11?
CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT COUNT(scottish_cup) FROM table_name_22 WHERE league < 561 AND years = "1989–1995 1997–2001" AND europe < 11
Which Scottish Cup has a League smaller than 561, Years of 1989–1995 1997–2001, and Europe smaller than 11?
CREATE TABLE table_name_22 (scottish_cup VARCHAR, europe VARCHAR, league VARCHAR, years VARCHAR)
SELECT position FROM table_name_42 WHERE pick = 74
Which Position has a Pick of 74?
CREATE TABLE table_name_42 (position VARCHAR, pick VARCHAR)
SELECT col_location FROM table_2731431_1 WHERE col_height__m_ = 1107
What is the col location with a col height (m) of 1107?
CREATE TABLE table_2731431_1 (col_location VARCHAR, col_height__m_ VARCHAR)
SELECT MAX(consecutive_starts) FROM table_28606933_7 WHERE player = "Jason Gildon"
What is the largest number of consecutive starts for jason gildon?
CREATE TABLE table_28606933_7 (consecutive_starts INTEGER, player VARCHAR)
SELECT meg_whitman__r_ FROM table_name_51 WHERE date_s__administered = "october 21, 2010"
What percent of the vote went to Meg Whitman in the poll taken on October 21, 2010.
CREATE TABLE table_name_51 (meg_whitman__r_ VARCHAR, date_s__administered VARCHAR)
SELECT location FROM table_18893428_1 WHERE constructor = "Lorraine-Dietrich"
What is the location of the car that has a constructor of Lorraine-Dietrich?
CREATE TABLE table_18893428_1 (location VARCHAR, constructor VARCHAR)
SELECT location FROM table_name_23 WHERE founded > 1890 AND institution = "university of montana"
What is the location of the University of Montana, which was founded after 1890?
CREATE TABLE table_name_23 (location VARCHAR, founded VARCHAR, institution VARCHAR)
SELECT leading_scorer FROM table_name_52 WHERE date = "13 february 2008"
Who is the leading scorer of the game on 13 February 2008?
CREATE TABLE table_name_52 (leading_scorer VARCHAR, date VARCHAR)
SELECT height_[m] FROM table_name_27 WHERE architect = "ross and macfarlane"
What is the height of the building built by architects Ross and Macfarlane?
CREATE TABLE table_name_27 (height_ VARCHAR, m VARCHAR, architect VARCHAR)
SELECT play_by_play FROM table_name_56 WHERE year < 1998 AND network = "fox"
Who did the play-by-play before 1998 on Fox network?
CREATE TABLE table_name_56 (play_by_play VARCHAR, year VARCHAR, network VARCHAR)
SELECT SUM(grid) FROM table_name_94 WHERE laps > 20
what is the grid when the laps is more than 20?
CREATE TABLE table_name_94 (grid INTEGER, laps INTEGER)
SELECT COUNT(attendance) FROM table_name_28 WHERE date = "april 25"
What is the total attendance on April 25?
CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR)
SELECT MIN(against) FROM table_name_50 WHERE club = "cobden" AND draws > 0
What's the least against number for Cobden with draws more than 0?
CREATE TABLE table_name_50 (against INTEGER, club VARCHAR, draws VARCHAR)
SELECT average FROM table_name_3 WHERE rank = "2"
What is the average that has 2 for the rank?
CREATE TABLE table_name_3 (average VARCHAR, rank VARCHAR)
SELECT h___a FROM table_name_90 WHERE opponents = "oldham athletic" AND round = "semi-final"
What is the H/A in the semi-final round where oldham athletic were the opponents?
CREATE TABLE table_name_90 (h___a VARCHAR, opponents VARCHAR, round VARCHAR)
SELECT frequency FROM table_name_50 WHERE power__kw_ = "10kw" AND call_sign = "dyfr"
What's the frequency of the call sign DYFR with 10KW of power?
CREATE TABLE table_name_50 (frequency VARCHAR, power__kw_ VARCHAR, call_sign VARCHAR)
SELECT MAX(year_started) FROM table_1688640_4 WHERE car__number = "55"
Name the year started where car number is 55
CREATE TABLE table_1688640_4 (year_started INTEGER, car__number VARCHAR)
SELECT points_against FROM table_name_96 WHERE "drawn" = "drawn"
what is the points against when drawn is drawn?
CREATE TABLE table_name_96 (points_against VARCHAR)
SELECT COUNT(playoffs) FROM table_245694_4 WHERE concacaf = "Semifinals"
Name the number of playoffs for semifinals
CREATE TABLE table_245694_4 (playoffs VARCHAR, concacaf VARCHAR)
SELECT football_stadium FROM table_name_55 WHERE team = "carabins"
What's the name of the carabins stadium?
CREATE TABLE table_name_55 (football_stadium VARCHAR, team VARCHAR)
SELECT result FROM table_name_95 WHERE game_site = "jeppesen stadium"
What was the result of the game played at Jeppesen Stadium?
CREATE TABLE table_name_95 (result VARCHAR, game_site VARCHAR)
SELECT COUNT(year) FROM table_name_21 WHERE venue = "antwerp, belgium" AND result = "2nd"
How many years did the team place 2nd in Antwerp, Belgium?
CREATE TABLE table_name_21 (year VARCHAR, venue VARCHAR, result VARCHAR)
SELECT loss FROM table_name_91 WHERE attendance = "9,065"
What was the loss of the Mariners game that had an attendance of 9,065?
CREATE TABLE table_name_91 (loss VARCHAR, attendance VARCHAR)
SELECT qb_rating FROM table_20906175_3 WHERE name = "Neil Lomax"
What was the QB rating for Neil lomax?
CREATE TABLE table_20906175_3 (qb_rating VARCHAR, name VARCHAR)
SELECT MIN(age), MAX(age), AVG(age) FROM people
Show the minimum, maximum, and average age for all people.
CREATE TABLE people (age INTEGER)
SELECT investment_earnings FROM table_name_26 WHERE state_ & _federal = "13,999,169"
What were the investment earnings in the year that State and Federal taxes were $13,999,169?
CREATE TABLE table_name_26 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR)
SELECT to_par FROM table_name_76 WHERE runner_s__up = "john senden"
When John Senden was the runner-up, what was the To Par?
CREATE TABLE table_name_76 (to_par VARCHAR, runner_s__up VARCHAR)
SELECT total FROM table_name_41 WHERE name = "norikazu murakami"
What is Norikazu Murakami's total?
CREATE TABLE table_name_41 (total VARCHAR, name VARCHAR)
SELECT country FROM table_name_34 WHERE publisher = "deltamac (hk)"
What country has deltamac (hk) as the publisher?
CREATE TABLE table_name_34 (country VARCHAR, publisher VARCHAR)
SELECT date FROM table_name_5 WHERE opponent_in_the_final = "ignasi villacampa"
Name the date for opponent in the final being ignasi villacampa
CREATE TABLE table_name_5 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT podiums FROM table_name_38 WHERE f_laps = "0" AND points = "39"
What listing for Podiums has 0 F/laps and 39 points?
CREATE TABLE table_name_38 (podiums VARCHAR, f_laps VARCHAR, points VARCHAR)
SELECT drawn FROM table_name_7 WHERE points < 46 AND position < 20 AND lost < 19 AND against = 56
Which Drawn has Points smaller than 46, and a Position smaller than 20, and a Lost smaller than 19, and an Against of 56?
CREATE TABLE table_name_7 (drawn VARCHAR, against VARCHAR, lost VARCHAR, points VARCHAR, position VARCHAR)
SELECT song_name FROM song WHERE languages = "english"
Find the names of all English songs.
CREATE TABLE song (song_name VARCHAR, languages VARCHAR)
SELECT place FROM table_name_33 WHERE player = "brad faxon"
What place is player Brad Faxon from?
CREATE TABLE table_name_33 (place VARCHAR, player VARCHAR)
SELECT MAX(attendance) FROM table_14984103_1 WHERE game_site = "Los Angeles Memorial Coliseum"
Name the most attendance for game site for los angeles memorial coliseum
CREATE TABLE table_14984103_1 (attendance INTEGER, game_site VARCHAR)
SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"
How many tracks belong to rock genre?
CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)
SELECT time FROM table_name_56 WHERE lane = 7
What time does lane 7 have?
CREATE TABLE table_name_56 (time VARCHAR, lane VARCHAR)
SELECT * FROM employees WHERE NOT employee_id IN (SELECT employee_id FROM job_history)
display all the information of those employees who did not have any job in the past.
CREATE TABLE job_history (employee_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR)
SELECT nationality FROM table_name_82 WHERE athlete = "henry carr" AND time = "20.3y"
What's the nationality of Henry Carr having a time of 20.3y?
CREATE TABLE table_name_82 (nationality VARCHAR, athlete VARCHAR, time VARCHAR)
SELECT MAX(lost) FROM table_name_43 WHERE pool_round = "pool 2" AND played < 6
Can you tell me the highest Lost that has the Pool/Round of pool 2, and the Played smaller than 6?
CREATE TABLE table_name_43 (lost INTEGER, pool_round VARCHAR, played VARCHAR)
SELECT outcome FROM table_2139023_2 WHERE surface = "Grass" AND year = 1955
What was the result of the match on grass in 1955?
CREATE TABLE table_2139023_2 (outcome VARCHAR, surface VARCHAR, year VARCHAR)