answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT AVG(year) FROM table_name_97 WHERE venue = "antwerp, belgium"
What is the average year of events that took place in Antwerp, Belgium?
CREATE TABLE table_name_97 (year INTEGER, venue VARCHAR)
SELECT time FROM table_name_44 WHERE location = "tokyo, japan" AND round = 3 AND res = "draw"
What time is associated with the event that happened in Tokyo, Japan, ending in a draw, with 3 rounds?
CREATE TABLE table_name_44 (time VARCHAR, res VARCHAR, location VARCHAR, round VARCHAR)
SELECT MAX(losses) FROM table_name_69 WHERE points_for < 79 AND games_played = 10 AND point_differential < 34
What is the highest number of losses that the team incurred while scoring less than 79 points in 10 games with a point differential less than 34?
CREATE TABLE table_name_69 (losses INTEGER, point_differential VARCHAR, points_for VARCHAR, games_played VARCHAR)
SELECT MIN(1990) FROM table_name_54 WHERE region = "east asia (10 economies)" AND 1960 < 12.6
What is the lowest value for 1990, when the Region is East Asia (10 Economies), and when 1960 has a value less than 12.6?
CREATE TABLE table_name_54 (region VARCHAR)
SELECT title FROM table_name_65 WHERE release_date = "2011-12-01 december 2011"
What is Title, when Release Date is 2011-12-01 December 2011?
CREATE TABLE table_name_65 (title VARCHAR, release_date VARCHAR)
SELECT date FROM table_name_97 WHERE game = "game 4"
What is the date for game 4?
CREATE TABLE table_name_97 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_40 WHERE format = "cd"
What date has the format of cd?
CREATE TABLE table_name_40 (date VARCHAR, format VARCHAR)
SELECT SUM(pick__number) FROM table_name_59 WHERE position = "kicker" AND overall < 137
How many Picks have a Position of kicker, and an Overall smaller than 137?
CREATE TABLE table_name_59 (pick__number INTEGER, position VARCHAR, overall VARCHAR)
SELECT station FROM table_name_10 WHERE number > 9 AND distance__km_ = 16.4
What is the station with a number greater than 9 and a distance of 16.4 km?
CREATE TABLE table_name_10 (station VARCHAR, number VARCHAR, distance__km_ VARCHAR)
SELECT tie_no FROM table_name_39 WHERE score = "3–0" AND home_team = "bristol rovers"
Which Tie # has a Score of 3–0, and a Home team of bristol rovers?
CREATE TABLE table_name_39 (tie_no VARCHAR, score VARCHAR, home_team VARCHAR)
SELECT total FROM table_name_85 WHERE e_score > 9.6 AND a_score = 6
What was the total score when the E score was larger than 9.6 and the A score was 6?
CREATE TABLE table_name_85 (total VARCHAR, e_score VARCHAR, a_score VARCHAR)
SELECT score FROM table_name_51 WHERE record = "18-25"
Name the score when the record was 18-25
CREATE TABLE table_name_51 (score VARCHAR, record VARCHAR)
SELECT attendance FROM table_name_93 WHERE opponent = "new orleans saints"
What was the attendance when they played the New Orleans Saints?
CREATE TABLE table_name_93 (attendance VARCHAR, opponent VARCHAR)
SELECT party FROM table_1341598_36 WHERE district = "Ohio 11"
what is the party for district ohio 11?
CREATE TABLE table_1341598_36 (party VARCHAR, district VARCHAR)
SELECT date FROM table_name_9 WHERE site = "n/a"
Which date had a site of N/A?
CREATE TABLE table_name_9 (date VARCHAR, site VARCHAR)
SELECT MAX(game) FROM table_22883210_9 WHERE team = "Cleveland"
What is the highest game number where the team was Cleveland?
CREATE TABLE table_22883210_9 (game INTEGER, team VARCHAR)
SELECT SUM(byes) FROM table_name_27 WHERE central_murray = "woorineen" AND losses > 13
What is the byes for Woorineen when losses are more than 13?
CREATE TABLE table_name_27 (byes INTEGER, central_murray VARCHAR, losses VARCHAR)
SELECT lead_envoy FROM table_name_44 WHERE ryūkyūan_king = "shō kō"
Who was the lead envoy with the Ryūkyūan King shō kō?
CREATE TABLE table_name_44 (lead_envoy VARCHAR, ryūkyūan_king VARCHAR)
SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition)
What is the theme and artist name for the exhibition with a ticket price higher than the average?
CREATE TABLE exhibition (ticket_price INTEGER); CREATE TABLE exhibition (theme VARCHAR, artist_id VARCHAR, ticket_price INTEGER); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)
SELECT outgoing_manage FROM table_name_53 WHERE incoming_manager = "augusto inácio"
Who was the outgoing manager when the incoming manager was augusto inácio?
CREATE TABLE table_name_53 (outgoing_manage VARCHAR, incoming_manager VARCHAR)
SELECT COUNT(jersey__number) FROM table_name_56 WHERE position = "w" AND birthdate = "17 october 1932"
What is the total number of Jersey #, when the Position is W, and when the Birthdate is 17 October 1932?
CREATE TABLE table_name_56 (jersey__number VARCHAR, position VARCHAR, birthdate VARCHAR)
SELECT COUNT(week) FROM table_name_26 WHERE attendance = "68,932" AND opponent = "indianapolis colts"
What week is the opponent the Indianapolis Colts with an attendance of 68,932?
CREATE TABLE table_name_26 (week VARCHAR, attendance VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_20 WHERE home_team = "aston villa"
Which Score has a Home team of aston villa?
CREATE TABLE table_name_20 (score VARCHAR, home_team VARCHAR)
SELECT accreditation_type FROM table_name_5 WHERE accreditation_level = "joyn" AND company_name = "nokia corporation"
When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?
CREATE TABLE table_name_5 (accreditation_type VARCHAR, accreditation_level VARCHAR, company_name VARCHAR)
SELECT episode FROM table_27319183_5 WHERE official_itv1_hd_rating__millions_ = "1.185"
Which episode had an official ITV1 HD rating of 1.185 million?
CREATE TABLE table_27319183_5 (episode VARCHAR, official_itv1_hd_rating__millions_ VARCHAR)
SELECT venue FROM table_name_7 WHERE home_team = "alianza lima" AND season = 1983
What is the venue of season 1983, which had alianza lima as the home team?
CREATE TABLE table_name_7 (venue VARCHAR, home_team VARCHAR, season VARCHAR)
SELECT athlete FROM table_name_32 WHERE venue = "birmingham"
Which athlete played at the Birmingham venue?
CREATE TABLE table_name_32 (athlete VARCHAR, venue VARCHAR)
SELECT label_s_ FROM table_name_63 WHERE year_of_release = 1994 AND title = "與你相逢"
What is the label of the album titled 與你相逢 and released in 1994?
CREATE TABLE table_name_63 (label_s_ VARCHAR, year_of_release VARCHAR, title VARCHAR)
SELECT type FROM table_11891841_2 WHERE country = "ESp"
What is the type where the country is esp?
CREATE TABLE table_11891841_2 (type VARCHAR, country VARCHAR)
SELECT score FROM table_name_18 WHERE surface = "clay" AND tournament = "san marino"
what is the score when the surface is clay and the tournament is san marino?
CREATE TABLE table_name_18 (score VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT quarterfinals FROM table_17427004_7 WHERE athlete = "Abdelhafid Benchebla"
Who did Abdelhafid Benchebla face in the quarterfinals?
CREATE TABLE table_17427004_7 (quarterfinals VARCHAR, athlete VARCHAR)
SELECT friend FROM PersonFriend WHERE name = 'Zach' AND YEAR = (SELECT MAX(YEAR) FROM PersonFriend WHERE name = 'Zach')
Who is the friend of Zach with longest year relationship?
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR, YEAR INTEGER)
SELECT soap_opera FROM table_name_81 WHERE character = "teemu luotola"
What Soap Opera with the character Teemu Luotola?
CREATE TABLE table_name_81 (soap_opera VARCHAR, character VARCHAR)
SELECT home_team AS score FROM table_name_74 WHERE date = "sunday 24 february"
Which Home team score is on sunday 24 february?
CREATE TABLE table_name_74 (home_team VARCHAR, date VARCHAR)
SELECT COUNT(census_2006_population) FROM table_28891101_3 WHERE area__km_2__ = 159
What is the 2006 census population when the area is 159?
CREATE TABLE table_28891101_3 (census_2006_population VARCHAR, area__km_2__ VARCHAR)
SELECT producer_s_ FROM table_name_91 WHERE recipient = "laura tunstall"
Who produced Laura Tunstall?
CREATE TABLE table_name_91 (producer_s_ VARCHAR, recipient VARCHAR)
SELECT MAX(used_kb), MIN(used_kb), AVG(used_kb) FROM screen_mode
List the maximum, minimum and average number of used kb in screen mode.
CREATE TABLE screen_mode (used_kb INTEGER)
SELECT MAX(points) FROM table_name_85 WHERE goals_for > 335 AND games < 70
For games less than 70 and goals for greater than 335 what is the most points?
CREATE TABLE table_name_85 (points INTEGER, goals_for VARCHAR, games VARCHAR)
SELECT MAX(match_no) FROM table_name_92 WHERE date = "2008-03-21" AND time = "16:00"
What is the highest Match No., when Date is 2008-03-21, and when Time is 16:00?
CREATE TABLE table_name_92 (match_no INTEGER, date VARCHAR, time VARCHAR)
SELECT player FROM table_24765815_2 WHERE competition = "UEFA Euro 2012 qualifying Group A"
Who is the player that played in the UEFA Euro 2012 qualifying Group A competition?
CREATE TABLE table_24765815_2 (player VARCHAR, competition VARCHAR)
SELECT score FROM table_name_49 WHERE date = "1 september"
What was the score of the game on 1 september?
CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR)
SELECT place FROM table_name_26 WHERE to_par < 15 AND score = 74 - 74 - 74 - 75 = 297
Which Place has a To par smaller than 15, and a Score of 74-74-74-75=297?
CREATE TABLE table_name_26 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT MAX(multi_lane) FROM table_28723146_2 WHERE category_wise = "Major district roads"
What is the highest value for multi lane if category wise is major district roads?
CREATE TABLE table_28723146_2 (multi_lane INTEGER, category_wise VARCHAR)
SELECT name FROM races WHERE YEAR BETWEEN 2009 AND 2011
What are the names of races held between 2009 and 2011?
CREATE TABLE races (name VARCHAR, YEAR INTEGER)
SELECT public FROM table_26375386_20 WHERE vote_percentage = "16.0%"
What is the public when the vote percentage is 16.0%
CREATE TABLE table_26375386_20 (public VARCHAR, vote_percentage VARCHAR)
SELECT MAX(total) FROM table_name_39 WHERE average < 36.5 AND rank_by_average = 14
Name the most total with average less than 36.5 and rank by average of 14
CREATE TABLE table_name_39 (total INTEGER, average VARCHAR, rank_by_average VARCHAR)
SELECT venue FROM table_name_68 WHERE extra = "junior race"
Which venue had an extra of Junior Race?
CREATE TABLE table_name_68 (venue VARCHAR, extra VARCHAR)
SELECT home_team AS score FROM table_name_16 WHERE venue = "princes park"
What is the home team's score when the venue is princes park?
CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR)
SELECT losing_bonus FROM table_name_71 WHERE points_against = "546"
The club that had 546 points against, what was the losing bonus?
CREATE TABLE table_name_71 (losing_bonus VARCHAR, points_against VARCHAR)
SELECT SUM(against) FROM table_name_66 WHERE losses < 7 AND wimmera_fl = "horsham"
How much Against has Losses smaller than 7, and a Wimmera FL of horsham?
CREATE TABLE table_name_66 (against INTEGER, losses VARCHAR, wimmera_fl VARCHAR)
SELECT name FROM captain ORDER BY age LIMIT 1
What is the name of the youngest captain?
CREATE TABLE captain (name VARCHAR, age VARCHAR)
SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 55
What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?
CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR)
SELECT home_team FROM table_name_40 WHERE venue = "mcg"
Who was the home team at MCG?
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
SELECT population__may_1, _2000_ FROM table_2068761_1 WHERE barangay = "General Terrero"
Name th epopulation may for general terrero
CREATE TABLE table_2068761_1 (population__may_1 VARCHAR, _2000_ VARCHAR, barangay VARCHAR)
SELECT premiere FROM table_name_38 WHERE rating = "20.9"
What was the date of the premiere that had a 20.9 rating?
CREATE TABLE table_name_38 (premiere VARCHAR, rating VARCHAR)
SELECT competition FROM table_name_5 WHERE date = "june 19, 2004"
What competition has June 19, 2004 as the date?
CREATE TABLE table_name_5 (competition VARCHAR, date VARCHAR)
SELECT unit FROM table_name_75 WHERE authors = "varricchio"
What is varricchio's unit?
CREATE TABLE table_name_75 (unit VARCHAR, authors VARCHAR)
SELECT MIN(year) FROM table_name_67 WHERE final_position___tour > 72 AND final_position___vuelta < 77 AND final_position___giro < 57 AND rider = "valdimir poelnikov"
What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57?
CREATE TABLE table_name_67 (year INTEGER, rider VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR)
SELECT total FROM table_name_24 WHERE finish = "t22"
Name the total with finish of t22
CREATE TABLE table_name_24 (total VARCHAR, finish VARCHAR)
SELECT T1.thing_id, T1.type_of_Thing_Code, T2.organization_details FROM Things AS T1 JOIN Organizations AS T2 ON T1.organization_id = T2.organization_id
List the id and type of each thing, and the details of the organization that owns it.
CREATE TABLE Organizations (organization_details VARCHAR, organization_id VARCHAR); CREATE TABLE Things (thing_id VARCHAR, type_of_Thing_Code VARCHAR, organization_id VARCHAR)
SELECT location FROM table_182499_1 WHERE substrate = "Coproporphyrinogen III"
give the location of subtrate coproporphyrinogen iii
CREATE TABLE table_182499_1 (location VARCHAR, substrate VARCHAR)
SELECT attendance FROM table_name_86 WHERE date = "december 6"
What was the Bill's attendance on December 6?
CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_59 WHERE player = "leland gibson"
Name the To par for leland gibson
CREATE TABLE table_name_59 (to_par VARCHAR, player VARCHAR)
SELECT AVG(scored) FROM table_name_64 WHERE competition = "2011 long teng cup" AND date = "2 october 2011"
Name the averag scored for 2011 long teng cup and 2 october 2011
CREATE TABLE table_name_64 (scored INTEGER, competition VARCHAR, date VARCHAR)
SELECT COUNT(family_families) FROM table_19897294_8 WHERE no_overall = "UK30"
Name the number of families for uk30
CREATE TABLE table_19897294_8 (family_families VARCHAR, no_overall VARCHAR)
SELECT opponent FROM table_name_16 WHERE round = "4" AND rules = "thai boxing"
Which Opponent has a Round of 4, and a Rules of thai boxing?
CREATE TABLE table_name_16 (opponent VARCHAR, round VARCHAR, rules VARCHAR)
SELECT score FROM table_name_7 WHERE home = "fk bratstvo"
What was the score for the game with FK Bratstvo as home team?
CREATE TABLE table_name_7 (score VARCHAR, home VARCHAR)
SELECT week_2 FROM table_name_60 WHERE week_3 = "brittany alyse"
What was the week 2 prior to the when Brittany Alyse was week 3?
CREATE TABLE table_name_60 (week_2 VARCHAR, week_3 VARCHAR)
SELECT division FROM table_1087659_2 WHERE playoffs = "division Semifinals"
What is the division for the division semifinals playoffs?
CREATE TABLE table_1087659_2 (division VARCHAR, playoffs VARCHAR)
SELECT place FROM table_name_16 WHERE mark > 91.29 AND rank = 6
What is the place of the rank 6 record, which has a mark greater than 91.29?
CREATE TABLE table_name_16 (place VARCHAR, mark VARCHAR, rank VARCHAR)
SELECT away_team FROM table_name_16 WHERE home_team = "fitzroy"
What Away team is from Fitzroy?
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
SELECT location FROM table_29285076_2 WHERE fastest_lap = "Zach Veach"
What location did Zach Veach have the fastest lap?
CREATE TABLE table_29285076_2 (location VARCHAR, fastest_lap VARCHAR)
SELECT tries_for FROM table_name_36 WHERE points_for = "190"
WHAT IS THE TRIES WITH POINTS 190?
CREATE TABLE table_name_36 (tries_for VARCHAR, points_for VARCHAR)
SELECT directed_by FROM table_2618113_1 WHERE production_code = "K0122"
Who directed k0122?
CREATE TABLE table_2618113_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT candidate_status FROM table_name_46 WHERE state = "macedonia"
What is the candidate status of macedonia?
CREATE TABLE table_name_46 (candidate_status VARCHAR, state VARCHAR)
SELECT location FROM table_name_7 WHERE time = "3:15"
what is the location when the time is 3:15?
CREATE TABLE table_name_7 (location VARCHAR, time VARCHAR)
SELECT launched FROM table_1014206_2 WHERE laid_down = "September 1, 1964"
When were the ships launched that were laid down on september 1, 1964?
CREATE TABLE table_1014206_2 (launched VARCHAR, laid_down VARCHAR)
SELECT award FROM table_name_78 WHERE year = 1998 AND representative_work = "city beat"
What is the award for 1998 with Representative Work of city beat?
CREATE TABLE table_name_78 (award VARCHAR, year VARCHAR, representative_work VARCHAR)
SELECT position FROM table_name_68 WHERE hometown = "muscle shoals, alabama"
Which position does the player from Muscle Shoals, Alabama play?
CREATE TABLE table_name_68 (position VARCHAR, hometown VARCHAR)
SELECT COUNT(place) FROM table_name_80 WHERE artist = "augustė" AND draw < 6
How many places have an Artist of augustė, and a Draw smaller than 6?
CREATE TABLE table_name_80 (place VARCHAR, artist VARCHAR, draw VARCHAR)
SELECT 2003 FROM table_27146868_1 WHERE 1999 = "2.1"
What is 2003 when 1999 is 2.1?
CREATE TABLE table_27146868_1 (Id VARCHAR)
SELECT third_place FROM table_name_89 WHERE total_wins < 5 AND winners = "china b"
Who is third-place with less than 5 total wins with china b as the winners?
CREATE TABLE table_name_89 (third_place VARCHAR, total_wins VARCHAR, winners VARCHAR)
SELECT MAX(goals_for) FROM table_name_15 WHERE points = "47+9" AND played < 38
How many goals were scored by the team that played less than 38 games, and had points of 47+9?
CREATE TABLE table_name_15 (goals_for INTEGER, points VARCHAR, played VARCHAR)
SELECT headquarters FROM table_1610301_1 WHERE code = "HY"
Where is the headquarters of the place whose abbreviation is hy?
CREATE TABLE table_1610301_1 (headquarters VARCHAR, code VARCHAR)
SELECT SUM(points) FROM table_name_49 WHERE against < 43 AND position < 1
How many Points have an Against smaller than 43, and a Position smaller than 1?
CREATE TABLE table_name_49 (points INTEGER, against VARCHAR, position VARCHAR)
SELECT score FROM table_name_69 WHERE record = "68-66"
Name the score with record of 68-66
CREATE TABLE table_name_69 (score VARCHAR, record VARCHAR)
SELECT vote_percentage FROM table_26375386_20 WHERE couple = "Gary and Maria"
What is the vote percentage for the couple gary and maria?
CREATE TABLE table_26375386_20 (vote_percentage VARCHAR, couple VARCHAR)
SELECT legs FROM table_name_8 WHERE year < 2009
what is the legs when the year is earlier than 2009?
CREATE TABLE table_name_8 (legs VARCHAR, year INTEGER)
SELECT AVG(fa_cup) FROM table_name_56 WHERE league = 0 AND player = "fahmi hatta" AND malaysia_cup < 0
What is the average FA cup that has a league of 0, fahmi hatta as the player, with a Malaysia cup less than 0?
CREATE TABLE table_name_56 (fa_cup INTEGER, malaysia_cup VARCHAR, league VARCHAR, player VARCHAR)
SELECT years_as_tallest FROM table_name_4 WHERE floors > 18
Name the years as tallest when floors are larger than 18
CREATE TABLE table_name_4 (years_as_tallest VARCHAR, floors INTEGER)
SELECT trainer FROM table_name_54 WHERE time = "1:44.80" AND jockey = "william jenkins"
What Trainer had Jockey William Jenkins in a race with Time of 1:44.80?
CREATE TABLE table_name_54 (trainer VARCHAR, time VARCHAR, jockey VARCHAR)
SELECT COUNT(wins) FROM table_2181798_1 WHERE starts = 30
Name the number of wins for 30 starts
CREATE TABLE table_2181798_1 (wins VARCHAR, starts VARCHAR)
SELECT country FROM table_name_69 WHERE airport = "hiroshima airport"
In what country is Hiroshima Airport located?
CREATE TABLE table_name_69 (country VARCHAR, airport VARCHAR)
SELECT MIN(points) FROM table_16729457_17 WHERE driver___passenger = "Daniël Willemsen / Kenny van Gaalen"
Name the least points for daniël willemsen / kenny van gaalen
CREATE TABLE table_16729457_17 (points INTEGER, driver___passenger VARCHAR)
SELECT date FROM table_name_74 WHERE home_team = "melbourne"
Name the date with a home team of melbourne
CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(points) FROM table_name_2 WHERE chassis = "bmw t269 (f2)"
Name the total number of points for chassis of bmw t269 (f2)
CREATE TABLE table_name_2 (points VARCHAR, chassis VARCHAR)
SELECT MIN(age) FROM table_26301697_2 WHERE represents = "Distrito Nacional"
Name the least age for distrito nacional
CREATE TABLE table_26301697_2 (age INTEGER, represents VARCHAR)
SELECT team FROM table_22669044_8 WHERE score = "W 115–104 (OT)"
Name the team for w 115–104 (ot)
CREATE TABLE table_22669044_8 (team VARCHAR, score VARCHAR)
SELECT high_hill_zone FROM table_name_87 WHERE mid_hill_zone = "slightly warm temperature"
Which mid-hill zone has a slightly warm temperature?
CREATE TABLE table_name_87 (high_hill_zone VARCHAR, mid_hill_zone VARCHAR)
SELECT COUNT(location) FROM table_262560_2 WHERE left = "2002-03"
How many schools left in 2002-03?
CREATE TABLE table_262560_2 (location VARCHAR, left VARCHAR)