answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = "yoann le boulanger" AND team_classification = "gerolsteiner"
|
CREATE TABLE table_name_11 (points_classification_navy_blue_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR)
|
What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner?
|
SELECT SUM(attendance) FROM table_name_75 WHERE date = "april 7"
|
CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR)
|
What was the attendance on April 7?
|
SELECT northumberland_senior_benevolent_bowl FROM table_name_25 WHERE northumberland_minor_cup = "whitley bay 'a'"
|
CREATE TABLE table_name_25 (northumberland_senior_benevolent_bowl VARCHAR, northumberland_minor_cup VARCHAR)
|
Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Minor Cup was won by Whitley Bay 'a'?
|
SELECT film_title_used_in_nomination FROM table_name_6 WHERE country = "netherlands"
|
CREATE TABLE table_name_6 (film_title_used_in_nomination VARCHAR, country VARCHAR)
|
What was the film nomination in the Netherlands?
|
SELECT director FROM table_name_6 WHERE original_title = "turks fruit"
|
CREATE TABLE table_name_6 (director VARCHAR, original_title VARCHAR)
|
Who directed Turks Fruit?
|
SELECT director FROM table_name_65 WHERE country = "poland"
|
CREATE TABLE table_name_65 (director VARCHAR, country VARCHAR)
|
What director is from Poland?
|
SELECT director FROM table_name_60 WHERE language = "romanian"
|
CREATE TABLE table_name_60 (director VARCHAR, language VARCHAR)
|
Who directed the Romanian film?
|
SELECT place FROM table_name_18 WHERE money___$__ > 400
|
CREATE TABLE table_name_18 (place VARCHAR, money___$__ INTEGER)
|
What placement gets more than $400?
|
SELECT AVG(money___) AS $__ FROM table_name_85 WHERE to_par = "+2" AND player = "toney penna"
|
CREATE TABLE table_name_85 (money___ INTEGER, to_par VARCHAR, player VARCHAR)
|
What's the average payout of toney penna with a +2 par?
|
SELECT COUNT(attendance) FROM table_name_91 WHERE date = "april 16"
|
CREATE TABLE table_name_91 (attendance VARCHAR, date VARCHAR)
|
What is the attendance number of the game on April 16?
|
SELECT AVG(pick) FROM table_name_81 WHERE round < 3 AND college = "northwestern state"
|
CREATE TABLE table_name_81 (pick INTEGER, round VARCHAR, college VARCHAR)
|
What was the average pick of northwestern state college under round 3?
|
SELECT position FROM table_name_32 WHERE college = "rutgers"
|
CREATE TABLE table_name_32 (position VARCHAR, college VARCHAR)
|
Rutgers college holds what position?
|
SELECT MIN(pick) FROM table_name_97 WHERE position = "center" AND name = "les studdard" AND round < 10
|
CREATE TABLE table_name_97 (pick INTEGER, round VARCHAR, position VARCHAR, name VARCHAR)
|
In what round smaller than 10, was the center les studdard picked in?
|
SELECT college FROM table_name_80 WHERE round < 2
|
CREATE TABLE table_name_80 (college VARCHAR, round INTEGER)
|
Which college had rounds smaller than 2?
|
SELECT record FROM table_name_8 WHERE score = "7 - 2"
|
CREATE TABLE table_name_8 (record VARCHAR, score VARCHAR)
|
What record was reached with a score of 7 - 2?
|
SELECT club FROM table_name_78 WHERE rank = "5"
|
CREATE TABLE table_name_78 (club VARCHAR, rank VARCHAR)
|
What is the name of the club with a rank of 5?
|
SELECT rank FROM table_name_25 WHERE games = "276"
|
CREATE TABLE table_name_25 (rank VARCHAR, games VARCHAR)
|
What is the rank that shows 276 games?
|
SELECT rank FROM table_name_64 WHERE games = "426"
|
CREATE TABLE table_name_64 (rank VARCHAR, games VARCHAR)
|
What is the rank that shows 426 games?
|
SELECT games FROM table_name_39 WHERE player = "roger merrett"
|
CREATE TABLE table_name_39 (games VARCHAR, player VARCHAR)
|
What is the number of games for Roger Merrett?
|
SELECT engine FROM table_name_98 WHERE finish = "27"
|
CREATE TABLE table_name_98 (engine VARCHAR, finish VARCHAR)
|
What Engine had a Finish of 27?
|
SELECT engine FROM table_name_72 WHERE chassis = "march 85c"
|
CREATE TABLE table_name_72 (engine VARCHAR, chassis VARCHAR)
|
What Engine had a chassis of March 85c?
|
SELECT engine FROM table_name_68 WHERE finish = "21"
|
CREATE TABLE table_name_68 (engine VARCHAR, finish VARCHAR)
|
What Engine has a Finish of 21?
|
SELECT platform FROM table_name_84 WHERE publisher = "mindark"
|
CREATE TABLE table_name_84 (platform VARCHAR, publisher VARCHAR)
|
On what platform does Mindark publish?
|
SELECT year FROM table_name_14 WHERE developer = "avatar reality"
|
CREATE TABLE table_name_14 (year VARCHAR, developer VARCHAR)
|
What year did Avatar Reality release a game?
|
SELECT publisher FROM table_name_35 WHERE title = "crysis warhead"
|
CREATE TABLE table_name_35 (publisher VARCHAR, title VARCHAR)
|
What publisher created Crysis Warhead?
|
SELECT platform FROM table_name_37 WHERE publisher = "mindark"
|
CREATE TABLE table_name_37 (platform VARCHAR, publisher VARCHAR)
|
For what platform does Mindark publish?
|
SELECT publisher FROM table_name_14 WHERE developer = "paleo entertainment"
|
CREATE TABLE table_name_14 (publisher VARCHAR, developer VARCHAR)
|
What publisher does Paleo Entertainment develop for?
|
SELECT developer FROM table_name_71 WHERE title = "vigilance"
|
CREATE TABLE table_name_71 (developer VARCHAR, title VARCHAR)
|
Who was the developer for Vigilance?
|
SELECT player FROM table_name_17 WHERE home_town = "swift current, ab"
|
CREATE TABLE table_name_17 (player VARCHAR, home_town VARCHAR)
|
Which player's home town is Swift Current, AB?
|
SELECT position FROM table_name_13 WHERE number = "23"
|
CREATE TABLE table_name_13 (position VARCHAR, number VARCHAR)
|
Which position does number 23 play?
|
SELECT number FROM table_name_22 WHERE position = "skaters"
|
CREATE TABLE table_name_22 (number VARCHAR, position VARCHAR)
|
Which number plays the skaters position?
|
SELECT weight FROM table_name_31 WHERE number = "26"
|
CREATE TABLE table_name_31 (weight VARCHAR, number VARCHAR)
|
How much does number 26 weigh?
|
SELECT family FROM table_name_40 WHERE name = "humpback whale"
|
CREATE TABLE table_name_40 (family VARCHAR, name VARCHAR)
|
Which family has a Name of humpback whale?
|
SELECT name FROM table_name_20 WHERE red_list > 0 AND species_authority = "balaenoptera acutorostrata lacépède, 1804"
|
CREATE TABLE table_name_20 (name VARCHAR, red_list VARCHAR, species_authority VARCHAR)
|
Which name has a Red List larger than 0, and a Species/Authority of balaenoptera acutorostrata lacépède, 1804?
|
SELECT species_authority FROM table_name_44 WHERE name = "true's beaked whale"
|
CREATE TABLE table_name_44 (species_authority VARCHAR, name VARCHAR)
|
Which Species/Authority has a Name of true's beaked whale?
|
SELECT engine_s_ FROM table_name_41 WHERE points = "2"
|
CREATE TABLE table_name_41 (engine_s_ VARCHAR, points VARCHAR)
|
What engine has 2 points?
|
SELECT tyres FROM table_name_37 WHERE year > 1974 AND points = "5"
|
CREATE TABLE table_name_37 (tyres VARCHAR, year VARCHAR, points VARCHAR)
|
What tyres are associated with a year after 1974 and 5 points?
|
SELECT engine_s_ FROM table_name_71 WHERE chassis = "ensign n177" AND year < 1978
|
CREATE TABLE table_name_71 (engine_s_ VARCHAR, chassis VARCHAR, year VARCHAR)
|
What is the engine(s) on the car before 1978 with ensign n177 chassis?
|
SELECT tyres FROM table_name_15 WHERE points = "1" AND chassis = "ensign n177"
|
CREATE TABLE table_name_15 (tyres VARCHAR, points VARCHAR, chassis VARCHAR)
|
What tyres have 1 point and an ensign n177 chassis?
|
SELECT entrant FROM table_name_12 WHERE year < 1987 AND engine = "bmw straight-4 (t/c)" AND pts > 2
|
CREATE TABLE table_name_12 (entrant VARCHAR, pts VARCHAR, year VARCHAR, engine VARCHAR)
|
Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts?
|
SELECT COUNT(rank) FROM table_name_46 WHERE name = "ku hyo-jin"
|
CREATE TABLE table_name_46 (rank VARCHAR, name VARCHAR)
|
What did Ku Hyo-Jin rank?
|
SELECT SUM(rank) FROM table_name_55 WHERE time = "2:25.86" AND lane < 7
|
CREATE TABLE table_name_55 (rank INTEGER, time VARCHAR, lane VARCHAR)
|
What was the rank of the person who swam in Lane 7 with a time of 2:25.86?
|
SELECT laid_down FROM table_name_57 WHERE ship = "fearless"
|
CREATE TABLE table_name_57 (laid_down VARCHAR, ship VARCHAR)
|
Which Laid down has a Ship of fearless?
|
SELECT ship FROM table_name_43 WHERE pennant_number = "h.69"
|
CREATE TABLE table_name_43 (ship VARCHAR, pennant_number VARCHAR)
|
Which ship has a Pennant number of h.69?
|
SELECT launched FROM table_name_36 WHERE commissioned = "6 june 1935"
|
CREATE TABLE table_name_36 (launched VARCHAR, commissioned VARCHAR)
|
Which Launched has Commissioned 6 june 1935?
|
SELECT launched FROM table_name_64 WHERE ship = "fearless"
|
CREATE TABLE table_name_64 (launched VARCHAR, ship VARCHAR)
|
What launch has a Ship of fearless?
|
SELECT commissioned FROM table_name_40 WHERE launched = "28 june 1934" AND pennant_number = "h.78"
|
CREATE TABLE table_name_40 (commissioned VARCHAR, launched VARCHAR, pennant_number VARCHAR)
|
Which commission was launched 28 june 1934, and has a Pennant number of h.78?
|
SELECT year FROM table_name_2 WHERE round = "17"
|
CREATE TABLE table_name_2 (year VARCHAR, round VARCHAR)
|
Which year has a Round of 17?
|
SELECT opponent FROM table_name_73 WHERE club = "essendon" AND score = "13.4.82"
|
CREATE TABLE table_name_73 (opponent VARCHAR, club VARCHAR, score VARCHAR)
|
Which opponent has a Club of essendon, and a Score of 13.4.82?
|
SELECT opponent FROM table_name_89 WHERE score = "15.4.94"
|
CREATE TABLE table_name_89 (opponent VARCHAR, score VARCHAR)
|
Which opponent has a Score of 15.4.94?
|
SELECT opponent FROM table_name_34 WHERE round = "12"
|
CREATE TABLE table_name_34 (opponent VARCHAR, round VARCHAR)
|
Which opponent has a Round of 12?
|
SELECT quarter FROM table_name_7 WHERE round = "17"
|
CREATE TABLE table_name_7 (quarter VARCHAR, round VARCHAR)
|
Which Quarter has a Round of 17?
|
SELECT whenbuilt FROM table_name_32 WHERE name = "moray firth"
|
CREATE TABLE table_name_32 (whenbuilt VARCHAR, name VARCHAR)
|
When was moray firth built?
|
SELECT withdrawn FROM table_name_93 WHERE name = "charles dickens"
|
CREATE TABLE table_name_93 (withdrawn VARCHAR, name VARCHAR)
|
Name the withdrawn for charles dickens
|
SELECT opponent FROM table_name_24 WHERE date = "july 27"
|
CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)
|
Which opponent has a Date of july 27?
|
SELECT venue FROM table_name_69 WHERE year < 2008 AND tournament = "world race walking cup"
|
CREATE TABLE table_name_69 (venue VARCHAR, year VARCHAR, tournament VARCHAR)
|
What Venue held the World Race Walking Cup tourney before 2008?
|
SELECT event FROM table_name_8 WHERE venue = "helsinki, finland"
|
CREATE TABLE table_name_8 (event VARCHAR, venue VARCHAR)
|
What tournement was held in Helsinki, Finland in 2005?
|
SELECT venue FROM table_name_12 WHERE tournament = "olympic games" AND year = 2012
|
CREATE TABLE table_name_12 (venue VARCHAR, tournament VARCHAR, year VARCHAR)
|
What Venue held the Olympic games in 2012?
|
SELECT website FROM table_name_27 WHERE name = "yamagata international documentary film festival"
|
CREATE TABLE table_name_27 (website VARCHAR, name VARCHAR)
|
What's the website for the yamagata international documentary film festival?
|
SELECT rank FROM table_name_51 WHERE qual = "135.328"
|
CREATE TABLE table_name_51 (rank VARCHAR, qual VARCHAR)
|
How did Johnnie Parsons finish when his qualifying time was 135.328?
|
SELECT rank FROM table_name_67 WHERE laps > 200
|
CREATE TABLE table_name_67 (rank VARCHAR, laps INTEGER)
|
What was Johnnie Parsons rank when he completed over 200 laps?
|
SELECT podiums FROM table_name_62 WHERE wins = "2" AND season = 2008
|
CREATE TABLE table_name_62 (podiums VARCHAR, wins VARCHAR, season VARCHAR)
|
What is the value for Podiums when the value for Wins is 2, and when the Season is 2008?
|
SELECT position FROM table_name_98 WHERE series = "macau grand prix" AND season < 2007
|
CREATE TABLE table_name_98 (position VARCHAR, series VARCHAR, season VARCHAR)
|
What is the value for Position, when the Series is the Macau Grand Prix, and when the Season is before 2007?
|
SELECT wins FROM table_name_67 WHERE position = "7th"
|
CREATE TABLE table_name_67 (wins VARCHAR, position VARCHAR)
|
What is the value for Wins when the Position is 7th?
|
SELECT series FROM table_name_28 WHERE season > 2008 AND podiums = "3" AND position = "8th"
|
CREATE TABLE table_name_28 (series VARCHAR, position VARCHAR, season VARCHAR, podiums VARCHAR)
|
What is the Series, when the Season is after 2008, when the value for Podiums is 3, and when the Position is 8th?
|
SELECT podiums FROM table_name_65 WHERE season > 2008 AND series = "gp2 asia series"
|
CREATE TABLE table_name_65 (podiums VARCHAR, season VARCHAR, series VARCHAR)
|
What is the value for Podiums, when the Season is after 2008, and when the Series is GP2 Asia Series?
|
SELECT wins FROM table_name_41 WHERE series = "gp2 series" AND season < 2009
|
CREATE TABLE table_name_41 (wins VARCHAR, series VARCHAR, season VARCHAR)
|
What is the value for Wins, when the Series is GP2 Series, and when the Season is before 2009?
|
SELECT loss FROM table_name_68 WHERE opponent = "indians" AND record = "15-15"
|
CREATE TABLE table_name_68 (loss VARCHAR, opponent VARCHAR, record VARCHAR)
|
What was the loss of the game against the Indians when the record was 15-15?
|
SELECT COUNT(attendance) FROM table_name_61 WHERE record = "23-23"
|
CREATE TABLE table_name_61 (attendance VARCHAR, record VARCHAR)
|
What is the total attendance for games when the record was 23-23?
|
SELECT COUNT(points) FROM table_name_61 WHERE division = "conference" AND league_pos = "9th" AND lost < 13
|
CREATE TABLE table_name_61 (points VARCHAR, lost VARCHAR, division VARCHAR, league_pos VARCHAR)
|
What is the total number of points for the conference division, a league position of 9th, and a lost result less than 13?
|
SELECT SUM(drawn) FROM table_name_36 WHERE league_pos = "15th" AND lost > 17
|
CREATE TABLE table_name_36 (drawn INTEGER, league_pos VARCHAR, lost VARCHAR)
|
What is the drawn result with a league position of 15th and a lost result that is more than 17?
|
SELECT competition FROM table_name_6 WHERE 2010 = "dnp"
|
CREATE TABLE table_name_6 (competition VARCHAR)
|
Name the competition of 2010 of dnp
|
SELECT score FROM table_name_73 WHERE visitor = "columbus"
|
CREATE TABLE table_name_73 (score VARCHAR, visitor VARCHAR)
|
Name the score for columbus visitor
|
SELECT MIN(attendance) FROM table_name_98 WHERE visitor = "edmonton"
|
CREATE TABLE table_name_98 (attendance INTEGER, visitor VARCHAR)
|
Name the least attendance with visitor of edmonton
|
SELECT MIN(lane) FROM table_name_17 WHERE name = "sue rolph" AND rank < 5
|
CREATE TABLE table_name_17 (lane INTEGER, name VARCHAR, rank VARCHAR)
|
What is the lowest numbered lane of Sue Rolph with a rank under 5?
|
SELECT lane FROM table_name_21 WHERE time = 55.69
|
CREATE TABLE table_name_21 (lane VARCHAR, time VARCHAR)
|
What is the lane number of the swimmer with a time of 55.69?
|
SELECT MIN(league_cup) FROM table_name_9 WHERE championship = 4
|
CREATE TABLE table_name_9 (league_cup INTEGER, championship VARCHAR)
|
What is the lowest number of league cups with 4 championships?
|
SELECT MAX(fa_cup) FROM table_name_43 WHERE total = "0 4" AND championship < 4
|
CREATE TABLE table_name_43 (fa_cup INTEGER, total VARCHAR, championship VARCHAR)
|
What is the highest value for FA cups, that has a total of 0 4, with less than 4 championships?
|
SELECT MIN(fa_cup) FROM table_name_3 WHERE total = "0 2" AND league_cup < 0
|
CREATE TABLE table_name_3 (fa_cup INTEGER, total VARCHAR, league_cup VARCHAR)
|
How many FA cups were there without any league cups, but a total of 0 2?
|
SELECT player FROM table_name_99 WHERE pick__number = "41"
|
CREATE TABLE table_name_99 (player VARCHAR, pick__number VARCHAR)
|
Who is Pick #41?
|
SELECT player FROM table_name_98 WHERE pick__number = "40"
|
CREATE TABLE table_name_98 (player VARCHAR, pick__number VARCHAR)
|
Which player was Pick #40?
|
SELECT nhl_team FROM table_name_23 WHERE player = "dave bonter"
|
CREATE TABLE table_name_23 (nhl_team VARCHAR, player VARCHAR)
|
Which team picked Dave Bonter?
|
SELECT nhl_team FROM table_name_81 WHERE college_junior_club_team = "toronto marlboros (oha)" AND pick__number = "32"
|
CREATE TABLE table_name_81 (nhl_team VARCHAR, college_junior_club_team VARCHAR, pick__number VARCHAR)
|
Which team picked the player from the Toronto Marlboros (OHA) as Pick #32?
|
SELECT MAX(games) FROM table_name_25 WHERE league = "eredivisie" AND manager = "jurrie koolhof" AND goals < 10
|
CREATE TABLE table_name_25 (games INTEGER, goals VARCHAR, league VARCHAR, manager VARCHAR)
|
Name the most games for eredivisie when jurrie koolhof is manager when goals are less than 10
|
SELECT MIN(rank) FROM table_name_98 WHERE games > 34 AND season = "2009-10"
|
CREATE TABLE table_name_98 (rank INTEGER, games VARCHAR, season VARCHAR)
|
Name the least rank when games are more than 34 and the season is 2009-10
|
SELECT MIN(points) FROM table_name_52 WHERE team = "mv agusta" AND rank = "13th" AND wins < 0
|
CREATE TABLE table_name_52 (points INTEGER, wins VARCHAR, team VARCHAR, rank VARCHAR)
|
Name the least point for mv agusta and rank of 13th for wins less than 0
|
SELECT rank FROM table_name_10 WHERE wins = 0 AND points = 2
|
CREATE TABLE table_name_10 (rank VARCHAR, wins VARCHAR, points VARCHAR)
|
Name the rank for wins of 0 and points of 2
|
SELECT COUNT(points) FROM table_name_31 WHERE year < 1955 AND rank = "5th" AND wins < 0
|
CREATE TABLE table_name_31 (points VARCHAR, wins VARCHAR, year VARCHAR, rank VARCHAR)
|
Name the total number of points with year less than 1955 and rank of 5th with wins less than 0
|
SELECT SUM(decile) FROM table_name_99 WHERE area = "normanby" AND roll < 157
|
CREATE TABLE table_name_99 (decile INTEGER, area VARCHAR, roll VARCHAR)
|
What is the total decile in the area of Normanby with a roller smaller than 157?
|
SELECT authority FROM table_name_62 WHERE decile > 5 AND roll = 170
|
CREATE TABLE table_name_62 (authority VARCHAR, decile VARCHAR, roll VARCHAR)
|
What Authority has a decile greater than 5, with a roll of 170?
|
SELECT AVG(goals_against_average) FROM table_name_33 WHERE games_played > 78
|
CREATE TABLE table_name_33 (goals_against_average INTEGER, games_played INTEGER)
|
What is the average goals against average for those playing more than 78 games?
|
SELECT player FROM table_name_50 WHERE games_played > 46 AND goals_allowed < 195
|
CREATE TABLE table_name_50 (player VARCHAR, games_played VARCHAR, goals_allowed VARCHAR)
|
Who played over 46 games and allowed less than 195 goals?
|
SELECT player FROM table_name_88 WHERE goals_against_average > 2.07 AND games_played = 44
|
CREATE TABLE table_name_88 (player VARCHAR, goals_against_average VARCHAR, games_played VARCHAR)
|
Who played 44 games who averaged over 2.07 goals against?
|
SELECT how_ashtagrama_iyers_say_it FROM table_name_6 WHERE pure_tamil = "engal veetil, engal agathil"
|
CREATE TABLE table_name_6 (how_ashtagrama_iyers_say_it VARCHAR, pure_tamil VARCHAR)
|
Name how ashtagrama lyers say it for engal veetil, engal agathil
|
SELECT english_meaning FROM table_name_8 WHERE how_other_tamils_say_it = "engey poringo"
|
CREATE TABLE table_name_8 (english_meaning VARCHAR, how_other_tamils_say_it VARCHAR)
|
Name the english meaning for engey poringo
|
SELECT how_other_iyers_say_it FROM table_name_22 WHERE how_ashtagrama_iyers_say_it = "enga ullale"
|
CREATE TABLE table_name_22 (how_other_iyers_say_it VARCHAR, how_ashtagrama_iyers_say_it VARCHAR)
|
Name how other lyers say enga ullale
|
SELECT pure_tamil FROM table_name_97 WHERE how_other_iyers_say_it = "enga athilae"
|
CREATE TABLE table_name_97 (pure_tamil VARCHAR, how_other_iyers_say_it VARCHAR)
|
Name the pure tamil for enga athilae
|
SELECT company FROM table_name_59 WHERE built = 1998 AND ship = "excellent"
|
CREATE TABLE table_name_59 (company VARCHAR, built VARCHAR, ship VARCHAR)
|
What company built the ship named excellent in 1998?
|
SELECT COUNT(built) FROM table_name_68 WHERE registry = "united kingdom" AND passengers = 1 OFFSET 300
|
CREATE TABLE table_name_68 (built VARCHAR, registry VARCHAR, passengers VARCHAR)
|
What's the total built by the United Kingdom and holds 1,300 passengers?
|
SELECT visiting_team FROM table_name_67 WHERE stadium = "ralph wilson stadium"
|
CREATE TABLE table_name_67 (visiting_team VARCHAR, stadium VARCHAR)
|
Name the visiting team for stadium of ralph wilson stadium
|
Subsets and Splits
SQL Console for knowrohit07/know_sql
Finds questions in the dataset that contain the word 'god', providing a basic filtered view without much analytical insight.