answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT visiting_team FROM table_name_13 WHERE host_team = "minnesota vikings"
Who was the visiting team against the Minnesota Vikings?
CREATE TABLE table_name_13 (visiting_team VARCHAR, host_team VARCHAR)
SELECT team FROM table_17693171_1 WHERE driver = "Milka Duno"
If the driver is Milka Duno, what is the name of the team?
CREATE TABLE table_17693171_1 (team VARCHAR, driver VARCHAR)
SELECT day_1 FROM table_name_35 WHERE day_5 = "math"
What is the day 1 when day 5 is math?
CREATE TABLE table_name_35 (day_1 VARCHAR, day_5 VARCHAR)
SELECT country FROM table_name_75 WHERE player = "jack nicklaus"
What country is jack nicklaus from?
CREATE TABLE table_name_75 (country VARCHAR, player VARCHAR)
SELECT venue FROM table_name_97 WHERE runs = "62"
What was the venue where there were 62 runs?
CREATE TABLE table_name_97 (venue VARCHAR, runs VARCHAR)
SELECT MAX(_number) FROM table_22904752_1 WHERE written_by = "David Hoselton"
How many # were written by david hoselton?
CREATE TABLE table_22904752_1 (_number INTEGER, written_by VARCHAR)
SELECT COUNT(losses) FROM table_name_51 WHERE south_west_dfl = "coleraine" AND against < 891
How many Losses have South West DFL of coleraine, and an Against smaller than 891?
CREATE TABLE table_name_51 (losses VARCHAR, south_west_dfl VARCHAR, against VARCHAR)
SELECT province FROM table_name_31 WHERE region = "v valparaíso" AND area = 927.2
What province has a v valparaíso region and an area of 927.2?
CREATE TABLE table_name_31 (province VARCHAR, region VARCHAR, area VARCHAR)
SELECT MIN(university_of_dublin) FROM table_name_93 WHERE administrative_panel = 3 AND cultural_and_educational_panel < 2
What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2?
CREATE TABLE table_name_93 (university_of_dublin INTEGER, administrative_panel VARCHAR, cultural_and_educational_panel VARCHAR)
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1
What is the country that has the most perpetrators?
CREATE TABLE perpetrator (Country VARCHAR)
SELECT home_ground FROM table_2383498_4 WHERE team = "Sunshine Coast Falcons"
What is the home ground if team is Sunshine Coast Falcons?
CREATE TABLE table_2383498_4 (home_ground VARCHAR, team VARCHAR)
SELECT place FROM table_name_45 WHERE to_par = "+3" AND score = 73 - 70 - 73 = 216
What is the Place of the Player with a To par of +3 and Score of 73-70-73=216?
CREATE TABLE table_name_45 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_31 WHERE to_par = "+4"
Which player finished at +4?
CREATE TABLE table_name_31 (player VARCHAR, to_par VARCHAR)
SELECT SUM(gold) FROM table_name_81 WHERE bronze = 1 AND rank < 6 AND total < 3
How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3?
CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT SUM(pick__number) FROM table_name_74 WHERE position = "lb" AND cfl_team = "winnipeg"
Name the Pick # which has a Position of lb, and a CFL Team of winnipeg?
CREATE TABLE table_name_74 (pick__number INTEGER, position VARCHAR, cfl_team VARCHAR)
SELECT high_points FROM table_17190012_7 WHERE record = "27–5"
who scored highest points on the game with record 27–5
CREATE TABLE table_17190012_7 (high_points VARCHAR, record VARCHAR)
SELECT ties FROM table_name_23 WHERE goals_against < 33
What are the number of Ties for games with Goals Against smaller than 33?
CREATE TABLE table_name_23 (ties VARCHAR, goals_against INTEGER)
SELECT opponent FROM table_17972136_1 WHERE date = "October 4"
What is the opponent played on October 4?
CREATE TABLE table_17972136_1 (opponent VARCHAR, date VARCHAR)
SELECT compatible_repository FROM table_27329061_2 WHERE version = "Old version, no longer supported: 9" AND default_desktop_environment = "LXDE"
What is the compatible repository when the version is old version, no longer supported: 9 and default desktop environment is lxde?
CREATE TABLE table_27329061_2 (compatible_repository VARCHAR, version VARCHAR, default_desktop_environment VARCHAR)
SELECT d_42_√ FROM table_name_58 WHERE d_49_√ = "r 12"
Name the D 42 √ for when it has D 49 √ of r 12
CREATE TABLE table_name_58 (d_42_√ VARCHAR, d_49_√ VARCHAR)
SELECT SUM(asian_or_amerindian___percentage_) FROM table_name_44 WHERE state = "sergipe" AND brown___percentage_ > 61 OFFSET 3
What is the sum of Asian or Amerindian (%), when State is Sergipe, and when Brown (%) is greater than 61,3?
CREATE TABLE table_name_44 (asian_or_amerindian___percentage_ INTEGER, state VARCHAR, brown___percentage_ VARCHAR)
SELECT AVG(overall) FROM table_name_45 WHERE round = 10 AND name = "ed tomlin"
In Round 10, what was the Overall for Ed Tomlin?
CREATE TABLE table_name_45 (overall INTEGER, round VARCHAR, name VARCHAR)
SELECT country FROM competition WHERE competition_type = 'Tournament' GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1
which country did participated in the most number of Tournament competitions?
CREATE TABLE competition (country VARCHAR, competition_type VARCHAR)
SELECT COUNT(pick__number) FROM table_name_96 WHERE college = "arkansas state" AND overall < 242
What is Arkansas State's total pick number with an overal lower than 242?
CREATE TABLE table_name_96 (pick__number VARCHAR, college VARCHAR, overall VARCHAR)
SELECT event FROM table_name_72 WHERE date = "august 20-august 27"
What is Event, when Date is August 20-August 27?
CREATE TABLE table_name_72 (event VARCHAR, date VARCHAR)
SELECT MIN(gold) FROM table_22355_35
which is the minimun amount of gold medals?
CREATE TABLE table_22355_35 (gold INTEGER)
SELECT poles FROM table_name_94 WHERE wins > 0 AND podiums < 17 AND fastest_laps = 0
Which Poles has a Wins larger than 0, and a Podiums smaller than 17?
CREATE TABLE table_name_94 (poles VARCHAR, fastest_laps VARCHAR, wins VARCHAR, podiums VARCHAR)
SELECT 2007 AS _08_season FROM table_name_60 WHERE city = "marcianise"
What 2007-08 season has marcianise as the city?
CREATE TABLE table_name_60 (city VARCHAR)
SELECT writer FROM table_26591434_1 WHERE ratings__kanto_ = "14.8"
Who is the writer with the ratings 14.8?
CREATE TABLE table_26591434_1 (writer VARCHAR, ratings__kanto_ VARCHAR)
SELECT province FROM table_1717824_1 WHERE south_asians_2001 = 210295
Which province had population of 210295 South Asians in 2001?
CREATE TABLE table_1717824_1 (province VARCHAR, south_asians_2001 VARCHAR)
SELECT COUNT(goals_against) FROM table_name_17 WHERE position > 1 AND played > 10
How many goals against were scored when the position was higher than 1 and the played was higher than 10?
CREATE TABLE table_name_17 (goals_against VARCHAR, position VARCHAR, played VARCHAR)
SELECT pole_position FROM table_name_67 WHERE tyre = "f"
What individual(s) had Pole Position for Tyre F?
CREATE TABLE table_name_67 (pole_position VARCHAR, tyre VARCHAR)
SELECT home FROM table_name_83 WHERE visitor = "grizzlies" AND leading_scorer = "rudy gay (21)"
What is the home team of the game where the Grizzlies were the visitor team and Rudy Gay (21) was the leading scorer?
CREATE TABLE table_name_83 (home VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
SELECT result FROM table_name_22 WHERE year < 2010 AND venue = "nor elverum"
What was the result of events held at Nor Elverum, prior to 2010?
CREATE TABLE table_name_22 (result VARCHAR, year VARCHAR, venue VARCHAR)
SELECT guest FROM table_25691838_2 WHERE production_code = 6021
Who were the guests in the episode with production code 6021?
CREATE TABLE table_25691838_2 (guest VARCHAR, production_code VARCHAR)
SELECT team_2 FROM table_name_76 WHERE team_1 = "vardar"
Which Team 2 has a Team 1 of vardar?
CREATE TABLE table_name_76 (team_2 VARCHAR, team_1 VARCHAR)
SELECT label FROM table_name_40 WHERE format = "cd" AND version = "original"
What is the Label of the Original CD release?
CREATE TABLE table_name_40 (label VARCHAR, format VARCHAR, version VARCHAR)
SELECT COUNT(2006) FROM table_name_31 WHERE 2004 < 3 AND 2005 > 1
What Country has a number smaller than 3 in 2004 and larger than 1 in 2005?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT COUNT(population__region_total_) FROM table_12584173_1 WHERE population__allora_ = 2132
How many population total figures are there for the year when Allora's population was 2132?
CREATE TABLE table_12584173_1 (population__region_total_ VARCHAR, population__allora_ VARCHAR)
SELECT scorers FROM table_name_31 WHERE opponent = "west germany" AND date = "october 7"
What shows for Scorers when the Opponent was west germany on October 7?
CREATE TABLE table_name_31 (scorers VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT 2011 FROM table_name_62 WHERE tournament = "tokyo"
Name the 2011 for tokyo tournament
CREATE TABLE table_name_62 (tournament VARCHAR)
SELECT chassis FROM table_name_32 WHERE engine = "climax straight-4"
What chassis was paired with climax straight-4?
CREATE TABLE table_name_32 (chassis VARCHAR, engine VARCHAR)
SELECT MAX(week) FROM table_name_7 WHERE result = "w 38-13"
Name the highest week for result of w 38-13
CREATE TABLE table_name_7 (week INTEGER, result VARCHAR)
SELECT stadium FROM table_name_3 WHERE club = "kuwait"
Which stadium had the club Kuwait?
CREATE TABLE table_name_3 (stadium VARCHAR, club VARCHAR)
SELECT green_communist FROM table_name_1 WHERE lead = "9.7%"
What is the Green-Communist percentage in the poll showing a 9.7% lead?
CREATE TABLE table_name_1 (green_communist VARCHAR, lead VARCHAR)
SELECT city FROM table_name_94 WHERE event = "ept baden classic"
In what City was the Ept Baden Classic?
CREATE TABLE table_name_94 (city VARCHAR, event VARCHAR)
SELECT SUM(against) FROM table_name_35 WHERE drawn < 2 AND position > 8 AND lost > 6
What is the sum of Against when the drawn is less than 2, the position is more than 8, and the lost is more than 6.
CREATE TABLE table_name_35 (against INTEGER, lost VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT COUNT(rank) FROM table_19870086_24 WHERE player = "Adam Gilchrist"
what is the rank of adam gilchrist
CREATE TABLE table_19870086_24 (rank VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_95 WHERE player = "steve kerr"
What nationality has steve kerr as the player?
CREATE TABLE table_name_95 (nationality VARCHAR, player VARCHAR)
SELECT winning_score FROM table_2126093_3 WHERE tournament = "Vernal Ladies"
What was the winning score of the Vernal Ladies tournament?
CREATE TABLE table_2126093_3 (winning_score VARCHAR, tournament VARCHAR)
SELECT film FROM table_name_55 WHERE category = "short film 2007 prix uip" AND director_s_ = "ian mackinnon"
What film did ian mackinnon direct that was in the short film 2007 prix uip category?
CREATE TABLE table_name_55 (film VARCHAR, category VARCHAR, director_s_ VARCHAR)
SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) LIMIT 1
What are the movie titles and average rating of the movies with the lowest average rating?
CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)
SELECT 2011 FROM table_name_40 WHERE 2005 = "2r" AND 2003 = "2r"
What was 2011, when 2005 was 2R, and when 2003 was 2R?
CREATE TABLE table_name_40 (Id VARCHAR)
SELECT country FROM table_name_91 WHERE score = 75 - 68 = 143
What Country had a Score of 75-68=143?
CREATE TABLE table_name_91 (country VARCHAR, score VARCHAR)
SELECT MAX(rank) FROM table_name_33 WHERE total = 1 AND bronze > 0
Which Rank has a Total of 1 and a Bronze larger than 0?
CREATE TABLE table_name_33 (rank INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MIN(wins) FROM table_name_17 WHERE goals_against < 39 AND losses > 2 AND ties > 0
What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0?
CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, goals_against VARCHAR, losses VARCHAR)
SELECT role FROM table_148386_2 WHERE casino_theatre_1888 = "George Broderick"
How many roles include George Broderick in the casino 1888 theater?
CREATE TABLE table_148386_2 (role VARCHAR, casino_theatre_1888 VARCHAR)
SELECT MAX(population) FROM table_name_28 WHERE municipality = "porsgrunn"
What is the highest population within the municipality of Porsgrunn?
CREATE TABLE table_name_28 (population INTEGER, municipality VARCHAR)
SELECT club FROM table_name_98 WHERE shts = 132
What is the club for the 132 SHTS?
CREATE TABLE table_name_98 (club VARCHAR, shts VARCHAR)
SELECT high_points FROM table_27700530_5 WHERE date = "October 20"
Who had the high point total on october 20?
CREATE TABLE table_27700530_5 (high_points VARCHAR, date VARCHAR)
SELECT chassis FROM table_name_18 WHERE rank = "18th"
What Chassis ranked 18th?
CREATE TABLE table_name_18 (chassis VARCHAR, rank VARCHAR)
SELECT class FROM table_name_35 WHERE rank = "admiral" AND ship = "hms frobisher"
Tell me the class for admiral and hms frobisher
CREATE TABLE table_name_35 (class VARCHAR, rank VARCHAR, ship VARCHAR)
SELECT place FROM table_name_7 WHERE score = 71 - 70 = 141
Which Place has a Score of 71-70=141?
CREATE TABLE table_name_7 (place VARCHAR, score VARCHAR)
SELECT Author FROM submission ORDER BY Scores
List the authors of submissions in ascending order of scores.
CREATE TABLE submission (Author VARCHAR, Scores VARCHAR)
SELECT commonwealth_equivalent FROM table_1015521_2 WHERE rank_in_spanish = "Coronel"
What could a spanish coronel be addressed as in the commonwealth military?
CREATE TABLE table_1015521_2 (commonwealth_equivalent VARCHAR, rank_in_spanish VARCHAR)
SELECT years FROM table_name_77 WHERE finals = "9 (3)"
What years have 9 (3) as the finals?
CREATE TABLE table_name_77 (years VARCHAR, finals VARCHAR)
SELECT song_choice FROM table_name_1 WHERE theme = "1960s"
What is the Song choice with a Theme that is 1960s?
CREATE TABLE table_name_1 (song_choice VARCHAR, theme VARCHAR)
SELECT rank FROM table_name_29 WHERE length___m__ = "75/55"
What is the rank of the arch with a length in meters of 75/55?
CREATE TABLE table_name_29 (rank VARCHAR, length___m__ VARCHAR)
SELECT entrant FROM table_21977704_1 WHERE driver = "Benedicto Campos"
Name the entrant for benedicto campos
CREATE TABLE table_21977704_1 (entrant VARCHAR, driver VARCHAR)
SELECT lok_sabha FROM table_name_13 WHERE party_affiliation = "dravida munnetra kazhagam" AND duration = "1999-04"
What is the Lok Sabha for Dravida Munnetra Kazhagam, in 1999-04?
CREATE TABLE table_name_13 (lok_sabha VARCHAR, party_affiliation VARCHAR, duration VARCHAR)
SELECT nationality FROM table_name_92 WHERE result = "4.50"
What was the nationality of the athlete with a final result of 4.50?
CREATE TABLE table_name_92 (nationality VARCHAR, result VARCHAR)
SELECT debut FROM table_1557974_1 WHERE birthplace = "Nara"
What are the debut year for wrestlers born in Nara?
CREATE TABLE table_1557974_1 (debut VARCHAR, birthplace VARCHAR)
SELECT MIN(time) FROM table_name_63 WHERE swimmer = "apostolos tsagkarakis" AND lane < 6
Tell me the least time for apostolos tsagkarakis for lane less than 6
CREATE TABLE table_name_63 (time INTEGER, swimmer VARCHAR, lane VARCHAR)
SELECT location FROM table_1137707_2 WHERE fastest_lap = "Thierry Boutsen"
What is the location of thierry boutsen?
CREATE TABLE table_1137707_2 (location VARCHAR, fastest_lap VARCHAR)
SELECT country FROM table_name_92 WHERE to_par = "e" AND player = "jay haas"
Which country is Jay Haas from when he had a to par of E?
CREATE TABLE table_name_92 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT age_1 FROM table_name_55 WHERE hometown = "reno, nv"
What is the age of the contestant from Reno, NV?
CREATE TABLE table_name_55 (age_1 VARCHAR, hometown VARCHAR)
SELECT batting_team FROM table_name_84 WHERE runs = "624"
Which batting team had 624 runs?
CREATE TABLE table_name_84 (batting_team VARCHAR, runs VARCHAR)
SELECT SUM(year) FROM table_name_59 WHERE studio_s_ = "walt disney pictures imagemovers digital"
What is Year is Walt Disney Pictures Imagemovers Digital?
CREATE TABLE table_name_59 (year INTEGER, studio_s_ VARCHAR)
SELECT COUNT(tenant) FROM table_28281704_1 WHERE country = "Russia" AND stadium = "Saransk stadium"
Name the number of tenants for russia at the saransk stadium
CREATE TABLE table_28281704_1 (tenant VARCHAR, country VARCHAR, stadium VARCHAR)
SELECT COUNT(manager) FROM table_25129482_1 WHERE kitmaker = "Puma" AND location = "Turku"
How many managers for club in Turku where kitmaker is Puma?
CREATE TABLE table_25129482_1 (manager VARCHAR, kitmaker VARCHAR, location VARCHAR)
SELECT venue FROM table_name_62 WHERE race = "carfax 250"
What is the venue of teh carfax 250 race?
CREATE TABLE table_name_62 (venue VARCHAR, race VARCHAR)
SELECT location FROM table_name_8 WHERE opponent = "clemson"
Where did they play against Clemson?
CREATE TABLE table_name_8 (location VARCHAR, opponent VARCHAR)
SELECT COUNT(television_station) FROM table_2879165_1 WHERE radio_station = "Lao National Radio"
How many television station listing have a radio station as lao national radio?
CREATE TABLE table_2879165_1 (television_station VARCHAR, radio_station VARCHAR)
SELECT theme FROM table_name_91 WHERE mintage = "3527"
What theme has a mintage of 3527?
CREATE TABLE table_name_91 (theme VARCHAR, mintage VARCHAR)
SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND IsOfficial = "T" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Dutch" AND IsOfficial = "T"
Which countries have either English or Dutch as an official language?
CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)
SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.date_of_attendance
List the id of students who attended statistics courses in the order of attendance date.
CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR, date_of_attendance VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)
SELECT AVG(crowd) FROM table_name_60 WHERE venue = "victoria park"
How people attended Victoria Park?
CREATE TABLE table_name_60 (crowd INTEGER, venue VARCHAR)
SELECT high_assists FROM table_17288869_7 WHERE high_rebounds = "Erick Dampier (8)"
Who had the high assists while Erick Dampier (8) had the high rebounds?
CREATE TABLE table_17288869_7 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT title FROM table_name_74 WHERE japan = "january 31, 2008"
Tell me the title of japan january 31, 2008
CREATE TABLE table_name_74 (title VARCHAR, japan VARCHAR)
SELECT score FROM table_name_3 WHERE record = "18–43"
What was the score of the game when the record was 18–43?
CREATE TABLE table_name_3 (score VARCHAR, record VARCHAR)
SELECT COUNT(avg_finish) FROM table_1507423_4 WHERE winnings = "$3,816,362"
How many times were the winnings $3,816,362?
CREATE TABLE table_1507423_4 (avg_finish VARCHAR, winnings VARCHAR)
SELECT COUNT(no_in_series) FROM table_23799417_1 WHERE production_code = 202
How many series had a production code of 202?
CREATE TABLE table_23799417_1 (no_in_series VARCHAR, production_code VARCHAR)
SELECT longitude FROM table_name_27 WHERE latitude = "61.0s"
What is the Longitude of the 61.0s Latitude?
CREATE TABLE table_name_27 (longitude VARCHAR, latitude VARCHAR)
SELECT high_rebounds FROM table_name_50 WHERE high_points = "chris bosh (18)"
Which High rebounds have High points of chris bosh (18)?
CREATE TABLE table_name_50 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT john_edwards FROM table_name_41 WHERE john_kerry = "70%"
What is John Edwards, when John Kerry is "70%"?
CREATE TABLE table_name_41 (john_edwards VARCHAR, john_kerry VARCHAR)
SELECT league FROM table_15475116_1 WHERE school = "Delaware Military Academy"
What league does Delaware Military Academy belong to
CREATE TABLE table_15475116_1 (league VARCHAR, school VARCHAR)
SELECT country FROM table_name_55 WHERE year = "1899"
Which country had a tower destroyed in 1899?
CREATE TABLE table_name_55 (country VARCHAR, year VARCHAR)
SELECT AVG(wins) FROM table_name_26 WHERE top_5 = 6
Which Wins has a Top-5 of 6?
CREATE TABLE table_name_26 (wins INTEGER, top_5 VARCHAR)
SELECT MAX(engine_capacity) FROM table_name_25 WHERE manufacturer = "bmw" AND mpg_uk_extra_urban = 52.3 AND co_2_g_km = 176 AND mpg_us_urban > 27.3
What is the highest engine capacity with a bmw manufacturer, an mpg-UK extra-urban of 52.3, a 176 CO 2 g/km, and an mpg-us urban greater than 27.3?
CREATE TABLE table_name_25 (engine_capacity INTEGER, mpg_us_urban VARCHAR, co_2_g_km VARCHAR, manufacturer VARCHAR, mpg_uk_extra_urban VARCHAR)
SELECT holmenkollen FROM table_174491_2 WHERE fis_nordic_world_ski_championships = "1982"
What is the holmenkollen for the 1982 FIS Nordic World Ski Championships?
CREATE TABLE table_174491_2 (holmenkollen VARCHAR, fis_nordic_world_ski_championships VARCHAR)