question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Rank has a Nationality of france, and a Name of alain bernard, and a Lane smaller than 6?
CREATE TABLE table_name_18 (rank INTEGER, lane VARCHAR, nationality VARCHAR, name VARCHAR)
SELECT AVG(rank) FROM table_name_18 WHERE nationality = "france" AND name = "alain bernard" AND lane < 6
Which Nationality has a Rank larger than 1, and a Time smaller than 22.12, and a Lane smaller than 4, and a Name of ashley callus?
CREATE TABLE table_name_99 (nationality VARCHAR, name VARCHAR, lane VARCHAR, rank VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_99 WHERE rank > 1 AND time < 22.12 AND lane < 4 AND name = "ashley callus"
When the date is 8 october 2008 what is the sum of attendance?
CREATE TABLE table_name_62 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_62 WHERE date = "8 october 2008"
What date has an against of pohang steelers?
CREATE TABLE table_name_2 (date VARCHAR, against VARCHAR)
SELECT date FROM table_name_2 WHERE against = "pohang steelers"
What weekday has an against of kashima antlers?
CREATE TABLE table_name_68 (weekday VARCHAR, against VARCHAR)
SELECT weekday FROM table_name_68 WHERE against = "kashima antlers"
What was the final score of Game #4?
CREATE TABLE table_name_14 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_14 WHERE game = 4
Which Level has a Leading scorer 1 of tom greaves 8?
CREATE TABLE table_name_26 (level VARCHAR, leading_scorer_1 VARCHAR)
SELECT level FROM table_name_26 WHERE leading_scorer_1 = "tom greaves 8"
Which Leading scorer 1 has a Season of 2010–11?
CREATE TABLE table_name_8 (leading_scorer_1 VARCHAR, season VARCHAR)
SELECT leading_scorer_1 FROM table_name_8 WHERE season = "2010–11"
Which Leading scorer 1 has a League Contested of northern premier league premier division, and an FA Cup of 2q?
CREATE TABLE table_name_2 (leading_scorer_1 VARCHAR, leaguecontested VARCHAR, fa_cup VARCHAR)
SELECT leading_scorer_1 FROM table_name_2 WHERE leaguecontested = "northern premier league premier division" AND fa_cup = "2q"
Which Level has a League Contested of northern premier league premier division, and a Season of 2011–12?
CREATE TABLE table_name_45 (level INTEGER, leaguecontested VARCHAR, season VARCHAR)
SELECT AVG(level) FROM table_name_45 WHERE leaguecontested = "northern premier league premier division" AND season = "2011–12"
What is the least Top-5 when 1 is the cuts made?
CREATE TABLE table_name_36 (top_5 INTEGER, cuts_made VARCHAR)
SELECT MIN(top_5) FROM table_name_36 WHERE cuts_made = 1
With events less than 0, what is the fewest Top-5?
CREATE TABLE table_name_12 (top_5 INTEGER, events INTEGER)
SELECT MIN(top_5) FROM table_name_12 WHERE events < 0
How many wins of average has cuts made less than 0?
CREATE TABLE table_name_79 (wins INTEGER, cuts_made INTEGER)
SELECT AVG(wins) FROM table_name_79 WHERE cuts_made < 0
How many events total is the Top-5 2, and 4 is the cuts made, and less than 0 wins?
CREATE TABLE table_name_58 (events VARCHAR, wins VARCHAR, top_5 VARCHAR, cuts_made VARCHAR)
SELECT COUNT(events) FROM table_name_58 WHERE top_5 = 2 AND cuts_made = 4 AND wins < 0
In the Open Championship with more than 3 cuts made, what is the average wins?
CREATE TABLE table_name_15 (wins INTEGER, tournament VARCHAR, cuts_made VARCHAR)
SELECT AVG(wins) FROM table_name_15 WHERE tournament = "the open championship" AND cuts_made > 3
What lane did the barbados swimmer compete in before heat 3?
CREATE TABLE table_name_23 (lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT lane FROM table_name_23 WHERE heat < 3 AND nationality = "barbados"
What was the time of the 5th ranked swimmer who swam after heat 3 and was in a lane under 5?
CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT time FROM table_name_24 WHERE heat > 3 AND lane < 5 AND rank = 5
What is the average population for an area less than 433.7km and a 23013 code?
CREATE TABLE table_name_17 (population INTEGER, area__km_2__ VARCHAR, code VARCHAR)
SELECT AVG(population) FROM table_name_17 WHERE area__km_2__ < 433.7 AND code = 23013
What is the total code number for Amadiba?
CREATE TABLE table_name_54 (code VARCHAR, place VARCHAR)
SELECT COUNT(code) FROM table_name_54 WHERE place = "amadiba"
What is the total capacity for the Leicester Tigers?
CREATE TABLE table_name_61 (capacity VARCHAR, club VARCHAR)
SELECT COUNT(capacity) FROM table_name_61 WHERE club = "leicester tigers"
What town has the Welford Road Stadium?
CREATE TABLE table_name_3 (city_town VARCHAR, stadium VARCHAR)
SELECT city_town FROM table_name_3 WHERE stadium = "welford road"
What year was the player David Rose?
CREATE TABLE table_name_97 (year INTEGER, player VARCHAR)
SELECT SUM(year) FROM table_name_97 WHERE player = "david rose"
What is the median family income when the per capita is $24,114?
CREATE TABLE table_name_23 (median_family_income VARCHAR, per_capita_income VARCHAR)
SELECT median_family_income FROM table_name_23 WHERE per_capita_income = "$24,114"
What is the median household income when the per capita is $21,585?
CREATE TABLE table_name_56 (median_household_income VARCHAR, per_capita_income VARCHAR)
SELECT median_household_income FROM table_name_56 WHERE per_capita_income = "$21,585"
What is the population where the median family income is $48,446 and there are more than 35,343 households?
CREATE TABLE table_name_48 (population INTEGER, median_family_income VARCHAR, number_of_households VARCHAR)
SELECT AVG(population) FROM table_name_48 WHERE median_family_income = "$48,446" AND number_of_households > 35 OFFSET 343
What is the population where the median household income is $87,832 and there are fewer than 64,886 households?
CREATE TABLE table_name_83 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)
SELECT AVG(population) FROM table_name_83 WHERE median_household_income = "$87,832" AND number_of_households < 64 OFFSET 886
What is the score 1 for the major league soccer all-star game?
CREATE TABLE table_name_20 (score1 VARCHAR, competition_or_tour VARCHAR)
SELECT score1 FROM table_name_20 WHERE competition_or_tour = "major league soccer all-star game"
What is the score 1 with a h ground?
CREATE TABLE table_name_85 (score1 VARCHAR, ground VARCHAR)
SELECT score1 FROM table_name_85 WHERE ground = "h"
Who are the scorers on 1 August 2008, where the ground was A?
CREATE TABLE table_name_34 (scorers VARCHAR, ground VARCHAR, date VARCHAR)
SELECT scorers FROM table_name_34 WHERE ground = "a" AND date = "1 august 2008"
What ground had Portsmouth reserves as an opponent?
CREATE TABLE table_name_98 (ground VARCHAR, opponent VARCHAR)
SELECT ground FROM table_name_98 WHERE opponent = "portsmouth reserves"
What ground had a match smaller than 6 and Chelsea Reserves as the opponent?
CREATE TABLE table_name_17 (ground VARCHAR, match VARCHAR, opponent VARCHAR)
SELECT ground FROM table_name_17 WHERE match < 6 AND opponent = "chelsea reserves"
Which Team has Losses larger than 5, and a Position of 12?
CREATE TABLE table_name_53 (team VARCHAR, losses VARCHAR, position VARCHAR)
SELECT team FROM table_name_53 WHERE losses > 5 AND position = 12
How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11?
CREATE TABLE table_name_70 (points VARCHAR, scored VARCHAR, conceded VARCHAR, position VARCHAR, losses VARCHAR)
SELECT COUNT(points) FROM table_name_70 WHERE position > 4 AND losses > 5 AND conceded = 15 AND scored > 11
How many positions have Played smaller than 12?
CREATE TABLE table_name_79 (position INTEGER, played INTEGER)
SELECT SUM(position) FROM table_name_79 WHERE played < 12
Who was the Prato Elector with a faction of Italian?
CREATE TABLE table_name_51 (elector VARCHAR, faction VARCHAR, nationality VARCHAR)
SELECT elector FROM table_name_51 WHERE faction = "italian" AND nationality = "prato"
What's the elevator of Jacques D'euse?
CREATE TABLE table_name_74 (elevator VARCHAR, elector VARCHAR)
SELECT elevator FROM table_name_74 WHERE elector = "jacques d'euse"
What's the nationality for Nicholas III?
CREATE TABLE table_name_97 (nationality VARCHAR, elevator VARCHAR)
SELECT nationality FROM table_name_97 WHERE elevator = "nicholas iii"
What is the fewest mintage from Dora de Pédery-Hunt, and the year was before 2002?
CREATE TABLE table_name_93 (mintage INTEGER, artist VARCHAR, year VARCHAR)
SELECT MIN(mintage) FROM table_name_93 WHERE artist = "dora de pédery-hunt" AND year < 2002
What is the most mintage with common eider as the theme, and the year less than 2008?
CREATE TABLE table_name_57 (mintage INTEGER, theme VARCHAR, year VARCHAR)
SELECT MAX(mintage) FROM table_name_57 WHERE theme = "common eider" AND year < 2008
What is the earliest year when the 25th Anniversary Loonie was the theme, and the mintage was less than 35,000?
CREATE TABLE table_name_18 (year INTEGER, theme VARCHAR, mintage VARCHAR)
SELECT MIN(year) FROM table_name_18 WHERE theme = "25th anniversary loonie" AND mintage < 35 OFFSET 000
Who was the artist that had $49.95 as the issue price for the 2010 year?
CREATE TABLE table_name_50 (artist VARCHAR, issue_price VARCHAR, year VARCHAR)
SELECT artist FROM table_name_50 WHERE issue_price = "$49.95" AND year = 2010
What is the score for the southern home team?
CREATE TABLE table_name_78 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_78 WHERE home_team = "southern"
What time is it for the southern home team?
CREATE TABLE table_name_82 (time VARCHAR, home_team VARCHAR)
SELECT time FROM table_name_82 WHERE home_team = "southern"
What is the Result of the game on November 24, 1946?
CREATE TABLE table_name_78 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_78 WHERE date = "november 24, 1946"
What is the Week number on September 6, 1946?
CREATE TABLE table_name_48 (week INTEGER, date VARCHAR)
SELECT SUM(week) FROM table_name_48 WHERE date = "september 6, 1946"
What is the Date of the game with a Record of 5-3?
CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_53 WHERE record = "5-3"
What was the lowest ranking rower from Great Britain?
CREATE TABLE table_name_86 (rank INTEGER, country VARCHAR)
SELECT MIN(rank) FROM table_name_86 WHERE country = "great britain"
What are the notes for the rower in ranks over 2 and having a time of 7:00:46?
CREATE TABLE table_name_48 (notes VARCHAR, rank VARCHAR, time VARCHAR)
SELECT notes FROM table_name_48 WHERE rank > 2 AND time = "7:00:46"
Which Programming has a Video of audio only?
CREATE TABLE table_name_62 (programming VARCHAR, video VARCHAR)
SELECT programming FROM table_name_62 WHERE video = "audio only"
Which Video has a Channel of 25.3?
CREATE TABLE table_name_49 (video VARCHAR, channel VARCHAR)
SELECT video FROM table_name_49 WHERE channel = 25.3
Which Video has an Aspect of 16:9?
CREATE TABLE table_name_14 (video VARCHAR, aspect VARCHAR)
SELECT video FROM table_name_14 WHERE aspect = "16:9"
On which date did Michael Signer earn 4%?
CREATE TABLE table_name_62 (date VARCHAR, michael_signer VARCHAR)
SELECT date FROM table_name_62 WHERE michael_signer = "4%"
Which polling source gave Michael Signer 5%?
CREATE TABLE table_name_54 (source VARCHAR, michael_signer VARCHAR)
SELECT source FROM table_name_54 WHERE michael_signer = "5%"
Which date had the undecided percentage at 42%?
CREATE TABLE table_name_10 (date VARCHAR, undecided VARCHAR)
SELECT date FROM table_name_10 WHERE undecided = "42%"
What is the Rich Savage percentage in the poll with Jody Wagner at 30%?
CREATE TABLE table_name_90 (rich_savage VARCHAR, jody_wagner VARCHAR)
SELECT rich_savage FROM table_name_90 WHERE jody_wagner = "30%"
What is the Rich Savage percentage in the poll that had undecideds at 68%?
CREATE TABLE table_name_82 (rich_savage VARCHAR, undecided VARCHAR)
SELECT rich_savage FROM table_name_82 WHERE undecided = "68%"
Who was the opponent when the record was 31-24?
CREATE TABLE table_name_40 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_40 WHERE record = "31-24"
What was the score of Game 48?
CREATE TABLE table_name_43 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_43 WHERE game = "48"
Who was the opponent at the game at Madison Square Garden?
CREATE TABLE table_name_19 (opponent VARCHAR, location_attendance VARCHAR)
SELECT opponent FROM table_name_19 WHERE location_attendance = "madison square garden"
What was the score of the game at Great Western Forum?
CREATE TABLE table_name_54 (score VARCHAR, location_attendance VARCHAR)
SELECT score FROM table_name_54 WHERE location_attendance = "great western forum"
Which Romaji Title has a Japanese Title of 花より男子2(リターンズ)?
CREATE TABLE table_name_78 (romaji_title VARCHAR, japanese_title VARCHAR)
SELECT romaji_title FROM table_name_78 WHERE japanese_title = "花より男子2(リターンズ)"
Which Romaji Title has a TV Station of fuji tv, and Average Ratings of 12.41%?
CREATE TABLE table_name_65 (romaji_title VARCHAR, tv_station VARCHAR, average_ratings VARCHAR)
SELECT romaji_title FROM table_name_65 WHERE tv_station = "fuji tv" AND average_ratings = "12.41%"
Which Japanese Title has more than 9 Episodes, and a Romaji Title of haikei, chichiue-sama?
CREATE TABLE table_name_12 (japanese_title VARCHAR, episodes VARCHAR, romaji_title VARCHAR)
SELECT japanese_title FROM table_name_12 WHERE episodes > 9 AND romaji_title = "haikei, chichiue-sama"
Which Romaji Title has 11 Episodes, and a TV Station of fuji tv, and Average Ratings of 14.9%?
CREATE TABLE table_name_24 (romaji_title VARCHAR, average_ratings VARCHAR, episodes VARCHAR, tv_station VARCHAR)
SELECT romaji_title FROM table_name_24 WHERE episodes = 11 AND tv_station = "fuji tv" AND average_ratings = "14.9%"
What was the result of nomination for Season 6 after 1995?
CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, episode VARCHAR)
SELECT result FROM table_name_49 WHERE year > 1995 AND episode = "season 6"
What was the category of the award that John Frank Levey was nominated for after 1995?
CREATE TABLE table_name_73 (category VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
SELECT category FROM table_name_73 WHERE nominee_s_ = "john frank levey" AND year > 1995
What is the English Translation for the French song by the Artist Rachel?
CREATE TABLE table_name_12 (english_translation VARCHAR, language VARCHAR, artist VARCHAR)
SELECT english_translation FROM table_name_12 WHERE language = "french" AND artist = "rachel"
What is the Song by Artist Robert Cogoi?
CREATE TABLE table_name_69 (song VARCHAR, artist VARCHAR)
SELECT song FROM table_name_69 WHERE artist = "robert cogoi"
How many Points were awarded to Sabahudin Kurt with a Draw is greater than 7?
CREATE TABLE table_name_64 (points VARCHAR, draw VARCHAR, artist VARCHAR)
SELECT points FROM table_name_64 WHERE draw > 7 AND artist = "sabahudin kurt"
How much Converted has a Number of 35, and a Withdrawn smaller than 1952?
CREATE TABLE table_name_71 (converted VARCHAR, number VARCHAR, withdrawn VARCHAR)
SELECT COUNT(converted) FROM table_name_71 WHERE number = "35" AND withdrawn < 1952
What is the average latitude for townships in Dickey county with water under 2.106 sqmi and population under 95?
CREATE TABLE table_name_15 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR, county VARCHAR)
SELECT AVG(latitude) FROM table_name_15 WHERE water__sqmi_ < 2.106 AND county = "dickey" AND pop__2010_ < 95
What is the highest GEO ID for land masses over 38.117 sq mi and over 2.065 sq mi of water?
CREATE TABLE table_name_99 (geo_id INTEGER, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR)
SELECT MAX(geo_id) FROM table_name_99 WHERE land___sqmi__ > 38.117 AND water__sqmi_ > 2.065
What is the number of GEO IDs for areas in Riggin township with water area over 0.587 sq mi and ANSI codes over 1759257?
CREATE TABLE table_name_28 (geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR, township VARCHAR)
SELECT COUNT(geo_id) FROM table_name_28 WHERE water__sqmi_ > 0.587 AND township = "riggin" AND ansi_code > 1759257
What's the class when the identifier is cbf-fm-14?
CREATE TABLE table_name_94 (class VARCHAR, identifier VARCHAR)
SELECT class FROM table_name_94 WHERE identifier = "cbf-fm-14"
What's the frequency when the identifier is cbf-fm-9?
CREATE TABLE table_name_47 (frequency VARCHAR, identifier VARCHAR)
SELECT frequency FROM table_name_47 WHERE identifier = "cbf-fm-9"
What's the RECNet when the identifier is cbf-fm-20?
CREATE TABLE table_name_38 (recnet VARCHAR, identifier VARCHAR)
SELECT recnet FROM table_name_38 WHERE identifier = "cbf-fm-20"
What's the RECNet when the power is 199 watts?
CREATE TABLE table_name_9 (recnet VARCHAR, power VARCHAR)
SELECT recnet FROM table_name_9 WHERE power = "199 watts"
What's the frequency when the identifier is cbf-fm-14 having a class of A?
CREATE TABLE table_name_14 (frequency VARCHAR, class VARCHAR, identifier VARCHAR)
SELECT frequency FROM table_name_14 WHERE class = "a" AND identifier = "cbf-fm-14"
What is the A.G. value associated with D3&4 of 46 and transmitter of Seaham?
CREATE TABLE table_name_73 (ag VARCHAR, transmitter VARCHAR, d3 VARCHAR)
SELECT ag FROM table_name_73 WHERE d3 & 4 = "46" AND transmitter = "seaham"
What is the AG value associated with a D3&4 of 41?
CREATE TABLE table_name_71 (ag VARCHAR, d3 VARCHAR)
SELECT ag FROM table_name_71 WHERE d3 & 4 = "41"
which Label is in 15 december 1992?
CREATE TABLE table_name_45 (label VARCHAR, date VARCHAR)
SELECT label FROM table_name_45 WHERE date = "15 december 1992"
Which Album has an Artist of various artists (compilation), and a Label of laface?
CREATE TABLE table_name_53 (album VARCHAR, artist VARCHAR, label VARCHAR)
SELECT album FROM table_name_53 WHERE artist = "various artists (compilation)" AND label = "laface"
When has an Album of l'un n'empêche pas l'autre?
CREATE TABLE table_name_14 (date VARCHAR, album VARCHAR)
SELECT date FROM table_name_14 WHERE album = "l'un n'empêche pas l'autre"
Which Track(s) is on 18 november 1985?
CREATE TABLE table_name_86 (track_s_ VARCHAR, date VARCHAR)
SELECT track_s_ FROM table_name_86 WHERE date = "18 november 1985"
Which Label that has an Album of so red the rose?
CREATE TABLE table_name_61 (label VARCHAR, album VARCHAR)
SELECT label FROM table_name_61 WHERE album = "so red the rose"
What is the least lane number that Natalie Coughlin was in when she was ranked greater than 1?
CREATE TABLE table_name_75 (lane INTEGER, name VARCHAR, rank VARCHAR)
SELECT MIN(lane) FROM table_name_75 WHERE name = "natalie coughlin" AND rank > 1
Who is the Athlete with a rowing Time of 6:36.05?
CREATE TABLE table_name_49 (athlete VARCHAR, time VARCHAR)
SELECT athlete FROM table_name_49 WHERE time = "6:36.05"
What song was made by the sex pistols?
CREATE TABLE table_name_9 (song VARCHAR, artist VARCHAR)
SELECT song FROM table_name_9 WHERE artist = "sex pistols"
What song has the band tour vnue of 6. tool (usa) encore?
CREATE TABLE table_name_66 (song VARCHAR, band_tour_venue VARCHAR)
SELECT song FROM table_name_66 WHERE band_tour_venue = "6. tool (usa) encore"
What is the total when the A score was less than 6.6, and the B score was 8.925?
CREATE TABLE table_name_15 (total VARCHAR, a_score VARCHAR, b_score VARCHAR)
SELECT total FROM table_name_15 WHERE a_score < 6.6 AND b_score = 8.925
What total has a position smaller than 4, a B score higher than 9.125, and an A score less than 6.6?
CREATE TABLE table_name_89 (total INTEGER, a_score VARCHAR, position VARCHAR, b_score VARCHAR)
SELECT AVG(total) FROM table_name_89 WHERE position < 4 AND b_score > 9.125 AND a_score < 6.6
What is the score when watford was the away team?
CREATE TABLE table_name_59 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_59 WHERE away_team = "watford"
What is the score when york city was the home team?
CREATE TABLE table_name_91 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_91 WHERE home_team = "york city"
What score has a game greater than 29, with 24-6 as the record?
CREATE TABLE table_name_6 (score VARCHAR, game VARCHAR, record VARCHAR)
SELECT score FROM table_name_6 WHERE game > 29 AND record = "24-6"
What record has @ detroit as the opponent?
CREATE TABLE table_name_61 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_61 WHERE opponent = "@ detroit"
What high assists have McWilliams-franklin (22) as the high points?
CREATE TABLE table_name_95 (high_assists VARCHAR, high_points VARCHAR)
SELECT high_assists FROM table_name_95 WHERE high_points = "mcwilliams-franklin (22)"
What high assists have uic pavilion 3,520 as the location/attendance?
CREATE TABLE table_name_31 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT high_assists FROM table_name_31 WHERE location_attendance = "uic pavilion 3,520"
What game has jones (10) as the high rebounds?
CREATE TABLE table_name_94 (game VARCHAR, high_rebounds VARCHAR)
SELECT game FROM table_name_94 WHERE high_rebounds = "jones (10)"
How many cores does the processor with a release price of $426 have?
CREATE TABLE table_name_28 (cores VARCHAR, release_price___usd__ VARCHAR)
SELECT cores FROM table_name_28 WHERE release_price___usd__ = "$426"
What was the frequency of the Core i7-3610QE?
CREATE TABLE table_name_50 (frequency VARCHAR, model_number VARCHAR)
SELECT frequency FROM table_name_50 WHERE model_number = "core i7-3610qe"