question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the highest Density for the independencia province, with an area smaller than 2,007.4?
CREATE TABLE table_name_88 (density INTEGER, province VARCHAR, area VARCHAR)
SELECT MAX(density) FROM table_name_88 WHERE province = "independencia" AND area < 2 OFFSET 007.4
Name the story number for paul cornell
CREATE TABLE table_18012738_1 (story_no VARCHAR, written_by VARCHAR)
SELECT story_no FROM table_18012738_1 WHERE written_by = "Paul Cornell"
Which character won before 2006?
CREATE TABLE table_name_44 (character VARCHAR, result VARCHAR, year VARCHAR)
SELECT character FROM table_name_44 WHERE result = "won" AND year < 2006
What was the low number of draws for Levante Ud when their goal difference was smaller than 6?
CREATE TABLE table_name_14 (draws INTEGER, club VARCHAR, goal_difference VARCHAR)
SELECT MIN(draws) FROM table_name_14 WHERE club = "levante ud" AND goal_difference < 6
What was the record at the game held on December 24, 2005?
CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_11 WHERE date = "december 24, 2005"
When was the appointment date for the manager replaced by Lucien Favre?
CREATE TABLE table_name_68 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT date_of_appointment FROM table_name_68 WHERE replaced_by = "lucien favre"
How many years did he have an average finish of 11.7?
CREATE TABLE table_2387790_2 (avg_start VARCHAR, avg_finish VARCHAR)
SELECT COUNT(avg_start) FROM table_2387790_2 WHERE avg_finish = "11.7"
Name the number of rank world for bhutan
CREATE TABLE table_2248784_3 (rank_world VARCHAR, country VARCHAR)
SELECT COUNT(rank_world) FROM table_2248784_3 WHERE country = "Bhutan"
Which Catalogue has a Writer(s) of mark james?
CREATE TABLE table_name_60 (catalogue VARCHAR, writer_s_ VARCHAR)
SELECT catalogue FROM table_name_60 WHERE writer_s_ = "mark james"
List all the types of forms.
CREATE TABLE forms (form_type_code VARCHAR)
SELECT DISTINCT form_type_code FROM forms
Who was the home team on 1 April 2008?
CREATE TABLE table_name_52 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_52 WHERE date = "1 april 2008"
Name the least points for chassis of kurtis kraft 500a
CREATE TABLE table_name_54 (points INTEGER, chassis VARCHAR)
SELECT MIN(points) FROM table_name_54 WHERE chassis = "kurtis kraft 500a"
Name the 2012 for 2009 of a and 2010 of a and 2011 of a
CREATE TABLE table_name_89 (Id VARCHAR)
SELECT 2012 FROM table_name_89 WHERE 2009 = "a" AND 2010 = "a" AND 2011 = "a"
Who did the play-by-play before 1998 on Fox network?
CREATE TABLE table_name_56 (play_by_play VARCHAR, year VARCHAR, network VARCHAR)
SELECT play_by_play FROM table_name_56 WHERE year < 1998 AND network = "fox"
WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification?
CREATE TABLE table_name_2 (score VARCHAR, competition VARCHAR)
SELECT score FROM table_name_2 WHERE competition = "1978 world cup qualification"
What lost has a position greater than 2, a drawn greater than 0, with an against greater than 15?
CREATE TABLE table_name_24 (lost VARCHAR, against VARCHAR, position VARCHAR, drawn VARCHAR)
SELECT lost FROM table_name_24 WHERE position > 2 AND drawn > 0 AND against > 15
How many statements do we have?
CREATE TABLE Statements (Id VARCHAR)
SELECT COUNT(*) FROM Statements
Which country has the status of transferred, moving to of released, and Solano as the listed name?
CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR, status VARCHAR, moving_to VARCHAR)
SELECT country FROM table_name_85 WHERE status = "transferred" AND moving_to = "released" AND name = "solano"
Which tie number had an away team of the Tranmere Rovers?
CREATE TABLE table_name_44 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_44 WHERE away_team = "tranmere rovers"
In Silver Bow County, Montana, when the capicity is more than 45 tons, what's the highest rank found?
CREATE TABLE table_name_21 (rank INTEGER, county_and_state VARCHAR, capacity__thousands_of_metric_tons_ VARCHAR)
SELECT MAX(rank) FROM table_name_21 WHERE county_and_state = "silver bow county, montana" AND capacity__thousands_of_metric_tons_ > 45
Who was the GTU winning team when the TO winning team was #3 Camaro?
CREATE TABLE table_13642023_2 (gtu_winning_team VARCHAR, to_winning_team VARCHAR)
SELECT gtu_winning_team FROM table_13642023_2 WHERE to_winning_team = "#3 Camaro"
The canadian airdate of 17 march 2008 had how many numbers in the season?
CREATE TABLE table_10935205_1 (no_in_season VARCHAR, canadian_airdate VARCHAR)
SELECT COUNT(no_in_season) FROM table_10935205_1 WHERE canadian_airdate = "17 March 2008"
When john w. leftwich (uu) is the successor what is the date the successor was seated?
CREATE TABLE table_2147588_4 (date_successor_seated VARCHAR, successor VARCHAR)
SELECT date_successor_seated FROM table_2147588_4 WHERE successor = "John W. Leftwich (UU)"
On what date was the bridge located in McClain listed?
CREATE TABLE table_name_29 (listed VARCHAR, location VARCHAR)
SELECT listed FROM table_name_29 WHERE location = "mcclain"
When 12 is the rank who is the most recent cyclist?
CREATE TABLE table_18676973_3 (most_recent_cyclist VARCHAR, rank VARCHAR)
SELECT most_recent_cyclist FROM table_18676973_3 WHERE rank = "12"
Dave Douglas has what score?
CREATE TABLE table_name_46 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_46 WHERE player = "dave douglas"
Which players college is Tennessee?
CREATE TABLE table_14655757_1 (player VARCHAR, college VARCHAR)
SELECT player FROM table_14655757_1 WHERE college = "Tennessee"
How many couples had a vote percentage of 9.5%?
CREATE TABLE table_26375386_16 (rank VARCHAR, vote_percentage VARCHAR)
SELECT COUNT(rank) FROM table_26375386_16 WHERE vote_percentage = "9.5%"
Who is the author of Episode 38 (16)?
CREATE TABLE table_name_2 (written_by VARCHAR, episode__number VARCHAR)
SELECT written_by FROM table_name_2 WHERE episode__number = "38 (16)"
what's the mascot for 66 pulaski 2?
CREATE TABLE table_name_39 (mascot VARCHAR, _number___county VARCHAR)
SELECT mascot FROM table_name_39 WHERE _number___county = "66 pulaski 2"
What is the average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25° in 10.1 seconds?
CREATE TABLE table_name_24 (max_height__ft_ INTEGER, time_to_ft__m__at_25°__seconds_ VARCHAR, shell__lb_ VARCHAR)
SELECT AVG(max_height__ft_) FROM table_name_24 WHERE time_to_ft__m__at_25°__seconds_ = "10.1" AND shell__lb_ < 12.5
what is the maximum completed for address on 410 22nd st e
CREATE TABLE table_13397394_1 (completed VARCHAR, address VARCHAR)
SELECT completed FROM table_13397394_1 WHERE address = "410 22nd St E"
Which Telugu తెలుగు has a Tamil தமிழ் of pūsam பூசம்?
CREATE TABLE table_name_52 (telugu_తెలుగు VARCHAR, tamil_தமிழ் VARCHAR)
SELECT telugu_తెలుగు FROM table_name_52 WHERE tamil_தமிழ் = "pūsam பூசம்"
What team has 104 laps and a grid of 10?
CREATE TABLE table_name_70 (team VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT team FROM table_name_70 WHERE laps = 104 AND grid = 10
Which Drobo (2nd) has a Drobo 5d of 2012-11-02?
CREATE TABLE table_name_17 (drobo__2nd_ VARCHAR, drobo_5d VARCHAR)
SELECT drobo__2nd_ FROM table_name_17 WHERE drobo_5d = "2012-11-02"
What is the fewest losses that Ballarat FL of Lake Wendouree has when the wins are smaller than 9?
CREATE TABLE table_name_9 (losses INTEGER, ballarat_fl VARCHAR, wins VARCHAR)
SELECT MIN(losses) FROM table_name_9 WHERE ballarat_fl = "lake wendouree" AND wins < 9
What is the record for November 4, with a decision made by Denis?
CREATE TABLE table_name_10 (record VARCHAR, decision VARCHAR, date VARCHAR)
SELECT record FROM table_name_10 WHERE decision = "denis" AND date = "november 4"
What was the to winning team when the tu winning team was joe amato carson baird?
CREATE TABLE table_13657883_2 (to_winning_team VARCHAR, tu_winning_team VARCHAR)
SELECT to_winning_team FROM table_13657883_2 WHERE tu_winning_team = "Joe Amato Carson Baird"
What is every species when Afinsa is 639?
CREATE TABLE table_1818471_1 (species VARCHAR, afinsa VARCHAR)
SELECT species FROM table_1818471_1 WHERE afinsa = 639
Which seasons have fernando alonso as the driver?
CREATE TABLE table_name_24 (seasons VARCHAR, driver VARCHAR)
SELECT seasons FROM table_name_24 WHERE driver = "fernando alonso"
What date did the Seahawks play the Kansas City Chiefs at the Kingdome?
CREATE TABLE table_13258972_2 (date VARCHAR, game_site VARCHAR, opponent VARCHAR)
SELECT date FROM table_13258972_2 WHERE game_site = "Kingdome" AND opponent = "Kansas City Chiefs"
what is the least silver when bronze is 1, rank is less than 2 and gold is more than 4?
CREATE TABLE table_name_98 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT MIN(silver) FROM table_name_98 WHERE bronze = 1 AND rank < 2 AND gold > 4
What was Gassaway's record at the fight in mississippi, united states against anthony macias?
CREATE TABLE table_name_19 (record VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_19 WHERE location = "mississippi, united states" AND opponent = "anthony macias"
What's the island with a summit of Haleakalā?
CREATE TABLE table_name_74 (island VARCHAR, summit VARCHAR)
SELECT island FROM table_name_74 WHERE summit = "haleakalā"
What is the rank of the team with 1 bronze and 0 gold medals?
CREATE TABLE table_name_2 (rank VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT rank FROM table_name_2 WHERE bronze = 1 AND gold = 0
Name the location attendance for 3 game
CREATE TABLE table_27882867_4 (location_attendance VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_27882867_4 WHERE game = 3
How many Tries has Points for smaller than 137, and Tries against larger than 12?
CREATE TABLE table_name_81 (tries_for VARCHAR, points_for VARCHAR, tries_against VARCHAR)
SELECT COUNT(tries_for) FROM table_name_81 WHERE points_for < 137 AND tries_against > 12
What was the date of the tournament in Scotland with a score of 270 (–18)?
CREATE TABLE table_name_71 (date VARCHAR, score VARCHAR, location VARCHAR)
SELECT date FROM table_name_71 WHERE score = "270 (–18)" AND location = "scotland"
what is the average crowd when the away team is new zealand breakers and the venue is cairns convention centre?
CREATE TABLE table_name_64 (crowd INTEGER, away_team VARCHAR, venue VARCHAR)
SELECT AVG(crowd) FROM table_name_64 WHERE away_team = "new zealand breakers" AND venue = "cairns convention centre"
Who were the Investing Dragons in the episode that first aired on 18 January 2005 with the entrepreneur Tracey Herrtage?
CREATE TABLE table_name_65 (investing_dragon_s_ VARCHAR, first_aired VARCHAR, entrepreneur_s_ VARCHAR)
SELECT investing_dragon_s_ FROM table_name_65 WHERE first_aired = "18 january 2005" AND entrepreneur_s_ = "tracey herrtage"
How man 3-dart averages did gary anderson have?
CREATE TABLE table_24549777_1 (player VARCHAR)
SELECT COUNT(3 AS _dart_average) FROM table_24549777_1 WHERE player = "Gary Anderson"
What is the highest overall number for someone from round 16?
CREATE TABLE table_name_51 (overall INTEGER, round VARCHAR)
SELECT MAX(overall) FROM table_name_51 WHERE round = 16
Which Home team score has an Away team of st kilda?
CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_2 WHERE away_team = "st kilda"
What days held has noiz as the wrestler?
CREATE TABLE table_name_95 (days_held VARCHAR, wrestler VARCHAR)
SELECT days_held FROM table_name_95 WHERE wrestler = "noiz"
Which manufacturer of aprilia wth time of +1:36.557 has the highest lap?
CREATE TABLE table_name_75 (laps INTEGER, manufacturer VARCHAR, time VARCHAR)
SELECT MAX(laps) FROM table_name_75 WHERE manufacturer = "aprilia" AND time = "+1:36.557"
What home team has a score of 5 - 5?
CREATE TABLE table_name_30 (home_team VARCHAR, score VARCHAR)
SELECT home_team FROM table_name_30 WHERE score = "5 - 5"
When did they play the swindon wildcats away?
CREATE TABLE table_name_14 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_14 WHERE venue = "away" AND opponent = "swindon wildcats"
What was the position of the event held in Valencia, Spain?
CREATE TABLE table_name_8 (position VARCHAR, venue VARCHAR)
SELECT position FROM table_name_8 WHERE venue = "valencia, spain"
What category was the movie Working Girl nominated?
CREATE TABLE table_18638067_1 (category VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT category FROM table_18638067_1 WHERE film_title_used_in_nomination = "Working Girl"
What was the score for the game with a tie no of 1?
CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_56 WHERE tie_no = "1"
What NFL team does player keith woodside play for?
CREATE TABLE table_14650373_1 (nfl_team VARCHAR, player VARCHAR)
SELECT nfl_team FROM table_14650373_1 WHERE player = "Keith Woodside"
What is the total number of top fives when casey mears had more than 1 poles and top tens less than 9?
CREATE TABLE table_name_54 (top_fives INTEGER, poles VARCHAR, top_tens VARCHAR)
SELECT SUM(top_fives) FROM table_name_54 WHERE poles > 1 AND top_tens < 9
What is every rider on Monday August 24 at 21' 12.02 106.781mph?
CREATE TABLE table_23465864_5 (rider VARCHAR, mon_24_aug VARCHAR)
SELECT rider FROM table_23465864_5 WHERE mon_24_aug = "21' 12.02 106.781mph"
Who was the opponent when the record was 61-57?
CREATE TABLE table_name_89 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_89 WHERE record = "61-57"
What kind of TV Time that has a Result of w 24–10?
CREATE TABLE table_name_72 (tv_time VARCHAR, result VARCHAR)
SELECT tv_time FROM table_name_72 WHERE result = "w 24–10"
When hittite middle kingdom , new kingdom of egypt is the ubaid period in mesopotamia how many early chalcolithics are there?
CREATE TABLE table_23537091_1 (early_chalcolithic VARCHAR, ubaid_period_in_mesopotamia VARCHAR)
SELECT COUNT(early_chalcolithic) FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Hittite Middle Kingdom , New Kingdom of Egypt"
Which Champion has a Venue of old waverly golf club?
CREATE TABLE table_name_35 (champion VARCHAR, venue VARCHAR)
SELECT champion FROM table_name_35 WHERE venue = "old waverly golf club"
On what date was the away team West Ham United?
CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_70 WHERE away_team = "west ham united"
What is the latest year with a 34-0 result?
CREATE TABLE table_name_60 (year INTEGER, result VARCHAR)
SELECT MAX(year) FROM table_name_60 WHERE result = "34-0"
In the match where Melbourne was the away team, how much did they score?
CREATE TABLE table_name_52 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_52 WHERE away_team = "melbourne"
List all department names ordered by their starting date.
CREATE TABLE department (dname VARCHAR, mgr_start_date VARCHAR)
SELECT dname FROM department ORDER BY mgr_start_date
What score has 2 as the place?
CREATE TABLE table_name_78 (score VARCHAR, place VARCHAR)
SELECT score FROM table_name_78 WHERE place = "2"
Which Opponent has Attendances of 60,594?
CREATE TABLE table_name_34 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_34 WHERE attendance = "60,594"
What is the average To Par, when Player is "Billy Casper"?
CREATE TABLE table_name_20 (to_par INTEGER, player VARCHAR)
SELECT AVG(to_par) FROM table_name_20 WHERE player = "billy casper"
Which Winning Driver has an Event of 200 miles of norisring?
CREATE TABLE table_name_82 (winning_driver VARCHAR, event VARCHAR)
SELECT winning_driver FROM table_name_82 WHERE event = "200 miles of norisring"
How many rounds did frédéric vervisch go?
CREATE TABLE table_name_27 (rounds VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_27 WHERE driver = "frédéric vervisch"
Which film title used in nomination has the year (ceremony) 1990 (63rd)?
CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR)
SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE year__ceremony_ = "1990 (63rd)"
Which Position has Goals against larger than 32, and points larger than 30?
CREATE TABLE table_name_22 (position VARCHAR, goals_against VARCHAR, points VARCHAR)
SELECT position FROM table_name_22 WHERE goals_against > 32 AND points > 30
What is Outcome, when Partner is "Byron Black", and when Opponents is "Goran Ivanišević Brian Macphie"?
CREATE TABLE table_name_94 (outcome VARCHAR, partner VARCHAR, opponents VARCHAR)
SELECT outcome FROM table_name_94 WHERE partner = "byron black" AND opponents = "goran ivanišević brian macphie"
Name the 1997 for atp masters series 1992
CREATE TABLE table_name_65 (Id VARCHAR)
SELECT 1997 FROM table_name_65 WHERE 1992 = "atp masters series"
What's the D 42 √ when D 44 √ is majority→?
CREATE TABLE table_name_59 (d_42_√ VARCHAR, d_44_√ VARCHAR)
SELECT d_42_√ FROM table_name_59 WHERE d_44_√ = "majority→"
How many people directed the show written by Chris Sheridan?
CREATE TABLE table_14724369_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT COUNT(directed_by) FROM table_14724369_1 WHERE written_by = "Chris Sheridan"
When Team 1 is Aalborg BK, what is the 1st Leg?
CREATE TABLE table_name_53 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_53 WHERE team_1 = "aalborg bk"
Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross?
CREATE TABLE table_name_95 (league_from VARCHAR, player VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT league_from FROM table_name_95 WHERE position = "lw" AND pick__number > 34 AND player = "bradley ross"
What is the Original Title of the movie directed by Aigars Grauba?
CREATE TABLE table_name_36 (original_title VARCHAR, director VARCHAR)
SELECT original_title FROM table_name_36 WHERE director = "aigars grauba"
What is the least bronze number when the silver is less than 0?
CREATE TABLE table_name_34 (bronze INTEGER, silver INTEGER)
SELECT MIN(bronze) FROM table_name_34 WHERE silver < 0
What number of wickets were there when the average was 22.66?
CREATE TABLE table_16570286_4 (wickets INTEGER, average VARCHAR)
SELECT MAX(wickets) FROM table_16570286_4 WHERE average = "22.66"
With the Destination of Jupiter and the Closest approach of 4 February 2004, what is the Time elapsed?
CREATE TABLE table_name_11 (time_elapsed VARCHAR, destination VARCHAR, closest_approach VARCHAR)
SELECT time_elapsed FROM table_name_11 WHERE destination = "jupiter" AND closest_approach = "4 february 2004"
Where is the location of the team with a current manager of Ariel Jacobs?
CREATE TABLE table_name_17 (location VARCHAR, current_manager VARCHAR)
SELECT location FROM table_name_17 WHERE current_manager = "ariel jacobs"
What is the story timeline that was published first prior to 1984?
CREATE TABLE table_name_67 (story_timeline VARCHAR, published VARCHAR, in_order_of_publication VARCHAR)
SELECT story_timeline FROM table_name_67 WHERE published < 1984 AND in_order_of_publication = "first"
Find the names of the chip models that are not used by any phone with full accreditation type.
CREATE TABLE chip_model (model_name VARCHAR, chip_model VARCHAR, Accreditation_type VARCHAR); CREATE TABLE phone (model_name VARCHAR, chip_model VARCHAR, Accreditation_type VARCHAR)
SELECT model_name FROM chip_model EXCEPT SELECT chip_model FROM phone WHERE Accreditation_type = 'Full'
What is the Attendance at the game against the Oakland Raiders?
CREATE TABLE table_name_40 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_40 WHERE opponent = "oakland raiders"
What is the highest lost with a drawn more than 11, a position lower than 17 and more than 61 goals?
CREATE TABLE table_name_75 (lost INTEGER, goals_for VARCHAR, drawn VARCHAR, position VARCHAR)
SELECT MAX(lost) FROM table_name_75 WHERE drawn > 11 AND position < 17 AND goals_for > 61
Which nation has a bronze greater than 0, a gold greater than 0, a silver greater than 0, and 5 as the rank?
CREATE TABLE table_name_88 (nation VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT nation FROM table_name_88 WHERE bronze > 0 AND gold > 0 AND silver > 0 AND rank = "5"
How many viewers watched the episode with a story by david simon & mari kornhauser?
CREATE TABLE table_26914076_3 (us_viewers__millions_ VARCHAR, story_by VARCHAR)
SELECT us_viewers__millions_ FROM table_26914076_3 WHERE story_by = "David Simon & Mari Kornhauser"
what is the position in table when the team is hartlepool united?
CREATE TABLE table_name_11 (position_in_table VARCHAR, team VARCHAR)
SELECT position_in_table FROM table_name_11 WHERE team = "hartlepool united"
Where's the louisiana-lafayette as a visiting team?
CREATE TABLE table_26842217_4 (site VARCHAR, visiting_team VARCHAR)
SELECT site FROM table_26842217_4 WHERE visiting_team = "Louisiana-Lafayette"
What was the score of the game that had more than 8 points?
CREATE TABLE table_name_17 (score VARCHAR, points INTEGER)
SELECT score FROM table_name_17 WHERE points > 8
What was the score for the game that had an attendance of 41,087?
CREATE TABLE table_name_19 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_19 WHERE attendance = "41,087"
What is the Nation with less than 1 silver, and the total is 1, and bronze is less than 0?
CREATE TABLE table_name_81 (nation VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT nation FROM table_name_81 WHERE silver < 1 AND total = 1 AND bronze = 0