question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What pick number was the rhp with a hometown/school of university of hawaii?
CREATE TABLE table_name_42 (pick INTEGER, position VARCHAR, hometown_school VARCHAR)
SELECT MIN(pick) FROM table_name_42 WHERE position = "rhp" AND hometown_school = "university of hawaii"
Who were the candidates when Henry Garland Dupré was incumbent?
CREATE TABLE table_1342451_16 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342451_16 WHERE incumbent = "Henry Garland Dupré"
What is the gdp of the country with an area of 83871 (km2)?
CREATE TABLE table_1307842_6 (gdp__billion_us$_ VARCHAR, area__km²_ VARCHAR)
SELECT gdp__billion_us$_ FROM table_1307842_6 WHERE area__km²_ = 83871
Name the result in 2010 for bgm cyworld
CREATE TABLE table_name_98 (result VARCHAR, year VARCHAR, award VARCHAR)
SELECT result FROM table_name_98 WHERE year = 2010 AND award = "bgm cyworld"
What's the share of Episode 1?
CREATE TABLE table_name_84 (share VARCHAR, episode_no VARCHAR)
SELECT share FROM table_name_84 WHERE episode_no = 1
Name the record with result of w 13-11
CREATE TABLE table_name_51 (record VARCHAR, result VARCHAR)
SELECT record FROM table_name_51 WHERE result = "w 13-11"
What round was a loss with a record of 12-3?
CREATE TABLE table_name_22 (round VARCHAR, res VARCHAR, record VARCHAR)
SELECT round FROM table_name_22 WHERE res = "loss" AND record = "12-3"
Who had the women's win when Norway was the winner overall in season 2001/02?
CREATE TABLE table_name_68 (winner VARCHAR, season VARCHAR)
SELECT winner AS Women FROM table_name_68 WHERE winner = "norway" AND season = "2001/02"
Name the high points for the date of november 24
CREATE TABLE table_17323529_5 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_17323529_5 WHERE date = "November 24"
What date was BBC One total viewing greater then 11616996.338225884?
CREATE TABLE table_103084_4 (broadcast_date VARCHAR, bbc_one_total_viewing INTEGER)
SELECT broadcast_date FROM table_103084_4 WHERE bbc_one_total_viewing > 11616996.338225884
What Date that had a Result of draw, with Oval as a venue?
CREATE TABLE table_name_32 (date VARCHAR, result VARCHAR, venue VARCHAR)
SELECT date FROM table_name_32 WHERE result = "draw" AND venue = "oval"
What year was the house named gongola made?
CREATE TABLE table_11464746_1 (founded VARCHAR, house_name VARCHAR)
SELECT founded FROM table_11464746_1 WHERE house_name = "Gongola"
what is the 2nd leg when team #2 is žalgiris kaunas?
CREATE TABLE table_name_67 (team__number2 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_67 WHERE team__number2 = "žalgiris kaunas"
What's the total number of Win % with an Appearances of 4, and Losses that's larger than 3?
CREATE TABLE table_name_78 (win__percentage VARCHAR, appearances VARCHAR, losses VARCHAR)
SELECT COUNT(win__percentage) FROM table_name_78 WHERE appearances = 4 AND losses > 3
What was the fastest lap in the Belgian Grand Prix?
CREATE TABLE table_name_31 (fastest_lap VARCHAR, race VARCHAR)
SELECT fastest_lap FROM table_name_31 WHERE race = "belgian grand prix"
Name the D 45 O with D 46 O of r 31 √
CREATE TABLE table_name_97 (d_45_o VARCHAR, d_46_o VARCHAR)
SELECT d_45_o FROM table_name_97 WHERE d_46_o = "r 31 √"
What is the average total value for Spain?
CREATE TABLE table_name_58 (total INTEGER, nation VARCHAR)
SELECT AVG(total) FROM table_name_58 WHERE nation = "spain"
What is the home team score at lake oval?
CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_45 WHERE venue = "lake oval"
What was the result of the game in Stuttgart, West Germany and a goal number of less than 9?
CREATE TABLE table_name_12 (result VARCHAR, venue VARCHAR, goal VARCHAR)
SELECT result FROM table_name_12 WHERE venue = "stuttgart, west germany" AND goal < 9
Name the leading scorer for 1 april 2008
CREATE TABLE table_name_82 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_82 WHERE date = "1 april 2008"
WHAT HINDI HAS Kannada of shukravara?
CREATE TABLE table_name_54 (hindi VARCHAR, kannada VARCHAR)
SELECT hindi FROM table_name_54 WHERE kannada = "shukravara"
Which Season ha spvgg bayreuth and eintracht trier?
CREATE TABLE table_name_19 (season VARCHAR, oberliga_bayern VARCHAR, oberliga_südwest VARCHAR)
SELECT season FROM table_name_19 WHERE oberliga_bayern = "spvgg bayreuth" AND oberliga_südwest = "eintracht trier"
Which player had a height of 6-0?
CREATE TABLE table_11734041_11 (player VARCHAR, height_in_ft VARCHAR)
SELECT player FROM table_11734041_11 WHERE height_in_ft = "6-0"
How many Laps Did Driver David Coulthard have on a Grid smaller than 11?
CREATE TABLE table_name_89 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_89 WHERE grid < 11 AND driver = "david coulthard"
What is Team, when Game is "59"?
CREATE TABLE table_name_25 (team VARCHAR, game VARCHAR)
SELECT team FROM table_name_25 WHERE game = 59
what is the number of relapsing fever when malaria is 3000
CREATE TABLE table_1007688_1 (relapsing_fever INTEGER, malaria VARCHAR)
SELECT MIN(relapsing_fever) FROM table_1007688_1 WHERE malaria = "3000"
Which LEMA/SUBLEMA that has Votes smaller than 218656, and a Ch of Deputies of 0?
CREATE TABLE table_name_22 (lema_sublema VARCHAR, votes VARCHAR, ch_of_deputies VARCHAR)
SELECT lema_sublema FROM table_name_22 WHERE votes < 218656 AND ch_of_deputies = "0"
When michele pirro is the pole position what is the date?
CREATE TABLE table_21191496_1 (date VARCHAR, pole_position VARCHAR)
SELECT date FROM table_21191496_1 WHERE pole_position = "Michele Pirro"
Who was the loser playing football with england b as a winner after 1992?
CREATE TABLE table_name_55 (loser VARCHAR, date VARCHAR, sport VARCHAR, winner VARCHAR)
SELECT loser FROM table_name_55 WHERE sport = "football" AND winner = "england b" AND date > 1992
Find the make and production time of the cars that were produced in the earliest year?
CREATE TABLE CARS_DATA (YEAR INTEGER); CREATE TABLE CAR_NAMES (Make VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Year VARCHAR, Id VARCHAR)
SELECT T2.Make, T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT MIN(YEAR) FROM CARS_DATA)
What is the mean number of events when top-5 is 1?
CREATE TABLE table_name_51 (events INTEGER, top_5 VARCHAR)
SELECT AVG(events) FROM table_name_51 WHERE top_5 = 1
Show all flight numbers with aircraft Airbus A340-300.
CREATE TABLE Flight (flno VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = "Airbus A340-300"
Who was first elected as the result of a retired republican gain in the district of ohio 21?
CREATE TABLE table_name_45 (first_elected VARCHAR, result VARCHAR, district VARCHAR)
SELECT first_elected FROM table_name_45 WHERE result = "retired republican gain" AND district = "ohio 21"
How many players enter hall of fame each year?
CREATE TABLE hall_of_fame (yearid VARCHAR)
SELECT yearid, COUNT(*) FROM hall_of_fame GROUP BY yearid
What location did the event kotc: mortal sins take place?
CREATE TABLE table_name_30 (location VARCHAR, event VARCHAR)
SELECT location FROM table_name_30 WHERE event = "kotc: mortal sins"
Which cornerback round has a pick number lower than 26 and an overall higher than 41?
CREATE TABLE table_name_36 (round INTEGER, overall VARCHAR, pick__number VARCHAR, position VARCHAR)
SELECT SUM(round) FROM table_name_36 WHERE pick__number < 26 AND position = "cornerback" AND overall > 41
What is the average tonnage of the ship named proletarij?
CREATE TABLE table_name_81 (tonnage INTEGER, name_of_ship VARCHAR)
SELECT AVG(tonnage) FROM table_name_81 WHERE name_of_ship = "proletarij"
What position does Hedo Türkoğlu play?
CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_93 WHERE player = "hedo türkoğlu"
Which Home team has an Away team of everton?
CREATE TABLE table_name_57 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_57 WHERE away_team = "everton"
How many total viewers (combined Live and SD) watched the episode with a share of 8?
CREATE TABLE table_24222929_3 (live VARCHAR, share VARCHAR)
SELECT live + 7 AS _day_dvr_total_viewers FROM table_24222929_3 WHERE share = "8"
How many different partners played in the finale in 1973?
CREATE TABLE table_2820584_3 (partner VARCHAR, year VARCHAR)
SELECT COUNT(partner) FROM table_2820584_3 WHERE year = 1973
What is City, when IATA is "amm"?
CREATE TABLE table_name_67 (city VARCHAR, iata VARCHAR)
SELECT city FROM table_name_67 WHERE iata = "amm"
What engine was used by Equipe Simca Gordini before 1956 with less than 4 points?
CREATE TABLE table_name_15 (engine VARCHAR, entrant VARCHAR, year VARCHAR, points VARCHAR)
SELECT engine FROM table_name_15 WHERE year < 1956 AND points < 4 AND entrant = "equipe simca gordini"
What is every entry for Tuesday August 23 when Thursday August 25 is 24' 31.87 92.282mph?
CREATE TABLE table_30058355_3 (tues_23_aug VARCHAR, thurs_25_aug VARCHAR)
SELECT tues_23_aug FROM table_30058355_3 WHERE thurs_25_aug = "24' 31.87 92.282mph"
What is the Outcome when çağla büyükakçay was the opponent in the final?
CREATE TABLE table_name_73 (outcome VARCHAR, opponent_in_the_final VARCHAR)
SELECT outcome FROM table_name_73 WHERE opponent_in_the_final = "çağla büyükakçay"
What is the total capacity for the city of Trogir?
CREATE TABLE table_name_21 (capacity INTEGER, city VARCHAR)
SELECT SUM(capacity) FROM table_name_21 WHERE city = "trogir"
What is the result with a home venue?
CREATE TABLE table_name_26 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_26 WHERE venue = "home"
Who was Class AAA during the school year of 2000-01?
CREATE TABLE table_10399701_2 (class_aAA VARCHAR, school_year VARCHAR)
SELECT class_aAA FROM table_10399701_2 WHERE school_year = "2000-01"
What is the tie number for the home team Orient?
CREATE TABLE table_name_35 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_35 WHERE home_team = "orient"
Name the Trofeo Fast team for roberto visentini
CREATE TABLE table_name_58 (trofeo_fast_team VARCHAR, winner VARCHAR)
SELECT trofeo_fast_team FROM table_name_58 WHERE winner = "roberto visentini"
What is the dma when the format is rhythmic contemporary?
CREATE TABLE table_19131921_1 (dma INTEGER, format VARCHAR)
SELECT MIN(dma) FROM table_19131921_1 WHERE format = "Rhythmic Contemporary"
Who was the director for the episode on May 2, 1959?
CREATE TABLE table_25800134_3 (director VARCHAR, airdate VARCHAR)
SELECT director FROM table_25800134_3 WHERE airdate = "May 2, 1959"
Tell me the least amount of democratic colation
CREATE TABLE table_15306124_1 (democratic_coalition INTEGER)
SELECT MIN(democratic_coalition) FROM table_15306124_1
What is the Pick 3 Player from East College?
CREATE TABLE table_name_67 (player VARCHAR, college VARCHAR, pick VARCHAR)
SELECT player FROM table_name_67 WHERE college = "east" AND pick = 3
What is the population in стари жедник (croatian: stari žednik)?
CREATE TABLE table_2562572_26 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT population__2011_ FROM table_2562572_26 WHERE cyrillic_name_other_names = "Стари Жедник (Croatian: Stari Žednik)"
On what date was a friendly competition and a result of 3–0?
CREATE TABLE table_name_69 (date VARCHAR, competition VARCHAR, result VARCHAR)
SELECT date FROM table_name_69 WHERE competition = "friendly" AND result = "3–0"
Find id of the candidate who most recently accessed the course?
CREATE TABLE candidate_assessments (candidate_id VARCHAR, assessment_date VARCHAR)
SELECT candidate_id FROM candidate_assessments ORDER BY assessment_date DESC LIMIT 1
How many people are in regions greater than 3?
CREATE TABLE table_name_18 (population INTEGER, region INTEGER)
SELECT SUM(population) FROM table_name_18 WHERE region > 3
Show the number of projects.
CREATE TABLE Projects (Id VARCHAR)
SELECT COUNT(*) FROM Projects
WHAT IS THE NAME WITH BAYER LEVERKUSEN?
CREATE TABLE table_name_53 (name VARCHAR, moving_to VARCHAR)
SELECT name FROM table_name_53 WHERE moving_to = "bayer leverkusen"
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 MAX(task_no) FROM table_name_16 WHERE head_of_household = "cathy"
What is Postion, when Weight is greater than 220, and when Player is "Travis Knight"?
CREATE TABLE table_name_28 (position VARCHAR, weight VARCHAR, player VARCHAR)
SELECT position FROM table_name_28 WHERE weight > 220 AND player = "travis knight"
Who's the race leader of Cuneo to Turin?
CREATE TABLE table_name_90 (race_leader VARCHAR, course VARCHAR)
SELECT race_leader FROM table_name_90 WHERE course = "cuneo to turin"
What was the stadium in Moorabbin, Victoria built for?
CREATE TABLE table_28885977_1 (built_for VARCHAR, location VARCHAR)
SELECT built_for FROM table_28885977_1 WHERE location = "Moorabbin, Victoria"
How many wins were there when the byes were more than 3?
CREATE TABLE table_name_27 (wins VARCHAR, byes INTEGER)
SELECT COUNT(wins) FROM table_name_27 WHERE byes > 3
Tell me the highest goals with tries less than 1 and fullback position
CREATE TABLE table_name_5 (goals INTEGER, tries VARCHAR, position VARCHAR)
SELECT MAX(goals) FROM table_name_5 WHERE tries < 1 AND position = "fullback"
Find the average age of all students living in the each city.
CREATE TABLE student (city_code VARCHAR, age INTEGER)
SELECT AVG(age), city_code FROM student GROUP BY city_code
Name the total number of runner up a for perambalur
CREATE TABLE table_22754310_1 (runner_up_a VARCHAR, constituency VARCHAR)
SELECT COUNT(runner_up_a) FROM table_22754310_1 WHERE constituency = "Perambalur"
What is the maximum folded value of the team whose stadium is Fraser Field?
CREATE TABLE table_24334261_1 (folded INTEGER, stadium VARCHAR)
SELECT MAX(folded) FROM table_24334261_1 WHERE stadium = "Fraser Field"
Which is the largest average number when the swimsuit is 9.4 and the evening gown stat is less than 9.486?
CREATE TABLE table_name_75 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT MAX(average) FROM table_name_75 WHERE swimsuit = 9.4 AND evening_gown < 9.486
What is the average Loss, when Avg/g is 0, and when Long is less than 0?
CREATE TABLE table_name_12 (loss INTEGER, avg_g VARCHAR, long VARCHAR)
SELECT AVG(loss) FROM table_name_12 WHERE avg_g = 0 AND long < 0
How many attendance numbers had more than 15 games, and sellouts of more than 8 in the 2011-12 season?
CREATE TABLE table_name_34 (attendance VARCHAR, season VARCHAR, games VARCHAR, sellouts VARCHAR)
SELECT COUNT(attendance) FROM table_name_34 WHERE games > 15 AND sellouts > 8 AND season = "2011-12"
What is the resale category for the provider NetCologne?
CREATE TABLE table_1773908_3 (resale VARCHAR, provider VARCHAR)
SELECT resale FROM table_1773908_3 WHERE provider = "Netcologne"
What region is the catalogue released on June 8, 2004 from?
CREATE TABLE table_name_88 (region VARCHAR, date VARCHAR)
SELECT region FROM table_name_88 WHERE date = "june 8, 2004"
Name the call sign with frequency of 89.5
CREATE TABLE table_name_70 (call_sign VARCHAR, frequency_mhz VARCHAR)
SELECT call_sign FROM table_name_70 WHERE frequency_mhz = 89.5
Which value for Form factor has Sandforce with Capacity 80/120/180/240/360/480 introduced in July 2013?
CREATE TABLE table_name_84 (form_factor VARCHAR, introduced VARCHAR, controller VARCHAR, capacities__gb_ VARCHAR)
SELECT form_factor FROM table_name_84 WHERE controller = "sandforce" AND capacities__gb_ = "80/120/180/240/360/480" AND introduced = "july 2013"
What is the power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code?
CREATE TABLE table_name_76 (power VARCHAR, combined_consumption VARCHAR, code VARCHAR)
SELECT power FROM table_name_76 WHERE combined_consumption = "(gas/ethanol)" AND code = "k7m hi-torque"
How many points did the team have that conceded 41 goals and finish in a place larger than 10?
CREATE TABLE table_name_25 (points VARCHAR, goals_conceded VARCHAR, place VARCHAR)
SELECT COUNT(points) FROM table_name_25 WHERE goals_conceded = 41 AND place > 10
Which Team has a Year of 1978?
CREATE TABLE table_name_45 (team VARCHAR, year VARCHAR)
SELECT team FROM table_name_45 WHERE year = 1978
Which Second has a Lead of ben hebert?
CREATE TABLE table_name_6 (second VARCHAR, lead VARCHAR)
SELECT second FROM table_name_6 WHERE lead = "ben hebert"
Tell me the score for 9 may 2001
CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_15 WHERE date = "9 may 2001"
What song did Robin perform with a result of 4.0?
CREATE TABLE table_21234111_10 (song VARCHAR, robin VARCHAR)
SELECT song FROM table_21234111_10 WHERE robin = "4.0"
What is the average crowd size of Fitzroy's home team?
CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_78 WHERE home_team = "fitzroy"
Who is the captain of the team that has a kit manufacturer of Fox Leisure?
CREATE TABLE table_name_30 (captain VARCHAR, kit_manufacturer VARCHAR)
SELECT captain FROM table_name_30 WHERE kit_manufacturer = "fox leisure"
What is the smallest number of spikes for players with a weight of 83 and height over 190?
CREATE TABLE table_name_69 (spike INTEGER, weight VARCHAR, height VARCHAR)
SELECT MIN(spike) FROM table_name_69 WHERE weight = 83 AND height > 190
Name the least projected opening
CREATE TABLE table_22771048_3 (projected_opening INTEGER)
SELECT MIN(projected_opening) FROM table_22771048_3
When was anne of lorraine born?
CREATE TABLE table_name_91 (birth VARCHAR, name VARCHAR)
SELECT birth FROM table_name_91 WHERE name = "anne of lorraine"
How many vap values are associated with 140469 valid votes?
CREATE TABLE table_2683116_1 (vap VARCHAR, valid_votes VARCHAR)
SELECT COUNT(vap) FROM table_2683116_1 WHERE valid_votes = 140469
WHAT IS THE LOWEST GRID FOR RETIREMENT, AND LAPS LARGER THAN 17?
CREATE TABLE table_name_72 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT MIN(grid) FROM table_name_72 WHERE time_retired = "retirement" AND laps > 17
What is every conflict in Iraq?
CREATE TABLE table_1921_1 (conflict VARCHAR, location VARCHAR)
SELECT conflict FROM table_1921_1 WHERE location = "Iraq"
What is the release date for the standard cd release format in north america?
CREATE TABLE table_name_18 (release_date VARCHAR, release_format VARCHAR, country VARCHAR)
SELECT release_date FROM table_name_18 WHERE release_format = "standard cd" AND country = "north america"
Who is the away team when there are 15 ties?
CREATE TABLE table_name_57 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_57 WHERE tie_no = "15"
Who had a reaction larger than 0.17400000000000002 and a lane larger than 6?
CREATE TABLE table_name_80 (name VARCHAR, reaction VARCHAR, lane VARCHAR)
SELECT name FROM table_name_80 WHERE reaction > 0.17400000000000002 AND lane > 6
What was the attendance for weeks prior to 5 when there was no game scheduled?
CREATE TABLE table_name_21 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_21 WHERE week < 5 AND date = "no game scheduled"
What is the color of the Chamaeleo Calyptratus?
CREATE TABLE table_name_54 (color VARCHAR, scientific_name VARCHAR)
SELECT color FROM table_name_54 WHERE scientific_name = "chamaeleo calyptratus"
Which Last 5 has a Rank of 7?
CREATE TABLE table_name_31 (last_5 VARCHAR, rank VARCHAR)
SELECT last_5 FROM table_name_31 WHERE rank = 7
What was Derek Graham's time?
CREATE TABLE table_name_95 (time VARCHAR, name VARCHAR)
SELECT time FROM table_name_95 WHERE name = "derek graham"
What is Score, when Competition is "ECQG5", and when Venue is "Hampden Park , Glasgow (H)"?
CREATE TABLE table_name_18 (score VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT score FROM table_name_18 WHERE competition = "ecqg5" AND venue = "hampden park , glasgow (h)"
What was the result of the match played on 13 October 1993?
CREATE TABLE table_name_93 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_93 WHERE date = "13 october 1993"
Who was the home team on February 3?
CREATE TABLE table_name_68 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_68 WHERE date = "february 3"