question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What season did a United States center play in?
CREATE TABLE table_name_46 (season VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT season FROM table_name_46 WHERE nationality = "united states" AND position = "center"
What is the average number of years associated with 51 games tied and over 1184 total games?
CREATE TABLE table_name_60 (years INTEGER, tied VARCHAR, total_games VARCHAR)
SELECT AVG(years) FROM table_name_60 WHERE tied = 51 AND total_games > 1184
What is total population of Saint-Agapit (code 33045)?
CREATE TABLE table_name_99 (region INTEGER, name VARCHAR, code VARCHAR)
SELECT SUM(region) FROM table_name_99 WHERE name = "saint-agapit" AND code < 33045
What percentage of wins has 48 losses?
CREATE TABLE table_name_4 (win__percentage VARCHAR, losses VARCHAR)
SELECT win__percentage FROM table_name_4 WHERE losses = "48"
Which Genitive 1 has a Genitive 3 of *n(i)-ia?
CREATE TABLE table_name_57 (genitive_1 VARCHAR, genitive_3 VARCHAR)
SELECT genitive_1 FROM table_name_57 WHERE genitive_3 = "*n(i)-ia"
What venue was the 2000 AFC Asian Cup qualification held at?
CREATE TABLE table_name_9 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_9 WHERE competition = "2000 afc asian cup qualification"
If the qatari female is 918, what is the total number of females?
CREATE TABLE table_26214389_3 (total_female VARCHAR, qatari_female VARCHAR)
SELECT total_female FROM table_26214389_3 WHERE qatari_female = 918
What Year was the United States the country for aug 3–5?
CREATE TABLE table_name_64 (year VARCHAR, country VARCHAR, dates VARCHAR)
SELECT year FROM table_name_64 WHERE country = "united states" AND dates = "aug 3–5"
What is the catalogue on october 15, 2004?
CREATE TABLE table_name_34 (catalogue VARCHAR, date VARCHAR)
SELECT catalogue FROM table_name_34 WHERE date = "october 15, 2004"
What is the highest average points per race of the driver with less than 969 points and an average pre-2010 less than 0?
CREATE TABLE table_name_75 (average_points_per_race_entered INTEGER, points VARCHAR, average_pre_2010 VARCHAR)
SELECT MAX(average_points_per_race_entered) FROM table_name_75 WHERE points < 969 AND average_pre_2010 < 0
Which AFC cup does Masahiro Fukasawa have?
CREATE TABLE table_name_17 (afc_cup VARCHAR, name VARCHAR)
SELECT afc_cup FROM table_name_17 WHERE name = "masahiro fukasawa"
What is the score of the game on November 10, 2006?
CREATE TABLE table_name_17 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_17 WHERE date = "november 10, 2006"
What races have n/a Points, 0 Wins, and 6th Position entries?
CREATE TABLE table_name_15 (races VARCHAR, position VARCHAR, points VARCHAR, wins VARCHAR)
SELECT races FROM table_name_15 WHERE points = "n/a" AND wins = "0" AND position = "6th"
What date was georgie stoop emily webley-smith the opponent?
CREATE TABLE table_name_33 (date VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_33 WHERE opponents = "georgie stoop emily webley-smith"
When the date is July 8, and the score is 8-12, who is the opponent?
CREATE TABLE table_name_78 (opponent VARCHAR, date VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_78 WHERE date = "july 8" AND score = "8-12"
what ae all of the brazil 100% where the age group is 15-17?
CREATE TABLE table_18950570_4 (brazil_100_percentage__percent_of_the_population_ VARCHAR, age_group VARCHAR)
SELECT brazil_100_percentage__percent_of_the_population_ FROM table_18950570_4 WHERE age_group = "15-17"
Can you tell me the Score that has the Game of 40?
CREATE TABLE table_name_33 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_33 WHERE game = 40
What club began in 1976?
CREATE TABLE table_name_21 (current_club VARCHAR, year_born VARCHAR)
SELECT current_club FROM table_name_21 WHERE year_born = 1976
Which Goals have a Name of lee dong-gook?
CREATE TABLE table_name_17 (goals INTEGER, name VARCHAR)
SELECT MAX(goals) FROM table_name_17 WHERE name = "lee dong-gook"
Name the average clean and jerk for snatch of 140 and total kg less than 315
CREATE TABLE table_name_10 (_jerk VARCHAR, clean_ INTEGER, snatch VARCHAR, total__kg_ VARCHAR)
SELECT AVG(clean_) & _jerk FROM table_name_10 WHERE snatch = 140 AND total__kg_ < 315
Would built the winning car in the IV J.C.C. Jersey Road Race?
CREATE TABLE table_1140119_5 (constructor VARCHAR, race_name VARCHAR)
SELECT constructor FROM table_1140119_5 WHERE race_name = "IV J.C.C. Jersey Road Race"
What is the number of Population 2001 Census that has 476,815 in Population 1991 Census?
CREATE TABLE table_name_10 (population_2001_census INTEGER, population_1991_census VARCHAR)
SELECT SUM(population_2001_census) FROM table_name_10 WHERE population_1991_census = 476 OFFSET 815
What was the lowest attendance at a game against the St. Louis Cardinals?
CREATE TABLE table_name_91 (attendance INTEGER, opponent VARCHAR)
SELECT MIN(attendance) FROM table_name_91 WHERE opponent = "st. louis cardinals"
What is the injured that has skierlik as the location?
CREATE TABLE table_name_9 (injured VARCHAR, location VARCHAR)
SELECT injured FROM table_name_9 WHERE location = "skierlik"
What is Location, when Circuit is August 16?
CREATE TABLE table_name_1 (location VARCHAR, circuit VARCHAR)
SELECT location FROM table_name_1 WHERE circuit = "august 16"
Where was the Undercard of Stevenson/Bellew?
CREATE TABLE table_25840200_1 (location VARCHAR, notes VARCHAR)
SELECT location FROM table_25840200_1 WHERE notes = "Undercard of Stevenson/Bellew"
how many location attendance with team being charlotte
CREATE TABLE table_13557843_7 (location_attendance VARCHAR, team VARCHAR)
SELECT COUNT(location_attendance) FROM table_13557843_7 WHERE team = "Charlotte"
Which week was the 1995-10-01 game on?
CREATE TABLE table_name_71 (week INTEGER, date VARCHAR)
SELECT MAX(week) FROM table_name_71 WHERE date = "1995-10-01"
Find the total revenue created by the companies whose headquarter is located at Austin.
CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR)
SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin'
What is the number for the interview in Illinois when the preliminary is less than 8.558?
CREATE TABLE table_name_51 (interview INTEGER, country VARCHAR, preliminary VARCHAR)
SELECT SUM(interview) FROM table_name_51 WHERE country = "illinois" AND preliminary < 8.558
What day was United States the opposing team?
CREATE TABLE table_name_92 (date VARCHAR, opposing_team VARCHAR)
SELECT date FROM table_name_92 WHERE opposing_team = "united states"
Name the least episode for november 29, 1985
CREATE TABLE table_20967430_2 (ep INTEGER, original_air_date VARCHAR)
SELECT MIN(ep) FROM table_20967430_2 WHERE original_air_date = "November 29, 1985"
Which Artist has a Percentage of 11.32%?
CREATE TABLE table_name_79 (artist VARCHAR, percentage VARCHAR)
SELECT artist FROM table_name_79 WHERE percentage = "11.32%"
What is the average evening gown score of the contestant from New York with a swimsuit score less than 8.703 and preliminaries larger than 8.292?
CREATE TABLE table_name_47 (evening_gown INTEGER, preliminaries VARCHAR, swimsuit VARCHAR, state VARCHAR)
SELECT AVG(evening_gown) FROM table_name_47 WHERE swimsuit < 8.703 AND state = "new york" AND preliminaries > 8.292
In what position did the winning driver finish at Chicagoland?
CREATE TABLE table_16099880_5 (winning_driver VARCHAR, race VARCHAR)
SELECT COUNT(winning_driver) FROM table_16099880_5 WHERE race = "Chicagoland"
What is the first, last name, gpa of the youngest one among students whose GPA is above 3?
CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_gpa INTEGER, stu_dob VARCHAR)
SELECT stu_fname, stu_lname, stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1
What game modes are there when the pinyin is zhígǎn yī bǐ ?
CREATE TABLE table_1616608_2 (game_modes VARCHAR, pinyin VARCHAR)
SELECT game_modes FROM table_1616608_2 WHERE pinyin = "Zhígǎn Yī Bǐ"
How many goals ranked 6?
CREATE TABLE table_name_36 (goals VARCHAR, rank VARCHAR)
SELECT COUNT(goals) FROM table_name_36 WHERE rank = 6
What is the production code of the episode written by Gary Sturgis that is bigger than season number 23 and smaller than series number 126?
CREATE TABLE table_name_75 (production_code VARCHAR, written_by VARCHAR, season__number VARCHAR, series__number VARCHAR)
SELECT production_code FROM table_name_75 WHERE season__number > 23 AND series__number < 126 AND written_by = "gary sturgis"
Which Competition has a Venue of hong kong?
CREATE TABLE table_name_53 (competition VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_53 WHERE venue = "hong kong"
What is the inductioin for 1975–1976?
CREATE TABLE table_name_93 (induction VARCHAR, years VARCHAR)
SELECT induction FROM table_name_93 WHERE years = "1975–1976"
what's the area (km 2 ) with population census 2009 being 939370
CREATE TABLE table_1404456_1 (area__km_2__ VARCHAR, population_census_2009 VARCHAR)
SELECT area__km_2__ FROM table_1404456_1 WHERE population_census_2009 = 939370
How many times did Niels Christian Kaldau win the men's single and Pi Hongyan win the women's single in the same year?
CREATE TABLE table_12275654_1 (year VARCHAR, mens_singles VARCHAR, womens_singles VARCHAR)
SELECT COUNT(year) FROM table_12275654_1 WHERE mens_singles = "Niels Christian Kaldau" AND womens_singles = "Pi Hongyan"
What is the rank that shows 426 games?
CREATE TABLE table_name_64 (rank VARCHAR, games VARCHAR)
SELECT rank FROM table_name_64 WHERE games = "426"
What is the number of the episode titled 'Sugar Daddy'?
CREATE TABLE table_name_40 (episode_number INTEGER, title VARCHAR)
SELECT AVG(episode_number) FROM table_name_40 WHERE title = "sugar daddy"
Which air dates have 1.229 canadian viewers (millions)?
CREATE TABLE table_18424435_5 (us_air_date VARCHAR, canadian_viewers__million_ VARCHAR)
SELECT us_air_date FROM table_18424435_5 WHERE canadian_viewers__million_ = "1.229"
In what season was the final placing NC† and the team SL Formula Racing?
CREATE TABLE table_25421463_1 (season VARCHAR, final_placing VARCHAR, team_name VARCHAR)
SELECT season FROM table_25421463_1 WHERE final_placing = "NC†" AND team_name = "SL Formula Racing"
For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.
CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, director VARCHAR, mID VARCHAR)
SELECT T2.title, T1.stars, T2.director, MAX(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director <> "null" GROUP BY director
What is the highest Goal Difference when the goals against were less than 76, and the position larger than 5, and a Played larger than 30?
CREATE TABLE table_name_72 (goal_difference INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR)
SELECT MAX(goal_difference) FROM table_name_72 WHERE goals_against < 76 AND position > 5 AND played > 30
Which builder has a Built smaller than 1880?
CREATE TABLE table_name_8 (builder VARCHAR, built INTEGER)
SELECT builder FROM table_name_8 WHERE built < 1880
Which Weight & Height has a Player of michael worrincy?
CREATE TABLE table_name_65 (weight_ VARCHAR, _height VARCHAR, player VARCHAR)
SELECT weight_ & _height FROM table_name_65 WHERE player = "michael worrincy"
What is the 2009 value with a 2010 A value?
CREATE TABLE table_name_79 (Id VARCHAR)
SELECT 2009 FROM table_name_79 WHERE 2010 = "a"
What years did the player with the jersey number bigger than 20 play?
CREATE TABLE table_name_5 (years VARCHAR, jersey_number_s_ INTEGER)
SELECT years FROM table_name_5 WHERE jersey_number_s_ > 20
What away has toronto downtown dingos as the home?
CREATE TABLE table_name_71 (away VARCHAR, home VARCHAR)
SELECT away FROM table_name_71 WHERE home = "toronto downtown dingos"
What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus?
CREATE TABLE table_name_90 (authors VARCHAR, name VARCHAR, novelty VARCHAR, location VARCHAR)
SELECT authors FROM table_name_90 WHERE novelty = "gen nov" AND location = "south africa" AND name = "criocephalosaurus"
Which manufacturer has a time of +10.142?
CREATE TABLE table_name_11 (manufacturer VARCHAR, time VARCHAR)
SELECT manufacturer FROM table_name_11 WHERE time = "+10.142"
What is the original date of the repeat air date of 26/01/1969?
CREATE TABLE table_13403120_1 (originalairdate VARCHAR, repeatairdate_s_ VARCHAR)
SELECT originalairdate FROM table_13403120_1 WHERE repeatairdate_s_ = "26/01/1969"
Who is the incumbent that is a republican and first elected before 1864?
CREATE TABLE table_name_73 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_name_73 WHERE party = "republican" AND first_elected < 1864
When рыба (rýba) is the belarusian how many slovenes are there?
CREATE TABLE table_26757_4 (slovene VARCHAR, belarusian VARCHAR)
SELECT COUNT(slovene) FROM table_26757_4 WHERE belarusian = "рыба (rýba)"
What number parliament held it's election in 1997?
CREATE TABLE table_1889233_2 (parliament VARCHAR, general_election_contested VARCHAR)
SELECT parliament FROM table_1889233_2 WHERE general_election_contested = 1997
How many Parishes in Merrimack which has 4 Cemeteries?
CREATE TABLE table_name_62 (parishes INTEGER, pastoral_region VARCHAR, cemeteries VARCHAR)
SELECT MIN(parishes) FROM table_name_62 WHERE pastoral_region = "merrimack" AND cemeteries < 4
Result of 1st, and an Extra of 4 x 400 m relay is in what lowest year?
CREATE TABLE table_name_3 (year INTEGER, result VARCHAR, extra VARCHAR)
SELECT MIN(year) FROM table_name_3 WHERE result = "1st" AND extra = "4 x 400 m relay"
what team has the qual 2 of 1:44.050?
CREATE TABLE table_name_9 (best VARCHAR, qual_2 VARCHAR)
SELECT best FROM table_name_9 WHERE qual_2 = "1:44.050"
How many laps does roberto moreno have?
CREATE TABLE table_name_51 (laps VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_51 WHERE driver = "roberto moreno"
What's the sSpec number of the processor having an ultra-low power I/O?
CREATE TABLE table_name_57 (sspec_number VARCHAR, i_o_bus VARCHAR)
SELECT sspec_number FROM table_name_57 WHERE i_o_bus = "ultra-low power"
Who was the artist with a mintage of 40,000 and an issue price of $45.95?
CREATE TABLE table_name_87 (artist VARCHAR, mintage VARCHAR, issue_price VARCHAR)
SELECT artist FROM table_name_87 WHERE mintage = "40,000" AND issue_price = "45.95"
What is Team, when Game is 77?
CREATE TABLE table_name_90 (team VARCHAR, game VARCHAR)
SELECT team FROM table_name_90 WHERE game = 77
What player has t7 as the place, with tje United States as the country?
CREATE TABLE table_name_12 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT player FROM table_name_12 WHERE place = "t7" AND country = "united states"
In what urban area is the 2011 population 21561?
CREATE TABLE table_1940144_1 (urban_area VARCHAR, population_2011 VARCHAR)
SELECT urban_area FROM table_1940144_1 WHERE population_2011 = 21561
Tell me the title for pages of 96
CREATE TABLE table_name_99 (title VARCHAR, pages VARCHAR)
SELECT title FROM table_name_99 WHERE pages = 96
How many of Asian release statuses does Uno HD have?
CREATE TABLE table_28621502_1 (asia VARCHAR, title VARCHAR)
SELECT COUNT(asia) FROM table_28621502_1 WHERE title = "UNO HD"
What teams drafted players that played for northwood school?
CREATE TABLE table_10960039_6 (cfl_team VARCHAR, college VARCHAR)
SELECT cfl_team FROM table_10960039_6 WHERE college = "Northwood"
Which Oberliga Baden-Württemberg has an Oberliga Hessen of fsv frankfurt in 1993-94?
CREATE TABLE table_name_77 (oberliga_baden_württemberg VARCHAR, oberliga_hessen VARCHAR, season VARCHAR)
SELECT oberliga_baden_württemberg FROM table_name_77 WHERE oberliga_hessen = "fsv frankfurt" AND season = "1993-94"
Name the age 30-39 and age 10-19 380
CREATE TABLE table_169693_1 (age_30_39 VARCHAR, age_10_19 VARCHAR)
SELECT age_30_39 FROM table_169693_1 WHERE age_10_19 = 380
What is the percentage for Russian?
CREATE TABLE table_name_90 (percentage___percentage_ VARCHAR, language VARCHAR)
SELECT percentage___percentage_ FROM table_name_90 WHERE language = "russian"
Show the names of companies and of employees.
CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT T3.Name, T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID
How many allergies have type animal?
CREATE TABLE Allergy_type (allergytype VARCHAR)
SELECT COUNT(*) FROM Allergy_type WHERE allergytype = "animal"
What was the date of A. Benes loss to the Rockies?
CREATE TABLE table_name_19 (date VARCHAR, loss VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_19 WHERE loss = "a. benes" AND opponent = "rockies"
The displacement(s) 466 cubic inches (7.6L), has what engine family?
CREATE TABLE table_26352332_4 (engine_family VARCHAR, displacement_s_ VARCHAR)
SELECT engine_family FROM table_26352332_4 WHERE displacement_s_ = "466 cubic inches (7.6L)"
Which Heat has a Rank of 8?
CREATE TABLE table_name_16 (heat INTEGER, rank VARCHAR)
SELECT MAX(heat) FROM table_name_16 WHERE rank = 8
What track was used in 1926?
CREATE TABLE table_name_55 (track VARCHAR, year VARCHAR)
SELECT track FROM table_name_55 WHERE year = "1926"
On what date was a match played at Lake Oval?
CREATE TABLE table_name_4 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_4 WHERE venue = "lake oval"
Who was Petrova's partner where she scored 6–2, 3–6, 6–7 (7-9)?
CREATE TABLE table_27611593_5 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_27611593_5 WHERE score = "6–2, 3–6, 6–7 (7-9)"
What is the lowest number of dances with a rank larger than 4 and a place of 8?
CREATE TABLE table_name_93 (number_of_dances INTEGER, rank_by_average VARCHAR, place VARCHAR)
SELECT MIN(number_of_dances) FROM table_name_93 WHERE rank_by_average > 4 AND place = 8
What is the conference record for the year of 1971?
CREATE TABLE table_name_7 (conference_record VARCHAR, year VARCHAR)
SELECT conference_record FROM table_name_7 WHERE year = "1971"
How many votes did Jeannemarie Devolites Davis get in 1995-Special?
CREATE TABLE table_name_90 (votes VARCHAR, opponent VARCHAR, year VARCHAR)
SELECT votes FROM table_name_90 WHERE opponent = "jeannemarie devolites davis" AND year = "1995-special"
What was the name of the player for pick 402?
CREATE TABLE table_name_57 (player VARCHAR, pick VARCHAR)
SELECT player FROM table_name_57 WHERE pick = 402
What was the attendance of the game that had an away team of FK Mogren?
CREATE TABLE table_name_89 (attendance VARCHAR, guest VARCHAR)
SELECT attendance FROM table_name_89 WHERE guest = "fk mogren"
Who was the away team of the game at the time 15:00?
CREATE TABLE table_name_57 (away VARCHAR, time VARCHAR)
SELECT away FROM table_name_57 WHERE time = "15:00"
What location did Zach Veach have the fastest lap?
CREATE TABLE table_29285076_2 (location VARCHAR, fastest_lap VARCHAR)
SELECT location FROM table_29285076_2 WHERE fastest_lap = "Zach Veach"
How many times did Fiji win r1?
CREATE TABLE table_18812411_3 (r1 VARCHAR, country VARCHAR)
SELECT COUNT(r1) FROM table_18812411_3 WHERE country = "Fiji"
How many winners have st kilda score at 14.11.95?
CREATE TABLE table_28211103_1 (winner VARCHAR, st_kilda_score VARCHAR)
SELECT COUNT(winner) FROM table_28211103_1 WHERE st_kilda_score = "14.11.95"
Which Score has a Date of 26 september 2004?
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_71 WHERE date = "26 september 2004"
Name the average rank for west germany when gold is more than 1
CREATE TABLE table_name_15 (rank INTEGER, nation VARCHAR, gold VARCHAR)
SELECT AVG(rank) FROM table_name_15 WHERE nation = "west germany" AND gold > 1
Who is the Prime Minister of Antoine Wehenkel?
CREATE TABLE table_name_71 (Prime VARCHAR, minister VARCHAR)
SELECT Prime AS minister FROM table_name_71 WHERE minister = "antoine wehenkel"
Which Support Category had a Round score of 9?
CREATE TABLE table_name_67 (support_category VARCHAR, round VARCHAR)
SELECT support_category FROM table_name_67 WHERE round = 9
What was the score on march 11?
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_50 WHERE date = "march 11"
What is the copa conmebol 1996 result of the team with a recopa sudamericana 1996 result of champions?
CREATE TABLE table_name_49 (copa_conmebol_1996 VARCHAR, recopa_sudamericana_1996 VARCHAR)
SELECT copa_conmebol_1996 FROM table_name_49 WHERE recopa_sudamericana_1996 = "champions"
Which Call sign has an ERP W of 75?
CREATE TABLE table_name_23 (call_sign VARCHAR, erp_w VARCHAR)
SELECT call_sign FROM table_name_23 WHERE erp_w = 75
What date did Josh Taumalolo play at Nuku'alofa?
CREATE TABLE table_name_49 (date VARCHAR, venue VARCHAR, player VARCHAR)
SELECT date FROM table_name_49 WHERE venue = "nuku'alofa" AND player = "josh taumalolo"