answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT original_air_date FROM table_22904752_1 WHERE written_by = "Sean Whitesell"
When is the original air date written by sean whitesell?
CREATE TABLE table_22904752_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT AVG("Pick") FROM table_41706 WHERE "Player" = 'ed o''bannon' AND "Round" < '1'
What was the average pick with Ed O'Bannon and a round smaller than 1?
CREATE TABLE table_41706 ( "Year" real, "Round" real, "Pick" real, "Player" text, "NBA Team" text )
SELECT record FROM table_name_47 WHERE date = "december 3"
Tell me the record for december 3
CREATE TABLE table_name_47 (record VARCHAR, date VARCHAR)
SELECT directed_by FROM table_22904752_1 WHERE no = 79
Who is no. 79 directed by?
CREATE TABLE table_22904752_1 (directed_by VARCHAR, no VARCHAR)
SELECT other_abbreviation FROM table_287159_1 WHERE genitive = "Hydrae /ˈhaɪdriː/"
What is the other abbreviation of the constellation that has hydrae / ha dri / as genitive?
CREATE TABLE table_287159_1 ( other_abbreviation VARCHAR, genitive VARCHAR )
SELECT record FROM table_name_86 WHERE visitor = "dallas"
Name the record for dallas visitor
CREATE TABLE table_name_86 (record VARCHAR, visitor VARCHAR)
SELECT COUNT(_number) FROM table_22904752_1 WHERE us_viewers__million_ = "17.44"
What is the # when u.s. viewers (million) is 17.44?
CREATE TABLE table_22904752_1 (_number VARCHAR, us_viewers__million_ VARCHAR)
SELECT "Dimensions" FROM table_43382 WHERE "Name" = 'u50'
What is the dimensions of the u50 appliance?
CREATE TABLE table_43382 ( "Name" text, "Processor" text, "Hard Drive" text, "Ethernet Ports" text, "Dimensions" text )
SELECT score FROM table_name_36 WHERE date = "december 5"
Name the score for december 5
CREATE TABLE table_name_36 (score VARCHAR, date VARCHAR)
SELECT MAX(_number) FROM table_22904752_1 WHERE written_by = "David Hoselton"
How many # were written by david hoselton?
CREATE TABLE table_22904752_1 (_number INTEGER, written_by VARCHAR)
SELECT constructor FROM table_1140076_2 WHERE location = "Monza"
Who was the constructor in the location Monza?
CREATE TABLE table_1140076_2 ( constructor VARCHAR, location VARCHAR )
SELECT home_team FROM table_name_6 WHERE venue = "princes park"
Who is Princes Park's home team?
CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(race_3_winner) FROM table_22905641_2 WHERE race_2_winner = "Mitch Evans"
How many race 3 winners were there when Mitch Evans won race 2?
CREATE TABLE table_22905641_2 (race_3_winner VARCHAR, race_2_winner VARCHAR)
SELECT gtu_winning_team FROM table_13642023_2 WHERE to_winning_team = "Steve Ross"
Who was the GTU winning team when the TO winning team was Steve Ross?
CREATE TABLE table_13642023_2 ( gtu_winning_team VARCHAR, to_winning_team VARCHAR )
SELECT home_team FROM table_name_30 WHERE away_team = "north melbourne"
Who is North Melbourne's home team?
CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR)
SELECT date FROM table_22905641_2 WHERE circuit = "Symmons Plains Raceway"
What date was the race at the Symmons Plains Raceway?
CREATE TABLE table_22905641_2 (date VARCHAR, circuit VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "42842"
give me the number of patients whose diagnoses icd9 code is 42842?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT year_8_1st_quad FROM table_name_67 WHERE year_9_2nd_quad = "bggs" AND crew > 2006
In the Crews beyond 2006 what was the Year 8 1st Quads that exists in the same row that had the year 9 2nd Quads of BGGS?
CREATE TABLE table_name_67 (year_8_1st_quad VARCHAR, year_9_2nd_quad VARCHAR, crew VARCHAR)
SELECT race_1_winner FROM table_22905641_2 WHERE circuit = "Winton Motor Raceway"
Who was the race 1 winner at the race held at Winton Motor Raceway?
CREATE TABLE table_22905641_2 (race_1_winner VARCHAR, circuit VARCHAR)
SELECT government FROM table_name_63 WHERE number = 6
Which government is number 6?
CREATE TABLE table_name_63 ( government VARCHAR, number VARCHAR )
SELECT year_8_1st_quad FROM table_name_5 WHERE year_9_2nd_quad = "stm" AND year_9_1st_quad = "som" AND year_8_3rd_quad = "sta"
For the Crew with Year 9 2nd Quads of STM, Year 9 1st Quads of SOM, and a Year 8 3rd Quads of STA what was the Year 8 1st Quads?
CREATE TABLE table_name_5 (year_8_1st_quad VARCHAR, year_8_3rd_quad VARCHAR, year_9_2nd_quad VARCHAR, year_9_1st_quad VARCHAR)
SELECT race_1_winner FROM table_22905641_2 WHERE circuit = "Hidden Valley Raceway"
Who was the race 1 winner of the race at Hidden Valley Raceway?
CREATE TABLE table_22905641_2 (race_1_winner VARCHAR, circuit VARCHAR)
SELECT "Location" FROM table_67250 WHERE "Classification" = 'ncaa division ii' AND "Institution" = 'franklin pierce university'
Where is NCAA division ii Franklin Pierce University located at?
CREATE TABLE table_67250 ( "Institution" text, "Location" text, "Nickname" text, "Current Conference" text, "Classification" text )
SELECT character FROM table_name_59 WHERE category = "sexiest female" AND award = "british soap awards"
Which character was in the sexiest female category of the British Soap Awards?
CREATE TABLE table_name_59 (character VARCHAR, category VARCHAR, award VARCHAR)
SELECT COUNT(year) FROM table_229059_2 WHERE champion = "Pat Bradley"
In how many years did Pat Bradley became the champion?
CREATE TABLE table_229059_2 (year VARCHAR, champion VARCHAR)
SELECT "Recorded" FROM table_78062 WHERE "Track" > '20' AND "Release Date" = '6/6/77' AND "Time" = '2:50'
Tell me the recorded for time of 2:50 and released date of 6/6/77 with track more than 20
CREATE TABLE table_78062 ( "Track" real, "Recorded" text, "Catalogue" text, "Release Date" text, "Song Title" text, "Time" text )
SELECT film_or_series FROM table_name_2 WHERE result = "nominated" AND category = "best fansite"
Which film or series was nominated in the category of best fansite?
CREATE TABLE table_name_2 (film_or_series VARCHAR, result VARCHAR, category VARCHAR)
SELECT dates FROM table_229059_2 WHERE tournament_location = "Forest Lake country Club"
When was the tournament in Forest Lake Country Club held?
CREATE TABLE table_229059_2 (dates VARCHAR, tournament_location VARCHAR)
SELECT demographic.name, demographic.dischtime FROM demographic WHERE demographic.subject_id = "2560"
what is subject name and discharge time of subject id 2560?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, ...
SELECT venue FROM table_name_38 WHERE home_team = "essendon"
Where does Essendon play their home games?
CREATE TABLE table_name_38 (venue VARCHAR, home_team VARCHAR)
SELECT COUNT(country) FROM table_229059_2 WHERE champion = "Se Ri Pak (2)"
How many different countries did the champion Se Ri Pak (2) represent?
CREATE TABLE table_229059_2 (country VARCHAR, champion VARCHAR)
SELECT position FROM table_name_37 WHERE no_s_ = "41"
Name the position for numbers of 41
CREATE TABLE table_name_37 ( position VARCHAR, no_s_ VARCHAR )
SELECT home_team FROM table_name_30 WHERE venue = "victoria park"
What team plays their home games in Victoria Park?
CREATE TABLE table_name_30 (home_team VARCHAR, venue VARCHAR)
SELECT score FROM table_229059_2 WHERE year = 1978
What was the score in 1978?
CREATE TABLE table_229059_2 (score VARCHAR, year VARCHAR)
SELECT "1st round" FROM table_48482 WHERE "Team 2" = 'paris sg (d1)'
What is the 1st round with a team 2 paris sg (d1)?
CREATE TABLE table_48482 ( "Team 1" text, "Score" text, "Team 2" text, "1st round" text, "2nd round" text )
SELECT SUM(attendance) FROM table_name_22 WHERE report = "sd.hr" AND score = "3–1" AND date = "14 apr 2001"
What is the total attendance with a Report of sd.hr, and a Score of 3–1, and a Date of 14 apr 2001?
CREATE TABLE table_name_22 (attendance INTEGER, date VARCHAR, report VARCHAR, score VARCHAR)
SELECT MIN(winners_share__) AS $_ FROM table_229059_2 WHERE champion = "Se Ri Pak (2)"
What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?
CREATE TABLE table_229059_2 (winners_share__ INTEGER, champion VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.itemid = "51351"
how many female patients had the item id 51351?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
SELECT MAX(production_code) FROM table_name_6 WHERE written_by = "brian egeston" AND season__number > 5
What is the highest production code when the writer was brian egeston after season 5?
CREATE TABLE table_name_6 (production_code INTEGER, written_by VARCHAR, season__number VARCHAR)
SELECT score FROM table_229059_2 WHERE champion = "Jan Stephenson"
What was the score in the tournament won by Jan Stephenson?
CREATE TABLE table_229059_2 (score VARCHAR, champion VARCHAR)
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 12917 AND admissions.admission_location = 'transfer from hosp/extram' AND STRFTIME('%y', admissions.admittime) >= '2103' ORDER BY admissions.admittime DESC LIMIT 1
when did patient 12917 come into the hospital through the transfer from hosp/extram since 2103 for the last time?
CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time...
SELECT record FROM table_name_63 WHERE home = "chicago"
What was the record when chicago was the home team?
CREATE TABLE table_name_63 (record VARCHAR, home VARCHAR)
SELECT MIN(opp_points) FROM table_22903773_2 WHERE location = "Knoxville"
How many points did the opponents score at the game in Knoxville?
CREATE TABLE table_22903773_2 (opp_points INTEGER, location VARCHAR)
SELECT AVG("Against") FROM table_39359 WHERE "Difference" = '10' AND "Lost" < '2'
Which average Against has a Difference of 10, and a Lost smaller than 2?
CREATE TABLE table_39359 ( "Position" real, "Team" text, "Points" real, "Played" real, "Drawn" real, "Lost" real, "Against" real, "Difference" text )
SELECT SUM(crowd) FROM table_name_58 WHERE home_team = "hawthorn"
How many people were in the crowd when the Home Team was Hawthorn?
CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR)
SELECT date FROM table_22903773_2 WHERE record = "17-7"
What game date had a record of 17-7?
CREATE TABLE table_22903773_2 (date VARCHAR, record VARCHAR)
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'peptic ulcer disease - gastric')
what is the diagnosis cost of peptic ulcer disease - gastric?
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, ...
SELECT AVG(grid) FROM table_name_66 WHERE laps = 88
What's the average Grid with Laps of 88?
CREATE TABLE table_name_66 (grid INTEGER, laps VARCHAR)
SELECT MAX(opp_points) FROM table_22903773_2 WHERE record = "16-5"
How many points did the opponents score on the game where Sooners' record was 16-5?
CREATE TABLE table_22903773_2 (opp_points INTEGER, record VARCHAR)
SELECT "Post-season record [e ]" FROM table_31575 WHERE "MLB affiliate" = 'kansas city'
Tell me the post-season record for kansas city
CREATE TABLE table_31575 ( "Season" text, "Manager" text, "Record [a ]" text, "Win %" real, "Post-season record [e ]" text, "Post-season win %" text, "MLB affiliate" text )
SELECT driver FROM table_name_21 WHERE time_retired = "+6 laps"
Which driver has a Time/Retired of +6 laps?
CREATE TABLE table_name_21 (driver VARCHAR, time_retired VARCHAR)
SELECT COUNT(title) FROM table_22904780_1 WHERE us_viewers__million_ = "12.04"
List the number of shows that had 12.04 million viewers in the united states
CREATE TABLE table_22904780_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE secretary = "Rachel Hartmann"
How many production stage managers worked with secretary Rachel Hartmann?
CREATE TABLE table_22410780_1 ( production_stagemanager VARCHAR, secretary VARCHAR )
SELECT home_team AS score FROM table_name_21 WHERE home_team = "hawthorn"
What did Hawthorn score as the home team?
CREATE TABLE table_name_21 (home_team VARCHAR)
SELECT original_air_date FROM table_22904780_1 WHERE rank__week_ = 5
List the original air date for week 5.
CREATE TABLE table_22904780_1 (original_air_date VARCHAR, rank__week_ VARCHAR)
SELECT player FROM table_name_62 WHERE score < 72 AND to_par = "+1"
Who is the player with a score less than 72 and a to par of +1?
CREATE TABLE table_name_62 ( player VARCHAR, score VARCHAR, to_par VARCHAR )
SELECT away_team FROM table_name_22 WHERE home_team = "south melbourne"
What team played South Melbourne at their home game?
CREATE TABLE table_name_22 (away_team VARCHAR, home_team VARCHAR)
SELECT original_air_date FROM table_22904780_1 WHERE written_by = "Russel Friend & Garrett Lerner"
List the 1st air date for the show where the writers are russel friend & garrett lerner.
CREATE TABLE table_22904780_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT "Venue" FROM table_11487 WHERE "Away team score" = '15.9 (99)'
The away team scored 15.9 (99) at what venue?
CREATE TABLE table_11487 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT home_team FROM table_name_59 WHERE away_team = "geelong"
What team played Geelong at their away game?
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)
SELECT graphical FROM table_22915134_2 WHERE example = "Shinya Nakano's Kawasaki Ninja ZX-RR"
When shinya nakano's kawasaki ninja zx-rr is the example what is the graphical?
CREATE TABLE table_22915134_2 (graphical VARCHAR, example VARCHAR)
SELECT position FROM table_name_88 WHERE years_in_toronto = "1996-97"
Who has position in year 1996-97 in Toronto?
CREATE TABLE table_name_88 ( position VARCHAR, years_in_toronto VARCHAR )
SELECT 1989 FROM table_name_60 WHERE 1991 = "4r"
What is the 1989 result of the tournament in which Katerina Maleeva finished 4r in 1991?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT engine FROM table_22915134_2 WHERE example = "1985-2007 Yamaha V-Max Honda VFR800"
When 1985-2007 yamaha v-max honda vfr800 is the example what is the engine is it?
CREATE TABLE table_22915134_2 (engine VARCHAR, example VARCHAR)
SELECT COUNT("song") FROM table_203_830 WHERE "chart positions\nus country" <= 10
how many songs made it into the top 10 us charts ?
CREATE TABLE table_203_830 ( id number, "year" number, "song" text, "chart positions\nus country" number, "chart positions\ncan country" number, "album" text )
SELECT 1989 FROM table_name_94 WHERE 1986 = "nh"
What is the 1989 result of the tournament in which Katerina finished nh in 1986?
CREATE TABLE table_name_94 (Id VARCHAR)
SELECT engine FROM table_22915134_2 WHERE example = "Shinya Nakano's Kawasaki Ninja ZX-RR"
When shinya nakano's kawasaki ninja zx-rr is the example what is the engine type?
CREATE TABLE table_22915134_2 (engine VARCHAR, example VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2139" AND prescriptions.route = "NU"
what is the number of patients whose admission year is less than 2139 and drug route is nu?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT total FROM table_name_88 WHERE rank = "did not participate"
What is the total of the ranks that did not participate?
CREATE TABLE table_name_88 (total VARCHAR, rank VARCHAR)
SELECT COUNT(graphical) FROM table_22915134_2 WHERE ignition_timing = "68-292-68-292"
When 68-292-68-292 is the ignition timing how many graphicals is it?
CREATE TABLE table_22915134_2 (graphical VARCHAR, ignition_timing VARCHAR)
SELECT MIN("Enrollment") FROM table_3014 WHERE "Sport" = 'Field hockey, men''s swimming'
Name the least enrollment for field hockey, men's swimming
CREATE TABLE table_3014 ( "Institution" text, "Nickname" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Sport" text )
SELECT decile FROM table_name_55 WHERE authority = "state integrated" AND name = "westminster christian school"
What is the decile for Westminster Christian School with a state integrated authority?
CREATE TABLE table_name_55 (decile VARCHAR, authority VARCHAR, name VARCHAR)
SELECT graphical FROM table_22915134_2 WHERE engine = "I4"
When i4 is the engine what is the graphical?
CREATE TABLE table_22915134_2 (graphical VARCHAR, engine VARCHAR)
SELECT Classroom, COUNT(*) FROM list WHERE Grade = "4" GROUP BY Classroom
For each fourth-grade classroom, show the classroom number and the total number of students using it. Show the correlation.
CREATE TABLE teachers ( LastName TEXT, FirstName TEXT, Classroom INTEGER ) CREATE TABLE list ( LastName TEXT, FirstName TEXT, Grade INTEGER, Classroom INTEGER )
SELECT years FROM table_name_45 WHERE authority = "state integrated" AND decile = "9"
What are the years when the authority was state integrated and a decile of 9?
CREATE TABLE table_name_45 (years VARCHAR, authority VARCHAR, decile VARCHAR)
SELECT COUNT(ignition_timing) FROM table_22915134_2 WHERE graphical = "1-1-0-0-1-1-0-0-"
When 1-1-0-0-1-1-0-0- is the graphical how many ignition timings are there?
CREATE TABLE table_22915134_2 (ignition_timing VARCHAR, graphical VARCHAR)
SELECT "Record" FROM table_42907 WHERE "Round" = '3' AND "Event" = 'fight festival 27'
Which record's round was 3 when the event was fight festival 27?
CREATE TABLE table_42907 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real )
SELECT away_team AS score FROM table_name_30 WHERE venue = "moorabbin oval"
What did the team score while away in moorabbin oval?
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT MAX(r) FROM table WHERE total = 6
If the total is 6, what is the maximum R?
CREATE TABLE table (r INTEGER, total VARCHAR)
SELECT MAX(task_no) FROM table_name_16 WHERE head_of_household = "cathy"
What is the latest task number for which Cathy is head of household?
CREATE TABLE table_name_16 ( task_no INTEGER, head_of_household VARCHAR )
SELECT date FROM table_name_66 WHERE tournament = "general foods pga seniors' championship"
When was the general foods pga seniors' championship tournament?
CREATE TABLE table_name_66 (date VARCHAR, tournament VARCHAR)
SELECT MIN(r) FROM table WHERE player = Marcelo
If the player is Marcelo, what is the minimum R?
CREATE TABLE table (r INTEGER, player VARCHAR, Marcelo VARCHAR)
SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"
List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.
CREATE TABLE Ref_Shipping_Agents ( document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR ) CREATE TABLE Documents ( document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR )
SELECT location_attendance FROM table_name_86 WHERE record = "3–16"
What was the attendance on location when the record was 3–16?
CREATE TABLE table_name_86 (location_attendance VARCHAR, record VARCHAR)
SELECT position FROM table WHERE player = Marcelo
If the player is Marcelo, what is the position?
CREATE TABLE table (position VARCHAR, player VARCHAR, Marcelo VARCHAR)
SELECT goals_scored FROM table_28848697_4 WHERE position = 17 AND tied = 5
What are goals scored when postition is 17 and tied is 5?
CREATE TABLE table_28848697_4 ( goals_scored VARCHAR, position VARCHAR, tied VARCHAR )
SELECT date FROM table_name_3 WHERE high_rebounds = "two-way tie (8)"
On what date was a two-way tie (8) the high rebound?
CREATE TABLE table_name_3 (date VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(r) FROM table WHERE position = AM AND league > 7.0
If the position is AM and the league is larger than 7.0, what is the total R number?
CREATE TABLE table (r VARCHAR, position VARCHAR, AM VARCHAR, league VARCHAR)
SELECT origin, COUNT(*) FROM train GROUP BY origin ORDER BY COUNT(*)
Show me the total number by origin in a histogram, could you list in ascending by the Y?
CREATE TABLE route ( train_id int, station_id int ) CREATE TABLE weekly_weather ( station_id int, day_of_week text, high_temperature int, low_temperature int, precipitation real, wind_speed_mph int ) CREATE TABLE station ( id int, network_name text, services text, local...
SELECT home_team AS score FROM table_name_20 WHERE away_team = "richmond"
What is the home team score with Away team Richmond?
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
SELECT winner FROM table_22917458_15 WHERE stage = 1
Who was the Stage 1 winner?
CREATE TABLE table_22917458_15 (winner VARCHAR, stage VARCHAR)
SELECT "year" FROM table_204_136 WHERE "final" = 'spain' AND "year" > 1979 ORDER BY "year" LIMIT 1
when was the next time spain was a finalist after 1979 ?
CREATE TABLE table_204_136 ( id number, "year" number, "final" text, "semi" text )
SELECT MIN(crowd) FROM table_name_89 WHERE venue = "victoria park"
What is the smallest crowd for victoria park?
CREATE TABLE table_name_89 (crowd INTEGER, venue VARCHAR)
SELECT winner FROM table_22917458_15 WHERE stage = 7
Who won Stage 7?
CREATE TABLE table_22917458_15 (winner VARCHAR, stage VARCHAR)
SELECT "Sport" FROM table_49903 WHERE "Played" = '2008-2010'
What sport was played between the years of 2008-2010?
CREATE TABLE table_49903 ( "Team" text, "Sport" text, "Played" text, "Venue" text, "Championships" text )
SELECT MAX(clean_) & _jerk FROM table_name_92 WHERE total__kg_ = "200.0" AND snatch > 87.5
what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?
CREATE TABLE table_name_92 (_jerk VARCHAR, clean_ INTEGER, total__kg_ VARCHAR, snatch VARCHAR)
SELECT mountains_classification_klasyfikacja_górska FROM table_22917458_15 WHERE winner = "Alessandro Ballan"
Who was the mountain classification winner in the stage won by Alessandro Ballan?
CREATE TABLE table_22917458_15 (mountains_classification_klasyfikacja_górska VARCHAR, winner VARCHAR)
SELECT MAX(sinclair_total) FROM table_name_5 WHERE rank = 3 AND world_record__kg_ < 217
What was the highest Sinclair Total that had a rank of 3, but a World Record smaller than 217?
CREATE TABLE table_name_5 ( sinclair_total INTEGER, rank VARCHAR, world_record__kg_ VARCHAR )
SELECT AVG(bodyweight) FROM table_name_89 WHERE snatch = 80
what is the average bodyweight when snatch is 80?
CREATE TABLE table_name_89 (bodyweight INTEGER, snatch VARCHAR)
SELECT population_density__people_per_mi_2__ FROM table_22916979_1 WHERE land_area__mi_2__ = "135.09"
For the city whose land area was 135.09, what was the total population density?
CREATE TABLE table_22916979_1 (population_density__people_per_mi_2__ VARCHAR, land_area__mi_2__ VARCHAR)