answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT opponent FROM table_name_6 WHERE outcome = "winner" AND surface = "hard" AND date = "august 27, 2011"
Who is the opponent for the winner outcome on a hard surface on August 27, 2011?
CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT SUM(avg_g) FROM table_name_61 WHERE effic = 858.4
What is the sum avg/g with an effic of 858.4?
CREATE TABLE table_name_61 (avg_g INTEGER, effic VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_43 WHERE constituency_number = "108"
What's the reserved number for constituency number 108?
CREATE TABLE table_name_43 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT COUNT(team) FROM table_23249053_11 WHERE high_points = "Vince Carter (24)"
When vince carter (24) has the highest points how many teams are there?
CREATE TABLE table_23249053_11 (team VARCHAR, high_points VARCHAR)
SELECT artist FROM table_name_42 WHERE points = 13
Which artist has 13 points?
CREATE TABLE table_name_42 (artist VARCHAR, points VARCHAR)
SELECT co_driver FROM table_name_51 WHERE laps > 32 AND year = 1999
Who is the co-driver in 1999 with more than 32 laps?
CREATE TABLE table_name_51 (co_driver VARCHAR, laps VARCHAR, year VARCHAR)
SELECT election FROM table_name_26 WHERE seats > 57 AND dáil = "24th"
With a dail of 24th and more than 57 seats, what is the election?
CREATE TABLE table_name_26 (election VARCHAR, seats VARCHAR, dáil VARCHAR)
SELECT SUM(attendance) FROM table_name_53 WHERE time = "3:23"
What was the sum of attendance for games with a time of 3:23?
CREATE TABLE table_name_53 (attendance INTEGER, time VARCHAR)
SELECT T2.Issue_Date FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.Artist = "Gorgoroth"
What are the issue dates of volumes associated with the artist "Gorgoroth"?
CREATE TABLE artist (Artist_ID VARCHAR, Artist VARCHAR); CREATE TABLE volume (Issue_Date VARCHAR, Artist_ID VARCHAR)
SELECT no FROM table_23670057_1 WHERE height__m_ = "1.96"
Name the number for 1.96 height
CREATE TABLE table_23670057_1 (no VARCHAR, height__m_ VARCHAR)
SELECT result FROM table_name_96 WHERE venue = "dreisamstadion, freiburg"
What is the result at Dreisamstadion, Freiburg?
CREATE TABLE table_name_96 (result VARCHAR, venue VARCHAR)
SELECT high_assists FROM table_30087032_5 WHERE high_points = "Charles Barkley (21)"
Who did the high assists in the game where Charles Barkley (21) did the high points?
CREATE TABLE table_30087032_5 (high_assists VARCHAR, high_points VARCHAR)
SELECT overall_record FROM table_name_17 WHERE school = "indian river"
What is the overall record of Indian River?
CREATE TABLE table_name_17 (overall_record VARCHAR, school VARCHAR)
SELECT school FROM table_name_32 WHERE county = "45 lake" AND location = "merrillville"
What school is from 45 Lake county and is located in Merrillville?
CREATE TABLE table_name_32 (school VARCHAR, county VARCHAR, location VARCHAR)
SELECT tournament FROM table_name_94 WHERE 2011 = "2r"
Name the tournament when it has 2011 of 2r
CREATE TABLE table_name_94 (tournament VARCHAR)
SELECT winning_score FROM table_name_64 WHERE date = "oct 28, 1962"
What was the score of the winning match on Oct 28, 1962?
CREATE TABLE table_name_64 (winning_score VARCHAR, date VARCHAR)
SELECT MAX(grid) FROM table_name_7 WHERE rider = "fonsi nieto"
What is the highest grid for rider Fonsi Nieto?
CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR)
SELECT SUM(year) FROM table_name_80 WHERE riaa_sales_certification = "gold" AND title = "lost without your love" AND billboard_200_peak > 26
For how many years did the song "Lost Without Your Love" win the gold RIAA Sales Certification, and have a Billboard 200 Peak greater than 26?
CREATE TABLE table_name_80 (year INTEGER, billboard_200_peak VARCHAR, riaa_sales_certification VARCHAR, title VARCHAR)
SELECT position FROM table_name_55 WHERE player = "barry rose"
What position does Barry Rose play?
CREATE TABLE table_name_55 (position VARCHAR, player VARCHAR)
SELECT date FROM table_name_61 WHERE away_team = "south melbourne"
On what date was South Melbourne the away team?
CREATE TABLE table_name_61 (date VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_95 WHERE away_team = "hawthorn"
Who is the home team when hawthorn is the away team?
CREATE TABLE table_name_95 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(reg_gp) FROM table_name_69 WHERE rd__number > 2 AND pick__number = 80 AND pl_gp > 0
What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0?
CREATE TABLE table_name_69 (reg_gp INTEGER, pl_gp VARCHAR, rd__number VARCHAR, pick__number VARCHAR)
SELECT drawn FROM table_name_86 WHERE lost = "3" AND points = "88"
Name the drawn with lost of 3 and points of 88
CREATE TABLE table_name_86 (drawn VARCHAR, lost VARCHAR, points VARCHAR)
SELECT party FROM table_name_73 WHERE district = "maryland 6"
What is the party of the maryland 6 district?
CREATE TABLE table_name_73 (party VARCHAR, district VARCHAR)
SELECT country FROM table_name_79 WHERE score = 71 - 66 - 72 - 72 = 281
What country has a score of 71-66-72-72=281?
CREATE TABLE table_name_79 (country VARCHAR, score VARCHAR)
SELECT home_team AS score FROM table_name_10 WHERE away_team = "north melbourne"
What did the team score at home in north melbourne?
CREATE TABLE table_name_10 (home_team VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_40 WHERE first_audition_venue = "kemper arena"
What was the date when the first audition venue was Kemper Arena?
CREATE TABLE table_name_40 (date VARCHAR, first_audition_venue VARCHAR)
SELECT AVG(wins) FROM table_name_12 WHERE poles > 0 AND podiums < 3
What is the average wins of a team with more than 0 ples and less than 3 podiums?
CREATE TABLE table_name_12 (wins INTEGER, poles VARCHAR, podiums VARCHAR)
SELECT AVG(attendance) FROM table_name_98 WHERE opponent = "new york jets"
What is the average attendance for the New York Jets?
CREATE TABLE table_name_98 (attendance INTEGER, opponent VARCHAR)
SELECT away_team AS score FROM table_name_83 WHERE venue = "vfl park"
What was the score of the away team when the game was played at vfl park?
CREATE TABLE table_name_83 (away_team VARCHAR, venue VARCHAR)
SELECT city FROM table_name_20 WHERE venue = "united spirit arena"
In what city is the United Spirit Arena located?
CREATE TABLE table_name_20 (city VARCHAR, venue VARCHAR)
SELECT branding FROM table_name_44 WHERE frequency = "1150 am"
What is the branding for the radio with a frequency of 1150 am?
CREATE TABLE table_name_44 (branding VARCHAR, frequency VARCHAR)
SELECT venue FROM table_name_79 WHERE partnerships = "shoaib malik / misbah-ul-haq"
What venue did the parntership of shoaib malik / misbah-ul-haq occur?
CREATE TABLE table_name_79 (venue VARCHAR, partnerships VARCHAR)
SELECT volume AS :issue FROM table_name_78 WHERE artist = "santana featuring the product g&b"
shows for the artist Santana featuring the product g&b?
CREATE TABLE table_name_78 (volume VARCHAR, artist VARCHAR)
SELECT date FROM table_2006661_1 WHERE value = "55c"
Name the date for value 55c
CREATE TABLE table_2006661_1 (date VARCHAR, value VARCHAR)
SELECT fa_cup FROM table_name_36 WHERE other_[c_] = "0 12 0 (0)"
The other [C] of 0 12 0 (0) belongs to what FA Cup?
CREATE TABLE table_name_36 (fa_cup VARCHAR, other_ VARCHAR, c_ VARCHAR)
SELECT hdtv FROM table_name_77 WHERE television_service = "rai nettuno sat uno"
What is the HDTV for the Rai Nettuno Sat Uno Television service?
CREATE TABLE table_name_77 (hdtv VARCHAR, television_service VARCHAR)
SELECT SUM(attendance) FROM table_name_47 WHERE score = "brooklyn dodgers – 3, new york yankees – 5" AND game > 1
brooklyn dodgers – 3, new york yankees – 5, and a Game larger than 1 had what attendance figure?
CREATE TABLE table_name_47 (attendance INTEGER, score VARCHAR, game VARCHAR)
SELECT series FROM table_name_33 WHERE director = "jack king" AND title = "buddy the woodsman"
What's the series of Buddy The Woodsman by director Jack King?
CREATE TABLE table_name_33 (series VARCHAR, director VARCHAR, title VARCHAR)
SELECT MIN(first_elected) FROM table_1342315_12 WHERE incumbent = "Leo E. Allen"
When was incumbent Leo E. Allen first elected?
CREATE TABLE table_1342315_12 (first_elected INTEGER, incumbent VARCHAR)
SELECT COUNT(total) FROM table_name_24 WHERE percentage = "12.03%"
What is the exact number of Total that has a percentage of precisely 12.03%?
CREATE TABLE table_name_24 (total VARCHAR, percentage VARCHAR)
SELECT SUM(draws) FROM table_name_58 WHERE team = "annandale" AND losses < 13
Which Draws have a Team of annandale, and Losses smaller than 13?
CREATE TABLE table_name_58 (draws INTEGER, team VARCHAR, losses VARCHAR)
SELECT _percentage_of_all_immigrants_2004 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2006 = "2.1%"
What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006?
CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2004 VARCHAR, _percentage_of_all_immigrants_2006 VARCHAR)
SELECT surface FROM table_name_90 WHERE score = "6–4, 6–1"
What was the court surface when the score was 6–4, 6–1?
CREATE TABLE table_name_90 (surface VARCHAR, score VARCHAR)
SELECT serial_numbers FROM table_name_82 WHERE year_made = "1930"
What is the serial number of the model made in 1930?
CREATE TABLE table_name_82 (serial_numbers VARCHAR, year_made VARCHAR)
SELECT MIN(lost) FROM table_name_67 WHERE points > 23
How few losses were the least number of losses and points higher than 23?
CREATE TABLE table_name_67 (lost INTEGER, points INTEGER)
SELECT T2.address_id, T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1
What are the id and zip code of the address with the highest monthly rental?
CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR)
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city
Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?
CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Feb INTEGER, Jun VARCHAR)
SELECT value FROM table_name_1 WHERE first_issued < 1998 AND reverse = "guitar of agustín pío barrios"
How much was a Reverse of guitar of agustín pío barrios before 1998?
CREATE TABLE table_name_1 (value VARCHAR, first_issued VARCHAR, reverse VARCHAR)
SELECT away_team AS score FROM table_name_74 WHERE home_team = "footscray"
During footscray's home game, how much did the away team score?
CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)
SELECT nat FROM table_name_36 WHERE name = "rix"
Where is Rix from?
CREATE TABLE table_name_36 (nat VARCHAR, name VARCHAR)
SELECT SUM(wins) FROM table_name_51 WHERE points = "0" AND podiums < 0
How many wins when the points are 0 and podiums are less than 0?
CREATE TABLE table_name_51 (wins INTEGER, points VARCHAR, podiums VARCHAR)
SELECT AVG(first_elected) FROM table_name_18 WHERE district = "11" AND committee = "environmental matters"
What is the average first elected year that has a district of 11 and a committee of environmental matters?
CREATE TABLE table_name_18 (first_elected INTEGER, district VARCHAR, committee VARCHAR)
SELECT nickname FROM table_name_64 WHERE gender = "boy" AND weight_at_birth = "810g (26.0 oz.)"
What is the nickname of the boy who weighed 810g (26.0 oz.) at birth?
CREATE TABLE table_name_64 (nickname VARCHAR, gender VARCHAR, weight_at_birth VARCHAR)
SELECT opponent FROM table_name_30 WHERE week = 8
Who did the Chiefs play in Week 8?
CREATE TABLE table_name_30 (opponent VARCHAR, week VARCHAR)
SELECT region_served FROM table_name_43 WHERE haat__analog__digital__1 = "1176 m 1190 m"
Which Region served has of 1176 m 1190 m HAAT (Analog/ Digital) 1?
CREATE TABLE table_name_43 (region_served VARCHAR, haat__analog__digital__1 VARCHAR)
SELECT tebe_career FROM table_28730459_3 WHERE league_matches = 163
What are the years of TeBe career for the players whose league matches are exactly 163?
CREATE TABLE table_28730459_3 (tebe_career VARCHAR, league_matches VARCHAR)
SELECT college FROM table_name_98 WHERE year < 1962 AND position = "rb"
Which College has a Year smaller than 1962, and a Position of rb?
CREATE TABLE table_name_98 (college VARCHAR, year VARCHAR, position VARCHAR)
SELECT bass FROM table_name_2 WHERE label = "atlantic" AND year = 1994
Who played bass in 1994 for the Atlantic label?
CREATE TABLE table_name_2 (bass VARCHAR, label VARCHAR, year VARCHAR)
SELECT constructor FROM table_name_50 WHERE rounds = "all" AND driver = "bruno giacomelli"
Which Constructor has Rounds, All and Driver, Bruno Giacomelli?
CREATE TABLE table_name_50 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT location FROM table_name_12 WHERE date = "june 10"
Where was the event on June 10?
CREATE TABLE table_name_12 (location VARCHAR, date VARCHAR)
SELECT SUM(2010) FROM table_name_1 WHERE division = "district of columbia" AND 2004 > 12.3
What is the 2010 figure for the district of Columbia where the 2004 figure is more than 12.3?
CREATE TABLE table_name_1 (division VARCHAR)
SELECT losing_bonus FROM table_name_78 WHERE try_bonus = "10"
When the try bonus was 10 what was the losing bonus?
CREATE TABLE table_name_78 (losing_bonus VARCHAR, try_bonus VARCHAR)
SELECT COUNT(first_driver_s_) FROM table_13416000_3 WHERE country = "Canada"
How many entries are there for first driver for Canada?
CREATE TABLE table_13416000_3 (first_driver_s_ VARCHAR, country VARCHAR)
SELECT home_team AS score FROM table_name_82 WHERE home_team = "north melbourne"
What was North Melbourne's score when they were the home team?
CREATE TABLE table_name_82 (home_team VARCHAR)
SELECT AVG(goals) FROM table_name_68 WHERE matches < 228
What average goals have matches less than 228?
CREATE TABLE table_name_68 (goals INTEGER, matches INTEGER)
SELECT mvp FROM table_19651669_1 WHERE champion = "Scaligera Verona"
Who was the MVP the season Scaligera Verona were Champions?
CREATE TABLE table_19651669_1 (mvp VARCHAR, champion VARCHAR)
SELECT SUM(attendance) FROM table_name_24 WHERE games < 6 AND w_l_t = "3-2-0" AND season < 1948
How much Attendance has Games smaller than 6, and a W-L-T of 3-2-0, and a Season smaller than 1948?
CREATE TABLE table_name_24 (attendance INTEGER, season VARCHAR, games VARCHAR, w_l_t VARCHAR)
SELECT MIN(earnings___) AS $__ FROM table_name_49 WHERE wins = 28 AND player = "lee trevino"
What is the lowest earnings of Lee Trevino who has 28 wins?
CREATE TABLE table_name_49 (earnings___ INTEGER, wins VARCHAR, player VARCHAR)
SELECT 3 AS rd_largest FROM table_name_35 WHERE largest_city = "ardabil"
What is the 3rd largest where the largest city is Ardabil?
CREATE TABLE table_name_35 (largest_city VARCHAR)
SELECT team FROM table_name_27 WHERE games = "7"
What is the name of the team with a Games listing of 7?
CREATE TABLE table_name_27 (team VARCHAR, games VARCHAR)
SELECT status FROM table_22815568_2 WHERE poverty_rate = "17.3%"
What is the status of the county that has a 17.3% poverty rate?
CREATE TABLE table_22815568_2 (status VARCHAR, poverty_rate VARCHAR)
SELECT english_title FROM table_name_90 WHERE original_title = "ansikte mot ansikte"
What is the English title for Ansikte Mot Ansikte?
CREATE TABLE table_name_90 (english_title VARCHAR, original_title VARCHAR)
SELECT player FROM table_name_87 WHERE position = "defensive back" AND round > 3
Which player was defensive back after round 3?
CREATE TABLE table_name_87 (player VARCHAR, position VARCHAR, round VARCHAR)
SELECT MIN(cardinal_points) FROM table_23192661_3 WHERE record = "19-4"
Name the cardinal points for 19-4 record
CREATE TABLE table_23192661_3 (cardinal_points INTEGER, record VARCHAR)
SELECT MIN(week_3) FROM table_28946565_2
What is the smallest week 3 score?
CREATE TABLE table_28946565_2 (week_3 INTEGER)
SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the breed with the most dogs?
CREATE TABLE Dogs (breed_code VARCHAR); CREATE TABLE Breeds (breed_name VARCHAR, breed_code VARCHAR)
SELECT party FROM table_19753079_12 WHERE district = "Florida 9"
What party got elected in Florida 9 district?
CREATE TABLE table_19753079_12 (party VARCHAR, district VARCHAR)
SELECT COUNT(transcription) FROM table_20354_5 WHERE thai_name = "พฤษภาคม"
How many different transcriptions are there for the Thai name พฤษภาคม?
CREATE TABLE table_20354_5 (transcription VARCHAR, thai_name VARCHAR)
SELECT monounsaturated_fat FROM table_name_85 WHERE smoke_point = "°c ()" AND total_fat = "100g" AND polyunsaturated_fat = "11g" AND saturated_fat = "14g"
What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat?
CREATE TABLE table_name_85 (monounsaturated_fat VARCHAR, saturated_fat VARCHAR, polyunsaturated_fat VARCHAR, smoke_point VARCHAR, total_fat VARCHAR)
SELECT 2010 FROM table_name_8 WHERE 2009 = "w" AND 2007 = "qf"
what is 2010 when 2009 is w and 2007 is qf?
CREATE TABLE table_name_8 (Id VARCHAR)
SELECT nationality FROM table_name_24 WHERE pick = "18"
Tell me the nationality for pick of 18
CREATE TABLE table_name_24 (nationality VARCHAR, pick VARCHAR)
SELECT region FROM table_name_72 WHERE format_s_ = "lp" AND date = "4 august 2008"
What region has a lp format on 4 August 2008?
CREATE TABLE table_name_72 (region VARCHAR, format_s_ VARCHAR, date VARCHAR)
SELECT rider FROM table_name_22 WHERE laps < 10 AND manufacturer = "aprilia" AND time_retired = "retirement"
Which rider had fewer than 10 laps for the Aprilia manufacturer, finishing in retirement?
CREATE TABLE table_name_22 (rider VARCHAR, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT AVG(draw) FROM table_name_47 WHERE losses < 35 AND matches = 136 AND against < 146
How many draws have less than 35 losses with 136 matches and less than 146 against?
CREATE TABLE table_name_47 (draw INTEGER, against VARCHAR, losses VARCHAR, matches VARCHAR)
SELECT SUM(population) FROM table_name_78 WHERE area_km_2 = 304.06
What is the population of the parish that has an area of 304.06?
CREATE TABLE table_name_78 (population INTEGER, area_km_2 VARCHAR)
SELECT tournament FROM table_name_21 WHERE date = "february 17, 2002"
What is the tournament on February 17, 2002?
CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_73 WHERE crowd > 19 OFFSET 000
Which home team has more than 19,000 spectators?
CREATE TABLE table_name_73 (home_team VARCHAR, crowd INTEGER)
SELECT fan_title FROM table_2560677_1 WHERE end_date = "1967-11-12"
What is the fan title with an end date of 1967-11-12?
CREATE TABLE table_2560677_1 (fan_title VARCHAR, end_date VARCHAR)
SELECT COUNT(no_in_season) FROM table_20726262_3 WHERE writtenby = "Brett Conrad & Liz Sagal"
How many numbers in the season were written by Brett Conrad & Liz Sagal?
CREATE TABLE table_20726262_3 (no_in_season VARCHAR, writtenby VARCHAR)
SELECT distance FROM table_26166836_1 WHERE road_race = "Great Manchester Run"
How long was the great manchester run?
CREATE TABLE table_26166836_1 (distance VARCHAR, road_race VARCHAR)
SELECT operator FROM table_name_20 WHERE rank = 7
Which operator has a rank of 7?
CREATE TABLE table_name_20 (operator VARCHAR, rank VARCHAR)
SELECT date FROM table_name_92 WHERE home_team = "footscray"
What date did Footscray play at home?
CREATE TABLE table_name_92 (date VARCHAR, home_team VARCHAR)
SELECT MIN(alliance) FROM table_28005809_2 WHERE total = 25
What is the smallest Alliance where the total is 25?
CREATE TABLE table_28005809_2 (alliance INTEGER, total VARCHAR)
SELECT format FROM table_name_56 WHERE calls = "wrko"
Tell me the format for calls of wrko
CREATE TABLE table_name_56 (format VARCHAR, calls VARCHAR)
SELECT percentage_change_yoy FROM table_27956_3 WHERE institution = "Presbyterian College"
Name the percentage change yoy for presbyterian college
CREATE TABLE table_27956_3 (percentage_change_yoy VARCHAR, institution VARCHAR)
SELECT opponent FROM table_23612439_2 WHERE date = "September 5"
Which opponents are on the date September 5?
CREATE TABLE table_23612439_2 (opponent VARCHAR, date VARCHAR)
SELECT SUM(high_score) FROM table_name_52 WHERE stump = 0 AND catches = 4 AND average < 56.1 AND inns > 14
What is the high score for the player with 0 stumps, 4 catches, more than 14 inns and an average smaller than 56.1?
CREATE TABLE table_name_52 (high_score INTEGER, inns VARCHAR, average VARCHAR, stump VARCHAR, catches VARCHAR)
SELECT 1994 FROM table_name_45 WHERE tournament = "sr"
What result in 1994 has a SR as the tournament?
CREATE TABLE table_name_45 (tournament VARCHAR)
SELECT school FROM table_11044765_1 WHERE mascot = "Raiders"
Which school has the Raiders as their mascot?
CREATE TABLE table_11044765_1 (school VARCHAR, mascot VARCHAR)