question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What college club team did the Dallas Stars choose their draft pick from?
CREATE TABLE table_2886617_9 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT college_junior_club_team FROM table_2886617_9 WHERE nhl_team = "Dallas Stars"
What school is from 45 Lake county and is located in Merrillville?
CREATE TABLE table_name_32 (school VARCHAR, county VARCHAR, location VARCHAR)
SELECT school FROM table_name_32 WHERE county = "45 lake" AND location = "merrillville"
What is the least number of Races for a Racer with less than 0 Points?
CREATE TABLE table_name_31 (races INTEGER, points INTEGER)
SELECT MIN(races) FROM table_name_31 WHERE points < 0
What was the record for the game that had a score of 105-72?
CREATE TABLE table_name_45 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_45 WHERE score = "105-72"
Which Density (2005) has an Area (km²) of 340086.7, and a Population (2005) smaller than 5926300?
CREATE TABLE table_name_25 (density__2005_ INTEGER, area__km²_ VARCHAR, population__2005_ VARCHAR)
SELECT SUM(density__2005_) FROM table_name_25 WHERE area__km²_ = 340086.7 AND population__2005_ < 5926300
What is the highest gold when bronze is 1, and rank is 5?
CREATE TABLE table_name_93 (gold INTEGER, bronze VARCHAR, rank VARCHAR)
SELECT MAX(gold) FROM table_name_93 WHERE bronze = 1 AND rank = 5
Find the titles of all movies directed by steven spielberg.
CREATE TABLE Movie (title VARCHAR, director VARCHAR)
SELECT title FROM Movie WHERE director = 'Steven Spielberg'
What was the Final Venue having Sheffield Reserves as the Winner?
CREATE TABLE table_name_17 (final_venue VARCHAR, winner VARCHAR)
SELECT final_venue FROM table_name_17 WHERE winner = "sheffield reserves"
When did the wind farm in Musselshell started service?
CREATE TABLE table_24837750_1 (date_in_service VARCHAR, county VARCHAR)
SELECT date_in_service FROM table_24837750_1 WHERE county = "Musselshell"
Which Position has a Team from of ottawa 67's, and a Pick # smaller than 47?
CREATE TABLE table_name_99 (position VARCHAR, team_from VARCHAR, pick__number VARCHAR)
SELECT position FROM table_name_99 WHERE team_from = "ottawa 67's" AND pick__number < 47
What is the total word count with a subframe count greater than 3?
CREATE TABLE table_name_43 (word__number INTEGER, subframe__number INTEGER)
SELECT SUM(word__number) FROM table_name_43 WHERE subframe__number > 3
How much cash was on hand after debt of $82,741?
CREATE TABLE table_name_93 (cash_on_hand VARCHAR, after_debt VARCHAR)
SELECT cash_on_hand FROM table_name_93 WHERE after_debt = "$82,741"
Which Services have a Local authority of chiltern, and a Zone 2010 of 9?
CREATE TABLE table_name_94 (services VARCHAR, local_authority VARCHAR, zone_2010 VARCHAR)
SELECT services FROM table_name_94 WHERE local_authority = "chiltern" AND zone_2010 = "9"
What is the highest game with a 24-23 record?
CREATE TABLE table_name_62 (game INTEGER, record VARCHAR)
SELECT MAX(game) FROM table_name_62 WHERE record = "24-23"
What is Tournament, when 1996 is "1R", and when 1990 is "SF"?
CREATE TABLE table_name_92 (tournament VARCHAR)
SELECT tournament FROM table_name_92 WHERE 1996 = "1r" AND 1990 = "sf"
find the number of medicines offered by each trade.
CREATE TABLE medicine (trade_name VARCHAR)
SELECT trade_name, COUNT(*) FROM medicine GROUP BY trade_name
WHAT IS THE SIGN OF ZODIAC OF മീനം?
CREATE TABLE table_name_58 (sign_of_zodiac VARCHAR, in_malayalam VARCHAR)
SELECT sign_of_zodiac FROM table_name_58 WHERE in_malayalam = "മീനം"
What is the sum for the long that has 926 yards and an avg/g less than 84.2?
CREATE TABLE table_name_47 (long INTEGER, yards VARCHAR, avg_g VARCHAR)
SELECT SUM(long) FROM table_name_47 WHERE yards = 926 AND avg_g < 84.2
What is the date of the Mosport Park circuit?
CREATE TABLE table_name_34 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_34 WHERE circuit = "mosport park"
What is the lowest points when the ranking is 1st?
CREATE TABLE table_name_60 (points INTEGER, rank VARCHAR)
SELECT MIN(points) FROM table_name_60 WHERE rank = "1st"
What is the latest year that shadow racing team scored more than 0 points?
CREATE TABLE table_name_13 (year INTEGER, entrant VARCHAR, pts VARCHAR)
SELECT MAX(year) FROM table_name_13 WHERE entrant = "shadow racing team" AND pts > 0
what is the record where the locaiton is tampa, fl and the opponent is louisville?
CREATE TABLE table_23346303_3 (record VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT record FROM table_23346303_3 WHERE location = "Tampa, FL" AND opponent = "Louisville"
What competition has 17-1 as the result?
CREATE TABLE table_name_71 (competition VARCHAR, result VARCHAR)
SELECT competition FROM table_name_71 WHERE result = "17-1"
What is the best preliminary for a contestant from New Mexico with interview less than 9.533?
CREATE TABLE table_name_35 (preliminary INTEGER, state VARCHAR, interview VARCHAR)
SELECT MAX(preliminary) FROM table_name_35 WHERE state = "new mexico" AND interview < 9.533
When was someone first elected in the district with incumbent john smith?
CREATE TABLE table_2668378_18 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_2668378_18 WHERE incumbent = "John Smith"
Which Title has a Year smaller than 2001, and an Award of independent spirit awards?
CREATE TABLE table_name_14 (title VARCHAR, year VARCHAR, award VARCHAR)
SELECT title FROM table_name_14 WHERE year < 2001 AND award = "independent spirit awards"
What's the area coordinator for the municipality with 1715 people living in it in 2010?
CREATE TABLE table_2402209_1 (area_coordinator VARCHAR, population__2010_ VARCHAR)
SELECT area_coordinator FROM table_2402209_1 WHERE population__2010_ = 1715
What is the most draws when less than 154 goals were conceded, and less than 36 games played?
CREATE TABLE table_name_74 (draws INTEGER, goals_conceded VARCHAR, games_played VARCHAR)
SELECT MAX(draws) FROM table_name_74 WHERE goals_conceded < 154 AND games_played < 36
How many points did the Falcons score when the record was 4-4?
CREATE TABLE table_16710971_2 (falcons_points VARCHAR, record VARCHAR)
SELECT falcons_points FROM table_16710971_2 WHERE record = "4-4"
What is the total qual where the grid number is 24?
CREATE TABLE table_name_57 (qual INTEGER, grid VARCHAR)
SELECT SUM(qual) FROM table_name_57 WHERE grid = 24
What is the total of the player who won before 1991 and has a to par less than 14?
CREATE TABLE table_name_74 (total VARCHAR, year_won VARCHAR, to_par VARCHAR)
SELECT COUNT(total) FROM table_name_74 WHERE year_won < 1991 AND to_par < 14
What was the score when the spurs were the visitors?
CREATE TABLE table_name_43 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_43 WHERE visitor = "spurs"
How many ships ended up being 'Captured'?
CREATE TABLE ship (disposition_of_ship VARCHAR)
SELECT COUNT(*) FROM ship WHERE disposition_of_ship = 'Captured'
What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?
CREATE TABLE Lessons (staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT AVG(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
Return the name, location and district of all shops in descending order of number of products.
CREATE TABLE shop (name VARCHAR, LOCATION VARCHAR, district VARCHAR, number_products VARCHAR)
SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC
What is the frequency when radio station branding is 106.3 energy fm naga?
CREATE TABLE table_23915973_1 (frequency VARCHAR, branding VARCHAR)
SELECT frequency FROM table_23915973_1 WHERE branding = "106.3 Energy FM Naga"
How many copoes per particle are created in the segment that forms inner shell of the core?
CREATE TABLE table_140968_1 (copies_per_particle VARCHAR, location VARCHAR)
SELECT copies_per_particle FROM table_140968_1 WHERE location = "Forms inner shell of the core"
Who directed the episode that aired November 21, 2003?
CREATE TABLE table_28859177_2 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT directed_by FROM table_28859177_2 WHERE original_air_date = "November 21, 2003"
What was the time/retired for the car raced by Simone Grotzkyj?
CREATE TABLE table_name_94 (time_retired VARCHAR, rider VARCHAR)
SELECT time_retired FROM table_name_94 WHERE rider = "simone grotzkyj"
where did hancock get 3.09%
CREATE TABLE table_19681738_1 (county VARCHAR, hancock__percentage VARCHAR)
SELECT county FROM table_19681738_1 WHERE hancock__percentage = "3.09%"
what is the most losses when the club is terang and draws is less than 0?
CREATE TABLE table_name_75 (losses INTEGER, club VARCHAR, draws VARCHAR)
SELECT MAX(losses) FROM table_name_75 WHERE club = "terang" AND draws < 0
How many height entries are there for players from bayside high school?
CREATE TABLE table_22496374_1 (height VARCHAR, high_school VARCHAR)
SELECT COUNT(height) FROM table_22496374_1 WHERE high_school = "Bayside"
How many Attendance in a match which scores 0:0 - 4:1 (pen)
CREATE TABLE table_name_98 (attendance INTEGER, score VARCHAR)
SELECT AVG(attendance) FROM table_name_98 WHERE score = "0:0 - 4:1 (pen)"
WHAT IS THE ROUND FROM MICHIGAN COLLEGE, AND OVERALL LARGER THAN 37?
CREATE TABLE table_name_55 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT SUM(round) FROM table_name_55 WHERE college = "michigan" AND overall > 37
What days held has 1 as the reign with eden black as the wrestlers?
CREATE TABLE table_name_2 (days_held VARCHAR, reign VARCHAR, wrestlers VARCHAR)
SELECT days_held FROM table_name_2 WHERE reign = "1" AND wrestlers = "eden black"
What is the average Against, when Status is "2007 Rugby World Cup", and when Opposing Teams is "U.S.A."?
CREATE TABLE table_name_74 (against INTEGER, status VARCHAR, opposing_teams VARCHAR)
SELECT AVG(against) FROM table_name_74 WHERE status = "2007 rugby world cup" AND opposing_teams = "u.s.a."
What is the Top-25 with an Events of 20, and a Wins larger than 2?
CREATE TABLE table_name_45 (top_25 INTEGER, events VARCHAR, wins VARCHAR)
SELECT AVG(top_25) FROM table_name_45 WHERE events = 20 AND wins > 2
What are the names of nations where both English and French are official languages?
CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)
SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "French" AND T2.IsOfficial = "T"
What horse was shown by with Britta Näpel and got less than 71.909?
CREATE TABLE table_name_61 (horse VARCHAR, athlete VARCHAR, result VARCHAR)
SELECT horse FROM table_name_61 WHERE athlete = "britta näpel" AND result < 71.909
What is the number of positions that have 2012 ratings of 0.92?
CREATE TABLE table_name_21 (position VARCHAR)
SELECT COUNT(position) FROM table_name_21 WHERE 2012 = "0.92"
How many values of r z (arcsecond) correspond with a r y (arcsecond) value of −0.247?
CREATE TABLE table_15318324_1 (r_z___arcsecond__ VARCHAR, r_y___arcsecond__ VARCHAR)
SELECT r_z___arcsecond__ FROM table_15318324_1 WHERE r_y___arcsecond__ = "−0.247"
What is the Equatorial diameter of the Body: ceres?
CREATE TABLE table_name_33 (equatorial_diameter VARCHAR, body VARCHAR)
SELECT equatorial_diameter FROM table_name_33 WHERE body = "ceres"
Which School has Ages of 11-16, and an Ofsted smaller than 106142, and a Capacity of 1206?
CREATE TABLE table_name_65 (school VARCHAR, capacity VARCHAR, ages VARCHAR, ofsted VARCHAR)
SELECT school FROM table_name_65 WHERE ages = "11-16" AND ofsted < 106142 AND capacity = 1206
What is the average crowd size for the home team hawthorn?
CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_13 WHERE home_team = "hawthorn"
What was the margin of victory over Steve Rintoul?
CREATE TABLE table_name_61 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT margin_of_victory FROM table_name_61 WHERE runner_s__up = "steve rintoul"
What's the IS-3 when the KV-1S is 45?
CREATE TABLE table_name_72 (is_3_m1945 VARCHAR, kv_1s_m1942 VARCHAR)
SELECT is_3_m1945 FROM table_name_72 WHERE kv_1s_m1942 = "45"
What is the attendance of week 12?
CREATE TABLE table_name_63 (attendance INTEGER, week VARCHAR)
SELECT MIN(attendance) FROM table_name_63 WHERE week = 12
What is the title of series episode 11-05's segment d?
CREATE TABLE table_15187735_11 (segment_d VARCHAR, series_ep VARCHAR)
SELECT segment_d FROM table_15187735_11 WHERE series_ep = "11-05"
Who was the finalist when the final venue was Varese?
CREATE TABLE table_19651669_1 (finalist VARCHAR, final_venue VARCHAR)
SELECT finalist FROM table_19651669_1 WHERE final_venue = "Varese"
What is the highest attendance for week 1?
CREATE TABLE table_name_63 (attendance INTEGER, week INTEGER)
SELECT MAX(attendance) FROM table_name_63 WHERE week < 1
The Utah Jazz Player from UTEP was what nationality?
CREATE TABLE table_name_51 (nationality VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_name_51 WHERE school_club_team = "utep"
What was the highest Pick # for the College of Simon Fraser?
CREATE TABLE table_name_14 (pick__number INTEGER, college VARCHAR)
SELECT MAX(pick__number) FROM table_name_14 WHERE college = "simon fraser"
Who is the driver that has a crew chief Gary Ritter?
CREATE TABLE table_name_18 (driver_s_ VARCHAR, crew_chief VARCHAR)
SELECT driver_s_ FROM table_name_18 WHERE crew_chief = "gary ritter"
What date was fitzroy the home team?
CREATE TABLE table_name_2 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_2 WHERE home_team = "fitzroy"
How many list entry numbers are located in Platting Road, Lydgate?
CREATE TABLE table_name_95 (list_entry_number VARCHAR, location VARCHAR)
SELECT COUNT(list_entry_number) FROM table_name_95 WHERE location = "platting road, lydgate"
What position belonged to the player from Paramus, New Jersey?
CREATE TABLE table_11677691_10 (position VARCHAR, hometown VARCHAR)
SELECT position FROM table_11677691_10 WHERE hometown = "Paramus, New Jersey"
Name the agg for seba united
CREATE TABLE table_name_12 (agg VARCHAR, team_1 VARCHAR)
SELECT agg FROM table_name_12 WHERE team_1 = "seba united"
Which To par has a Country of united states, and a Score of 71-70=141?
CREATE TABLE table_name_14 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_14 WHERE country = "united states" AND score = 71 - 70 = 141
What is the To par when the score was 72-67-68-71=278?
CREATE TABLE table_name_20 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_20 WHERE score = 72 - 67 - 68 - 71 = 278
How many different scores are there for the Verizon Classic?
CREATE TABLE table_11603006_1 (score VARCHAR, tournament VARCHAR)
SELECT COUNT(score) FROM table_11603006_1 WHERE tournament = "Verizon Classic"
Which Date has a Record of 21–10?
CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_43 WHERE record = "21–10"
What is the modern equivalent of the former kingdom "silla" with the hanja 尙州?
CREATE TABLE table_160510_1 (modern_equivalent VARCHAR, former_kingdom VARCHAR, hanja VARCHAR)
SELECT COUNT(modern_equivalent) FROM table_160510_1 WHERE former_kingdom = "Silla" AND hanja = "尙州"
What was the losing bonus that had 1 draw and a 10 try bonus?
CREATE TABLE table_name_51 (losing_bonus VARCHAR, drawn VARCHAR, try_bonus VARCHAR)
SELECT losing_bonus FROM table_name_51 WHERE drawn = "1" AND try_bonus = "10"
what is the b score when the a score is 6.9?
CREATE TABLE table_name_6 (b_score VARCHAR, a_score VARCHAR)
SELECT b_score FROM table_name_6 WHERE a_score = 6.9
How many were promoted from the league when Esher was relegated to the league?
CREATE TABLE table_23927423_4 (promoted_from_league VARCHAR, relegated_to_league VARCHAR)
SELECT COUNT(promoted_from_league) FROM table_23927423_4 WHERE relegated_to_league = "Esher"
What was the entrant in round 16 were Ferrari was the constructor?
CREATE TABLE table_name_70 (entrant VARCHAR, rounds VARCHAR, constructor VARCHAR)
SELECT entrant FROM table_name_70 WHERE rounds = "16" AND constructor = "ferrari"
What US Country released an album of singles only in 1967?
CREATE TABLE table_name_30 (us_country VARCHAR, album VARCHAR, year VARCHAR)
SELECT us_country FROM table_name_30 WHERE album = "singles only" AND year = 1967
For the tournament ending with a margin of victory of 6 strokes, what was the winning score?
CREATE TABLE table_name_90 (winning_score VARCHAR, margin_of_victory VARCHAR)
SELECT winning_score FROM table_name_90 WHERE margin_of_victory = "6 strokes"
Name the injunctive for गर्यो garyo 'he did'
CREATE TABLE table_16337329_5 (injunctive VARCHAR, past_habitual VARCHAR)
SELECT injunctive FROM table_16337329_5 WHERE past_habitual = "गर्यो garyo 'he did'"
what's the party with incumbent being herbert covington bonner
CREATE TABLE table_1341930_33 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341930_33 WHERE incumbent = "Herbert Covington Bonner"
What grid has an average time of +22.505 and laps larger than 23?
CREATE TABLE table_name_7 (grid INTEGER, time VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_7 WHERE time = "+22.505" AND laps > 23
How many celebrities had an 18October2007 Original air Date?
CREATE TABLE table_11642945_1 (celebrity VARCHAR, original_air_date VARCHAR)
SELECT COUNT(celebrity) FROM table_11642945_1 WHERE original_air_date = "18October2007"
What town has the population of 777?
CREATE TABLE table_2562572_39 (cyrillic_name_other_names VARCHAR, population__2011_ VARCHAR)
SELECT cyrillic_name_other_names FROM table_2562572_39 WHERE population__2011_ = "777"
What type of motorsport has a session of pre-race test?
CREATE TABLE table_name_93 (discipline VARCHAR, session VARCHAR)
SELECT discipline FROM table_name_93 WHERE session = "pre-race test"
What is the average rank for team cle when the BB/SO is 10.89?
CREATE TABLE table_name_97 (rank INTEGER, team VARCHAR, bb_so VARCHAR)
SELECT AVG(rank) FROM table_name_97 WHERE team = "cle" AND bb_so = 10.89
What is the name of the producer that produced a film with a production cost of $1,000,000?
CREATE TABLE table_name_71 (producer VARCHAR, production_cost VARCHAR)
SELECT producer FROM table_name_71 WHERE production_cost = "$1,000,000"
Who is J.E. Armstrong when W.H. Archer is D.M. Lawson?
CREATE TABLE table_1320857_1 (je_armstrong VARCHAR, wh_archer VARCHAR)
SELECT je_armstrong FROM table_1320857_1 WHERE wh_archer = "D.M. Lawson"
what is the number of attendance on june 24
CREATE TABLE table_name_8 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_8 WHERE date = "june 24"
What is the away team's score when south melbourne is the away team?
CREATE TABLE table_name_36 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_36 WHERE away_team = "south melbourne"
What's Salem State University's primary conference?
CREATE TABLE table_1974545_2 (primary_conference VARCHAR, institution VARCHAR)
SELECT primary_conference FROM table_1974545_2 WHERE institution = "Salem State University"
What is Pegasus' right ascension with a 7318a NGC?
CREATE TABLE table_name_67 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_67 WHERE constellation = "pegasus" AND ngc_number = "7318a"
What location is nicknamed the 49ers?
CREATE TABLE table_255188_3 (location VARCHAR, nickname VARCHAR)
SELECT location FROM table_255188_3 WHERE nickname = "49ers"
Which team has a 59.8% completion rate?
CREATE TABLE table_name_16 (team VARCHAR, completion__percentage VARCHAR)
SELECT team FROM table_name_16 WHERE completion__percentage = "59.8%"
Who was runner-up at Berlin when the result was 2-0 with 100,000 fans in attendance?
CREATE TABLE table_name_20 (runner_up VARCHAR, attendance VARCHAR, venue VARCHAR, result VARCHAR)
SELECT runner_up FROM table_name_20 WHERE venue = "berlin" AND result = "2-0" AND attendance = "100,000"
When was the season finale that ranked 20th?
CREATE TABLE table_27553627_2 (season VARCHAR, rank VARCHAR)
SELECT season AS finale FROM table_27553627_2 WHERE rank = "20th"
Name the catalog number for am/pm callanetics
CREATE TABLE table_27303975_2 (catalog_number VARCHAR, title VARCHAR)
SELECT catalog_number FROM table_27303975_2 WHERE title = "AM/PM Callanetics"
What was the final score of the game held on February 24?
CREATE TABLE table_22883210_8 (score VARCHAR, date VARCHAR)
SELECT score FROM table_22883210_8 WHERE date = "February 24"
What are all the labels?
CREATE TABLE Albums (label VARCHAR)
SELECT DISTINCT label FROM Albums
Name the date with visiting team of philadelphia eagles
CREATE TABLE table_name_47 (date VARCHAR, visiting_team VARCHAR)
SELECT date FROM table_name_47 WHERE visiting_team = "philadelphia eagles"
what was the builder in 1929
CREATE TABLE table_name_22 (builder VARCHAR, year_built VARCHAR)
SELECT builder FROM table_name_22 WHERE year_built = "1929"