question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Can you tell me the sum of Draws that had the Wins smaller than 3, and the Byes larger than 2?
CREATE TABLE table_name_15 (draws INTEGER, wins VARCHAR, byes VARCHAR)
SELECT SUM(draws) FROM table_name_15 WHERE wins < 3 AND byes > 2
What is points sgsinst when points diff is +96?
CREATE TABLE table_name_70 (points_against VARCHAR, points_diff VARCHAR)
SELECT points_against FROM table_name_70 WHERE points_diff = "+96"
What School did Player Billy Owens attend?
CREATE TABLE table_name_37 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_37 WHERE player = "billy owens"
What is the method when the round shows 3?
CREATE TABLE table_name_35 (method VARCHAR, round VARCHAR)
SELECT method FROM table_name_35 WHERE round = 3
what is the highest gold when silver is 1 and bronze is less than 0?
CREATE TABLE table_name_63 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT MAX(gold) FROM table_name_63 WHERE silver = 1 AND bronze < 0
Which place has a rank of 71?
CREATE TABLE table_1447085_1 (place VARCHAR, rank VARCHAR)
SELECT place FROM table_1447085_1 WHERE rank = 71
What was the score of the Home team that played against Carlton's Away game?
CREATE TABLE table_name_3 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_3 WHERE away_team = "carlton"
Who has a license of proprietary (available on inquiry)?
CREATE TABLE table_name_67 (name VARCHAR, license VARCHAR)
SELECT name FROM table_name_67 WHERE license = "proprietary (available on inquiry)"
What is the gross revenue in 2011 for MO?
CREATE TABLE table_name_8 (gross_revenue__2011_ VARCHAR, state VARCHAR)
SELECT gross_revenue__2011_ FROM table_name_8 WHERE state = "mo"
Which Interview subject has a Centerfold model of athena lundberg?
CREATE TABLE table_name_60 (interview_subject VARCHAR, centerfold_model VARCHAR)
SELECT interview_subject FROM table_name_60 WHERE centerfold_model = "athena lundberg"
What is the rank for the total less than 1?
CREATE TABLE table_name_34 (rank INTEGER, total INTEGER)
SELECT AVG(rank) FROM table_name_34 WHERE total < 1
Bronze of 0, and a Total of 1, and a Silver smaller than 1 what is the lowest gold?
CREATE TABLE table_name_35 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT MIN(gold) FROM table_name_35 WHERE bronze = 0 AND total = 1 AND silver < 1
What is the highest acc percent score in the competition?
CREATE TABLE basketball_match (acc_percent VARCHAR)
SELECT acc_percent FROM basketball_match ORDER BY acc_percent DESC LIMIT 1
What is the total number of Grid, when Laps is greater than 24?
CREATE TABLE table_name_78 (grid VARCHAR, laps INTEGER)
SELECT COUNT(grid) FROM table_name_78 WHERE laps > 24
What was the crowd number when the home team was Carlton?
CREATE TABLE table_name_23 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_23 WHERE home_team = "carlton"
What is the round of pick 63?
CREATE TABLE table_name_36 (round VARCHAR, pick VARCHAR)
SELECT round FROM table_name_36 WHERE pick = 63
What is the qual for rank 20?
CREATE TABLE table_name_5 (qual VARCHAR, rank VARCHAR)
SELECT qual FROM table_name_5 WHERE rank = "20"
Can you tell me the Season that has the Score of 1-0?
CREATE TABLE table_name_34 (season VARCHAR, score VARCHAR)
SELECT season FROM table_name_34 WHERE score = "1-0"
what kind of Giro di Lombardiahas a Tour of Flanders of tom boonen ( bel ), and a Paris–Roubaix of fabian cancellara ( sui )?
CREATE TABLE table_name_22 (giro_di_lombardia VARCHAR, tour_of_flanders VARCHAR, paris_roubaix VARCHAR)
SELECT giro_di_lombardia FROM table_name_22 WHERE tour_of_flanders = "tom boonen ( bel )" AND paris_roubaix = "fabian cancellara ( sui )"
what is the poles when the wins is 0 and points is 0?
CREATE TABLE table_name_86 (poles VARCHAR, wins VARCHAR, points VARCHAR)
SELECT poles FROM table_name_86 WHERE wins = "0" AND points = "0"
what is the least yards when the average is 7 and the long is less than 7?
CREATE TABLE table_name_30 (yards INTEGER, avg VARCHAR, long VARCHAR)
SELECT MIN(yards) FROM table_name_30 WHERE avg = 7 AND long < 7
Which Date has an Outcome of winner, and a Score of 7–5, 6–4?
CREATE TABLE table_name_69 (date VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT date FROM table_name_69 WHERE outcome = "winner" AND score = "7–5, 6–4"
What was the position of the player who played for the Rockets during 1981?
CREATE TABLE table_name_88 (position VARCHAR, years_for_rockets VARCHAR)
SELECT position FROM table_name_88 WHERE years_for_rockets = "1981"
Which is Natural Wood Keyboard with a Model of clps306?
CREATE TABLE table_name_18 (natural_wood_keyboard VARCHAR, model VARCHAR)
SELECT natural_wood_keyboard FROM table_name_18 WHERE model = "clps306"
Name the number of players when starter is no and touchdowns is 1 for right halfback
CREATE TABLE table_14342592_4 (player VARCHAR, position VARCHAR, starter VARCHAR, touchdowns VARCHAR)
SELECT COUNT(player) FROM table_14342592_4 WHERE starter = "No" AND touchdowns = 1 AND position = "Right halfback"
What is the description where the date is 1911?
CREATE TABLE table_name_58 (description VARCHAR, date VARCHAR)
SELECT description FROM table_name_58 WHERE date = 1911
What is the percentage of the Labour Party on the Harris Poll
CREATE TABLE table_159614_2 (harris VARCHAR, party VARCHAR)
SELECT harris FROM table_159614_2 WHERE party = "Labour"
What was Tom Watson's lowest To par when the total was larger than 144?
CREATE TABLE table_name_44 (to_par INTEGER, player VARCHAR, total VARCHAR)
SELECT MIN(to_par) FROM table_name_44 WHERE player = "tom watson" AND total > 144
What is the average Density of 53 No. munic.?
CREATE TABLE table_name_40 (density__per_km²_ INTEGER, no_munic VARCHAR)
SELECT AVG(density__per_km²_) FROM table_name_40 WHERE no_munic = 53
What was the original air date of episode number 1?
CREATE TABLE table_22951088_3 (original_air_date VARCHAR, no VARCHAR)
SELECT original_air_date FROM table_22951088_3 WHERE no = 1
How many times was the game 39?
CREATE TABLE table_11960407_4 (record VARCHAR, game VARCHAR)
SELECT COUNT(record) FROM table_11960407_4 WHERE game = 39
Where was the player born when the appearances were greater than 40 and made 17 goals?
CREATE TABLE table_name_39 (nationality VARCHAR, apps VARCHAR, goals VARCHAR)
SELECT nationality FROM table_name_39 WHERE apps > 40 AND goals = 17
Name the air date for alex taub
CREATE TABLE table_27504682_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_27504682_1 WHERE written_by = "Alex Taub"
What driver had 101 laps?
CREATE TABLE table_name_86 (drivers VARCHAR, laps VARCHAR)
SELECT drivers FROM table_name_86 WHERE laps = 101
How many cartoons were written by "Joseph Kuhr"?
CREATE TABLE Cartoon (Written_by VARCHAR)
SELECT COUNT(*) FROM Cartoon WHERE Written_by = "Joseph Kuhr"
What is the Latin for "you sang"?
CREATE TABLE table_26614365_1 (latin VARCHAR, english VARCHAR)
SELECT latin FROM table_26614365_1 WHERE english = "you sang"
When was originally aired the episode with an audience of 1.57 million us viewers?
CREATE TABLE table_28081876_6 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT original_air_date FROM table_28081876_6 WHERE us_viewers__millions_ = "1.57"
What was in 2007 that has a 3r of 1999?
CREATE TABLE table_name_10 (Id VARCHAR)
SELECT 2007 FROM table_name_10 WHERE 1999 = "3r"
What was the region for Malartic with 159.31 km2?
CREATE TABLE table_name_14 (region VARCHAR, name VARCHAR, area__km_2__ VARCHAR)
SELECT COUNT(region) FROM table_name_14 WHERE name = "malartic" AND area__km_2__ < 159.31
What was England's total?
CREATE TABLE table_name_75 (total VARCHAR, country VARCHAR)
SELECT total FROM table_name_75 WHERE country = "england"
When was incumbent John N. Tillman first elected?
CREATE TABLE table_1346118_4 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1346118_4 WHERE incumbent = "John N. Tillman"
Name the result for arrowhead stadium
CREATE TABLE table_name_45 (result VARCHAR, game_site VARCHAR)
SELECT result FROM table_name_45 WHERE game_site = "arrowhead stadium"
What is Teleplay, when Season is greater than 1.1, and when First Broadcast is "February 20, 1981"?
CREATE TABLE table_name_37 (teleplay VARCHAR, season VARCHAR, first_broadcast VARCHAR)
SELECT teleplay FROM table_name_37 WHERE season > 1.1 AND first_broadcast = "february 20, 1981"
what is the division north when division south was kožuf and division southwest was ilinden velmej
CREATE TABLE table_17881033_1 (division_north VARCHAR, division_south VARCHAR, division_southwest VARCHAR)
SELECT division_north FROM table_17881033_1 WHERE division_south = "Kožuf" AND division_southwest = "Ilinden Velmej"
From what Country is player K. J. Choi with a Score of 68-71=139?
CREATE TABLE table_name_89 (country VARCHAR, player VARCHAR, score VARCHAR)
SELECT country FROM table_name_89 WHERE score = 68 - 71 = 139 AND player = "k. j. choi"
Name the least episode for fibre cement siding
CREATE TABLE table_15187735_18 (episode INTEGER, segment_d VARCHAR)
SELECT MIN(episode) FROM table_15187735_18 WHERE segment_d = "Fibre Cement Siding"
what is the to par for mathew goggin?
CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_72 WHERE player = "mathew goggin"
What is the pinyin name for the english name xin county?
CREATE TABLE table_2847477_2 (pinyin VARCHAR, english_name VARCHAR)
SELECT pinyin FROM table_2847477_2 WHERE english_name = "Xin County"
What episode was seen by 2.05 million viewers?
CREATE TABLE table_11274401_3 (episode VARCHAR, viewers__m_ VARCHAR)
SELECT episode FROM table_11274401_3 WHERE viewers__m_ = "2.05"
What is the average ERP W when the call sign is whre?
CREATE TABLE table_name_15 (erp_w INTEGER, call_sign VARCHAR)
SELECT AVG(erp_w) FROM table_name_15 WHERE call_sign = "whre"
Which Grid has Points larger than 10 and a Time/Retired of +13.7 secs?
CREATE TABLE table_name_72 (grid VARCHAR, points VARCHAR, time_retired VARCHAR)
SELECT grid FROM table_name_72 WHERE points > 10 AND time_retired = "+13.7 secs"
What Venue has Spartak St. Petersburg Club?
CREATE TABLE table_name_71 (venue VARCHAR, club VARCHAR)
SELECT venue FROM table_name_71 WHERE club = "spartak st. petersburg"
What is the rank for the show aired on May 19, 2009?
CREATE TABLE table_name_86 (rank___number_ VARCHAR, air_date VARCHAR)
SELECT rank___number_ FROM table_name_86 WHERE air_date = "may 19, 2009"
Which Opponents in the final have a Partner of daniella dominikovic?
CREATE TABLE table_name_91 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT opponents_in_the_final FROM table_name_91 WHERE partner = "daniella dominikovic"
What was the attendance for the game against tampa bay buccaneers?
CREATE TABLE table_name_61 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_61 WHERE opponent = "tampa bay buccaneers"
Which round has pain and glory 2006 as the event?
CREATE TABLE table_name_94 (round VARCHAR, event VARCHAR)
SELECT round FROM table_name_94 WHERE event = "pain and glory 2006"
WHAT IS THE SECOND WITH A TENTH OF DAN BLACK?
CREATE TABLE table_name_65 (second VARCHAR, tenth VARCHAR)
SELECT second FROM table_name_65 WHERE tenth = "dan black"
What is the new/returning/same network name for This Week in Baseball?
CREATE TABLE table_169766_13 (new_returning_same_network VARCHAR, show VARCHAR)
SELECT new_returning_same_network FROM table_169766_13 WHERE show = "This Week in Baseball"
What is Position, when Height in Ft. is 6-10?
CREATE TABLE table_name_21 (position VARCHAR, height_in_ft VARCHAR)
SELECT position FROM table_name_21 WHERE height_in_ft = "6-10"
Which Points is the lowest one that has an Extra points of 0, and a Player of curtis redden, and Touchdowns smaller than 2?
CREATE TABLE table_name_33 (points INTEGER, touchdowns VARCHAR, extra_points VARCHAR, player VARCHAR)
SELECT MIN(points) FROM table_name_33 WHERE extra_points = 0 AND player = "curtis redden" AND touchdowns < 2
Which years had a jersey number 55
CREATE TABLE table_11734041_18 (years_for_rockets VARCHAR, no_s_ VARCHAR)
SELECT years_for_rockets FROM table_11734041_18 WHERE no_s_ = "55"
What is the title of the course that was offered at building Chandler during the fall semester in the year of 2010?
CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE SECTION (course_id VARCHAR)
SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id = T2.course_id WHERE building = 'Chandler' AND semester = 'Fall' AND YEAR = 2010
In which position did Iljuštšenko finish in the European Championships held prior to 2008?
CREATE TABLE table_name_48 (position VARCHAR, year VARCHAR, competition VARCHAR)
SELECT position FROM table_name_48 WHERE year < 2008 AND competition = "european championships"
How many opponents were there in a game higher than 20 on January 28?
CREATE TABLE table_name_15 (opponents VARCHAR, game VARCHAR, date VARCHAR)
SELECT opponents FROM table_name_15 WHERE game > 20 AND date = "january 28"
How many losses did leon patton have with the longest gain higher than 45?
CREATE TABLE table_name_12 (loss VARCHAR, name VARCHAR, long VARCHAR)
SELECT COUNT(loss) FROM table_name_12 WHERE name = "leon patton" AND long > 45
Which home team played at MCG?
CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_93 WHERE venue = "mcg"
What are values of attendance for the El Paso, TX location?
CREATE TABLE table_15647838_3 (attendance VARCHAR, location VARCHAR)
SELECT attendance FROM table_15647838_3 WHERE location = "El Paso, TX"
What horse has a 66.452 result?
CREATE TABLE table_name_69 (horse VARCHAR, result VARCHAR)
SELECT horse FROM table_name_69 WHERE result = "66.452"
What club has less than 10 losses, less than 55 goals, and 13 wins?
CREATE TABLE table_name_47 (club VARCHAR, wins VARCHAR, losses VARCHAR, goals_for VARCHAR)
SELECT club FROM table_name_47 WHERE losses < 10 AND goals_for < 55 AND wins = 13
How many episodes received rating of 8.2?
CREATE TABLE table_24910733_2 (episode VARCHAR, rating VARCHAR)
SELECT COUNT(episode) FROM table_24910733_2 WHERE rating = "8.2"
How many rounds have a time of 2:18?
CREATE TABLE table_name_64 (round VARCHAR, time VARCHAR)
SELECT COUNT(round) FROM table_name_64 WHERE time = "2:18"
Which average Against has Points of 6, and a Played smaller than 9?
CREATE TABLE table_name_65 (against INTEGER, points VARCHAR, played VARCHAR)
SELECT AVG(against) FROM table_name_65 WHERE points = 6 AND played < 9
What kind of Launched has a Homeport (as of July 2013) of sold to chile, and a Pennant number of f80?
CREATE TABLE table_name_65 (launched VARCHAR, homeport__as_of_july_2013_ VARCHAR, pennant_number VARCHAR)
SELECT launched FROM table_name_65 WHERE homeport__as_of_july_2013_ = "sold to chile" AND pennant_number = "f80"
What is the Opponent at the game with Attendance of 68,436?
CREATE TABLE table_name_97 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_97 WHERE attendance = "68,436"
What is the gzip value associated with a stuffit of no, bzip2 of no, and LHA.LZH of no?
CREATE TABLE table_name_90 (gzip VARCHAR, lha_lzh VARCHAR, stuffit VARCHAR, bzip2 VARCHAR)
SELECT gzip FROM table_name_90 WHERE stuffit = "no" AND bzip2 = "no" AND lha_lzh = "no"
What was Jimmy Jones' rank when the matches were smaller than 285?
CREATE TABLE table_name_4 (rank INTEGER, name VARCHAR, matches VARCHAR)
SELECT MAX(rank) FROM table_name_4 WHERE name = "jimmy jones" AND matches < 285
What is the Record of the 1991 Port of Spain Games?
CREATE TABLE table_name_56 (record VARCHAR, games VARCHAR)
SELECT record FROM table_name_56 WHERE games = "1991 port of spain"
If the poverty rate is 12.9%, what is the county?
CREATE TABLE table_22815568_6 (county VARCHAR, poverty_rate VARCHAR)
SELECT county FROM table_22815568_6 WHERE poverty_rate = "12.9%"
What is the hioghest amount of silver medals for a nation ranked higher than 19 and less than 2 gold medals?
CREATE TABLE table_name_75 (silver INTEGER, rank VARCHAR, gold VARCHAR)
SELECT MAX(silver) FROM table_name_75 WHERE rank = "19" AND gold < 2
Which team has a match played of 10 4?
CREATE TABLE table_21824695_8 (team VARCHAR, match_played VARCHAR)
SELECT team FROM table_21824695_8 WHERE match_played = "10 4"
Who was the Constructor at the Argentine Grand Prix?
CREATE TABLE table_name_21 (constructor VARCHAR, race VARCHAR)
SELECT constructor FROM table_name_21 WHERE race = "argentine grand prix"
For the Avg/G of 5.9, what was the long?
CREATE TABLE table_name_56 (long VARCHAR, avg_g VARCHAR)
SELECT long FROM table_name_56 WHERE avg_g = "5.9"
What Country is David Toms from?
CREATE TABLE table_name_84 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_84 WHERE player = "david toms"
What is the name of the ship with pit props as Cargo sunk by u-48 *?
CREATE TABLE table_name_44 (name VARCHAR, fate VARCHAR, cargo VARCHAR)
SELECT name FROM table_name_44 WHERE fate = "sunk by u-48 *" AND cargo = "pit props"
What did the home team score at Lake Oval?
CREATE TABLE table_name_2 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_2 WHERE venue = "lake oval"
What are the numbers of wines for different grapes?
CREATE TABLE WINE (Grape VARCHAR)
SELECT COUNT(*), Grape FROM WINE GROUP BY Grape
Which 2008 has an Airport of julius nyerere international airport?
CREATE TABLE table_name_74 (airport VARCHAR)
SELECT AVG(2008) FROM table_name_74 WHERE airport = "julius nyerere international airport"
How many weeks are there?
CREATE TABLE table_10647639_1 (week INTEGER)
SELECT MAX(week) FROM table_10647639_1
Name the original name for the one from bulgaria
CREATE TABLE table_name_4 (original_name VARCHAR, country VARCHAR)
SELECT original_name FROM table_name_4 WHERE country = "bulgaria"
With an in-state area of 053 1,654km 2 639mi 2, what is the total area?
CREATE TABLE table_name_7 (total_area VARCHAR, in_state_area VARCHAR)
SELECT total_area FROM table_name_7 WHERE in_state_area = "053 1,654km 2 639mi 2"
What was the tv time for the game on week 12?
CREATE TABLE table_name_76 (tv_time VARCHAR, week VARCHAR)
SELECT tv_time FROM table_name_76 WHERE week = 12
What was the average capacity for vélez sársfield?
CREATE TABLE table_name_72 (capacity INTEGER, home_team_s_ VARCHAR)
SELECT AVG(capacity) FROM table_name_72 WHERE home_team_s_ = "vélez sársfield"
Who was the brother of Edward VIII?
CREATE TABLE table_name_41 (name VARCHAR, relationship_with_predecessor_s_ VARCHAR)
SELECT name FROM table_name_41 WHERE relationship_with_predecessor_s_ = "brother of edward viii"
Who is the runner up when the score was 3–6, 6–3, [10–4]?
CREATE TABLE table_name_50 (runner_up VARCHAR, score VARCHAR)
SELECT runner_up FROM table_name_50 WHERE score = "3–6, 6–3, [10–4]"
Average round for 22 pick that is overall smaller than 229?
CREATE TABLE table_name_94 (round INTEGER, pick VARCHAR, overall VARCHAR)
SELECT AVG(round) FROM table_name_94 WHERE pick = 22 AND overall < 229
What is the Romanji Title of a show on TBS with less than 11 episodes?
CREATE TABLE table_name_43 (romaji_title VARCHAR, tv_station VARCHAR, episodes VARCHAR)
SELECT romaji_title FROM table_name_43 WHERE tv_station = "tbs" AND episodes < 11
What is the average bronze for less than 0 gold?
CREATE TABLE table_name_64 (bronze INTEGER, gold INTEGER)
SELECT AVG(bronze) FROM table_name_64 WHERE gold < 0
In the match played with partner Andres Molteni, with the outcome of winner, who was the opponent?
CREATE TABLE table_name_45 (opponent VARCHAR, outcome VARCHAR, partner VARCHAR)
SELECT opponent FROM table_name_45 WHERE outcome = "winner" AND partner = "andres molteni"
What is the Date of the game with a Record of 5-3?
CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_53 WHERE record = "5-3"
What position had notes of 20km and a year earlier than 2002?
CREATE TABLE table_name_29 (position VARCHAR, notes VARCHAR, year VARCHAR)
SELECT position FROM table_name_29 WHERE notes = "20km" AND year < 2002