question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Player has a Place of t2?
CREATE TABLE table_name_31 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_31 WHERE place = "t2"
How many listings under Melbourne has a distance at 15km?
CREATE TABLE table_2923917_4 (melbourne VARCHAR, distance VARCHAR)
SELECT COUNT(melbourne) FROM table_2923917_4 WHERE distance = "15km"
Name who directed the 114 episode in the series
CREATE TABLE table_15584067_7 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT directed_by FROM table_15584067_7 WHERE no_in_series = "114"
What competition was held earlier than 2007 and has 7434 in the notes field?
CREATE TABLE table_name_47 (competition VARCHAR, year VARCHAR, notes VARCHAR)
SELECT competition FROM table_name_47 WHERE year < 2007 AND notes = "7434"
What shows for the 1st round when the team 1 was Lb Châteauroux (d2)?
CREATE TABLE table_name_33 (team_1 VARCHAR)
SELECT 1 AS st_round FROM table_name_33 WHERE team_1 = "lb châteauroux (d2)"
How long did the game go that was played with the Houston Oilers at home?
CREATE TABLE table_name_31 (length_of_game VARCHAR, home_team VARCHAR)
SELECT length_of_game FROM table_name_31 WHERE home_team = "houston oilers"
What is the id of the problem log that is created most recently?
CREATE TABLE problem_log (problem_log_id VARCHAR, log_entry_date VARCHAR)
SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
What was the Liberal Party result from the election having a Conservative Party result of 16 (-1) and Labour of 6 (+2)?
CREATE TABLE table_name_97 (liberal_party VARCHAR, conservative_party VARCHAR, labour_party VARCHAR)
SELECT liberal_party FROM table_name_97 WHERE conservative_party = "16 (-1)" AND labour_party = "6 (+2)"
Which Label has a Catalog of 7243 8 49494 2 6?
CREATE TABLE table_name_98 (label VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_98 WHERE catalog = "7243 8 49494 2 6"
Does the city of moline have stereo?
CREATE TABLE table_25034983_2 (stereo VARCHAR, city VARCHAR)
SELECT stereo FROM table_25034983_2 WHERE city = "Moline"
I want the result for goals which has goals of deacon 6/6
CREATE TABLE table_name_52 (result VARCHAR, goals VARCHAR)
SELECT result FROM table_name_52 WHERE goals = "deacon 6/6"
What is the Lost with Against smaller than 25, and Played smaller than 1?
CREATE TABLE table_name_93 (lost INTEGER, against VARCHAR, played VARCHAR)
SELECT AVG(lost) FROM table_name_93 WHERE against < 25 AND played < 1
What is the size of the crowd when the home team is Fitzroy?
CREATE TABLE table_name_29 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_29 WHERE home_team = "fitzroy"
What was the rating of the season that had 18.17 million household viewers?
CREATE TABLE table_name_23 (rating VARCHAR, viewers__households_in_millions_ VARCHAR)
SELECT rating FROM table_name_23 WHERE viewers__households_in_millions_ = "18.17"
Where did the character of Aiden Burn csi detective first appear?
CREATE TABLE table_name_21 (first_appearance VARCHAR, character VARCHAR)
SELECT first_appearance FROM table_name_21 WHERE character = "aiden burn csi detective"
How many goals have a result of 0-1 on march 28, 2007?
CREATE TABLE table_name_48 (goals VARCHAR, result VARCHAR, date VARCHAR)
SELECT COUNT(goals) FROM table_name_48 WHERE result = "0-1" AND date = "march 28, 2007"
Who was the winning driver when the grand Prix was at Belgian Grand Prix?
CREATE TABLE table_1137702_3 (winning_driver VARCHAR, grand_prix VARCHAR)
SELECT winning_driver FROM table_1137702_3 WHERE grand_prix = "Belgian grand_prix"
when did new zealand last compete?
CREATE TABLE table_14308895_2 (last_competed INTEGER, country_territory VARCHAR)
SELECT MAX(last_competed) FROM table_14308895_2 WHERE country_territory = "New Zealand"
What's the highest Loses, with Wins that's larger than 3 and a Pos. Larger than 3?
CREATE TABLE table_name_90 (loses INTEGER, wins VARCHAR, pos VARCHAR)
SELECT MAX(loses) FROM table_name_90 WHERE wins > 3 AND pos > 3
What was the highest attendance against Real Juventud?
CREATE TABLE table_name_14 (attendance INTEGER, away VARCHAR)
SELECT MAX(attendance) FROM table_name_14 WHERE away = "real juventud"
Name the city of license with frequency of 90.1 fm
CREATE TABLE table_name_37 (city_of_license VARCHAR, frequency VARCHAR)
SELECT city_of_license FROM table_name_37 WHERE frequency = "90.1 fm"
How many golds for Canada (12 total)?
CREATE TABLE table_name_7 (gold VARCHAR, total VARCHAR, nation VARCHAR)
SELECT gold FROM table_name_7 WHERE total > 12 AND nation = "canada"
What is the Rank (Pakistan) of the mountain that has a World Rank smaller than 11 and a Height smaller than 8126?
CREATE TABLE table_name_72 (rank__pakistan_ VARCHAR, world_rank VARCHAR, height__m_ VARCHAR)
SELECT COUNT(rank__pakistan_) FROM table_name_72 WHERE world_rank < 11 AND height__m_ < 8126
In what region is the enrollment ratio in primary 94.40?
CREATE TABLE table_25042332_22 (region VARCHAR, primary__6_13_years_ VARCHAR)
SELECT region FROM table_25042332_22 WHERE primary__6_13_years_ = "94.40"
What country was the Paris Masters tournament played in?
CREATE TABLE table_name_83 (country VARCHAR, tournament VARCHAR)
SELECT country FROM table_name_83 WHERE tournament = "paris masters"
What is the country that has the format of cd, the label of sony music and the catalogue no sicp-2055?
CREATE TABLE table_name_61 (country VARCHAR, catalogue_no VARCHAR, format VARCHAR, label VARCHAR)
SELECT country FROM table_name_61 WHERE format = "cd" AND label = "sony music" AND catalogue_no = "sicp-2055"
Which championship has a winning score of (77-76-74-73=300)?
CREATE TABLE table_name_88 (championship VARCHAR, winning_score VARCHAR)
SELECT championship FROM table_name_88 WHERE winning_score = (77 - 76 - 74 - 73 = 300)
What year(s) was axis & allies: d-day released?
CREATE TABLE table_173475_1 (release VARCHAR, title VARCHAR)
SELECT release FROM table_173475_1 WHERE title = "Axis & Allies: D-Day"
Show the ids of high schoolers who have friends and are also liked by someone else.
CREATE TABLE Likes (student_id VARCHAR, liked_id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, liked_id VARCHAR)
SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
How many weeks had an attendance larger than 84,816?
CREATE TABLE table_name_30 (week VARCHAR, attendance INTEGER)
SELECT COUNT(week) FROM table_name_30 WHERE attendance > 84 OFFSET 816
Name the frequency mhz for ERP W of 850 watts
CREATE TABLE table_name_44 (frequency_mhz VARCHAR, erp_w VARCHAR)
SELECT frequency_mhz FROM table_name_44 WHERE erp_w = "850 watts"
How many cytoplasms result in a blue nucleus?
CREATE TABLE table_13570_1 (cytoplasm VARCHAR, nucleus VARCHAR)
SELECT COUNT(cytoplasm) FROM table_13570_1 WHERE nucleus = "Blue"
What is the average round of player dave pulkkinen, who had a draft after 1969?
CREATE TABLE table_name_61 (round INTEGER, player VARCHAR, draft VARCHAR)
SELECT AVG(round) FROM table_name_61 WHERE player = "dave pulkkinen" AND draft > 1969
What is John Oxendine at in the poll where Karen Handel is at 38%?
CREATE TABLE table_name_75 (john_oxendine VARCHAR, karen_handel VARCHAR)
SELECT john_oxendine FROM table_name_75 WHERE karen_handel = "38%"
WHich Position has a Player of david laliberte?
CREATE TABLE table_name_50 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_50 WHERE player = "david laliberte"
What is the Finish of 28 Wins?
CREATE TABLE table_name_8 (finish VARCHAR, wins VARCHAR)
SELECT finish FROM table_name_8 WHERE wins = "28"
What Class has the Identifier of CBFX-FM-6?
CREATE TABLE table_name_21 (class VARCHAR, identifier VARCHAR)
SELECT class FROM table_name_21 WHERE identifier = "cbfx-fm-6"
Which County has a Rank larger than 8, and a Player of joe mckenna?
CREATE TABLE table_name_29 (county VARCHAR, rank VARCHAR, player VARCHAR)
SELECT county FROM table_name_29 WHERE rank > 8 AND player = "joe mckenna"
How many platinum points were awarded for 5th place?
CREATE TABLE table_11254821_2 (points_awarded__platinum_ INTEGER, finishing_position VARCHAR)
SELECT MAX(points_awarded__platinum_) FROM table_11254821_2 WHERE finishing_position = "5th"
What is the class of 2009?
CREATE TABLE table_name_26 (class VARCHAR, year VARCHAR)
SELECT class FROM table_name_26 WHERE year = 2009
How many times did the Lancaster City team play?
CREATE TABLE table_17366952_1 (played VARCHAR, team VARCHAR)
SELECT COUNT(played) FROM table_17366952_1 WHERE team = "Lancaster City"
What is Country, when Player is "Tom Watson"?
CREATE TABLE table_name_99 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_99 WHERE player = "tom watson"
Name the date for air canada centre 18,736
CREATE TABLE table_23186738_9 (date VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_23186738_9 WHERE location_attendance = "Air Canada Centre 18,736"
How many deaths were there during the shipwreck in 1873?
CREATE TABLE table_name_56 (deaths VARCHAR, type VARCHAR, date VARCHAR)
SELECT deaths FROM table_name_56 WHERE type = "shipwreck" AND date = "1873"
Name the number of districts for december 1799
CREATE TABLE table_15572443_1 (district VARCHAR, election_date VARCHAR)
SELECT COUNT(district) FROM table_15572443_1 WHERE election_date = "December 1799"
What are the Transfers out for Peru?
CREATE TABLE table_name_76 (transfers_out VARCHAR, country VARCHAR)
SELECT transfers_out FROM table_name_76 WHERE country = "peru"
What is that if the weight for the play born on June 2, 1983?
CREATE TABLE table_name_90 (weight__kg_ INTEGER, birthdate VARCHAR)
SELECT SUM(weight__kg_) FROM table_name_90 WHERE birthdate = "june 2, 1983"
What Country is Player Leland Gibson with Money of 400 from?
CREATE TABLE table_name_89 (country VARCHAR, money__$_ VARCHAR, player VARCHAR)
SELECT country FROM table_name_89 WHERE money__$_ = "400" AND player = "leland gibson"
With an overall record of MU, 15-8 what is the at neutral site?
CREATE TABLE table_name_87 (at_neutral_site VARCHAR, overall_record VARCHAR)
SELECT at_neutral_site FROM table_name_87 WHERE overall_record = "mu, 15-8"
What Title has a Transliteration of u lyudey-to v domu?
CREATE TABLE table_name_40 (title VARCHAR, transliteration VARCHAR)
SELECT title FROM table_name_40 WHERE transliteration = "u lyudey-to v domu"
What is the final score of the game that was at raymond james stadium?
CREATE TABLE table_name_42 (final_score VARCHAR, game_site VARCHAR)
SELECT final_score FROM table_name_42 WHERE game_site = "raymond james stadium"
Which Total matches is the lowest one that has a Total W-L-H of 1-2-0?
CREATE TABLE table_name_33 (total_matches INTEGER, total_w_l_h VARCHAR)
SELECT MIN(total_matches) FROM table_name_33 WHERE total_w_l_h = "1-2-0"
How many series awarded 15 points?
CREATE TABLE table_25561038_1 (races VARCHAR, points VARCHAR)
SELECT COUNT(races) FROM table_25561038_1 WHERE points = "15"
Which Game has an Opponent of @ houston rockets?
CREATE TABLE table_name_22 (game INTEGER, opponent VARCHAR)
SELECT MIN(game) FROM table_name_22 WHERE opponent = "@ houston rockets"
What is Result, when Round is SF?
CREATE TABLE table_name_57 (result VARCHAR, round VARCHAR)
SELECT result FROM table_name_57 WHERE round = "sf"
Who is the original artist with a theme of N/A?
CREATE TABLE table_21501565_1 (original_artist VARCHAR, theme VARCHAR)
SELECT original_artist FROM table_21501565_1 WHERE theme = "N/A"
What is the minimum, maximum, and average seating for all tracks.
CREATE TABLE track (seating INTEGER)
SELECT MIN(seating), MAX(seating), AVG(seating) FROM track
What were the scores of the Wimbledon final matches where Newcombe was the runner-up?
CREATE TABLE table_23259077_1 (score_in_the_final VARCHAR, outcome VARCHAR, championship VARCHAR)
SELECT score_in_the_final FROM table_23259077_1 WHERE outcome = "Runner-up" AND championship = "Wimbledon"
On how many different dates was the race at the Silverstone circuit?
CREATE TABLE table_22334183_3 (date VARCHAR, circuit VARCHAR)
SELECT COUNT(date) FROM table_22334183_3 WHERE circuit = "Silverstone"
What is the height for rank greater than 10 in Tameer Tower?
CREATE TABLE table_name_77 (height_m__ft_ VARCHAR, rank VARCHAR, name VARCHAR)
SELECT height_m__ft_ FROM table_name_77 WHERE rank > 10 AND name = "tameer tower"
What is the NUT 3 region with area of 41.58?
CREATE TABLE table_name_38 (nuts_3_region VARCHAR, area__km²_ VARCHAR)
SELECT nuts_3_region FROM table_name_38 WHERE area__km²_ = "41.58"
With a Type of 4-6-4t, what is the sum Withdrawn?
CREATE TABLE table_name_43 (withdrawn INTEGER, type VARCHAR)
SELECT SUM(withdrawn) FROM table_name_43 WHERE type = "4-6-4t"
What town is Volleyball Sportiv Complex (3 500) located in?
CREATE TABLE table_14015965_1 (town VARCHAR, arena__capacity_ VARCHAR)
SELECT town FROM table_14015965_1 WHERE arena__capacity_ = "Volleyball Sportiv Complex (3 500)"
What is the highest rank for the team of egypt?
CREATE TABLE table_name_58 (rank INTEGER, country VARCHAR)
SELECT MAX(rank) FROM table_name_58 WHERE country = "egypt"
What was the number of the game when the record was 11-12?
CREATE TABLE table_name_82 (game VARCHAR, record VARCHAR)
SELECT game FROM table_name_82 WHERE record = "11-12"
What is Date, when Opponent is At Saskatchewan Roughriders?
CREATE TABLE table_name_13 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_13 WHERE opponent = "at saskatchewan roughriders"
What is the BB Pop for the song with RIAA of G that was in a year earlier than 1961?
CREATE TABLE table_name_8 (bb_pop VARCHAR, riaa VARCHAR, year VARCHAR)
SELECT bb_pop FROM table_name_8 WHERE riaa = "g" AND year < 1961
What was the score of the game on June 1?
CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_38 WHERE date = "june 1"
What is the date of week 4?
CREATE TABLE table_name_57 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_57 WHERE week = 4
Who had the smallest overall under 22?
CREATE TABLE table_name_51 (player VARCHAR, overall INTEGER)
SELECT player FROM table_name_51 WHERE overall < 22
Which accession number has a protein name of ccdc165, and a divergence from human lineage (MYA) smaller than 296?
CREATE TABLE table_name_29 (accession_number VARCHAR, protein_name VARCHAR, divergence_from_human_lineage__mya_ VARCHAR)
SELECT accession_number FROM table_name_29 WHERE protein_name = "ccdc165" AND divergence_from_human_lineage__mya_ < 296
What was the result of the match that had a score of 58-6?
CREATE TABLE table_name_92 (result VARCHAR, score VARCHAR)
SELECT result FROM table_name_92 WHERE score = "58-6"
How many different part 3 verbs are there that mean to freeze?
CREATE TABLE table_1745843_6 (part_3 VARCHAR, verb_meaning VARCHAR)
SELECT COUNT(part_3) FROM table_1745843_6 WHERE verb_meaning = "to freeze"
Which rounds was Hap Sharp a driver in?
CREATE TABLE table_name_40 (rounds VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_40 WHERE driver = "hap sharp"
What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6?
CREATE TABLE table_name_1 (engine VARCHAR, rounds VARCHAR, driver VARCHAR, tyres VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_1 WHERE tyres = "g" AND chassis = "d3 d4" AND driver = "jan lammers" AND rounds = "4-6"
How many people can attend games in the stadium of the team whose captain is Vasil Vasilev?
CREATE TABLE table_23214833_1 (capacity VARCHAR, team_captain VARCHAR)
SELECT capacity FROM table_23214833_1 WHERE team_captain = "Vasil Vasilev"
What was the result for the 1964 summer olympics on october 18?
CREATE TABLE table_name_64 (results¹ VARCHAR, type_of_game VARCHAR, date VARCHAR)
SELECT results¹ FROM table_name_64 WHERE type_of_game = "1964 summer olympics" AND date = "october 18"
How many instances is the unlocked n/a?
CREATE TABLE table_24463470_1 (setting VARCHAR, unlocked_by VARCHAR)
SELECT COUNT(setting) FROM table_24463470_1 WHERE unlocked_by = "N/A"
What is Status, when Newspaper/Magazine is Al-Thawra?
CREATE TABLE table_name_24 (status VARCHAR, newspaper_magazine VARCHAR)
SELECT status FROM table_name_24 WHERE newspaper_magazine = "al-thawra"
What is the name of the cyber girl in week 4 when Lexi Lombardelli was the cyber girl in week 2?
CREATE TABLE table_name_75 (week_4 VARCHAR, week_2 VARCHAR)
SELECT week_4 FROM table_name_75 WHERE week_2 = "lexi lombardelli"
How many wins are there for the Races of 12/12?
CREATE TABLE table_name_36 (wins VARCHAR, races_† VARCHAR)
SELECT wins FROM table_name_36 WHERE races_† = "12/12"
What was the attendance for the game played at 3:31?
CREATE TABLE table_name_76 (attendance VARCHAR, time VARCHAR)
SELECT attendance FROM table_name_76 WHERE time = "3:31"
What is Date, when Winning Score is −14 (68-68-67-71=274)?
CREATE TABLE table_name_38 (date VARCHAR, winning_score VARCHAR)
SELECT date FROM table_name_38 WHERE winning_score = −14(68 - 68 - 67 - 71 = 274)
Who's the captain of the team whose head coach is Alistair Edwards?
CREATE TABLE table_1301373_1 (captain VARCHAR, head_coach VARCHAR)
SELECT captain FROM table_1301373_1 WHERE head_coach = "Alistair Edwards"
Which publisher released Martial Law: Substitutes?
CREATE TABLE table_name_47 (publisher VARCHAR, release_title VARCHAR)
SELECT publisher FROM table_name_47 WHERE release_title = "martial law: substitutes"
How many floors have a Height m / feet of 900 / 2,952?
CREATE TABLE table_name_58 (floors VARCHAR, height_m___feet VARCHAR)
SELECT floors FROM table_name_58 WHERE height_m___feet = "900 / 2,952"
What's the romanised name of the official who was Secretary for health, welfare and food?
CREATE TABLE table_2263674_1 (romanised_name VARCHAR, portfolio VARCHAR)
SELECT romanised_name FROM table_2263674_1 WHERE portfolio = "Secretary for Health, Welfare and Food"
what year did enrique alciati make a statue
CREATE TABLE table_name_51 (year_erected VARCHAR, artist VARCHAR)
SELECT year_erected FROM table_name_51 WHERE artist = "enrique alciati"
How many yards did kevin swayne average, with a long carry over 7?
CREATE TABLE table_name_43 (avg INTEGER, player VARCHAR, long VARCHAR)
SELECT MIN(avg) FROM table_name_43 WHERE player = "kevin swayne" AND long > 7
Name the december for record 14-17-4
CREATE TABLE table_27537870_5 (december VARCHAR, record VARCHAR)
SELECT december FROM table_27537870_5 WHERE record = "14-17-4"
What is the highest crowd when carlton is the away team?
CREATE TABLE table_name_62 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_62 WHERE away_team = "carlton"
Name the chassis for sfacs ecurie france
CREATE TABLE table_28190534_1 (chassis VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_28190534_1 WHERE entrant = "SFACS Ecurie France"
What percentage of users were using Opera during the period in which 63.67% were using Internet Explorer?
CREATE TABLE table_name_59 (opera VARCHAR, internet_explorer VARCHAR)
SELECT opera FROM table_name_59 WHERE internet_explorer = "63.67%"
How many 125cc winners were in the same events as when the Moto2 winner was Shoya Tomizawa?
CREATE TABLE table_20935975_1 (moto2_winner VARCHAR)
SELECT COUNT(125 AS cc_winner) FROM table_20935975_1 WHERE moto2_winner = "Shoya Tomizawa"
What is Glider, when Speed is "147.3km/h"?
CREATE TABLE table_name_40 (glider VARCHAR, speed VARCHAR)
SELECT glider FROM table_name_40 WHERE speed = "147.3km/h"
How many episodes were written by Tom Scharpling and Daniel Dratch?
CREATE TABLE table_25716397_1 (no_in_season VARCHAR, written_by VARCHAR)
SELECT COUNT(no_in_season) FROM table_25716397_1 WHERE written_by = "Tom Scharpling and Daniel Dratch"
Which Sydney has a Perth of no, an Adelaide of yes, and a Gold Coast of no?
CREATE TABLE table_name_84 (sydney VARCHAR, gold_coast VARCHAR, perth VARCHAR, adelaide VARCHAR)
SELECT sydney FROM table_name_84 WHERE perth = "no" AND adelaide = "yes" AND gold_coast = "no"
What position has 1958 as the NFL Draft, and jerry kramer as the player?
CREATE TABLE table_name_55 (position VARCHAR, nfl_draft VARCHAR, player VARCHAR)
SELECT position FROM table_name_55 WHERE nfl_draft = 1958 AND player = "jerry kramer"
How many first-team goals does the team have whose player is Samir Carruthers?
CREATE TABLE table_name_73 (first_team_goals VARCHAR, player VARCHAR)
SELECT first_team_goals FROM table_name_73 WHERE player = "samir carruthers"
What is the number of the player who attended Delta State?
CREATE TABLE table_15621965_16 (no INTEGER, school_club_team VARCHAR)
SELECT MAX(no) FROM table_15621965_16 WHERE school_club_team = "Delta State"