answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(drawn) FROM table_name_86 WHERE games < 7
What is the highest number of games drawn, where the games played was less than 7?
CREATE TABLE table_name_86 (drawn INTEGER, games INTEGER)
SELECT founded FROM table_name_95 WHERE suburb = "beaudesert"
What year was the Beaudesert suburb club founded
CREATE TABLE table_name_95 (founded VARCHAR, suburb VARCHAR)
SELECT position FROM table_11677100_3 WHERE player = "Kerry Wood"
What position does Kerry Wood play in?
CREATE TABLE table_11677100_3 (position VARCHAR, player VARCHAR)
SELECT name, age, country FROM artist ORDER BY Year_Join
Show all artist name, age, and country ordered by the yeared they joined.
CREATE TABLE artist (name VARCHAR, age VARCHAR, country VARCHAR, Year_Join VARCHAR)
SELECT away_team AS score FROM table_name_86 WHERE away_team = "collingwood"
When the away team was collingwood, what was the away team score?
CREATE TABLE table_name_86 (away_team VARCHAR)
SELECT votes FROM table_name_6 WHERE place = "9"
What is the Votes for the Song in Place 9?
CREATE TABLE table_name_6 (votes VARCHAR, place VARCHAR)
SELECT location_attendance FROM table_name_67 WHERE record = "40–40"
What is the attendance on location for a record of 40–40?
CREATE TABLE table_name_67 (location_attendance VARCHAR, record VARCHAR)
SELECT city_of_license FROM table_name_15 WHERE erp_w < 170
What is the city of license with an ERP W less than 170?
CREATE TABLE table_name_15 (city_of_license VARCHAR, erp_w INTEGER)
SELECT SUM(january) FROM table_name_70 WHERE record = "17-20-2" AND game < 39
What is the January sum with the record of 17-20-2 with a game smaller than 39?
CREATE TABLE table_name_70 (january INTEGER, record VARCHAR, game VARCHAR)
SELECT model FROM table_name_67 WHERE years = "2004-"
What was the model that had years 2004-?
CREATE TABLE table_name_67 (model VARCHAR, years VARCHAR)
SELECT catalogue FROM table_name_39 WHERE format = "cd remastered with 3 bonus tracks"
Which catalogue has a formate of "CD Remastered with 3 bonus tracks"?
CREATE TABLE table_name_39 (catalogue VARCHAR, format VARCHAR)
SELECT internet FROM table_name_12 WHERE position > 13
What is the internet when the position is more than 13?
CREATE TABLE table_name_12 (internet VARCHAR, position INTEGER)
SELECT name FROM table_name_42 WHERE height__cm_ = 175 AND birthplace = "detroit, michigan"
Which Name has a Height (cm) of 175 and a Birthplace of detroit, michigan
CREATE TABLE table_name_42 (name VARCHAR, height__cm_ VARCHAR, birthplace VARCHAR)
SELECT film_title_used_in_nomination FROM table_17350255_1 WHERE original_title = "Bābǎi zhuàngshì (八百壯士)"
What was the title used in nomination in the original Bābǎi Zhuàngshì (八百壯士)?
CREATE TABLE table_17350255_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT no_in_series FROM table_26565936_2 WHERE written_by = "Bo Crese"
What number(s) in the series was written by bo crese?
CREATE TABLE table_26565936_2 (no_in_series VARCHAR, written_by VARCHAR)
SELECT COUNT(maidens) FROM table_name_95 WHERE er < 9.5 AND overs_bowled > 57 AND wickets = 9
What is the total number of Maidens when E.R. is less than 9.5, and a Overs Bowled larger than 57, and a Wickets of 9?
CREATE TABLE table_name_95 (maidens VARCHAR, wickets VARCHAR, er VARCHAR, overs_bowled 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 MIN(no_result) FROM table_name_80 WHERE lost > 5 AND _percentage_win_[a_] < 58.06
What is the low no result with more than 5 loss and a win ration lesser than 58.06?
CREATE TABLE table_name_80 (no_result INTEGER, lost VARCHAR, _percentage_win_ VARCHAR, a_ VARCHAR)
SELECT division FROM table_name_60 WHERE season < 2004
What is the division for the season earlier than 2004?
CREATE TABLE table_name_60 (division VARCHAR, season INTEGER)
SELECT 1977 FROM table_name_84 WHERE 1978 = "4.1"
what is 1977 when 1978 is 4.1?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT network FROM table_name_67 WHERE viewers = "16.0 million"
Which Network has 16.0 million Viewers?
CREATE TABLE table_name_67 (network VARCHAR, viewers VARCHAR)
SELECT nationality FROM table_name_24 WHERE group = "b" AND result = "4.30" AND name = "alana boyd"
Alana Boyd of group B with a 4.30 result has what nationality?
CREATE TABLE table_name_24 (nationality VARCHAR, name VARCHAR, group VARCHAR, result VARCHAR)
SELECT score FROM table_name_19 WHERE h_a_n = "h" AND date = "december 17"
What was the score of the game played on December 17, with a H/A/N of H?
CREATE TABLE table_name_19 (score VARCHAR, h_a_n VARCHAR, date VARCHAR)
SELECT MAX(bronze) FROM table_name_59 WHERE total = 11 AND silver < 6
Which Bronze has a Total of 11, and a Silver smaller than 6?
CREATE TABLE table_name_59 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT SUM(points) FROM table_name_68 WHERE club = "utenis utena" AND loses > 16
How many points have utenis utena as the club, with loses less than 16?
CREATE TABLE table_name_68 (points INTEGER, club VARCHAR, loses VARCHAR)
SELECT SUM(quantity) FROM table_name_30 WHERE introduced = 1984
What is the total number of quantity when the introductory year was 1984?
CREATE TABLE table_name_30 (quantity INTEGER, introduced VARCHAR)
SELECT COUNT(*), time_of_day FROM broadcast GROUP BY time_of_day
how many programs are broadcast in each time section of the day?
CREATE TABLE broadcast (time_of_day VARCHAR)
SELECT date FROM table_name_44 WHERE result = "4-0"
What is the date of the match with a result of 4-0?
CREATE TABLE table_name_44 (date VARCHAR, result VARCHAR)
SELECT COUNT(fastest_lap) FROM table_25668203_2 WHERE rnd = "10"
How many races went for 10 rounds?
CREATE TABLE table_25668203_2 (fastest_lap VARCHAR, rnd VARCHAR)
SELECT location FROM table_name_64 WHERE date = "october 10"
What location has October 10 as date?
CREATE TABLE table_name_64 (location VARCHAR, date VARCHAR)
SELECT title FROM table_name_45 WHERE name = "yi"
What is the title for YI?
CREATE TABLE table_name_45 (title VARCHAR, name VARCHAR)
SELECT AVG(silver) FROM table_name_50 WHERE gold > 17
What is the Average for Silver medals that have more than 17 Golds?
CREATE TABLE table_name_50 (silver INTEGER, gold INTEGER)
SELECT transfers_in FROM table_name_36 WHERE country = "hungary"
What are the transfers in for Hungary?
CREATE TABLE table_name_36 (transfers_in VARCHAR, country VARCHAR)
SELECT constructor FROM table_name_2 WHERE grid > 14 AND laps > 93 AND rank > 25
Which constructor had a grid number bigger than 14, laps of more than 93, and rank higher than 25?
CREATE TABLE table_name_2 (constructor VARCHAR, rank VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT season FROM table_name_87 WHERE winners = "dundee united"
What Season had Dundee United as a Winner?
CREATE TABLE table_name_87 (season VARCHAR, winners VARCHAR)
SELECT MIN(game) FROM table_17326036_7 WHERE team = "Houston"
What is the lowest game number when the team is Houston?
CREATE TABLE table_17326036_7 (game INTEGER, team VARCHAR)
SELECT attendance FROM table_name_52 WHERE score = "5-4"
What's the attendance of the game with a score of 5-4?
CREATE TABLE table_name_52 (attendance VARCHAR, score VARCHAR)
SELECT nov_2008 FROM table_23680576_2 WHERE aug_2008 = "1.7%"
What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008?
CREATE TABLE table_23680576_2 (nov_2008 VARCHAR, aug_2008 VARCHAR)
SELECT w_l FROM table_23563375_11 WHERE result = "2–6, 5–7, 7–6 (11–9) , 1–6"
What were the w/l when the final score was 2–6, 5–7, 7–6 (11–9) , 1–6?
CREATE TABLE table_23563375_11 (w_l VARCHAR, result VARCHAR)
SELECT party FROM table_name_7 WHERE results = "re-elected" AND first_elected < 2002
What is the party for the representative who was first elected before 2002 and the results were re-elected?
CREATE TABLE table_name_7 (party VARCHAR, results VARCHAR, first_elected VARCHAR)
SELECT winning_driver FROM table_name_48 WHERE location = "imola"
Which winning driver is located in Imola?
CREATE TABLE table_name_48 (winning_driver VARCHAR, location VARCHAR)
SELECT COUNT(silver) FROM table_name_91 WHERE gold < 0
What is the number in total of silver with a gold smaller than 0?
CREATE TABLE table_name_91 (silver VARCHAR, gold INTEGER)
SELECT city_of_license FROM table_name_93 WHERE power = "1,400 watts"
what is the City of license that has a 1,400 watts Power
CREATE TABLE table_name_93 (city_of_license VARCHAR, power VARCHAR)
SELECT district FROM table_name_27 WHERE constituency_number = "60"
What district has a constituency of 60?
CREATE TABLE table_name_27 (district VARCHAR, constituency_number VARCHAR)
SELECT club FROM table_name_91 WHERE time = "4:03.63"
Who is the club with a 4:03.63 time?
CREATE TABLE table_name_91 (club VARCHAR, time VARCHAR)
SELECT combaya_municipality FROM table_2509202_2 WHERE quiabaya_municipality = "33"
What is the number for combaya municipality when quiabaya municipality is 33?
CREATE TABLE table_2509202_2 (combaya_municipality VARCHAR, quiabaya_municipality VARCHAR)
SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%"
Which location names contain the word "film"?
CREATE TABLE LOCATIONS (Location_Name VARCHAR)
SELECT MAX(qualifying_rank) FROM table_13114949_3 WHERE competition = "Olympic Trials" AND final_rank = "4" AND qualifying_score = "15.100"
what is the highest qualifying rank where the competition is olympic trials, the final-rank is 4 and qualifying score is 15.100?
CREATE TABLE table_13114949_3 (qualifying_rank INTEGER, qualifying_score VARCHAR, competition VARCHAR, final_rank VARCHAR)
SELECT MAX(overall) FROM table_name_64 WHERE nationality = "finland"
For the player from Finland, what is the highest overall pick rank?
CREATE TABLE table_name_64 (overall INTEGER, nationality VARCHAR)
SELECT attendance FROM table_name_32 WHERE loss = "gonzález (0–3)"
Loss of gonzález (0–3) had what attendance?
CREATE TABLE table_name_32 (attendance VARCHAR, loss VARCHAR)
SELECT attendance FROM table_21436373_12 WHERE date_year = "2011"
what is the attendance in 2011 records
CREATE TABLE table_21436373_12 (attendance VARCHAR, date_year VARCHAR)
SELECT g27_racing_wheel FROM table_name_45 WHERE driving_force_ex = "no" AND driving_force_pro = "no" AND g25_racing_wheel = "no"
Driving Force EX of no, and a Driving Force Pro of no, and a G25 Racing Wheel of no involves which g27 racing wheel?
CREATE TABLE table_name_45 (g27_racing_wheel VARCHAR, g25_racing_wheel VARCHAR, driving_force_ex VARCHAR, driving_force_pro VARCHAR)
SELECT percentage FROM table_22993636_2 WHERE team = "Auburn"
What's Auburn's percentage?
CREATE TABLE table_22993636_2 (percentage VARCHAR, team VARCHAR)
SELECT party FROM table_1342292_42 WHERE first_elected = 1919
What was the party that was frist elected in 1919?
CREATE TABLE table_1342292_42 (party VARCHAR, first_elected VARCHAR)
SELECT finish FROM table_name_74 WHERE start = "3" AND year = 2010
What is the Finish when the start shows 3 in the year of 2010?
CREATE TABLE table_name_74 (finish VARCHAR, start VARCHAR, year VARCHAR)
SELECT tournament FROM table_name_13 WHERE 2006 = "a" AND 2011 = "1r"
What is the tournament with a 2006 value of A and a 2011 value of 1r?
CREATE TABLE table_name_13 (tournament VARCHAR)
SELECT divisions FROM table_20195922_3 WHERE number_of_winning_tickets = 565
Which divisions have 565 as the number of winning tickets?
CREATE TABLE table_20195922_3 (divisions VARCHAR, number_of_winning_tickets VARCHAR)
SELECT name FROM table_name_6 WHERE current_status = "demolished" AND line = "shepparton line" AND location = "tabilk"
What is the name of the station that is currently demolished with the Shepparton line in Tabilk?
CREATE TABLE table_name_6 (name VARCHAR, location VARCHAR, current_status VARCHAR, line VARCHAR)
SELECT result FROM table_name_89 WHERE opponent = "greensboro prowlers" AND date = "april 6, 2002"
What was the result of the april 6, 2002 game against the greensboro prowlers?
CREATE TABLE table_name_89 (result VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT school FROM table_name_16 WHERE team = "blue raiders"
What school does the Blue Raiders belong to?
CREATE TABLE table_name_16 (school VARCHAR, team VARCHAR)
SELECT MAX(time) FROM table_name_89 WHERE year = 1991 AND event = "4x100 m relay"
What is the greatest Time with a Year of 1991, and Event of 4x100 m relay?
CREATE TABLE table_name_89 (time INTEGER, year VARCHAR, event VARCHAR)
SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1
Which artist has the most albums?
CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)
SELECT site FROM table_name_84 WHERE opponent = "chicago cubs" AND date = "thursday, april 29"
Where was the game on Thursday, April 29, and they played the Chicago Cubs?
CREATE TABLE table_name_84 (site VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT week_2 FROM table_name_16 WHERE week_3 = "casey mae"
What Week 2 has a Week 3 of casey mae?
CREATE TABLE table_name_16 (week_2 VARCHAR, week_3 VARCHAR)
SELECT record FROM table_name_24 WHERE event = "shido usa mma" AND opponent = "raphael assunção"
what is the record when the event is shido usa mma and the opponent is raphael assunção?
CREATE TABLE table_name_24 (record VARCHAR, event VARCHAR, opponent VARCHAR)
SELECT date_of_vacancy FROM table_11207040_6 WHERE replaced_by = "John Brown"
What days are vacant that were replaced by john brown?
CREATE TABLE table_11207040_6 (date_of_vacancy VARCHAR, replaced_by VARCHAR)
SELECT AVG(appeared) FROM table_name_56 WHERE rr_w_rate < 0.75 AND result = "rr:08,09"
If the RR Rate is less than 0.75 with a result of RR:08,09, what is the average appeared?
CREATE TABLE table_name_56 (appeared INTEGER, rr_w_rate VARCHAR, result VARCHAR)
SELECT laps FROM table_name_53 WHERE time_retired = "electrical" AND driver = "rubens barrichello"
When the time/retired is electrical how many laps did Rubens Barrichello have?
CREATE TABLE table_name_53 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT night_rank FROM table_11354111_3 WHERE viewers__m_ = "6.63"
what's the night rank with viewers (m) of 6.63
CREATE TABLE table_11354111_3 (night_rank VARCHAR, viewers__m_ VARCHAR)
SELECT MIN(no) FROM table_16494599_4 WHERE years_for_grizzlies = "1999"
What number does the player who was with the grizzles in 1999 wear?
CREATE TABLE table_16494599_4 (no INTEGER, years_for_grizzlies VARCHAR)
SELECT opponent FROM table_name_65 WHERE season = "2001/02"
Which opponent played in 2001/02?
CREATE TABLE table_name_65 (opponent VARCHAR, season VARCHAR)
SELECT MIN(founded) FROM table_name_64 WHERE day_boarding = "day" AND year_entered_competition > 1958
Which is the earliest founded day school to have entered the competition after 1958?
CREATE TABLE table_name_64 (founded INTEGER, day_boarding VARCHAR, year_entered_competition VARCHAR)
SELECT Radio AS electrical FROM table_1348246_3 WHERE secretariat = "WTR I"
What are radio electricals when secretariat is wtr i?
CREATE TABLE table_1348246_3 (Radio VARCHAR, secretariat VARCHAR)
SELECT position FROM table_1473672_8 WHERE pick__number = 128
Name the position for pick number 128
CREATE TABLE table_1473672_8 (position VARCHAR, pick__number VARCHAR)
SELECT COUNT(*), flag FROM ship GROUP BY flag
Group by ships by flag, and return number of ships that have each flag.
CREATE TABLE ship (flag VARCHAR)
SELECT party FROM table_name_46 WHERE district = "georgia 7"
What party has the district Georgia 7?
CREATE TABLE table_name_46 (party VARCHAR, district VARCHAR)
SELECT T1.Writer FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID WHERE T2.Price > 4000000
Show writers who have published a book with price more than 4000000.
CREATE TABLE publication (Book_ID VARCHAR, Price INTEGER); CREATE TABLE book (Writer VARCHAR, Book_ID VARCHAR)
SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus'
What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?
CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR, brand VARCHAR)
SELECT district FROM table_26131768_4 WHERE residence = "Dublin"
In which district is the residence Dublin?
CREATE TABLE table_26131768_4 (district VARCHAR, residence VARCHAR)
SELECT team FROM table_name_61 WHERE high_rebounds = "david lee (15)"
What is Team, when High Rebounds is David Lee (15)?
CREATE TABLE table_name_61 (team VARCHAR, high_rebounds VARCHAR)
SELECT record FROM table_name_83 WHERE leading_scorer = "carlos boozer (23)"
What's the record of Carlos Boozer (23) as the leading scorer?
CREATE TABLE table_name_83 (record VARCHAR, leading_scorer VARCHAR)
SELECT AVG(total__kg_) FROM table_name_3 WHERE snatch = 84 AND bodyweight < 57.35
What is the total (kg) when the snatch was 84, and bodyweight was less than 57.35?
CREATE TABLE table_name_3 (total__kg_ INTEGER, snatch VARCHAR, bodyweight VARCHAR)
SELECT call_sign FROM table_name_75 WHERE erp_w = 19
What is the Call sign for the ERP W 19?
CREATE TABLE table_name_75 (call_sign VARCHAR, erp_w VARCHAR)
SELECT district FROM table_1341423_13 WHERE incumbent = "Henry Hyde"
What district is Henry Hyde in
CREATE TABLE table_1341423_13 (district VARCHAR, incumbent VARCHAR)
SELECT MIN(injured) FROM table_name_83 WHERE place = "dantewada, chhattisgarh" AND killed = 8
What is the least amount of injuries in Dantewada, Chhattisgarh when 8 people were killed?
CREATE TABLE table_name_83 (injured INTEGER, place VARCHAR, killed VARCHAR)
SELECT date FROM table_name_11 WHERE week < 3 AND opponent = "houston oilers"
What is the date for the game with an opponent of the Houston Oilers from before week 3?
CREATE TABLE table_name_11 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT MAX(week) FROM table_name_5 WHERE opponent = "minnesota vikings"
What is the highest week that was played against the Minnesota Vikings?
CREATE TABLE table_name_5 (week INTEGER, opponent VARCHAR)
SELECT MIN(rank) FROM table_23801721_1 WHERE technology = "CDMA EVDO"
What was the rank of operator whose technology is CDMA EVDO?
CREATE TABLE table_23801721_1 (rank INTEGER, technology VARCHAR)
SELECT bike FROM table_name_7 WHERE grid < 23 AND time = "accident" AND rider = "graeme gowland"
What kind of bike had a grid less than 23, an accident under time, and Graeme Gowland as a rider?
CREATE TABLE table_name_7 (bike VARCHAR, rider VARCHAR, grid VARCHAR, time VARCHAR)
SELECT country FROM table_2508175_1 WHERE annual_co2_emissions__in_thousands_of_metric_tons_ = 1811
when the annual co2 emissions (in thousands of metric tons) is 1811, what is the country?
CREATE TABLE table_2508175_1 (country VARCHAR, annual_co2_emissions__in_thousands_of_metric_tons_ VARCHAR)
SELECT place FROM table_name_28 WHERE player = "mark o'meara"
What is the place of Mark O'Meara?
CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR)
SELECT MAX(gdp_millions_of_usd__2009_) FROM table_1496582_1 WHERE country___territory = "Hong Kong"
What was the GDP (in millions USD) of Hong Kong in 2009?
CREATE TABLE table_1496582_1 (gdp_millions_of_usd__2009_ INTEGER, country___territory VARCHAR)
SELECT kerry__number FROM table_13606924_1 WHERE county = "Ness county, Kansas"
what's the kerry # with county being ness county, kansas
CREATE TABLE table_13606924_1 (kerry__number VARCHAR, county VARCHAR)
SELECT traditional_chinese FROM table_1982739_2 WHERE area = 181
What is the traditional Chinese character set for the location that has an area of 181?
CREATE TABLE table_1982739_2 (traditional_chinese VARCHAR, area VARCHAR)
SELECT to_par FROM table_name_99 WHERE year_s__won = "1968 , 1971"
What is To Par, when Year(s) Won is "1968 , 1971"?
CREATE TABLE table_name_99 (to_par VARCHAR, year_s__won VARCHAR)
SELECT college FROM table_11677760_1 WHERE player = "Damon Bailey"
what is the college for the player damon bailey?
CREATE TABLE table_11677760_1 (college VARCHAR, player VARCHAR)
SELECT COUNT(ion_torrent_pgm) FROM table_127511_1 WHERE sanger_3730xl = "$2400 USD"
How many times was Sanger 3730xl $2400 usd?
CREATE TABLE table_127511_1 (ion_torrent_pgm VARCHAR, sanger_3730xl VARCHAR)
SELECT final_weight__kg_ FROM table_24370270_10 WHERE contestant = "Chris"
What is the final weight for contestant Chris?
CREATE TABLE table_24370270_10 (final_weight__kg_ VARCHAR, contestant VARCHAR)
SELECT english_spelling FROM table_1242447_2 WHERE strongs_transliteration = "'Adoniyah"
What is the English spelling of the strongs transliteration: 'adoniyah?
CREATE TABLE table_1242447_2 (english_spelling VARCHAR, strongs_transliteration VARCHAR)
SELECT SUM(release_date) FROM table_name_32 WHERE media = "cd" AND country = "uk" AND music_label = "eg records"
What is the release date of the CD by EG Records in the UK?
CREATE TABLE table_name_32 (release_date INTEGER, music_label VARCHAR, media VARCHAR, country VARCHAR)