answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(title) FROM table_17861265_1 WHERE directed_by = "Cliff Bole"
How many episodes did Cliff Bole directed in season 3?
CREATE TABLE table_17861265_1 (title VARCHAR, directed_by VARCHAR)
SELECT language FROM table_name_27 WHERE director = "federico fellini"
What is the language of the film directed by Federico Fellini?
CREATE TABLE table_name_27 (language VARCHAR, director VARCHAR)
SELECT surface FROM table_name_87 WHERE outcome = "runner-up" AND score_in_the_final = "4–6, 6–7, 6–2, 2–6"
Which Surface has an Outcome of runner-up, and a Score in the final of 4–6, 6–7, 6–2, 2–6?
CREATE TABLE table_name_87 (surface VARCHAR, outcome VARCHAR, score_in_the_final VARCHAR)
SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Settled LIMIT 1
Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.
CREATE TABLE Claims (Amount_Settled VARCHAR, Amount_Claimed VARCHAR)
SELECT party FROM table_name_65 WHERE state = "vic" AND member = "peter fisher"
What party is Peter Fisher from Vic serve in office?
CREATE TABLE table_name_65 (party VARCHAR, state VARCHAR, member VARCHAR)
SELECT position FROM table_name_10 WHERE height = "5-8" AND home_town = "grottoes, va"
What position does the 5-8 player from Grottoes, VA play?
CREATE TABLE table_name_10 (position VARCHAR, height VARCHAR, home_town VARCHAR)
SELECT municipal_status FROM table_21284653_1 WHERE population_density = "895.5"
What is the municipal status where the population density is 895.5?
CREATE TABLE table_21284653_1 (municipal_status VARCHAR, population_density VARCHAR)
SELECT hometown FROM table_11677691_7 WHERE school = "Trinity High school"
What is the hometown of trinity high school?
CREATE TABLE table_11677691_7 (hometown VARCHAR, school VARCHAR)
SELECT semifinalists FROM table_30008638_1 WHERE country_territory = "Romania"
How many semifinalists has Romania had?
CREATE TABLE table_30008638_1 (semifinalists VARCHAR, country_territory VARCHAR)
SELECT COUNT(year) FROM table_name_45 WHERE nominee = "denis lawson"
What years was Denis Lawson nominated for an award?
CREATE TABLE table_name_45 (year VARCHAR, nominee VARCHAR)
SELECT election FROM table_2231241_1 WHERE seat_no_1 = "Jacques Lachapelle" AND seat_no_5 = "G. Sanscartier"
which election had seat no 1 filled by jacques lachapelle but seat no 5 was filled by g. sanscartier
CREATE TABLE table_2231241_1 (election VARCHAR, seat_no_1 VARCHAR, seat_no_5 VARCHAR)
SELECT COUNT(year) FROM table_name_78 WHERE baden = "freiburger fc"
What's the year that has a Baden Freiburger FC?
CREATE TABLE table_name_78 (year VARCHAR, baden VARCHAR)
SELECT surface FROM table_name_7 WHERE score = "2–6, 6–1, [10–5]"
What type of surface was played on when the score was 2–6, 6–1, [10–5]?
CREATE TABLE table_name_7 (surface VARCHAR, score VARCHAR)
SELECT MIN(rank) FROM table_11174272_1
what is the minimum rank
CREATE TABLE table_11174272_1 (rank INTEGER)
SELECT period FROM table_name_9 WHERE player = "stanislav chistov"
In which period did Stanislav Chistov get a penalty?
CREATE TABLE table_name_9 (period VARCHAR, player VARCHAR)
SELECT high_assists FROM table_17340355_10 WHERE high_rebounds = "Matt Barnes (11)"
Who did the most assists when Matt Barnes (11) got the most rebounds?
CREATE TABLE table_17340355_10 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT SUM(crowd) FROM table_name_31 WHERE away_team = "geelong"
How big was the crowd at the game the away team geelong played at?
CREATE TABLE table_name_31 (crowd INTEGER, away_team VARCHAR)
SELECT SUM(gold) FROM table_name_25 WHERE rank > 6 AND nation = "netherlands" AND bronze < 0
Which Gold has a Rank larger than 6, and a Nation of netherlands, and a Bronze smaller than 0?
CREATE TABLE table_name_25 (gold INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT constructor FROM table_name_8 WHERE circuit = "silverstone"
What is the constructor where the circuit is Silverstone?
CREATE TABLE table_name_8 (constructor VARCHAR, circuit VARCHAR)
SELECT years FROM table_name_91 WHERE area = "marton" AND decile = 3 AND name = "turakina maori girls' college"
Name the years for marton and decile of 3 for turakina maori girls' college?
CREATE TABLE table_name_91 (years VARCHAR, name VARCHAR, area VARCHAR, decile VARCHAR)
SELECT T1.season, T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.injury = 'Foot injury' OR T3.injury = 'Knee problem'
In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?
CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR, injury VARCHAR); CREATE TABLE game (season VARCHAR, stadium_id VARCHAR, id VARCHAR)
SELECT attendance FROM table_name_82 WHERE score = "0:1"
How many were in attendance with a score of 0:1?
CREATE TABLE table_name_82 (attendance VARCHAR, score VARCHAR)
SELECT us_air_force_equivalent FROM table_1015521_2 WHERE commonwealth_equivalent = "Pilot Officer"
If you are a pilot officer in the commonwealth then what will you called as in the US air force?
CREATE TABLE table_1015521_2 (us_air_force_equivalent VARCHAR, commonwealth_equivalent VARCHAR)
SELECT bore_x_stroke FROM table_name_83 WHERE year = "1929-32"
Name the Bore x stroke of 1929-32
CREATE TABLE table_name_83 (bore_x_stroke VARCHAR, year VARCHAR)
SELECT SUM(round) FROM table_name_41 WHERE pick = 169
Name the sum of round for pick of 169
CREATE TABLE table_name_41 (round INTEGER, pick VARCHAR)
SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id WHERE T3.player = 'Thiago Motta'
List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.
CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR, player VARCHAR)
SELECT team FROM table_name_78 WHERE points < 35
Which team scored less than 35 points?
CREATE TABLE table_name_78 (team VARCHAR, points INTEGER)
SELECT MAX(scored) FROM table_name_99 WHERE position > 5 AND wins < 4 AND draws > 8
What is the highest points scored for the team with a position larger than 5, who had less than 4 wins and more than 8 draws?
CREATE TABLE table_name_99 (scored INTEGER, draws VARCHAR, position VARCHAR, wins VARCHAR)
SELECT MAX(rank_in_nyagatare_sectors), _2012 FROM table_12496904_1 WHERE population_change_2002_2012___percentage_ = "35.5"
When the population change 2002-2012 (%) is 35.5 what is the rank in nyagatare sectors?
CREATE TABLE table_12496904_1 (_2012 VARCHAR, rank_in_nyagatare_sectors INTEGER, population_change_2002_2012___percentage_ VARCHAR)
SELECT mens_40 FROM table_16724844_1 WHERE mens_u20 = "Southern Suns def Gold Coast Sharks"
What were the results for mens 40 when the mens u20 was Southern Suns def Gold Coast Sharks?
CREATE TABLE table_16724844_1 (mens_40 VARCHAR, mens_u20 VARCHAR)
SELECT college FROM table_name_40 WHERE player = "keith shologan"
What college did Keith Shologan play for?
CREATE TABLE table_name_40 (college VARCHAR, player VARCHAR)
SELECT MIN(laps) FROM table_name_89 WHERE time_retired = "+18.445"
What was the fewest laps for somone who finished +18.445?
CREATE TABLE table_name_89 (laps INTEGER, time_retired VARCHAR)
SELECT 1980 AS _1981_team FROM table_name_22 WHERE birthplace = "warroad, minnesota"
What was the 1980-1981 team of the player born in Warroad, Minnesota?
CREATE TABLE table_name_22 (birthplace VARCHAR)
SELECT points FROM table_name_67 WHERE draw = 5
How many points does Draw 5 have?
CREATE TABLE table_name_67 (points VARCHAR, draw VARCHAR)
SELECT opponent FROM table_name_4 WHERE score = "9 - 6" AND attendance > 31 OFFSET 293
Who was the opponent of the game that 31,293 people attended that had a final score of 9 - 6.
CREATE TABLE table_name_4 (opponent VARCHAR, score VARCHAR, attendance VARCHAR)
SELECT location FROM table_name_59 WHERE unit = "jiufotang formation"
What country is the Jiufotang Formation located in?
CREATE TABLE table_name_59 (location VARCHAR, unit VARCHAR)
SELECT score FROM table_name_22 WHERE partner = "mashona washington" AND date = "january 10, 2011"
What is the final score for the game played on January 10, 2011 with partner Mashona Washington?
CREATE TABLE table_name_22 (score VARCHAR, partner VARCHAR, date VARCHAR)
SELECT away_team FROM table_name_32 WHERE home_team = "hereford united"
What team was the away team when the home team was Hereford United?
CREATE TABLE table_name_32 (away_team VARCHAR, home_team VARCHAR)
SELECT pronunciation_b FROM table_name_64 WHERE meaning_b = "border, frontier"
Name the pronunciation for meaning b of border, frontier
CREATE TABLE table_name_64 (pronunciation_b VARCHAR, meaning_b VARCHAR)
SELECT COUNT(club) FROM table_27293285_4 WHERE lost = "16"
Name the total number of club for lost being 16
CREATE TABLE table_27293285_4 (club VARCHAR, lost VARCHAR)
SELECT record FROM table_name_42 WHERE date = "23 january 2010" AND time__seconds_ < 42.679
What is the Record for 23 january 2010, with a time smaller than 42.679 seconds?
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR, time__seconds_ VARCHAR)
SELECT opponent FROM table_name_69 WHERE record = "4-5"
Who was the opponent at the game when the record was 4-5?
CREATE TABLE table_name_69 (opponent VARCHAR, record VARCHAR)
SELECT region FROM table_name_61 WHERE date = 2004
What is Region, when Date is 2004?
CREATE TABLE table_name_61 (region VARCHAR, date VARCHAR)
SELECT date FROM table_14984078_1 WHERE week = 13
What was the game date in week 13?
CREATE TABLE table_14984078_1 (date VARCHAR, week VARCHAR)
SELECT team FROM table_23211041_5 WHERE date = "November 24"
What team was played on november 24?
CREATE TABLE table_23211041_5 (team VARCHAR, date VARCHAR)
SELECT shuji_kondo FROM table_name_90 WHERE mazada = "x" AND ryuji_hijikata = "hijikata (14:24)"
Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24)
CREATE TABLE table_name_90 (shuji_kondo VARCHAR, mazada VARCHAR, ryuji_hijikata VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27756314_11 WHERE game = 76
How many different results for high rebounds were there for game number 76?
CREATE TABLE table_27756314_11 (high_rebounds VARCHAR, game VARCHAR)
SELECT screening_completed FROM table_name_22 WHERE screening_started = "23 january 2006"
Name the screening completed for screening started 23 january 2006
CREATE TABLE table_name_22 (screening_completed VARCHAR, screening_started VARCHAR)
SELECT date FROM table_name_29 WHERE score = "w 112-107 (ot)"
What is the Date of the Game with a Score of w 112-107 (ot)?
CREATE TABLE table_name_29 (date VARCHAR, score VARCHAR)
SELECT SUM(weight__kg_) FROM table_name_39 WHERE birthplace = "virginia, minnesota"
What is the sum of Weight for the person born in virginia, minnesota?
CREATE TABLE table_name_39 (weight__kg_ INTEGER, birthplace VARCHAR)
SELECT loss FROM table_name_81 WHERE record = "50-32"
What was the loss of the game when the record was 50-32?
CREATE TABLE table_name_81 (loss VARCHAR, record VARCHAR)
SELECT song FROM table_name_39 WHERE place > 7 AND points > 13 AND draw = 5
Which song has a place greater than 7, more than 13 points, and draw of 5?
CREATE TABLE table_name_39 (song VARCHAR, draw VARCHAR, place VARCHAR, points VARCHAR)
SELECT club FROM table_name_96 WHERE played = "22" AND drawn = "0" AND lost = "14" AND losing_bp = "5"
What is the club that has played 22 rounds, has a drawn score of 0, has lost 14, and whose losing BP is 5?
CREATE TABLE table_name_96 (club VARCHAR, losing_bp VARCHAR, lost VARCHAR, played VARCHAR, drawn VARCHAR)
SELECT pitch FROM table_name_97 WHERE location = "isle of man"
What Pitch is located at Isle of Man?
CREATE TABLE table_name_97 (pitch VARCHAR, location VARCHAR)
SELECT album FROM table_name_94 WHERE year < 2005 AND label = "ministry of sound"
Which Album had a year less than 2005 with a Label by Ministry of Sound?
CREATE TABLE table_name_94 (album VARCHAR, year VARCHAR, label VARCHAR)
SELECT COUNT(round) FROM table_name_90 WHERE opponent = "sakae kasuya"
How many rounds have an Opponent of sakae kasuya?
CREATE TABLE table_name_90 (round VARCHAR, opponent VARCHAR)
SELECT COUNT(drawn) FROM table_name_53 WHERE points = 6 AND lost < 4
How many drawn have points of 6 and lost by fewer than 4?
CREATE TABLE table_name_53 (drawn VARCHAR, points VARCHAR, lost VARCHAR)
SELECT country FROM table_name_12 WHERE place = "t6" AND player = "tom weiskopf"
From what Country is T6 Place Player Tom Weiskopf?
CREATE TABLE table_name_12 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 4"
What is the result of the game on May 4 with Philadelphia as the road team?
CREATE TABLE table_name_48 (result VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT date FROM table_27756314_8 WHERE game = 35
What is the date for the game 35?
CREATE TABLE table_27756314_8 (date VARCHAR, game VARCHAR)
SELECT AVG(t1.age), AVG(Years_working), t2.work_type FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_id = t2.journalist_id GROUP BY t2.work_type
Find the average age and experience working length of journalists working on different role type.
CREATE TABLE news_report (work_type VARCHAR, journalist_id VARCHAR); CREATE TABLE journalist (age INTEGER, journalist_id VARCHAR)
SELECT points FROM table_name_40 WHERE series = "queensland formula ford championship" AND position = "1st"
What is Points, when Series is Queensland Formula Ford Championship, and when Position is 1st?
CREATE TABLE table_name_40 (points VARCHAR, series VARCHAR, position VARCHAR)
SELECT candidates FROM table_1342359_39 WHERE district = "South Carolina 1"
Name the candidate for south carolina 1?
CREATE TABLE table_1342359_39 (candidates VARCHAR, district VARCHAR)
SELECT MAX(place) FROM table_20424140_3
What's the highest number a couple has ranked at?
CREATE TABLE table_20424140_3 (place INTEGER)
SELECT COUNT(sprints_classification) FROM table_26257223_13 WHERE winner = "Joaquin Rodriguez"
How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?
CREATE TABLE table_26257223_13 (sprints_classification VARCHAR, winner VARCHAR)
SELECT record FROM table_name_76 WHERE score = "7-10"
What was the record at the game that had a score of 7-10?
CREATE TABLE table_name_76 (record VARCHAR, score VARCHAR)
SELECT player FROM table_25353861_5 WHERE blocks = 9
Which player had 9 blocks?
CREATE TABLE table_25353861_5 (player VARCHAR, blocks VARCHAR)
SELECT programme FROM table_13549921_18 WHERE date_s__of_return = "July 2008"
What show is coming back on in July 2008
CREATE TABLE table_13549921_18 (programme VARCHAR, date_s__of_return VARCHAR)
SELECT MIN(week) FROM table_name_15 WHERE opponent = "cincinnati bengals"
What is the earliest week with an opponent of cincinnati bengals?
CREATE TABLE table_name_15 (week INTEGER, opponent VARCHAR)
SELECT set_1 FROM table_name_22 WHERE time = "14:00" AND set_3 = "19–25"
Which Set 1 has a Time of 14:00, and a Set 3 of 19–25?
CREATE TABLE table_name_22 (set_1 VARCHAR, time VARCHAR, set_3 VARCHAR)
SELECT MAX(pick) FROM table_name_19 WHERE round > 15 AND college = "tennessee"
What is the highest Pick, when Round is greater than 15, and when College is "Tennessee"?
CREATE TABLE table_name_19 (pick INTEGER, round VARCHAR, college VARCHAR)
SELECT language_s_ FROM table_13700749_1 WHERE film_title = "Tsotsi"
What are all the languages for tsotsi?
CREATE TABLE table_13700749_1 (language_s_ VARCHAR, film_title VARCHAR)
SELECT COUNT(laps) FROM table_name_91 WHERE grid = 25
How many laps for grid 25?
CREATE TABLE table_name_91 (laps VARCHAR, grid VARCHAR)
SELECT date FROM table_name_72 WHERE location = "zandvoort"
What was the date when the location was Zandvoort?
CREATE TABLE table_name_72 (date VARCHAR, location VARCHAR)
SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = "ryan mccay"
What is Ryan McCay's speed that has a rank better than 8?
CREATE TABLE table_name_65 (speed VARCHAR, rank VARCHAR, rider VARCHAR)
SELECT venue FROM table_name_93 WHERE competition = "asian games" AND event = "4x400 m relay" AND year = 2002
what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002?
CREATE TABLE table_name_93 (venue VARCHAR, year VARCHAR, competition VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_51 WHERE loss = "glynn (0-2)"
Witch opponent has a loss of Glynn (0-2)?
CREATE TABLE table_name_51 (opponent VARCHAR, loss VARCHAR)
SELECT record FROM table_name_11 WHERE year > 2012
What Record has a Year that's larger than 2012?
CREATE TABLE table_name_11 (record VARCHAR, year INTEGER)
SELECT MIN(geo_id) FROM table_name_29 WHERE longitude = -102.158045 AND water__sqmi_ > 0.979
What is the lowest GEO ID for the longitude of -102.158045 and the water in square miles larger than 0.979?
CREATE TABLE table_name_29 (geo_id INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR)
SELECT torque FROM table_name_18 WHERE type = "daewoo"
What torque does daewoo have?
CREATE TABLE table_name_18 (torque VARCHAR, type VARCHAR)
SELECT province FROM table_1193568_1 WHERE member = "Frederick Merriman Category:Articles with hCards"
what's the province where member is frederick merriman category:articles with hcards
CREATE TABLE table_1193568_1 (province VARCHAR, member VARCHAR)
SELECT uk_air_date FROM table_19834691_4 WHERE audience_share_in_timeslot = "7.3%"
Name the uk air date for audience share in timeslot in 7.3%
CREATE TABLE table_19834691_4 (uk_air_date VARCHAR, audience_share_in_timeslot VARCHAR)
SELECT away_team AS score FROM table_name_21 WHERE away_team = "st kilda"
What was St Kilda's away team score?
CREATE TABLE table_name_21 (away_team VARCHAR)
SELECT COUNT(population) FROM table_name_1 WHERE median_family_income = "$50,553"
What's the population that has a median family income of $50,553?
CREATE TABLE table_name_1 (population VARCHAR, median_family_income VARCHAR)
SELECT date FROM table_name_14 WHERE home_team = "gold coast blaze"
What date did home team Gold Coast Blaze play?
CREATE TABLE table_name_14 (date VARCHAR, home_team VARCHAR)
SELECT 2011 FROM table_name_12 WHERE 2007 = "atp world tour masters 1000"
What 2001 has a ATP World Tour Masters 1000 2007?
CREATE TABLE table_name_12 (Id VARCHAR)
SELECT attendance FROM table_name_55 WHERE home_team = "cambridge united"
What was the attendance for the match where cambridge united was the home team?
CREATE TABLE table_name_55 (attendance VARCHAR, home_team VARCHAR)
SELECT country_id, COUNT(*) FROM locations GROUP BY country_id
display the country ID and number of cities for each country.
CREATE TABLE locations (country_id VARCHAR)
SELECT margin_of_victory FROM table_name_20 WHERE winning_score = 67 - 69 - 67 - 69 = 272
Can you tell me the Margin of victory that has the Winning score of 67-69-67-69=272?
CREATE TABLE table_name_20 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT MAX(overall) FROM table_name_64 WHERE round = 11 AND pick__number > 14
Round of 11, and a Pick # larger than 14 is the highest overall pick?
CREATE TABLE table_name_64 (overall INTEGER, round VARCHAR, pick__number VARCHAR)
SELECT COUNT(air_date) FROM table_17257687_1 WHERE event_1 = "Suspension Bridge"
On how many different dates was event 1 Suspension Bridge?
CREATE TABLE table_17257687_1 (air_date VARCHAR, event_1 VARCHAR)
SELECT county FROM table_23248420_1 WHERE region_province = "North West" AND rank = 20
When 20 is the rank and north west is the region/province what is the county?
CREATE TABLE table_23248420_1 (county VARCHAR, region_province VARCHAR, rank VARCHAR)
SELECT club FROM table_27374004_2 WHERE shirt_sponsor = "e-lotto.be"
What is the club when the shirt sponsor is e-lotto.be?
CREATE TABLE table_27374004_2 (club VARCHAR, shirt_sponsor VARCHAR)
SELECT opponent FROM table_name_73 WHERE result = "w 37-21"
What was the Opponent during the game with a Result of W 37-21?
CREATE TABLE table_name_73 (opponent VARCHAR, result VARCHAR)
SELECT MAX(silver) FROM table_name_88 WHERE rank > 7
What is the highest number of silvers for ranks over 7?
CREATE TABLE table_name_88 (silver INTEGER, rank INTEGER)
SELECT district FROM table_2159537_3 WHERE date_successor_seated = "August 31, 1943"
In what district was the successor seated August 31, 1943?
CREATE TABLE table_2159537_3 (district VARCHAR, date_successor_seated VARCHAR)
SELECT MAX(laps) FROM table_name_42 WHERE start = "21"
What is the highest number of laps with a 21 start?
CREATE TABLE table_name_42 (laps INTEGER, start VARCHAR)
SELECT location FROM table_19283806_4 WHERE district = "12th"
What is the location that has the 12th district?
CREATE TABLE table_19283806_4 (location VARCHAR, district VARCHAR)
SELECT competition FROM table_name_49 WHERE goal = 13
What competition has a goal number of 13?
CREATE TABLE table_name_49 (competition VARCHAR, goal VARCHAR)
SELECT premiers FROM table_name_17 WHERE details = "1951 nswrfl grand final"
Which premier team played the 1951 NSWRFL Grand Final?
CREATE TABLE table_name_17 (premiers VARCHAR, details VARCHAR)