answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT nickname FROM table_name_26 WHERE no_of_premierships = 0 AND years_in_competition = "1982-2003"
What was the Nickname that had a No. 0, and Years in Competition of 1982-2003?
CREATE TABLE table_name_26 (nickname VARCHAR, no_of_premierships VARCHAR, years_in_competition VARCHAR)
SELECT rebounds_per_game FROM table_28547289_1 WHERE minutes_per_game = "35"
How many rebounds per game did Andrej Džaković average when playing 35 minutes per game?
CREATE TABLE table_28547289_1 (rebounds_per_game VARCHAR, minutes_per_game VARCHAR)
SELECT date FROM table_name_39 WHERE shooter = "new targets from 1989"
What is the Date of Shooter New Targets from 1989's record?
CREATE TABLE table_name_39 (date VARCHAR, shooter VARCHAR)
SELECT round FROM table_name_43 WHERE location = "palavas-les-flots , herault , france"
What round was held in palavas-les-flots , herault , france?
CREATE TABLE table_name_43 (round VARCHAR, location VARCHAR)
SELECT COUNT(episode_number) FROM table_name_80 WHERE audience_share__average_ = "10%"
What episode number has an audience share of 10%?
CREATE TABLE table_name_80 (episode_number VARCHAR, audience_share__average_ VARCHAR)
SELECT competition FROM table_name_66 WHERE final_position = "winners" AND final_round = "finals"
What competition had a final round in the finals and the final position winners?
CREATE TABLE table_name_66 (competition VARCHAR, final_position VARCHAR, final_round VARCHAR)
SELECT winter_olympics FROM table_174491_1 WHERE fis_nordic_world_ski_championships = "1982"
In what year did the winner of the FIS championship in 1982 win the Winter Olympics?
CREATE TABLE table_174491_1 (winter_olympics VARCHAR, fis_nordic_world_ski_championships VARCHAR)
SELECT socket FROM table_name_91 WHERE frequency = "1.2 ghz" AND release_price___usd__ = "$70"
Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket?
CREATE TABLE table_name_91 (socket VARCHAR, frequency VARCHAR, release_price___usd__ VARCHAR)
SELECT MIN(attendance) FROM table_name_35 WHERE record = "48-51"
With a record of 48-51 for the team, the lowest 2005 attendance was listed as how many?
CREATE TABLE table_name_35 (attendance INTEGER, record VARCHAR)
SELECT COUNT(position) FROM table_22056184_1 WHERE f_laps = 1 AND series = "British Formula Three"
How many positions have f/laps of 1 and british formula three series?
CREATE TABLE table_22056184_1 (position VARCHAR, f_laps VARCHAR, series VARCHAR)
SELECT score FROM table_name_67 WHERE set_3 = "17-25"
What is Score, when Set 3 is 17-25?
CREATE TABLE table_name_67 (score VARCHAR, set_3 VARCHAR)
SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1934
Where is the orchestra when the year of recording is 1934?
CREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR)
SELECT school_club_team FROM table_10015132_16 WHERE years_in_toronto = "2003-06"
which club was in toronto 2003-06
CREATE TABLE table_10015132_16 (school_club_team VARCHAR, years_in_toronto VARCHAR)
SELECT score FROM table_name_96 WHERE date = "october 8, 2005" AND venue = "estadio alfonso lastras, san luis potosí, mexico"
Which Score has a Date of october 8, 2005, and a Venue of estadio alfonso lastras, san luis potosí, mexico?
CREATE TABLE table_name_96 (score VARCHAR, date VARCHAR, venue VARCHAR)
SELECT song_choice FROM table_name_38 WHERE result = "advanced" AND week = "top 20"
Which song garnered an advanced result during top 20 week ?
CREATE TABLE table_name_38 (song_choice VARCHAR, result VARCHAR, week VARCHAR)
SELECT 1994 FROM table_name_84 WHERE 1995 = "1r"
What's the 1994 if 1995 has a 1R?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT country FROM table_name_69 WHERE score = 66 - 73 - 69 = 208
What country has a score of 66-73-69=208?
CREATE TABLE table_name_69 (country VARCHAR, score VARCHAR)
SELECT written_by FROM table_21312959_1 WHERE no_in_series = 129
Who are the writers for the episode number in series 129?
CREATE TABLE table_21312959_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT original_air_date FROM table_25923164_1 WHERE directed_by = "Gloria Muzio"
What was the original air date of the episode directed by gloria muzio?
CREATE TABLE table_25923164_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT MIN(grid) FROM table_name_52 WHERE time_retired = "+22.687"
What's the smallest grid for Time/Retired of +22.687?
CREATE TABLE table_name_52 (grid INTEGER, time_retired VARCHAR)
SELECT home_team FROM table_name_46 WHERE away_team = "footscray"
What is the name of the home team that played away team Footscray?
CREATE TABLE table_name_46 (home_team VARCHAR, away_team VARCHAR)
SELECT white FROM table_name_96 WHERE amerindian = "4,87%"
WHich Category in White has a Amerindian of 4,87%?
CREATE TABLE table_name_96 (white VARCHAR, amerindian VARCHAR)
SELECT high_rebounds FROM table_17001658_10 WHERE high_assists = "Raymond Felton (12)"
For High Assists of Raymond Felton (12), who were the High rebounds?
CREATE TABLE table_17001658_10 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT country FROM table_name_45 WHERE margin = "2 strokes" AND score = "276 (-4)"
What was the country when the margin was 2 strokes, and when the score was 276 (-4)?
CREATE TABLE table_name_45 (country VARCHAR, margin VARCHAR, score VARCHAR)
SELECT high_assists FROM table_name_98 WHERE high_points = "dorell wright (20)"
What was the high assists from a high points of dorell wright (20)?
CREATE TABLE table_name_98 (high_assists VARCHAR, high_points VARCHAR)
SELECT city FROM table_name_54 WHERE school = "indianapolis brebeuf"
Which City has a School of indianapolis brebeuf?
CREATE TABLE table_name_54 (city VARCHAR, school VARCHAR)
SELECT nba_draft FROM table_name_99 WHERE hometown = "brampton, on"
For the Player from Brampton, ON what is their NBA Draft status?
CREATE TABLE table_name_99 (nba_draft VARCHAR, hometown VARCHAR)
SELECT südbayern FROM table_name_27 WHERE year = 1928
What's the Südbayern in 1928?
CREATE TABLE table_name_27 (südbayern VARCHAR, year VARCHAR)
SELECT format FROM table_name_94 WHERE catalogue = "wpcr13504"
What format is catalogue WPCR13504 in?
CREATE TABLE table_name_94 (format VARCHAR, catalogue VARCHAR)
SELECT venue FROM table_name_19 WHERE away_team = "collingwood"
Where was the game when Collingwood was the home team?
CREATE TABLE table_name_19 (venue VARCHAR, away_team VARCHAR)
SELECT constructor FROM table_name_91 WHERE race_name = "i news of the world trophy"
Which constructor has a race called I News of the World Trophy?
CREATE TABLE table_name_91 (constructor VARCHAR, race_name VARCHAR)
SELECT candidates FROM table_1341453_12 WHERE incumbent = "Saxby Chambliss"
Who were the candidates in the election where Saxby Chambliss was the incumbent?
CREATE TABLE table_1341453_12 (candidates VARCHAR, incumbent VARCHAR)
SELECT husband_dates FROM table_name_54 WHERE date_married = "1858"
Who was the husband date that was married in 1858?
CREATE TABLE table_name_54 (husband_dates VARCHAR, date_married VARCHAR)
SELECT SUM(points) FROM table_name_29 WHERE opponent = "@ new jersey devils" AND game > 7
What is the total Points for the Opponent of @ New Jersey Devils and a Game bigger than 7?
CREATE TABLE table_name_29 (points INTEGER, opponent VARCHAR, game VARCHAR)
SELECT rank_points FROM table_name_87 WHERE score_points = "11"
What is the rank for the player where there are 11 points?
CREATE TABLE table_name_87 (rank_points VARCHAR, score_points VARCHAR)
SELECT original_air_date FROM table_24625467_1 WHERE production_code = "2J5356"
What date did the episode with a production code of 2j5356 originally air?
CREATE TABLE table_24625467_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT years_for_jazz FROM table_11545282_17 WHERE player = "Truck Robinson"
Wht years did truck robinson play?
CREATE TABLE table_11545282_17 (years_for_jazz VARCHAR, player VARCHAR)
SELECT MAX(minutes) FROM table_25038931_1 WHERE starts = 11
List the total play time for 11 starts.
CREATE TABLE table_25038931_1 (minutes INTEGER, starts VARCHAR)
SELECT COUNT(position_in_table) FROM table_26914759_3 WHERE incoming_manager = "Gary Megson"
How many teams had gary megson as an incoming manager
CREATE TABLE table_26914759_3 (position_in_table VARCHAR, incoming_manager VARCHAR)
SELECT flag FROM table_name_66 WHERE ship = "aidavita"
Which Flag did the Ship Aidavita have?
CREATE TABLE table_name_66 (flag VARCHAR, ship VARCHAR)
SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name of member in charge of greatest number of events?
CREATE TABLE party_events (member_in_charge_id VARCHAR); CREATE TABLE member (member_name VARCHAR, member_id VARCHAR)
SELECT winning_driver FROM table_name_5 WHERE winning_constructor = "itala" AND name = "savio circuit"
Who was the winning driver of the Savio Circuit with the constructor Itala?
CREATE TABLE table_name_5 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)
SELECT college FROM table_name_7 WHERE round < 2
Which college has fewer than 2 rounds?
CREATE TABLE table_name_7 (college VARCHAR, round INTEGER)
SELECT club FROM table_name_44 WHERE played = "22" AND tries_for = "41"
What is the Club, when the value for Played is 22, and when the value for Tries is 41?
CREATE TABLE table_name_44 (club VARCHAR, played VARCHAR, tries_for VARCHAR)
SELECT points FROM table_name_52 WHERE lost = "3"
How many points does the team with 3 losses have?
CREATE TABLE table_name_52 (points VARCHAR, lost VARCHAR)
SELECT height__f_ FROM table_23670057_6 WHERE player = "Steffen Hamann"
Name the height for steffen hamann
CREATE TABLE table_23670057_6 (height__f_ VARCHAR, player VARCHAR)
SELECT result FROM table_name_50 WHERE moves > 41 AND year = 2007 AND opening = "c42 petrov's defence"
What's the result when there's more than 41 moves with an opening of c42 petrov's defence in 2007?
CREATE TABLE table_name_50 (result VARCHAR, opening VARCHAR, moves VARCHAR, year VARCHAR)
SELECT cash_on_hand FROM table_name_60 WHERE after_debt = "$327,094"
What is the amount of cash on hand that has an after debt of $327,094
CREATE TABLE table_name_60 (cash_on_hand VARCHAR, after_debt VARCHAR)
SELECT place FROM table_name_99 WHERE country = "south africa"
What place is South Africa?
CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR)
SELECT constructor FROM table_name_48 WHERE "report" = "report" AND year = "1955"
What is the name of the constructor when report shows report in 1955?
CREATE TABLE table_name_48 (constructor VARCHAR, year VARCHAR)
SELECT player FROM table_25730123_2 WHERE extra_points < 1.0 AND points = 20
Name the player/s when there were 20 points with less than 1.0 extra point .
CREATE TABLE table_25730123_2 (player VARCHAR, extra_points VARCHAR, points VARCHAR)
SELECT MAX(points) FROM table_name_71 WHERE class = "500cc" AND year > 1962 AND wins < 0
What is the highest points value for the 500cc class in years after 1962 with 0 wins?
CREATE TABLE table_name_71 (points INTEGER, wins VARCHAR, class VARCHAR, year VARCHAR)
SELECT shareholder FROM table_206419_3 WHERE percent_of_capital = "3.63"
What shareholder has 3.63 percent of capital?
CREATE TABLE table_206419_3 (shareholder VARCHAR, percent_of_capital VARCHAR)
SELECT career_win_loss FROM table_name_11 WHERE tournament = "hamburg"
What is Career Win-Loss, when Tournament is "Hamburg"?
CREATE TABLE table_name_11 (career_win_loss VARCHAR, tournament VARCHAR)
SELECT DISTINCT fname FROM student
What are the first names of all the students?
CREATE TABLE student (fname VARCHAR)
SELECT SUM(starts) FROM table_name_37 WHERE winnings = "$139,774" AND wins < 0
Can you tell me the sum of Starts that the Winnings of $139,774, and the Wins smaller than 0?
CREATE TABLE table_name_37 (starts INTEGER, winnings VARCHAR, wins VARCHAR)
SELECT round_of_16 FROM table_18602462_22 WHERE semifinals = "Vergeer ( NED ) L 0-6, 1-6"
The semifinal score of vergeer ( ned ) l 0-6, 1-6 follows a round of 16 result of what?
CREATE TABLE table_18602462_22 (round_of_16 VARCHAR, semifinals VARCHAR)
SELECT MIN(round) FROM table_name_92 WHERE opponent = "kazushi sakuraba"
What is the lowest round that has kazushi sakuraba as the opponent?
CREATE TABLE table_name_92 (round INTEGER, opponent VARCHAR)
SELECT penalties FROM table_name_20 WHERE gf = "40"
How many penalties were there in the game with a G.F. of 40?
CREATE TABLE table_name_20 (penalties VARCHAR, gf VARCHAR)
SELECT home_team AS score FROM table_name_63 WHERE home_team = "melbourne"
What was the home score for the Home team Melbourne?
CREATE TABLE table_name_63 (home_team VARCHAR)
SELECT years_for_grizzlies FROM table_name_81 WHERE school_club_team = "unlv"
What year did the Grizzlies play for the UNLV team?
CREATE TABLE table_name_81 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT AVG(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)
Find the average grade of all students who have some friends.
CREATE TABLE Highschooler (id VARCHAR); CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (grade INTEGER, id VARCHAR)
SELECT record FROM table_name_23 WHERE visitor = "pittsburgh" AND score = "4–0"
Which Record has a Visitor of pittsburgh, and a Score of 4–0?
CREATE TABLE table_name_23 (record VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT MIN(indian_tamil) FROM table_24574438_1 WHERE population_density___km_2__ = 240
Name the least indian tamil for population density being 240
CREATE TABLE table_24574438_1 (indian_tamil INTEGER, population_density___km_2__ VARCHAR)
SELECT score FROM table_name_74 WHERE attendance = "23 january 1999" AND tie_no = "6"
Which Score has an Attendance of 23 january 1999, and a Tie # of 6?
CREATE TABLE table_name_74 (score VARCHAR, attendance VARCHAR, tie_no VARCHAR)
SELECT tournament FROM table_name_76 WHERE surface = "clay" AND score_in_the_final = "6–1, 3–6, 6–2"
Which tournament had a clay surface and a score of 6–1, 3–6, 6–2?
CREATE TABLE table_name_76 (tournament VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT record FROM table_name_45 WHERE decision = "mason" AND home = "nashville"
What is the record of the game with Mason as the decision and Nashville as the home team?
CREATE TABLE table_name_45 (record VARCHAR, decision VARCHAR, home VARCHAR)
SELECT chassis FROM table_name_34 WHERE team = "rp motorsport" AND driver = "augusto scalbi"
What is the chassis for Augusto Scalbi on Team RP Motorsport?
CREATE TABLE table_name_34 (chassis VARCHAR, team VARCHAR, driver VARCHAR)
SELECT AVG(crowd) FROM table_name_28 WHERE venue = "corio oval"
What was the average size of the crowd for matches held at Corio Oval?
CREATE TABLE table_name_28 (crowd INTEGER, venue VARCHAR)
SELECT command_set FROM table_name_35 WHERE fdd_capacity__each_ = "270kb" AND sides = "ds" AND _number_fdd > 1
Tell me the command set with FDD capacity of 270kb and sides of ds with #FDD more than 1
CREATE TABLE table_name_35 (command_set VARCHAR, _number_fdd VARCHAR, fdd_capacity__each_ VARCHAR, sides VARCHAR)
SELECT regionalliga_nord - Ost FROM table_name_61 WHERE regionalliga_süd = "spvgg unterhaching"
What was the Regionalliga Nord-Ost for the team that had a Regionalliga Sud of SpVgg Unterhaching?
CREATE TABLE table_name_61 (regionalliga_nord VARCHAR, Ost VARCHAR, regionalliga_süd VARCHAR)
SELECT date FROM table_name_13 WHERE tie_no = "21"
What is the Date of Tie no 21?
CREATE TABLE table_name_13 (date VARCHAR, tie_no VARCHAR)
SELECT character FROM table_name_47 WHERE duration = "11 years"
what is the character with the duration of 11 years?
CREATE TABLE table_name_47 (character VARCHAR, duration VARCHAR)
SELECT SUM(number_of_households) FROM table_name_76 WHERE median_family_income = "$65,240" AND population > 744 OFFSET 344
What is the number of households in the county with median income of $65,240 and population greater than 744,344?
CREATE TABLE table_name_76 (number_of_households INTEGER, median_family_income VARCHAR, population VARCHAR)
SELECT nationality FROM table_10015132_7 WHERE years_in_toronto = "1997-98"
what nationality is the player who played from 1997-98
CREATE TABLE table_10015132_7 (nationality VARCHAR, years_in_toronto VARCHAR)
SELECT location FROM table_name_81 WHERE year = "2013" AND country = "egypt"
What is the location for Egypt in 2013?
CREATE TABLE table_name_81 (location VARCHAR, year VARCHAR, country VARCHAR)
SELECT MIN(goals) FROM table_name_63 WHERE position = "second row" AND points > 12
Tell me the lowest goals for second row and points more than 12
CREATE TABLE table_name_63 (goals INTEGER, position VARCHAR, points 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 team FROM table_name_54 WHERE inn = "9th"
What team had the record asscoiated with the 9th inning?
CREATE TABLE table_name_54 (team VARCHAR, inn VARCHAR)
SELECT position FROM table_name_13 WHERE number = "23"
Which position does number 23 play?
CREATE TABLE table_name_13 (position VARCHAR, number VARCHAR)
SELECT opponent FROM table_name_37 WHERE game < 43 AND record = "23-14-3"
Who has a Game smaller than 43, and a Record of 23-14-3?
CREATE TABLE table_name_37 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT qual_1 FROM table_name_76 WHERE qual_2 = "59.822"
Which Qual 1 has a Qual 2 of 59.822?
CREATE TABLE table_name_76 (qual_1 VARCHAR, qual_2 VARCHAR)
SELECT attendance FROM table_name_17 WHERE home_team = "leicester city"
What was the attendance record for Leicester City?
CREATE TABLE table_name_17 (attendance VARCHAR, home_team VARCHAR)
SELECT team FROM table_name_40 WHERE score = "2-1"
Which team scored 2-1?
CREATE TABLE table_name_40 (team VARCHAR, score VARCHAR)
SELECT weeks_on_top FROM table_name_26 WHERE artist = "the beatles" AND issue_date_s_ = "19 september"
An artist of the Beatles with an issue date(s) of 19 September has what as the listed weeks on top?
CREATE TABLE table_name_26 (weeks_on_top VARCHAR, artist VARCHAR, issue_date_s_ VARCHAR)
SELECT location FROM table_name_30 WHERE event = "kotc: mortal sins"
What location did the event kotc: mortal sins take place?
CREATE TABLE table_name_30 (location VARCHAR, event VARCHAR)
SELECT MIN(watts) FROM table_name_37 WHERE class = "a" AND frequency = "91.5 fm" AND city_of_license = "elkhart, kansas"
How many Watts has a Class of a, and a Frequency of 91.5 fm, and a City of license of elkhart, kansas?
CREATE TABLE table_name_37 (watts INTEGER, city_of_license VARCHAR, class VARCHAR, frequency VARCHAR)
SELECT pregame_hosts FROM table_2941848_10 WHERE pregame_analysts = "Dave Campbell" AND year = 2001
Who is the pregame host when the pregame analysts is Dave Campbell and the year is 2001?
CREATE TABLE table_2941848_10 (pregame_hosts VARCHAR, pregame_analysts VARCHAR, year VARCHAR)
SELECT date FROM table_name_90 WHERE opponent = "white sox" AND record = "18-13"
On what date was the opponent the White Sox and the record 18-13?
CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT results FROM table_name_61 WHERE first_elected < 2004 AND incumbent = "eric cantor"
What was the election result before 2004 where Eric Cantor was the incumbent?
CREATE TABLE table_name_61 (results VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT aggregate FROM table_name_54 WHERE round = "first round" AND club = "k.s.v. waregem"
What is the aggregate for the first round for K.S.V. Waregem?
CREATE TABLE table_name_54 (aggregate VARCHAR, round VARCHAR, club VARCHAR)
SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made LIMIT 1
Of all the claims, what was the earliest date when any claim was made?
CREATE TABLE Claims (Date_Claim_Made VARCHAR)
SELECT apt_type_code, COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*)
Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.
CREATE TABLE Apartments (apt_type_code VARCHAR)
SELECT MAX(overall) FROM table_name_15 WHERE name = "chris horton" AND pick < 42
When the pick was below 42 and the player was Chris Horton, what's the highest Overall pick found?
CREATE TABLE table_name_15 (overall INTEGER, name VARCHAR, pick VARCHAR)
SELECT date FROM table_17001658_10 WHERE team = "Philadelphia"
On what date was the team Philadelphia?
CREATE TABLE table_17001658_10 (date VARCHAR, team VARCHAR)
SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1
Show the range that has the most number of mountains.
CREATE TABLE mountain (Range VARCHAR)
SELECT AVG(car__number) FROM table_name_21 WHERE winnings = "$111,683"
What is the average car number of all the drivers who have won $111,683?
CREATE TABLE table_name_21 (car__number INTEGER, winnings VARCHAR)
SELECT country FROM table_name_76 WHERE score = 67
What country scored 67?
CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR)
SELECT MAX(lost) FROM table_name_75 WHERE drawn > 11 AND position < 17 AND goals_for > 61
What is the highest lost with a drawn more than 11, a position lower than 17 and more than 61 goals?
CREATE TABLE table_name_75 (lost INTEGER, goals_for VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT events_won__uk_series_ FROM table_name_45 WHERE events_won__us_series_ < 1
How many UK events won for the contestant that won under 1 US event?
CREATE TABLE table_name_45 (events_won__uk_series_ VARCHAR, events_won__us_series_ INTEGER)