answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT right_ascension___j2000__ FROM table_name_67 WHERE constellation = "pegasus" AND ngc_number = "7318a"
What is Pegasus' right ascension with a 7318a NGC?
CREATE TABLE table_name_67 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR)
SELECT MAX(points) FROM table_name_72 WHERE year > 1950 AND engine = "offenhauser l4" AND entrant = "brown motors"
What is Brown Motors best point total using the Offenhauser L4 engine since 1950?
CREATE TABLE table_name_72 (points INTEGER, entrant VARCHAR, year VARCHAR, engine VARCHAR)
SELECT show FROM table_name_15 WHERE network__last_aired_ = "abc" AND last_aired > 2002
What show was played on ABC laster after 2002?
CREATE TABLE table_name_15 (show VARCHAR, network__last_aired_ VARCHAR, last_aired VARCHAR)
SELECT year FROM table_name_43 WHERE category = "best female pop vocal album" AND result = "won"
Name the year with the best female pop vocal album and result of won
CREATE TABLE table_name_43 (year VARCHAR, category VARCHAR, result VARCHAR)
SELECT pick FROM table_name_58 WHERE player = "chuck bryant" AND nfl_club = "san diego chargers"
Which Pick has a Player of chuck bryant, and an NFL Club of san diego chargers?
CREATE TABLE table_name_58 (pick VARCHAR, player VARCHAR, nfl_club VARCHAR)
SELECT MIN(games_played) FROM table_14181578_1 WHERE goals_for_against = "7-5"
what is the minimum games played with goals for/against being 7-5
CREATE TABLE table_14181578_1 (games_played INTEGER, goals_for_against VARCHAR)
SELECT third FROM table_name_43 WHERE round = "14"
Who was third in round 14?
CREATE TABLE table_name_43 (third VARCHAR, round VARCHAR)
SELECT COUNT(DISTINCT LEVEL) FROM member
How many different levels do members have?
CREATE TABLE member (LEVEL VARCHAR)
SELECT 2010 FROM table_name_77 WHERE 2007 = "a" AND 2012 = "a"
Name the 2010 for 2007 of a and 2012 of a
CREATE TABLE table_name_77 (Id VARCHAR)
SELECT attendance FROM table_name_89 WHERE guest = "fk mogren"
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 away_team AS score FROM table_name_32 WHERE away_team = "fitzroy"
What was the away team score, when the away team was Fitzroy?
CREATE TABLE table_name_32 (away_team VARCHAR)
SELECT home__1st_leg_ FROM table_17968233_2 WHERE aggregate = "3-4"
If the aggregate is 3-4, what is the first leg?
CREATE TABLE table_17968233_2 (home__1st_leg_ VARCHAR, aggregate VARCHAR)
SELECT proto_austronesian FROM table_15568886_14 WHERE kinship = "father"
Name the ptor-austronesian for father
CREATE TABLE table_15568886_14 (proto_austronesian VARCHAR, kinship VARCHAR)
SELECT class FROM table_name_91 WHERE verb_meaning = "to run"
Which class has the verb meaning of to run?
CREATE TABLE table_name_91 (class VARCHAR, verb_meaning VARCHAR)
SELECT attendance FROM table_name_15 WHERE date = "october 31, 1965"
What is the Attendance with a Date that is october 31, 1965?
CREATE TABLE table_name_15 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(year) FROM table_16308030_1 WHERE time = "1:42.086"
How many years have a time of 1:42.086?
CREATE TABLE table_16308030_1 (year VARCHAR, time VARCHAR)
SELECT Name FROM musical WHERE NOT Musical_ID IN (SELECT Musical_ID FROM actor)
List the name of musicals that do not have actors.
CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Name VARCHAR, Musical_ID VARCHAR)
SELECT format FROM table_name_81 WHERE catalogue = "asw 40362"
What format has a catalogue of asw 40362?
CREATE TABLE table_name_81 (format VARCHAR, catalogue VARCHAR)
SELECT score FROM table_name_58 WHERE date = "august 17"
Which score has a Date of august 17?
CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR)
SELECT AVG(pop_¹) FROM table_name_75 WHERE region = "chūgoku" AND prefecture = "okayama"
Name the average pop for chūgoku and prefecture of okayama
CREATE TABLE table_name_75 (pop_¹ INTEGER, region VARCHAR, prefecture VARCHAR)
SELECT AVG(zone) FROM table_name_54 WHERE stations = "waddon railway station" AND platforms > 2
Name the average zone for waddon railway station and has more than 2 platforms
CREATE TABLE table_name_54 (zone INTEGER, stations VARCHAR, platforms VARCHAR)
SELECT MIN(grid) FROM table_name_6 WHERE time_retired = "collision" AND driver = "pedro diniz"
What is the smallest grid with collision as the Time/Retired for pedro diniz?
CREATE TABLE table_name_6 (grid INTEGER, time_retired VARCHAR, driver VARCHAR)
SELECT year FROM table_name_67 WHERE 2004 = "shake don't stir"
What year is the 2004 shake don't stir?
CREATE TABLE table_name_67 (year VARCHAR)
SELECT COUNT(goals) FROM table_name_62 WHERE transfer_fee = "£2,500,000"
how many times is the transfer fee £2,500,000?
CREATE TABLE table_name_62 (goals VARCHAR, transfer_fee VARCHAR)
SELECT match FROM table_name_90 WHERE "stadium" = "stadium"
When the game was played in the stadium called stadium what was the match?
CREATE TABLE table_name_90 (match VARCHAR)
SELECT MAX(high_schools) FROM table_2367847_2 WHERE district_wide = 31851
Name the most high schools for 31851
CREATE TABLE table_2367847_2 (high_schools INTEGER, district_wide VARCHAR)
SELECT MIN(bask) FROM table_name_73 WHERE indoor_track = "0" AND swimming = "5"
Which Bask has an Indoor track of 0, and a Swimming of 5?
CREATE TABLE table_name_73 (bask INTEGER, indoor_track VARCHAR, swimming VARCHAR)
SELECT date FROM table_name_40 WHERE week = 6
On what date did week 6 occur?
CREATE TABLE table_name_40 (date VARCHAR, week VARCHAR)
SELECT AVG(average) FROM table_name_34 WHERE swimsuit < 9.545 AND state = "iowa" AND evening_gown > 9.625
What is the average of the swimsuit smaller than 9.545 , of Iowa, with an evening gown larger than 9.625?
CREATE TABLE table_name_34 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, state VARCHAR)
SELECT 2011 AS _passengers__in_millions_ FROM table_name_37 WHERE distance = "1271km"
What is the number of 2011 passengers in millions that have traveled a distance of 1271km?
CREATE TABLE table_name_37 (distance VARCHAR)
SELECT record FROM table_name_72 WHERE game = 19
Can you tell me the Record that has the Game of 19?
CREATE TABLE table_name_72 (record VARCHAR, game VARCHAR)
SELECT team FROM table_name_19 WHERE high_assists = "earl watson (6)" AND date = "january 19"
Which team was played against on the game where Earl Watson (6) had the highest assists on January 19?
CREATE TABLE table_name_19 (team VARCHAR, high_assists VARCHAR, date VARCHAR)
SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg"
Name the name that has moving of 1. fc nürnberg.
CREATE TABLE table_name_9 (name VARCHAR, moving_from VARCHAR)
SELECT date FROM table_name_65 WHERE opponents_in_the_final = "akgul amanmuradova nina bratchikova"
Which date has opponents, Akgul Amanmuradova Nina Bratchikova, in the final?
CREATE TABLE table_name_65 (date VARCHAR, opponents_in_the_final VARCHAR)
SELECT wins FROM table_name_34 WHERE losses = "ipl"
Which win has a loss of IPL?
CREATE TABLE table_name_34 (wins VARCHAR, losses VARCHAR)
SELECT score FROM table_name_20 WHERE tournament = "washington"
What was the score of the Washington tournament?
CREATE TABLE table_name_20 (score VARCHAR, tournament VARCHAR)
SELECT COUNT(theme) FROM table_21501564_1 WHERE original_artist = "Duffy"
How many weeks featured duffy as the original artist?
CREATE TABLE table_21501564_1 (theme VARCHAR, original_artist VARCHAR)
SELECT AVG(laps) FROM table_name_49 WHERE finish = "23"
What is the average lap of the race with a 23 finish?
CREATE TABLE table_name_49 (laps INTEGER, finish VARCHAR)
SELECT name, Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC
Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.
CREATE TABLE visitor (name VARCHAR, Level_of_membership INTEGER, age VARCHAR)
SELECT COUNT(incumbent) FROM table_1341865_44 WHERE district = "Tennessee 5"
how many incumbent with district  being tennessee 5
CREATE TABLE table_1341865_44 (incumbent VARCHAR, district VARCHAR)
SELECT SUM(laps) FROM table_name_19 WHERE team = "mi-jack conquest racing" AND points < 11
Name the sum of laps for mi-jack conquest racing and points less than 11
CREATE TABLE table_name_19 (laps INTEGER, team VARCHAR, points VARCHAR)
SELECT 2004 FROM table_name_36 WHERE 2007 = "a" AND 1997 = "a"
What is 2004, when 2007 is "A", and when 1997 is "A"?
CREATE TABLE table_name_36 (Id VARCHAR)
SELECT game FROM table_name_13 WHERE opponent = "@ washington wizards"
Which Game has an Opponent of @ washington wizards?
CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR)
SELECT high_rebounds FROM table_30047613_12 WHERE date = "April 13"
in april 13 who made the high rebounds
CREATE TABLE table_30047613_12 (high_rebounds VARCHAR, date VARCHAR)
SELECT SUM(skin_depth), _inches FROM table_name_30 WHERE resistivity__10_−6_ohm_inches_ = 1.12 AND relative_permeability > 1
What is the sum of skin depth with a resistivity of 1.12 and a relative permeability larger than 1?
CREATE TABLE table_name_30 (_inches VARCHAR, skin_depth INTEGER, resistivity__10_−6_ohm_inches_ VARCHAR, relative_permeability VARCHAR)
SELECT nationality FROM table_name_41 WHERE player = "andrew campbell"
What is Nationality, when Player is "Andrew Campbell"?
CREATE TABLE table_name_41 (nationality VARCHAR, player VARCHAR)
SELECT birthdate FROM table_name_63 WHERE defining_characteristics = "pink hair"
What is the birth date of the member with the Defining characteristic of pink hair?
CREATE TABLE table_name_63 (birthdate VARCHAR, defining_characteristics VARCHAR)
SELECT record FROM table_name_83 WHERE date = "june 4"
What was the record on june 4?
CREATE TABLE table_name_83 (record VARCHAR, date VARCHAR)
SELECT player FROM table_name_63 WHERE pick__number = 7
Name the player with pick number of 7
CREATE TABLE table_name_63 (player VARCHAR, pick__number VARCHAR)
SELECT event FROM table_name_98 WHERE method = "dq (eye gouging)"
What event did Mikhail Avetisyan win by method of DQ (eye gouging)?
CREATE TABLE table_name_98 (event VARCHAR, method VARCHAR)
SELECT _number FROM table_29418619_1 WHERE hometown = "Tampa, FL"
What number is the player whose hometown is Tampa, FL?
CREATE TABLE table_29418619_1 (_number VARCHAR, hometown VARCHAR)
SELECT COUNT(crowd) FROM table_name_96 WHERE away_team = "fitzroy"
What is the crowd size of the game when Fitzroy is the away team?
CREATE TABLE table_name_96 (crowd VARCHAR, away_team VARCHAR)
SELECT platform FROM table_name_38 WHERE actual_version = "0.147"
Which platform has an Actual version of 0.147?
CREATE TABLE table_name_38 (platform VARCHAR, actual_version VARCHAR)
SELECT sport FROM table_name_22 WHERE club = "montgomery biscuits"
Which sport had the club of the Montgomery Biscuits?
CREATE TABLE table_name_22 (sport VARCHAR, club VARCHAR)
SELECT stadium FROM table_14102379_4 WHERE record = "1–1"
what's the stadium with record being 1–1
CREATE TABLE table_14102379_4 (stadium VARCHAR, record VARCHAR)
SELECT cbs_airdate FROM table_name_26 WHERE episode < 70 AND airdate__usa_ = "1 april 2005"
What is the CBS airdate of the episode with a number under 70 with a USA airdate of 1 April 2005?
CREATE TABLE table_name_26 (cbs_airdate VARCHAR, episode VARCHAR, airdate__usa_ VARCHAR)
SELECT capital FROM table_1404456_1 WHERE area__km_2__ = "12,245.9"
what's the capital with area (km 2 ) being 12,245.9
CREATE TABLE table_1404456_1 (capital VARCHAR, area__km_2__ VARCHAR)
SELECT run_2 FROM table_name_18 WHERE final = "5:24.47"
Which run 2 with final of 5:24.47?
CREATE TABLE table_name_18 (run_2 VARCHAR, final VARCHAR)
SELECT score FROM table_name_68 WHERE date = "april 11, 2007"
What was the final score for the match held on April 11, 2007?
CREATE TABLE table_name_68 (score VARCHAR, date VARCHAR)
SELECT MAX(field_goals) FROM table_23184448_4 WHERE player = "Alexis Yackley"
Name the field goals for alexis yackley
CREATE TABLE table_23184448_4 (field_goals INTEGER, player VARCHAR)
SELECT score FROM table_15869204_6 WHERE game = 31
WHAT WAS THE SCORE FOR GAME 31?
CREATE TABLE table_15869204_6 (score VARCHAR, game VARCHAR)
SELECT team FROM table_name_87 WHERE penalty = "roughing" AND player = "ryan callahan"
What team was Ryan Callahan, who received a penalty for roughing, playing for?
CREATE TABLE table_name_87 (team VARCHAR, penalty VARCHAR, player VARCHAR)
SELECT total FROM table_26980923_2 WHERE stadium = "Rugby Park"
What was the total attendance at rugby park?
CREATE TABLE table_26980923_2 (total VARCHAR, stadium VARCHAR)
SELECT attendance FROM table_name_53 WHERE opponent = "jacksonville jaguars"
What is the Attendance of the game against Jacksonville Jaguars?
CREATE TABLE table_name_53 (attendance VARCHAR, opponent VARCHAR)
SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001
What were all the salary values of players in 2010 and 2001?
CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR)
SELECT SUM(pages) FROM table_name_30 WHERE vol__number < 8 AND isbn = "1-40122-892-5"
How many pages does the edition with a volume # smaller than 8 and an ISBM of 1-40122-892-5 have?
CREATE TABLE table_name_30 (pages INTEGER, vol__number VARCHAR, isbn VARCHAR)
SELECT COUNT(DISTINCT id) FROM teaches
How many different instructors have taught some course?
CREATE TABLE teaches (id VARCHAR)
SELECT date FROM table_name_66 WHERE record = "track" AND time__seconds_ > 43.564 AND sport = "luge - women's singles"
What is the Date, when the Record is, "track", when the Time (seconds) is longer than 43.564, and when the Sport is luge - women's singles?
CREATE TABLE table_name_66 (date VARCHAR, sport VARCHAR, record VARCHAR, time__seconds_ VARCHAR)
SELECT MAX(grand_total) FROM table_26214389_3 WHERE qatari_male = 1104
If the qatari male is 1104, what is the grand total?
CREATE TABLE table_26214389_3 (grand_total INTEGER, qatari_male VARCHAR)
SELECT constructor FROM table_name_58 WHERE rounds = "5"
Who is the Constructor for round 5?
CREATE TABLE table_name_58 (constructor VARCHAR, rounds VARCHAR)
SELECT COUNT(population__2007_) FROM table_255829_1 WHERE municipality = "Gigmoto"
What is the 2007 population of Gigmoto?
CREATE TABLE table_255829_1 (population__2007_ VARCHAR, municipality VARCHAR)
SELECT SUM(game) FROM table_name_12 WHERE march = 15
what is the game when march is 15?
CREATE TABLE table_name_12 (game INTEGER, march VARCHAR)
SELECT MIN(drawn) FROM table_name_58 WHERE played < 11 AND points > 7 AND team = "mackenzie"
What is the lowest number of Drawn games for Team Mackenzie where the Played is less and 11 and the Points are greater than 7?
CREATE TABLE table_name_58 (drawn INTEGER, team VARCHAR, played VARCHAR, points VARCHAR)
SELECT yearid, COUNT(*) FROM hall_of_fame GROUP BY yearid
How many players enter hall of fame each year?
CREATE TABLE hall_of_fame (yearid VARCHAR)
SELECT COUNT(original_airdate) FROM table_14937957_1 WHERE episode__number = "1.8"
How many times did episode 1.8 air?
CREATE TABLE table_14937957_1 (original_airdate VARCHAR, episode__number VARCHAR)
SELECT COUNT(season) FROM table_name_53 WHERE downhill = "35" AND overall > 21
What season had a downhill of 35 and overall greater than 21?
CREATE TABLE table_name_53 (season VARCHAR, downhill VARCHAR, overall VARCHAR)
SELECT SUM(a_score) FROM table_name_1 WHERE b_score > 9.15 AND position = "2nd"
What is the A score when the B score is more than 9.15 and the gymnast was in the 2nd position?
CREATE TABLE table_name_1 (a_score INTEGER, b_score VARCHAR, position VARCHAR)
SELECT position FROM table_name_25 WHERE name = "robert johnson"
what is the position for robert johnson?
CREATE TABLE table_name_25 (position VARCHAR, name VARCHAR)
SELECT year FROM table_29418619_1 WHERE _number = 31
What year is the player whose number is 31?
CREATE TABLE table_29418619_1 (year VARCHAR, _number VARCHAR)
SELECT national_cup FROM table_name_91 WHERE club = "fc barcelona"
What national cup has fc barcelona?
CREATE TABLE table_name_91 (national_cup VARCHAR, club VARCHAR)
SELECT eliminated FROM table_25016824_2 WHERE vote = "8-1"
Who was eliminated when the vote was 8-1?
CREATE TABLE table_25016824_2 (eliminated VARCHAR, vote VARCHAR)
SELECT MIN(crowd) FROM table_name_96 WHERE venue = "arden street oval"
Which game at Arden Street Oval had the lowest attendance?
CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR)
SELECT credentials_presented FROM table_name_35 WHERE state = "vermont"
What day were credentials presented for vermont?
CREATE TABLE table_name_35 (credentials_presented VARCHAR, state VARCHAR)
SELECT MIN(pa) FROM table_29546142_2 WHERE w = 2
Name the least pa for w being 2
CREATE TABLE table_29546142_2 (pa INTEGER, w VARCHAR)
SELECT tfr_2006 FROM table_12251936_1 WHERE gfr_2006 = "53.8"
How many TFR were there in 2006 when the GFR was 53.8?
CREATE TABLE table_12251936_1 (tfr_2006 VARCHAR, gfr_2006 VARCHAR)
SELECT laid_down FROM table_1014206_2 WHERE commissioned = "October 29, 1965"
When were ships laid down that were commissioned on october 29, 1965?
CREATE TABLE table_1014206_2 (laid_down VARCHAR, commissioned VARCHAR)
SELECT COUNT(first_elected) FROM table_2668243_17 WHERE candidates = "Thomas Maxwell (J) 60.1% David Woodcock (AJ) 39.9%"
Name the number of first elected for thomas maxwell (j) 60.1% david woodcock (aj) 39.9%
CREATE TABLE table_2668243_17 (first_elected VARCHAR, candidates VARCHAR)
SELECT violent_crime FROM table_1818254_1 WHERE robbery = "201.4"
What was the violent crime rate in the city where the robbery rate was 201.4?
CREATE TABLE table_1818254_1 (violent_crime VARCHAR, robbery VARCHAR)
SELECT AVG(num_of_ticket), MAX(num_of_ticket) FROM visit
What are the average and maximum number of tickets bought in all visits?
CREATE TABLE visit (num_of_ticket INTEGER)
SELECT committee FROM table_name_98 WHERE first_elected = 1993
What Committee has the First Elected of 1993?
CREATE TABLE table_name_98 (committee VARCHAR, first_elected VARCHAR)
SELECT COUNT(municipal_mayor) FROM table_216776_2 WHERE area__km²_ = "42.66"
How many different municipal mayors were there in the municipality with an area of 42.66 km2?
CREATE TABLE table_216776_2 (municipal_mayor VARCHAR, area__km²_ VARCHAR)
SELECT time_retired FROM table_name_35 WHERE manufacturer = "aprilia" AND grid < 9 AND laps < 26 AND rider = "casey stoner"
What was the time for Aprilia and their driver Casey Stoner, before gird 9, and less than 26 laps?
CREATE TABLE table_name_35 (time_retired VARCHAR, rider VARCHAR, laps VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT 2005 AS _world_aids_day_benefit_dream_cast FROM table_1901751_1 WHERE original_australian_performer = "Susan-Ann Walker"
Who is the 2005 World AIDS Day Benefit "Dream" Cast when the Original Australian performer is Susan-Ann Walker?
CREATE TABLE table_1901751_1 (original_australian_performer VARCHAR)
SELECT league FROM table_name_31 WHERE playoffs = "lost semifinal"
Which league had a playoffs result of a lost semifinal?
CREATE TABLE table_name_31 (league VARCHAR, playoffs VARCHAR)
SELECT rank FROM table_name_52 WHERE 2010 = "2,903,000"
what is the ranking for 2010 production of 2,903,000?
CREATE TABLE table_name_52 (rank VARCHAR)
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = "Lyla"
What is the zip code of the address where the teacher with first name "Lyla" lives?
CREATE TABLE Teachers (address_id VARCHAR, first_name VARCHAR); CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR)
SELECT artist FROM table_13789248_2 WHERE position = 32
who is the the artbeingt with position being 32
CREATE TABLE table_13789248_2 (artist VARCHAR, position VARCHAR)
SELECT AVG(speed) FROM table_name_31 WHERE year < 1974 AND passengers > 1.73
What is the average speed for ships before 1974 with over 1.73 passengers?
CREATE TABLE table_name_31 (speed INTEGER, year VARCHAR, passengers VARCHAR)
SELECT number_of_households FROM table_name_15 WHERE median_family_income = "$60,400"
How many households have a median family income of $60,400?
CREATE TABLE table_name_15 (number_of_households VARCHAR, median_family_income VARCHAR)
SELECT AVG(latitude) FROM table_name_72 WHERE land___sqmi__ < 35.874 AND pop__2010_ > 35 AND county = "cass" AND water__sqmi_ = 0.008
Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (2010), and what average latitude?
CREATE TABLE table_name_72 (latitude INTEGER, water__sqmi_ VARCHAR, county VARCHAR, land___sqmi__ VARCHAR, pop__2010_ VARCHAR)