question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many final venues were there in the 1997-98 season?
CREATE TABLE table_19651669_1 (final_venue VARCHAR, season VARCHAR)
SELECT COUNT(final_venue) FROM table_19651669_1 WHERE season = "1997-98"
What laps have a rank larger than 13 and the Time/Retired is accident, and a Qual smaller than 136.98?
CREATE TABLE table_name_40 (laps VARCHAR, qual VARCHAR, rank VARCHAR, time_retired VARCHAR)
SELECT laps FROM table_name_40 WHERE rank > 13 AND time_retired = "accident" AND qual < 136.98
What home team played against Footscray as the away team?
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_73 WHERE away_team = "footscray"
What is the overall attendance in the places where the average attendance was 17148?
CREATE TABLE table_2771237_1 (overall_attendance VARCHAR, average_attendance VARCHAR)
SELECT overall_attendance FROM table_2771237_1 WHERE average_attendance = 17148
What is the lowest FA cup that has a league greater than 0, with a Malaysia cup greater than 5?
CREATE TABLE table_name_9 (fa_cup INTEGER, league VARCHAR, malaysia_cup VARCHAR)
SELECT MIN(fa_cup) FROM table_name_9 WHERE league > 0 AND malaysia_cup > 5
Who was the opponent for the game played on September 19, 1994?
CREATE TABLE table_name_15 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_15 WHERE date = "september 19, 1994"
What is the game number of the game with the Edmonton Oilers as the opponent after February 12?
CREATE TABLE table_name_74 (game VARCHAR, opponent VARCHAR, february VARCHAR)
SELECT COUNT(game) FROM table_name_74 WHERE opponent = "edmonton oilers" AND february > 12
What is the current tournament name for the event in Tampa?
CREATE TABLE table_20630462_1 (also_currently_known_as VARCHAR, tournament VARCHAR)
SELECT also_currently_known_as FROM table_20630462_1 WHERE tournament = "Tampa"
What are the total number of Wickets that ranger higher than 5?
CREATE TABLE table_name_22 (wickets VARCHAR, rank INTEGER)
SELECT COUNT(wickets) FROM table_name_22 WHERE rank > 5
What are all the dsl type offered by the M-Net telecom company?
CREATE TABLE table_1773908_3 (dsl_type VARCHAR, provider VARCHAR)
SELECT dsl_type FROM table_1773908_3 WHERE provider = "M-net"
Show the residences that have both a player of gender "M" and a player of gender "F".
CREATE TABLE player (Residence VARCHAR, gender VARCHAR)
SELECT Residence FROM player WHERE gender = "M" INTERSECT SELECT Residence FROM player WHERE gender = "F"
What is the highest year that Kim was nominated for Over the Rainbow?
CREATE TABLE table_name_92 (year INTEGER, film_series VARCHAR)
SELECT MAX(year) FROM table_name_92 WHERE film_series = "over the rainbow"
What is the country(s) where the points equal 723.075?
CREATE TABLE table_26454128_9 (country VARCHAR, points VARCHAR)
SELECT country FROM table_26454128_9 WHERE points = "723.075"
What County has a Longitude of 85°45′43″w?
CREATE TABLE table_name_47 (county VARCHAR, longitude VARCHAR)
SELECT county FROM table_name_47 WHERE longitude = "85°45′43″w"
What college did Francis Bellefroid go to?
CREATE TABLE table_28059992_6 (college VARCHAR, player VARCHAR)
SELECT college FROM table_28059992_6 WHERE player = "Francis Bellefroid"
Who was the home team on April 15?
CREATE TABLE table_name_91 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_91 WHERE date = "april 15"
When has a Type of tko, and a Round of 1 (6)
CREATE TABLE table_name_97 (date VARCHAR, type VARCHAR, round VARCHAR)
SELECT date FROM table_name_97 WHERE type = "tko" AND round = "1 (6)"
What is the density of the city with an elevation of 3,400 msl?
CREATE TABLE table_name_5 (density__hab_km²_ VARCHAR, elevation_msl VARCHAR)
SELECT density__hab_km²_ FROM table_name_5 WHERE elevation_msl = "3,400 msl"
What is the quantity preserved to the locomotive with a quantity made of 6?
CREATE TABLE table_name_11 (quantity_preserved VARCHAR, quantity_made VARCHAR)
SELECT quantity_preserved FROM table_name_11 WHERE quantity_made = "6"
Which Venue has a crowd larger than 25,000?
CREATE TABLE table_name_83 (away_team VARCHAR, crowd INTEGER)
SELECT away_team FROM table_name_83 WHERE crowd > 25 OFFSET 000
What is the Club of the Player with a Date of Birth of 1979-01-29?
CREATE TABLE table_name_18 (club VARCHAR, date_of_birth VARCHAR)
SELECT club FROM table_name_18 WHERE date_of_birth = "1979-01-29"
What are the debut year for wrestlers born in Nara?
CREATE TABLE table_1557974_1 (debut VARCHAR, birthplace VARCHAR)
SELECT debut FROM table_1557974_1 WHERE birthplace = "Nara"
Which Opponent has an Away of 1–1, and a Home of 3–3?
CREATE TABLE table_name_25 (opponent VARCHAR, away VARCHAR, home VARCHAR)
SELECT opponent FROM table_name_25 WHERE away = "1–1" AND home = "3–3"
How tall is the building with 36 floors?
CREATE TABLE table_23759976_1 (height__m_ VARCHAR, floors VARCHAR)
SELECT height__m_ FROM table_23759976_1 WHERE floors = 36
What is the zan 1 that has 11 as the nor 1?
CREATE TABLE table_name_34 (zan_1 VARCHAR, nor_1 VARCHAR)
SELECT zan_1 FROM table_name_34 WHERE nor_1 = "11"
What is the Country of the Player with a To par of +1?
CREATE TABLE table_name_59 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_59 WHERE to_par = "+1"
What day did they play before week 2?
CREATE TABLE table_name_71 (date VARCHAR, week INTEGER)
SELECT date FROM table_name_71 WHERE week < 2
How many values for attendance on the date of August 26?
CREATE TABLE table_23916462_3 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_23916462_3 WHERE date = "August 26"
What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers?
CREATE TABLE table_name_16 (gold VARCHAR, rank VARCHAR, silver VARCHAR)
SELECT COUNT(gold) FROM table_name_16 WHERE rank = "2" AND silver < 2
What is the number of electorates when the name is badnawar?
CREATE TABLE table_name_61 (number_of_electorates__2009_ VARCHAR, name VARCHAR)
SELECT number_of_electorates__2009_ FROM table_name_61 WHERE name = "badnawar"
What is the highest draw number when there are more than 31 points, a rank greater than 6, and the English translation is listen to me?
CREATE TABLE table_name_83 (draw INTEGER, english_translation VARCHAR, points VARCHAR, place VARCHAR)
SELECT MAX(draw) FROM table_name_83 WHERE points > 31 AND place > 6 AND english_translation = "listen to me"
What regulations have hudson as the winning constructor?
CREATE TABLE table_name_84 (regulations VARCHAR, winning_constructor VARCHAR)
SELECT regulations FROM table_name_84 WHERE winning_constructor = "hudson"
Who is in group c when iowa is in group e?
CREATE TABLE table_15290638_1 (group_c VARCHAR, group_e VARCHAR)
SELECT group_c FROM table_15290638_1 WHERE group_e = "Iowa"
What is the to par for the player with total of 155?
CREATE TABLE table_name_28 (to_par INTEGER, total VARCHAR)
SELECT AVG(to_par) FROM table_name_28 WHERE total = 155
What tournament was on Jan 29, 2012?
CREATE TABLE table_name_8 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_8 WHERE date = "jan 29, 2012"
Which County has a Mascot of pacers?
CREATE TABLE table_name_36 (county VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_36 WHERE mascot = "pacers"
What team has 0 points and a contact tired/retired, and 71 laps?
CREATE TABLE table_name_80 (team VARCHAR, laps VARCHAR, points VARCHAR, time_retired VARCHAR)
SELECT team FROM table_name_80 WHERE points = 0 AND time_retired = "contact" AND laps = 71
What is Segment A where Segment C is Sushi (part 1)?
CREATE TABLE table_15187735_15 (segment_a VARCHAR, segment_c VARCHAR)
SELECT segment_a FROM table_15187735_15 WHERE segment_c = "Sushi (Part 1)"
who wrote s01e06
CREATE TABLE table_20360535_2 (written_by VARCHAR, television_order VARCHAR)
SELECT written_by FROM table_20360535_2 WHERE television_order = "S01E06"
What is the largest attendance that has tigers as the opponent and a loss of leiter (0-1)?
CREATE TABLE table_name_75 (attendance INTEGER, opponent VARCHAR, loss VARCHAR)
SELECT MAX(attendance) FROM table_name_75 WHERE opponent = "tigers" AND loss = "leiter (0-1)"
Name Country which has a Place of t7, and a Score of 73-69-73=215?
CREATE TABLE table_name_5 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT country FROM table_name_5 WHERE place = "t7" AND score = 73 - 69 - 73 = 215
What Date had a Partner of urszula radwańska?
CREATE TABLE table_name_87 (date VARCHAR, partner VARCHAR)
SELECT date FROM table_name_87 WHERE partner = "urszula radwańska"
What is the score for game 38?
CREATE TABLE table_name_1 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_1 WHERE game = 38
What is the number of points for the team with 2 matches drawn and 577 points for?
CREATE TABLE table_name_88 (points VARCHAR, drawn VARCHAR, points_for VARCHAR)
SELECT points FROM table_name_88 WHERE drawn = "2" AND points_for = "577"
Which country has an IATA of JFK?
CREATE TABLE table_name_3 (country VARCHAR, iata VARCHAR)
SELECT country FROM table_name_3 WHERE iata = "jfk"
What is the Malayalam word that is listed as #10 in the table?
CREATE TABLE table_1408397_3 (malayalam_മലയാളം VARCHAR, _number VARCHAR)
SELECT malayalam_മലയാളം FROM table_1408397_3 WHERE _number = 10
Show the distinct countries of managers.
CREATE TABLE manager (Country VARCHAR)
SELECT DISTINCT Country FROM manager
What is the average Season, when F/Laps is 1, and when Poles is less than 0?
CREATE TABLE table_name_14 (season INTEGER, f_laps VARCHAR, poles VARCHAR)
SELECT AVG(season) FROM table_name_14 WHERE f_laps = 1 AND poles < 0
How many points are in the scored category for the team that has less than 5 draws, 8 total wins, and total overall points less than 27?
CREATE TABLE table_name_83 (scored VARCHAR, points VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT COUNT(scored) FROM table_name_83 WHERE draws < 5 AND wins = 8 AND points < 27
With an area km 2 of 343.95 what is the official name?
CREATE TABLE table_name_38 (official_name VARCHAR, area_km_2 VARCHAR)
SELECT official_name FROM table_name_38 WHERE area_km_2 = 343.95
Which channel was on 28 December 2008?
CREATE TABLE table_name_74 (channel VARCHAR, date VARCHAR)
SELECT channel FROM table_name_74 WHERE date = "28 december 2008"
What was the innings when caught was 20?
CREATE TABLE table_24039597_26 (innings VARCHAR, caught VARCHAR)
SELECT innings FROM table_24039597_26 WHERE caught = 20
What is the total number in October with less than 2.48 in September, after 2002, more than 1.42 in June, and smaller than 7.44 in February?
CREATE TABLE table_name_41 (october VARCHAR, february VARCHAR, june VARCHAR, september VARCHAR, year VARCHAR)
SELECT COUNT(october) FROM table_name_41 WHERE september < 2.48 AND year > 2002 AND june > 1.42 AND february < 7.44
Which Location /State has a Winner of craig lowndes, and a Date of 29–31 may?
CREATE TABLE table_name_67 (location___state VARCHAR, winner VARCHAR, date VARCHAR)
SELECT location___state FROM table_name_67 WHERE winner = "craig lowndes" AND date = "29–31 may"
Who was the recipient of an award of £4,203?
CREATE TABLE table_name_22 (recipient VARCHAR, award VARCHAR)
SELECT recipient FROM table_name_22 WHERE award = "£4,203"
Which college did draft pick #143 attend?
CREATE TABLE table_15582870_1 (college VARCHAR, choice VARCHAR)
SELECT college FROM table_15582870_1 WHERE choice = 143
Which grid is the highest and has a time/retired of +0.3?
CREATE TABLE table_name_11 (grid INTEGER, time_retired VARCHAR)
SELECT MAX(grid) FROM table_name_11 WHERE time_retired = "+0.3"
Who's the player eliminated on episode 5?
CREATE TABLE table_name_50 (player VARCHAR, eliminated VARCHAR)
SELECT player FROM table_name_50 WHERE eliminated = "episode 5"
Who had the most high points and rebounds than charles oakley (9)?
CREATE TABLE table_13812785_8 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT high_points FROM table_13812785_8 WHERE high_rebounds = "Charles Oakley (9)"
What is the ICAO for simferopol international airport?
CREATE TABLE table_name_75 (icao VARCHAR, airport VARCHAR)
SELECT icao FROM table_name_75 WHERE airport = "simferopol international airport"
What District has a College or Campus Name of anna university college of engineering kanchipuram?
CREATE TABLE table_name_31 (district VARCHAR, college_or_campus_name VARCHAR)
SELECT district FROM table_name_31 WHERE college_or_campus_name = "anna university college of engineering kanchipuram"
What is the most common hometown of gymnasts?
CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)
SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
What year has earnings of $557,158?
CREATE TABLE table_name_25 (year INTEGER, earnings__$_ VARCHAR)
SELECT MAX(year) FROM table_name_25 WHERE earnings__$_ = "557,158"
What year had the Finish of 12?
CREATE TABLE table_name_65 (year VARCHAR, finish VARCHAR)
SELECT year FROM table_name_65 WHERE finish = "12"
What is the maximum rank when there is 0 gold, and the bronze is less than 4, and the silver is greater than 1, and 2 as the total?
CREATE TABLE table_name_76 (rank INTEGER, silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT MAX(rank) FROM table_name_76 WHERE gold = 0 AND bronze < 4 AND total = 2 AND silver > 1
What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx?
CREATE TABLE table_24538587_11 (i_o_bus VARCHAR, brand_name__list_ VARCHAR, socket VARCHAR, codename__main_article_ VARCHAR)
SELECT i_o_bus FROM table_24538587_11 WHERE socket = "LGA 1155" AND codename__main_article_ = "Sandy Bridge (Desktop)" AND brand_name__list_ = "Core i3-21xx"
Tell me the date for nicolas pereira
CREATE TABLE table_name_60 (date VARCHAR, partnering VARCHAR)
SELECT date FROM table_name_60 WHERE partnering = "nicolas pereira"
What is the total wins with less than 2 ties, 18 goals, and less than 2 losses?
CREATE TABLE table_name_2 (wins INTEGER, losses VARCHAR, ties VARCHAR, goals_against VARCHAR)
SELECT SUM(wins) FROM table_name_2 WHERE ties < 2 AND goals_against = 18 AND losses < 2
How many rounds is the fight against Michael Chavez?
CREATE TABLE table_name_46 (round INTEGER, opponent VARCHAR)
SELECT AVG(round) FROM table_name_46 WHERE opponent = "michael chavez"
How many acres in the townland of Coomroe?
CREATE TABLE table_30120761_1 (area__acres__ VARCHAR, townland VARCHAR)
SELECT COUNT(area__acres__) FROM table_30120761_1 WHERE townland = "Coomroe"
WHich in 2010–11 has an Event of autumn gold?
CREATE TABLE table_name_99 (event VARCHAR)
SELECT 2010 AS _11 FROM table_name_99 WHERE event = "autumn gold"
What's the chassis code for the 280s model?
CREATE TABLE table_name_17 (chassis_code VARCHAR, model VARCHAR)
SELECT chassis_code FROM table_name_17 WHERE model = "280s"
What region is the Gold Vinyl format from?
CREATE TABLE table_name_30 (region VARCHAR, format VARCHAR)
SELECT region FROM table_name_30 WHERE format = "gold vinyl"
What is the lowest amount of bronze medals won by Music City Mystique where they won more than 3 gold medals and less than 15 total medals?
CREATE TABLE table_name_27 (bronze_medals INTEGER, total_medals VARCHAR, gold_medals VARCHAR, ensemble VARCHAR)
SELECT MIN(bronze_medals) FROM table_name_27 WHERE gold_medals > 3 AND ensemble = "music city mystique" AND total_medals < 15
what is the date of the game that the high assists is raymond felton (4)?
CREATE TABLE table_27713583_2 (date VARCHAR, high_assists VARCHAR)
SELECT date FROM table_27713583_2 WHERE high_assists = "Raymond Felton (4)"
What was the score against the team with an 11-3 record against the Hawks?
CREATE TABLE table_23248910_5 (score VARCHAR, record VARCHAR)
SELECT score FROM table_23248910_5 WHERE record = "11-3"
What is the name of the player with a 71-69-71-69=280 score?
CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_79 WHERE score = 71 - 69 - 71 - 69 = 280
What is the profession of the housemate from Leskovac city?
CREATE TABLE table_name_87 (profession VARCHAR, city VARCHAR)
SELECT profession FROM table_name_87 WHERE city = "leskovac"
Show the total number of rooms of all apartments with facility code "Gym".
CREATE TABLE Apartments (room_count INTEGER, apt_id VARCHAR); CREATE TABLE Apartment_Facilities (apt_id VARCHAR, facility_code VARCHAR)
SELECT SUM(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.facility_code = "Gym"
Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state?
CREATE TABLE table_name_82 (location___state VARCHAR, team VARCHAR, winner VARCHAR)
SELECT location___state FROM table_name_82 WHERE team = "castrol perkins motorsport" AND winner = "russell ingall"
How many games have a score of 85-92?
CREATE TABLE table_name_36 (game VARCHAR, score VARCHAR)
SELECT COUNT(game) FROM table_name_36 WHERE score = "85-92"
What is the English title of the film directed by Fernando Meirelles?
CREATE TABLE table_name_53 (english_title VARCHAR, director_s_ VARCHAR)
SELECT english_title FROM table_name_53 WHERE director_s_ = "fernando meirelles"
Find the name of customers who do not have a loan with a type of Mortgages.
CREATE TABLE loan (cust_id VARCHAR, loan_type VARCHAR); CREATE TABLE customer (cust_name VARCHAR); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages'
What was the highest number of oppenents points recorded for game 9 when the attendance was less than 60,091?
CREATE TABLE table_name_85 (opponents INTEGER, game VARCHAR, attendance VARCHAR)
SELECT MAX(opponents) FROM table_name_85 WHERE game = 9 AND attendance < 60 OFFSET 091
Which episode was directed by Jean de Segonzac?
CREATE TABLE table_10935548_1 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_10935548_1 WHERE directed_by = "Jean de Segonzac"
What grand prixs did Daijiro Hiura win?
CREATE TABLE table_18303274_1 (grand_prix VARCHAR, race_winner VARCHAR)
SELECT grand_prix FROM table_18303274_1 WHERE race_winner = "Daijiro Hiura"
What was the final score when the Denver Broncos were the visiting team?
CREATE TABLE table_name_27 (final_score VARCHAR, visiting_team VARCHAR)
SELECT final_score FROM table_name_27 WHERE visiting_team = "denver broncos"
Name the 2012 for when 2010 is q3
CREATE TABLE table_name_94 (Id VARCHAR)
SELECT 2012 FROM table_name_94 WHERE 2010 = "q3"
Who drove the car with over 66 laps with a grid of 5?
CREATE TABLE table_name_27 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_27 WHERE laps > 66 AND grid = 5
What's the format of the season that ended on June 25?
CREATE TABLE table_1949994_7 (format VARCHAR, end_date VARCHAR)
SELECT format FROM table_1949994_7 WHERE end_date = "June 25"
How big (in sq mi) is the island that's 4065 km2?
CREATE TABLE table_13897690_1 (area__sqmi_ VARCHAR, area__km_2__ VARCHAR)
SELECT area__sqmi_ FROM table_13897690_1 WHERE area__km_2__ = 4065
Which stadium did Rashid Budaj coach?
CREATE TABLE table_name_76 (stadium VARCHAR, coach VARCHAR)
SELECT stadium FROM table_name_76 WHERE coach = "rashid budaj"
What country had the car with the Jawa 350cc engine?
CREATE TABLE table_name_42 (country VARCHAR, engine_make_capacity VARCHAR)
SELECT country FROM table_name_42 WHERE engine_make_capacity = "jawa 350cc"
Which institution is private/catholic?
CREATE TABLE table_name_55 (institution VARCHAR, affiliation VARCHAR)
SELECT institution FROM table_name_55 WHERE affiliation = "private/catholic"
How many people attended Melbourne's away game?
CREATE TABLE table_name_4 (crowd INTEGER, away_team VARCHAR)
SELECT SUM(crowd) FROM table_name_4 WHERE away_team = "melbourne"
what was the week for the match on a hard surface at Indian Wells tournament?
CREATE TABLE table_name_88 (week VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT week FROM table_name_88 WHERE surface = "hard" AND tournament = "indian wells"
Who is the h.s. principal during 1973-1974?
CREATE TABLE table_name_81 (hs_principal VARCHAR, year VARCHAR)
SELECT hs_principal FROM table_name_81 WHERE year = "1973-1974"
What is the maximum, minimum and average market share of the listed browsers?
CREATE TABLE browser (market_share INTEGER)
SELECT MAX(market_share), MIN(market_share), AVG(market_share) FROM browser
Tell me the score for Venue of tanteen recreation ground, st. george's
CREATE TABLE table_name_43 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_43 WHERE venue = "tanteen recreation ground, st. george's"
Which game was played at the Forum and led to a series result of 0-1?
CREATE TABLE table_name_85 (game VARCHAR, location_attendance VARCHAR, series VARCHAR)
SELECT game FROM table_name_85 WHERE location_attendance = "the forum" AND series = "0-1"