answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT constellation FROM table_1820752_1 WHERE spectral_type = "G1V"
If the spectral type is g1v, what is the constellation?
CREATE TABLE table_1820752_1 (constellation VARCHAR, spectral_type VARCHAR)
SELECT date FROM table_name_33 WHERE record = "3-1"
Name the date with record of 3-1
CREATE TABLE table_name_33 (date VARCHAR, record VARCHAR)
SELECT final_score FROM table_23612439_2 WHERE date = "July 16"
What is the final score when July 16 is the date?
CREATE TABLE table_23612439_2 (final_score VARCHAR, date VARCHAR)
SELECT venue FROM table_name_95 WHERE away_team = "collingwood"
What is the name of the venue that they away team Collingwood played at?
CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR)
SELECT status FROM table_name_34 WHERE date = "19/05/1981"
Which Status has a Date of 19/05/1981?
CREATE TABLE table_name_34 (status VARCHAR, date VARCHAR)
SELECT years FROM table_26476336_2 WHERE new_classification = "MCLA Division I"
What are the years that the new classification was MCLA division i?
CREATE TABLE table_26476336_2 (years VARCHAR, new_classification VARCHAR)
SELECT model__list_ FROM table_24099916_1 WHERE socket = "BGA479" AND tdp = "5.5 W"
What's the model of the processor with BGA479 socket and a 5.5 w TDP?
CREATE TABLE table_24099916_1 (model__list_ VARCHAR, socket VARCHAR, tdp VARCHAR)
SELECT status FROM table_name_15 WHERE eliminated = "anton dela paz"
Tell me the status of eliminated of anton dela paz
CREATE TABLE table_name_15 (status VARCHAR, eliminated VARCHAR)
SELECT visitor FROM table_name_35 WHERE score = "4 – 3"
What is the Visitor with a Score with 4 – 3?
CREATE TABLE table_name_35 (visitor VARCHAR, score VARCHAR)
SELECT tyre FROM table_name_5 WHERE race = "united states grand prix"
What is the Tyre for the united states grand prix?
CREATE TABLE table_name_5 (tyre VARCHAR, race VARCHAR)
SELECT MIN(west_ham_wins) FROM table_name_54 WHERE drawn > 27
What is the least number of wins West Ham got when they tied 27 times?
CREATE TABLE table_name_54 (west_ham_wins INTEGER, drawn INTEGER)
SELECT position FROM table_name_22 WHERE cfl_team = "bc lions"
What position do the bc lions pick?
CREATE TABLE table_name_22 (position VARCHAR, cfl_team VARCHAR)
SELECT nation FROM table_name_87 WHERE bronze < 1 AND silver < 1 AND gold > 1
Which nation has a Bronze and Silver smaller than 1 and a Gold larger than 1?
CREATE TABLE table_name_87 (nation VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT greek FROM table_name_63 WHERE latin = "f, y, u/v/w"
to the Latin of f, y, u/v/w?
CREATE TABLE table_name_63 (greek VARCHAR, latin VARCHAR)
SELECT year FROM table_name_78 WHERE host_city = "bangkok" AND hosts = "alicia keys"
What year will Bangkok be the host city and Alicia Keys host?
CREATE TABLE table_name_78 (year VARCHAR, host_city VARCHAR, hosts VARCHAR)
SELECT producer FROM table_name_57 WHERE title = "city sharks"
Who is the producer of city sharks?
CREATE TABLE table_name_57 (producer VARCHAR, title VARCHAR)
SELECT position FROM table_name_72 WHERE pick = 14
What position did pick 14 play?
CREATE TABLE table_name_72 (position VARCHAR, pick VARCHAR)
SELECT COUNT(club) FROM table_14070062_3 WHERE try_bonus = "5"
How many clubs have a try bonus value of 5?
CREATE TABLE table_14070062_3 (club VARCHAR, try_bonus VARCHAR)
SELECT MAX(year) FROM table_name_45 WHERE mintage = "1264" AND issue_price > 24.95
When was a mintage of 1264 with more than 24.95 issued?
CREATE TABLE table_name_45 (year INTEGER, mintage VARCHAR, issue_price VARCHAR)
SELECT SUM(reg_gp) FROM table_name_17 WHERE player = "morgan clark" AND rd__number < 7
What is the sum of the number of regular games played by Morgan Clark with the number of road games less than 7?
CREATE TABLE table_name_17 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR)
SELECT original_artist FROM table_name_39 WHERE week__number = "top 9"
What is the Original artist when the week number is top 9?
CREATE TABLE table_name_39 (original_artist VARCHAR, week__number VARCHAR)
SELECT rank FROM table_name_18 WHERE laps = 151
Name the rank for 151 Laps
CREATE TABLE table_name_18 (rank VARCHAR, laps VARCHAR)
SELECT first_match FROM table_name_6 WHERE final_position = "winners" AND competition = "fifa club world cup"
What was the date of the first match of the Fifa Club World Cup that ended with the final position as winners?
CREATE TABLE table_name_6 (first_match VARCHAR, final_position VARCHAR, competition VARCHAR)
SELECT player FROM table_name_43 WHERE to_par = 7 AND country = "england"
Who was the player for England when the to par is 7?
CREATE TABLE table_name_43 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT COUNT(title) FROM table_25810656_3 WHERE no_in_series = 25
Name the number of title for number in series being 25
CREATE TABLE table_25810656_3 (title VARCHAR, no_in_series VARCHAR)
SELECT date FROM table_name_84 WHERE tournament = "lagos"
When was the Lagos tournament?
CREATE TABLE table_name_84 (date VARCHAR, tournament VARCHAR)
SELECT opponents_in_the_final FROM table_name_67 WHERE partner = "jiří novák"
What is Opponents In The Final, when Partner is "Jiří Novák"?
CREATE TABLE table_name_67 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT score FROM table_name_6 WHERE home_team = "leeds united"
What was the final score for the tie where Leeds United was the home team?
CREATE TABLE table_name_6 (score VARCHAR, home_team VARCHAR)
SELECT succeeded_by FROM table_1601027_2 WHERE earpads = "Foam"
Name what succeeded by for foam
CREATE TABLE table_1601027_2 (succeeded_by VARCHAR, earpads VARCHAR)
SELECT moving_to FROM table_name_39 WHERE year > 2005 AND rank > 5 AND name = "ismaël bangoura"
Ismaël Bangoura with a rank larger than 5 after the year 2005 was moving to what football club?
CREATE TABLE table_name_39 (moving_to VARCHAR, name VARCHAR, year VARCHAR, rank VARCHAR)
SELECT album FROM table_name_95 WHERE length = "4:30"
what album is 4:30 long
CREATE TABLE table_name_95 (album VARCHAR, length VARCHAR)
SELECT australian_national_kennel_council_toy_dogs_group FROM table_name_98 WHERE the_kennel_club__uk__toy_group = "papillon"
What is the Australian National Kennel Council Toy Dogs Group with papillon as the Kennel Club breed?
CREATE TABLE table_name_98 (australian_national_kennel_council_toy_dogs_group VARCHAR, the_kennel_club__uk__toy_group VARCHAR)
SELECT pick__number FROM table_24540893_6 WHERE school = "Western Ontario" AND position = "OL"
What numbered pick attended western ontario and is an OL?
CREATE TABLE table_24540893_6 (pick__number VARCHAR, school VARCHAR, position VARCHAR)
SELECT run_1 FROM table_name_62 WHERE run_4 = "1:56.59"
What is Run 1, when Run 4 is 1:56.59?
CREATE TABLE table_name_62 (run_1 VARCHAR, run_4 VARCHAR)
SELECT COUNT(wins) FROM table_10021158_3 WHERE money_list_rank = "183"
How many wins were there when the money list rank was 183?
CREATE TABLE table_10021158_3 (wins VARCHAR, money_list_rank VARCHAR)
SELECT winner FROM table_name_49 WHERE date = 2007
Who was the winner in 2007?
CREATE TABLE table_name_49 (winner VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_86 WHERE opponent = "san francisco 49ers"
What is the attendance when the opponent is the San Francisco 49ers?
CREATE TABLE table_name_86 (attendance VARCHAR, opponent VARCHAR)
SELECT MIN(r2) FROM table_18812411_3
What was the minimum score for r2?
CREATE TABLE table_18812411_3 (r2 INTEGER)
SELECT trailers FROM table_name_48 WHERE year = "1931" AND builder = "mccw"
I want the trailers for 1931 and builder of mccw
CREATE TABLE table_name_48 (trailers VARCHAR, year VARCHAR, builder VARCHAR)
SELECT elimination FROM table_name_87 WHERE eliminated_by = "sonjay dutt"
What Elimination number is listed againt Eliminated by Sonjay Dutt?
CREATE TABLE table_name_87 (elimination VARCHAR, eliminated_by VARCHAR)
SELECT COUNT(opponents) FROM table_20928649_1 WHERE opponent = "North Carolina State"
How many opponents were in North Carolina state game?
CREATE TABLE table_20928649_1 (opponents VARCHAR, opponent VARCHAR)
SELECT years_for_grizzlies FROM table_name_37 WHERE school_club_team = "villanova"
What are the years when the grizzles had a player who attended Villanova?
CREATE TABLE table_name_37 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT COUNT(production_number) FROM table_name_21 WHERE series = "mm" AND title = "bell hoppy"
What is the production number for Bell Hoppy in the MM Series?
CREATE TABLE table_name_21 (production_number VARCHAR, series VARCHAR, title VARCHAR)
SELECT COUNT(week) FROM table_name_43 WHERE attendance = "53,677"
which week had an attendance of 53,677?
CREATE TABLE table_name_43 (week VARCHAR, attendance VARCHAR)
SELECT regiment FROM table_29458735_5 WHERE county = "Fulton"
which regiment was in the Fulton County
CREATE TABLE table_29458735_5 (regiment VARCHAR, county VARCHAR)
SELECT height FROM table_name_54 WHERE year = "sophomore" AND position = "guard" AND weight = 185
What is the Height of the Sophomore Guard weighing 185?
CREATE TABLE table_name_54 (height VARCHAR, weight VARCHAR, year VARCHAR, position VARCHAR)
SELECT lost FROM table_name_57 WHERE played = "22" AND tries_against = "88"
tries against is 88, played is 22, what is the lost?
CREATE TABLE table_name_57 (lost VARCHAR, played VARCHAR, tries_against VARCHAR)
SELECT MIN(year) FROM table_name_13 WHERE start = "17th"
Name the least year for start of 17th
CREATE TABLE table_name_13 (year INTEGER, start VARCHAR)
SELECT MIN(heat) FROM table_name_51 WHERE nationality = "germany" AND rank < 9 AND name = "mike fenner" AND time < 13.52
What was the lowest heat for Germany with a rank smaller than 9 for Mike Fenner and a time smaller than 13.52?
CREATE TABLE table_name_51 (heat INTEGER, time VARCHAR, name VARCHAR, nationality VARCHAR, rank VARCHAR)
SELECT 1996 FROM table_name_53 WHERE 1986 = "1r"
What's the 1996 if 1986 has a 1R?
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT stuffit AS X FROM table_name_26 WHERE stuffit = "unknown" AND lha_lzh = "yes" AND iso_cd_image = "unknown"
What is the StuffitX value that has a Stuffit of unknown, LHA/LZH of yes, and unknown ISO/CD image?
CREATE TABLE table_name_26 (stuffit VARCHAR, iso_cd_image VARCHAR, lha_lzh VARCHAR)
SELECT drivers FROM table_name_21 WHERE year = 1949
Who drove in races in 1949?
CREATE TABLE table_name_21 (drivers VARCHAR, year VARCHAR)
SELECT date FROM table_name_15 WHERE surface = "clay" AND score = "6-3 2-6 6-4"
What is the date of the match on clay with score of 6-3 2-6 6-4?
CREATE TABLE table_name_15 (date VARCHAR, surface VARCHAR, score VARCHAR)
SELECT score FROM table_name_54 WHERE competition = "friendly" AND result = "7-2"
What was the score of the Friendly competition where the result was 7-2?
CREATE TABLE table_name_54 (score VARCHAR, competition VARCHAR, result VARCHAR)
SELECT round FROM table_name_94 WHERE player = "matt clark"
What round did Matt Clark play?
CREATE TABLE table_name_94 (round VARCHAR, player VARCHAR)
SELECT visitor FROM table_name_89 WHERE home = "linköpings hc" AND round > 20 AND date = "saturday, november 22"
Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds?
CREATE TABLE table_name_89 (visitor VARCHAR, date VARCHAR, home VARCHAR, round VARCHAR)
SELECT year FROM table_28848697_4 WHERE tied = 11
What is the year listed when tied is listed as 11?
CREATE TABLE table_28848697_4 (year VARCHAR, tied VARCHAR)
SELECT MIN(property_crimes) FROM table_26060884_2 WHERE burglary = 45350
What was the minimum property crimes stats if the burglary committed was 45350?
CREATE TABLE table_26060884_2 (property_crimes INTEGER, burglary VARCHAR)
SELECT away_team FROM table_name_18 WHERE home_team = "south melbourne"
Who was South Melbourne's away opponents?
CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR)
SELECT country FROM table_name_66 WHERE to_par = 14
What country has a 14 to par?
CREATE TABLE table_name_66 (country VARCHAR, to_par VARCHAR)
SELECT date FROM table_name_95 WHERE road_team = "portland" AND game = "game 2"
On what date was Portland on the road for Game 2?
CREATE TABLE table_name_95 (date VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT record_description FROM table_name_96 WHERE achievement = "m (ft)" AND type = "mi-10r" AND pilot = "v.p. koloshenko" AND date = "28 may 1965"
Achievement of m (ft), and a Type of mi-10r, and a Pilot of v.p. koloshenko, and a Date of 28 may 1965 had what record description?
CREATE TABLE table_name_96 (record_description VARCHAR, date VARCHAR, pilot VARCHAR, achievement VARCHAR, type VARCHAR)
SELECT time FROM table_29535057_4 WHERE location = "Cassell Coliseum • Blacksburg, VA"
What was the time of the games that took place at the cassell coliseum • blacksburg, va?
CREATE TABLE table_29535057_4 (time VARCHAR, location VARCHAR)
SELECT semifinalists FROM table_name_95 WHERE surface = "hard" AND winner_and_score = "pete sampras 6–3, 3–6, 6–3"
Which Semifinalists have a Surface of hard, and a Winner and score of pete sampras 6–3, 3–6, 6–3?
CREATE TABLE table_name_95 (semifinalists VARCHAR, surface VARCHAR, winner_and_score VARCHAR)
SELECT MIN(year) FROM table_name_65 WHERE world_rank = "5th" AND result > 20.31
What's the lowest Year with a World Rank of 5th, with a Result greater than 20.31?
CREATE TABLE table_name_65 (year INTEGER, world_rank VARCHAR, result VARCHAR)
SELECT date FROM table_name_73 WHERE winning_driver = "ayrton senna" AND location = "monza"
What is the date that Ayrton Senna was the drive in Monza?
CREATE TABLE table_name_73 (date VARCHAR, winning_driver VARCHAR, location VARCHAR)
SELECT country FROM table_18888159_1 WHERE events = 22
Name the country for 22 events
CREATE TABLE table_18888159_1 (country VARCHAR, events VARCHAR)
SELECT genre FROM table_name_26 WHERE year_recorded = "1929"
What genre is the song recorded in 1929?
CREATE TABLE table_name_26 (genre VARCHAR, year_recorded VARCHAR)
SELECT word_form FROM table_name_55 WHERE ala_lc = "muay s″ain"
What is the word form for the ALA-LC transliteration of muay s″ain?
CREATE TABLE table_name_55 (word_form VARCHAR, ala_lc VARCHAR)
SELECT industry FROM table_1682026_7 WHERE sales__billion_$_ = "89.16"
In what industry was the company that had 89.16 billions of dollars in sales?
CREATE TABLE table_1682026_7 (industry VARCHAR, sales__billion_$_ VARCHAR)
SELECT score FROM table_name_87 WHERE tournament = "canada f7, toronto"
What was the score for the match at the tournament in canada f7, toronto?
CREATE TABLE table_name_87 (score VARCHAR, tournament VARCHAR)
SELECT champion FROM table_name_82 WHERE score = "9–1"
What Champion had a Score of 9–1?
CREATE TABLE table_name_82 (champion VARCHAR, score VARCHAR)
SELECT pole_position FROM table_16099880_5 WHERE race = "Chicagoland"
Who was on the pole at Chicagoland?
CREATE TABLE table_16099880_5 (pole_position VARCHAR, race VARCHAR)
SELECT SUM(match) FROM table_name_39 WHERE opponent = "fcr 2001 duisburg"
Which match did FCR 2001 Duisburg participate as the opponent?
CREATE TABLE table_name_39 (match INTEGER, opponent VARCHAR)
SELECT MIN(lane) FROM table_name_53 WHERE name = "xue ruipeng"
What is the smallest lane number of Xue Ruipeng?
CREATE TABLE table_name_53 (lane INTEGER, name VARCHAR)
SELECT frequency FROM table_name_18 WHERE on_air_id = "1way fm"
Name the frequency with on-air ID of 1way fm
CREATE TABLE table_name_18 (frequency VARCHAR, on_air_id VARCHAR)
SELECT district FROM table_1341640_39 WHERE incumbent = "Ray Musto"
What district is Ray Musto the incumbent of?
CREATE TABLE table_1341640_39 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(grid) FROM table_name_35 WHERE laps = 18
What is the grid total associated with 18 laps?
CREATE TABLE table_name_35 (grid VARCHAR, laps VARCHAR)
SELECT MAX(matches) FROM table_16570286_2
What is the highest number of matches?
CREATE TABLE table_16570286_2 (matches INTEGER)
SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200
Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200.
CREATE TABLE mountain (Country VARCHAR, Height INTEGER)
SELECT home_team FROM table_name_77 WHERE venue = "lake oval"
Who was the home team for the game played at Lake Oval?
CREATE TABLE table_name_77 (home_team VARCHAR, venue VARCHAR)
SELECT MIN(year) FROM table_name_76 WHERE actress = "quvenzhané wallis"
When did Quvenzhané Wallis first win?
CREATE TABLE table_name_76 (year INTEGER, actress VARCHAR)
SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY"
How many 'United Airlines' flights go to Airport 'ASY'?
CREATE TABLE FLIGHTS (Airline VARCHAR, DestAirport VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR)
SELECT constituency_number FROM table_name_86 WHERE reserved_for___sc___st__none_ = "none" AND name = "badnawar"
When the name is badnawar, and the reserved for (sc / st /none) of none what is the constituency number?
CREATE TABLE table_name_86 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT year FROM table_name_32 WHERE record = "4-21"
What year had a record of 4-21?
CREATE TABLE table_name_32 (year VARCHAR, record VARCHAR)
SELECT miles__km_ FROM table_28178756_1 WHERE year = 2010
List the numer of miles for 2010.
CREATE TABLE table_28178756_1 (miles__km_ VARCHAR, year VARCHAR)
SELECT doucet FROM table_11447995_2 WHERE lawrance = "36"
What is Doucet when Lawrance is 36?
CREATE TABLE table_11447995_2 (doucet VARCHAR, lawrance VARCHAR)
SELECT attendance FROM table_21269143_1 WHERE result = "Loss" AND opponent = "Salford City Reds"
Name the attendance for loss result and salford city reds
CREATE TABLE table_21269143_1 (attendance VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_4 WHERE country = "Iraq"
What 2011 GDP (PPP) billions of USD does Iraq have?
CREATE TABLE table_2248784_4 (country VARCHAR)
SELECT SUM(sequence_length__aa_) FROM table_name_67 WHERE common_name = "purple sea urchin" AND divergence_from_human_lineage__mya_ < 742.9
What is the sequence length (aa) of the protein with the common name Purple Sea Urchin and a divergence from human lineage less than 742.9?
CREATE TABLE table_name_67 (sequence_length__aa_ INTEGER, common_name VARCHAR, divergence_from_human_lineage__mya_ VARCHAR)
SELECT player FROM table_name_49 WHERE to_par = "e" AND score = 68 - 73 - 69 = 210
Who is the player with an E to par and a 68-73-69=210?
CREATE TABLE table_name_49 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_93 WHERE date = "may 31, 1987"
What tournament was on May 31, 1987?
CREATE TABLE table_name_93 (tournament VARCHAR, date VARCHAR)
SELECT MAX(population) FROM table_22815568_6
What is the population maximum?
CREATE TABLE table_22815568_6 (population INTEGER)
SELECT record FROM table_name_24 WHERE week = 2
For the game that was played on week 2, what is the record?
CREATE TABLE table_name_24 (record VARCHAR, week VARCHAR)
SELECT chinese FROM table_name_50 WHERE subject = "adjectives, adverbs, mostly with reduplication"
Name the chinese with subject of adjectives, adverbs, mostly with reduplication
CREATE TABLE table_name_50 (chinese VARCHAR, subject VARCHAR)
SELECT COUNT(fl) FROM table_25548630_1 WHERE series = "Formula Three Euroseries"
How many F.L. are listed for Formula Three Euroseries?
CREATE TABLE table_25548630_1 (fl VARCHAR, series VARCHAR)
SELECT MIN(points_for) FROM table_26200568_16 WHERE club = "Toronto Downtown Dingos"
How many points did the Toronto Downtown Dingos score?
CREATE TABLE table_26200568_16 (points_for INTEGER, club VARCHAR)
SELECT city FROM table_name_55 WHERE venue = "san lorenzo centenario"
In which city is the San Lorenzo Centenario venue located?
CREATE TABLE table_name_55 (city VARCHAR, venue VARCHAR)
SELECT record FROM table_name_76 WHERE score = "12–6"
What was the record of the game with a score of 12–6?
CREATE TABLE table_name_76 (record VARCHAR, score VARCHAR)
SELECT rID FROM Reviewer WHERE name LIKE "%Mike%"
What is the id of the reviewer whose name has substring “Mike”?
CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR)