answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT T3.Name, T2.District FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID
Show the names of phones and the districts of markets they are on.
CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR); CREATE TABLE market (District VARCHAR, Market_ID VARCHAR); CREATE TABLE phone_market (Market_ID VARCHAR, Phone_ID VARCHAR)
SELECT opponent FROM table_name_36 WHERE record = "22-10"
Which Opponent has a Record of 22-10?
CREATE TABLE table_name_36 (opponent VARCHAR, record VARCHAR)
SELECT AVG(enrollment) FROM table_name_47 WHERE nickname = "redbirds"
What is the average enrollment of the Redbirds' school?
CREATE TABLE table_name_47 (enrollment INTEGER, nickname VARCHAR)
SELECT school_year FROM table_name_73 WHERE class_aAA = dalhart AND class_aAAAA = edinburg
Which school year was the Class AAA dalhart and the class AAAAA edinburg?
CREATE TABLE table_name_73 (school_year VARCHAR, class_aAA VARCHAR, dalhart VARCHAR, class_aAAAA VARCHAR, edinburg VARCHAR)
SELECT record FROM table_name_43 WHERE high_assists = "lebron james (4)"
What was the record of the game when Lebron James (4) had the high assists?
CREATE TABLE table_name_43 (record VARCHAR, high_assists VARCHAR)
SELECT date FROM table_name_56 WHERE attendance = "37,500"
What day had 37,500 attending?
CREATE TABLE table_name_56 (date VARCHAR, attendance VARCHAR)
SELECT school_club_team FROM table_name_35 WHERE position = "shooting guard"
What school/club did the player who layed shooting guard attend?
CREATE TABLE table_name_35 (school_club_team VARCHAR, position VARCHAR)
SELECT attendance FROM table_16864968_8 WHERE opponent = "Edmonton Oilers"
How many people attended the Edmonton Oilers game?
CREATE TABLE table_16864968_8 (attendance VARCHAR, opponent VARCHAR)
SELECT team_1 FROM table_name_34 WHERE team_2 = "toulouse fc (d1)"
What was team one name for the Team 2 of Toulouse Fc (d1)>?
CREATE TABLE table_name_34 (team_1 VARCHAR, team_2 VARCHAR)
SELECT venue FROM table_name_64 WHERE date = "23 july 1992"
I want the venue for 23 july 1992
CREATE TABLE table_name_64 (venue VARCHAR, date VARCHAR)
SELECT AVG(total) FROM table_name_56 WHERE player = "craig stadler"
What is the Total of Player Craig Stadler?
CREATE TABLE table_name_56 (total INTEGER, player VARCHAR)
SELECT incumbent FROM table_name_3 WHERE district = "ohio 13"
Who is the Incumbent that has a District of ohio 13 in Democratic Party?
CREATE TABLE table_name_3 (incumbent VARCHAR, district VARCHAR)
SELECT AVG(sp) + fs FROM table_name_2 WHERE places < 94 AND name = "renata baierova"
Name the average SP+FS with places less tha 94 for renata baierova
CREATE TABLE table_name_2 (fs VARCHAR, sp INTEGER, places VARCHAR, name VARCHAR)
SELECT tracking_method FROM table_name_23 WHERE latest_stable_release = "6.0"
Which tracking method has a latest stable release of 6.0?
CREATE TABLE table_name_23 (tracking_method VARCHAR, latest_stable_release VARCHAR)
SELECT date FROM table_name_96 WHERE game = 59
What is the date of game 59?
CREATE TABLE table_name_96 (date VARCHAR, game VARCHAR)
SELECT result FROM table_name_57 WHERE week = 12
what's the results of week 12?
CREATE TABLE table_name_57 (result VARCHAR, week VARCHAR)
SELECT high_points FROM table_23285761_8 WHERE location_attendance = "Pepsi Center 19,155"
Name the high points for pepsi center 19,155
CREATE TABLE table_23285761_8 (high_points VARCHAR, location_attendance VARCHAR)
SELECT displacement FROM table_name_29 WHERE redline__rpm_ > 4750 AND year = 2005
What is the displacement of the engine that has a Redline rpm higher than 4750, from 2005?
CREATE TABLE table_name_29 (displacement VARCHAR, redline__rpm_ VARCHAR, year VARCHAR)
SELECT world_rank_by_arwu_, _2013 FROM table_27484208_1 WHERE members = "University of Tübingen"
What was the world rank by ARWU in 2013 of the University of Tübingen?
CREATE TABLE table_27484208_1 (world_rank_by_arwu_ VARCHAR, _2013 VARCHAR, members VARCHAR)
SELECT result FROM table_name_79 WHERE date = "november 24, 2002"
What were the results for November 24, 2002?
CREATE TABLE table_name_79 (result VARCHAR, date VARCHAR)
SELECT MIN(year) FROM table_name_79 WHERE winner = "tcu"
What was the lowest year for TCU?
CREATE TABLE table_name_79 (year INTEGER, winner VARCHAR)
SELECT date FROM table_23486853_8 WHERE record = "30–34–12"
What is every date with a record of 30–34–12?
CREATE TABLE table_23486853_8 (date VARCHAR, record VARCHAR)
SELECT AVG(points) FROM table_name_42 WHERE engine = "ford xb" AND team = "project indy"
What are the average points for the Project Indy team that has the Ford xb engine?
CREATE TABLE table_name_42 (points INTEGER, engine VARCHAR, team VARCHAR)
SELECT ensemble_name FROM table_name_29 WHERE area = "oxfordshire"
What is Oxfordshire Area's Ensemble Name?
CREATE TABLE table_name_29 (ensemble_name VARCHAR, area VARCHAR)
SELECT type FROM table_name_26 WHERE quantity = 5
What type has 5 as the quantity?
CREATE TABLE table_name_26 (type VARCHAR, quantity VARCHAR)
SELECT party FROM table_name_46 WHERE governments = "24"
Which party has 24 governments?
CREATE TABLE table_name_46 (party VARCHAR, governments VARCHAR)
SELECT MAX(no) FROM table_12962773_15 WHERE player = "Andrea Bargnani"
What number is Andrea Bargnani?
CREATE TABLE table_12962773_15 (no INTEGER, player VARCHAR)
SELECT opponents FROM table_name_33 WHERE round = "final"
Which opponent made it to the final round?
CREATE TABLE table_name_33 (opponents VARCHAR, round VARCHAR)
SELECT second_place FROM table_15988037_4 WHERE winner = "Rafał Mroczek & Aneta Piotrowska"
Who got second place when the winners were rafał mroczek & aneta piotrowska?
CREATE TABLE table_15988037_4 (second_place VARCHAR, winner VARCHAR)
SELECT constructor FROM table_name_85 WHERE grid < 15 AND laps = 95
What was the constructor when there were 95 laps and a grid less than 15?
CREATE TABLE table_name_85 (constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT placing FROM table_24915874_1 WHERE jockey = "Damien Oliver"
What was the placing when the jockey was Damien Oliver?
CREATE TABLE table_24915874_1 (placing VARCHAR, jockey VARCHAR)
SELECT method FROM table_name_10 WHERE round = "1" AND res = "win" AND record = "13-5"
What method did Mikhail Ilyukhin win the fight in round 1 when his record was 13-5?
CREATE TABLE table_name_10 (method VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR)
SELECT player FROM table_24765815_1 WHERE opponent = "Blackburn Rovers"
Which player had an opponent of Blackburn Rovers?
CREATE TABLE table_24765815_1 (player VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_24 WHERE away_team = "reading"
WHAT IS THE ATTENDANCE WITH A READING AWAY TEAM?
CREATE TABLE table_name_24 (attendance VARCHAR, away_team VARCHAR)
SELECT MIN(lost) FROM table_name_63 WHERE played < 18
Which loss had a player lower than 18?
CREATE TABLE table_name_63 (lost INTEGER, played INTEGER)
SELECT away_team FROM table_name_72 WHERE venue = "windy hill"
What is the away team for the game at Windy Hill?
CREATE TABLE table_name_72 (away_team VARCHAR, venue VARCHAR)
SELECT launched FROM table_name_1 WHERE languages = "cora huichol tepehuano nahuatl"
What is the launched date of the station in cora huichol tepehuano nahuatl language?
CREATE TABLE table_name_1 (launched VARCHAR, languages VARCHAR)
SELECT COUNT(winner) FROM table_2267345_2 WHERE team_classification = "Kelme-Costa Blanca" AND combativity_award = "Jacky Durand"
What is the total number of winners when the team classification leader was Kelme-Costa Blanca and the combativity award was won by Jacky Durand?
CREATE TABLE table_2267345_2 (winner VARCHAR, team_classification VARCHAR, combativity_award VARCHAR)
SELECT MIN(season) FROM table_name_13 WHERE runner_up = "aisha jefcoate"
What is the earliest season where Aisha Jefcoate was the runner-up?
CREATE TABLE table_name_13 (season INTEGER, runner_up VARCHAR)
SELECT COUNT(silver) FROM table_name_61 WHERE rank = 2 AND total < 5
Which country is ranked number 2 and has less than 5 total medals?
CREATE TABLE table_name_61 (silver VARCHAR, rank VARCHAR, total VARCHAR)
SELECT category FROM table_name_21 WHERE nominated = "herself"
In what category was Herself nominated?
CREATE TABLE table_name_21 (category VARCHAR, nominated VARCHAR)
SELECT date FROM table_21094951_1 WHERE record = "6-2"
Name the date for 6-2 record
CREATE TABLE table_21094951_1 (date VARCHAR, record VARCHAR)
SELECT MIN(goals) FROM table_name_40 WHERE matches < 29
What were the lowest goals when the matches were smaller than 29?
CREATE TABLE table_name_40 (goals INTEGER, matches INTEGER)
SELECT total FROM table_182298_5 WHERE mens_open = 7
How many are the total winners if 7 won the Men's Open?
CREATE TABLE table_182298_5 (total VARCHAR, mens_open VARCHAR)
SELECT year FROM table_name_9 WHERE domestic_cup = "singapore cup"
What year had a domestic cup of singapore cup?
CREATE TABLE table_name_9 (year VARCHAR, domestic_cup VARCHAR)
SELECT MIN(laps) FROM table_name_35 WHERE driver = "gerhard berger" AND grid > 6
what is the least laps for driver gerhard berger with a grid more than 6?
CREATE TABLE table_name_35 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT COUNT(place) FROM table_name_84 WHERE name = "bianka panova" AND clubs < 10
How many places have bianka panova as the name, with clubs less than 10?
CREATE TABLE table_name_84 (place VARCHAR, name VARCHAR, clubs VARCHAR)
SELECT year FROM table_1028356_3 WHERE championship = "Wimbledon (2)"
What year was the championship in Wimbledon (2)?
CREATE TABLE table_1028356_3 (year VARCHAR, championship VARCHAR)
SELECT COUNT(pick) FROM table_name_47 WHERE school_club_team = "auburn"
How many picks does Auburn have?
CREATE TABLE table_name_47 (pick VARCHAR, school_club_team VARCHAR)
SELECT laps FROM table_name_99 WHERE points = "lead changes: 13 between 8 drivers"
Which Laps has a Points of lead changes: 13 between 8 drivers?
CREATE TABLE table_name_99 (laps VARCHAR, points VARCHAR)
SELECT championship FROM table_name_92 WHERE date_won = "july 7, 2010"
Which championship was won on July 7, 2010?
CREATE TABLE table_name_92 (championship VARCHAR, date_won VARCHAR)
SELECT school FROM table_name_65 WHERE year < 2013 AND event = "100 breaststroke"
What is School, when Year is less than 2013, and when Event is "100 Breaststroke"?
CREATE TABLE table_name_65 (school VARCHAR, year VARCHAR, event VARCHAR)
SELECT latitude FROM table_18600760_4 WHERE township = "Deer Lake"
Name the latitude for deer lake
CREATE TABLE table_18600760_4 (latitude VARCHAR, township VARCHAR)
SELECT AVG(races) FROM table_name_56 WHERE podiums < 2 AND position = "19th" AND season < 2009
How many races have less than 2 podiums and 19th position before 2009?
CREATE TABLE table_name_56 (races INTEGER, season VARCHAR, podiums VARCHAR, position VARCHAR)
SELECT engine FROM table_name_24 WHERE chassis = "reynard 01i" AND drivers = "casey mears"
What engine did Casey Mears use on the Reynard 01i Chassis?
CREATE TABLE table_name_24 (engine VARCHAR, chassis VARCHAR, drivers VARCHAR)
SELECT record FROM table_name_99 WHERE method = "ko" AND opponent = "rich guerin"
What is Record, when Method is KO, and when Opponent is Rich Guerin?
CREATE TABLE table_name_99 (record VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT party FROM table_name_23 WHERE state = "vic" AND electorate = "wannon"
Which party had a member from the state of Vic and an Electorate called Wannon?
CREATE TABLE table_name_23 (party VARCHAR, state VARCHAR, electorate VARCHAR)
SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Laura Innes" AND season__number < 7.0
What is the maximum series number what is smaller than season 7.0 and directed by Laura Innes?
CREATE TABLE table_17356106_1 (series__number INTEGER, directed_by VARCHAR, season__number VARCHAR)
SELECT height__ft_ FROM table_20669355_2 WHERE country = "Aruba"
How tall is the contestant from Aruba?
CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, country VARCHAR)
SELECT language FROM table_name_97 WHERE network = "sab" AND service = "sky"
What language is the movie in that is on SAB network through Sky service?
CREATE TABLE table_name_97 (language VARCHAR, network VARCHAR, service VARCHAR)
SELECT 2010 FROM table_name_10 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "qf"
What is the categorization in 2010 when it was A in 2008 and 20011 while being QF in 2012?
CREATE TABLE table_name_10 (Id VARCHAR)
SELECT date FROM table_27715173_8 WHERE location_attendance = "EnergySolutions Arena 19,911"
what is the date when the location attendance is energysolutions arena 19,911?
CREATE TABLE table_27715173_8 (date VARCHAR, location_attendance VARCHAR)
SELECT competition FROM table_name_60 WHERE ground = "san siro" AND time = "18:30 gmt"
What kind of competition was it at San Siro at 18:30 GMT?
CREATE TABLE table_name_60 (competition VARCHAR, ground VARCHAR, time VARCHAR)
SELECT MIN(laps) FROM table_name_69 WHERE driver = "tarso marques"
What were the lowest laps of Tarso Marques?
CREATE TABLE table_name_69 (laps INTEGER, driver VARCHAR)
SELECT time FROM table_name_91 WHERE set_2 = "25–21" AND date = "29 may"
What is the Time when the Set 2 is 25–21, on 29 may?
CREATE TABLE table_name_91 (time VARCHAR, set_2 VARCHAR, date VARCHAR)
SELECT AVG(episodes) FROM table_name_32 WHERE average_ratings = "10.3%"
When the average ratings is 10.3%, what is the average episodes?
CREATE TABLE table_name_32 (episodes INTEGER, average_ratings VARCHAR)
SELECT MAX(season) FROM table_name_22 WHERE position = "2nd"
What is the most recent year with a finish in 2nd position?
CREATE TABLE table_name_22 (season INTEGER, position VARCHAR)
SELECT country FROM table_name_23 WHERE _percentage_change_on_year > 5 AND rank = 10
Which country has more than 5% change in a year with a rank of 10?
CREATE TABLE table_name_23 (country VARCHAR, _percentage_change_on_year VARCHAR, rank VARCHAR)
SELECT COUNT(Ends) AS lost FROM table_26745426_2 WHERE stolen_ends = 6
Name the number of ends lost for 6 stolen ends
CREATE TABLE table_26745426_2 (Ends VARCHAR, stolen_ends VARCHAR)
SELECT MAX(round) FROM table_20036882_2 WHERE winning_pilot = "Michael Goulian"
Name the most round for michael goulian
CREATE TABLE table_20036882_2 (round INTEGER, winning_pilot VARCHAR)
SELECT michigan FROM table_18461045_1 WHERE indiana = "Terre Haute North LL Terre Haute"
What was the little league team from Michigan when the little league team from Indiana was Terre Haute North LL Terre Haute?
CREATE TABLE table_18461045_1 (michigan VARCHAR, indiana VARCHAR)
SELECT county FROM table_name_89 WHERE mascot = "tigers"
What county is the team with the mascot of the Tigers in?
CREATE TABLE table_name_89 (county VARCHAR, mascot VARCHAR)
SELECT metas_volantes_classification FROM table_name_36 WHERE stage = 4
Who led the metas volantes classification for stage 4?
CREATE TABLE table_name_36 (metas_volantes_classification VARCHAR, stage VARCHAR)
SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000
What are the cities whose population is between 160000 and 900000?
CREATE TABLE city (name VARCHAR, Population INTEGER)
SELECT purpose FROM table_name_65 WHERE frequency = "102.3"
What is the purpose for Frequency of 102.3?
CREATE TABLE table_name_65 (purpose VARCHAR, frequency VARCHAR)
SELECT home_team AS score FROM table_name_62 WHERE away_team = "essendon"
When the Away team of essendon was playing, what was the Home team's score?
CREATE TABLE table_name_62 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(swimsuit) FROM table_name_38 WHERE average = 9.125
What is the lowest swimsuit for a contestant with an average of 9.125?
CREATE TABLE table_name_38 (swimsuit INTEGER, average VARCHAR)
SELECT rank FROM table_name_29 WHERE goals < 66
What is the Rank with a Goal number smaller than 66?
CREATE TABLE table_name_29 (rank VARCHAR, goals INTEGER)
SELECT name FROM table_name_20 WHERE games > 37 AND assists = 202
Who played over 37 games and had 202 assists?
CREATE TABLE table_name_20 (name VARCHAR, games VARCHAR, assists VARCHAR)
SELECT postseason FROM table_14609295_4 WHERE overall = "29-7"
How far into the postseason did the Rams go when their record was 29-7?
CREATE TABLE table_14609295_4 (postseason VARCHAR, overall VARCHAR)
SELECT MAX(season) FROM table_name_34 WHERE team = "prema powerteam" AND series = "masters of formula three"
What is the most recent season for the Prema Powerteam with a Masters of Formula Three series?
CREATE TABLE table_name_34 (season INTEGER, team VARCHAR, series VARCHAR)
SELECT report FROM table_name_98 WHERE date = "20 may"
Name the report on 20 may
CREATE TABLE table_name_98 (report VARCHAR, date VARCHAR)
SELECT date_of_appointment FROM table_name_2 WHERE manner_of_departure = "resigned" AND replaced_by = "sandy clark"
What is the date of appointment for the team with a resigned manner of departure and replaced by Sandy Clark?
CREATE TABLE table_name_2 (date_of_appointment VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT driver FROM table_name_23 WHERE laps = 12 AND grid < 10
Which driver has 12 laps and a grid of less than 10?
CREATE TABLE table_name_23 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT AVG(total) FROM table_name_52 WHERE mccain_percentage = "55.0%" AND obama_number > 3 OFFSET 487
What is the total average for McCain% of 55.0% and Obama# higher than 3,487?
CREATE TABLE table_name_52 (total INTEGER, mccain_percentage VARCHAR, obama_number VARCHAR)
SELECT COUNT(village__german_) FROM table_10797463_1 WHERE percent_of_slovenes_1991 = "21.7%"
How many villages had 21.7% of slovenes in 1991?
CREATE TABLE table_10797463_1 (village__german_ VARCHAR, percent_of_slovenes_1991 VARCHAR)
SELECT MAX(population) FROM table_name_8 WHERE country_territory_entity = "seychelles" AND rank < 13
Name the most population for seychelles and rank less than 13
CREATE TABLE table_name_8 (population INTEGER, country_territory_entity VARCHAR, rank VARCHAR)
SELECT MIN(wins) FROM table_name_46 WHERE goal_difference < 33 AND position < 13 AND goals_for = 42
What is the lowest wins entry that has a goal difference less than 33, position higher than 13, and 42 goals?
CREATE TABLE table_name_46 (wins INTEGER, goals_for VARCHAR, goal_difference VARCHAR, position VARCHAR)
SELECT successor FROM table_2147588_4 WHERE district = "New York 8th"
When new york 8th is teh district who is the successor?
CREATE TABLE table_2147588_4 (successor VARCHAR, district VARCHAR)
SELECT COUNT(candidates) FROM table_1342149_13 WHERE incumbent = "Noah M. Mason"
What are the candidates for noah m. mason?
CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR)
SELECT laws_against_homosexuality FROM table_name_34 WHERE country = "malaysia"
What are the laws against homosexuality in Malaysia?
CREATE TABLE table_name_34 (laws_against_homosexuality VARCHAR, country VARCHAR)
SELECT seasons_in_csl FROM table_name_15 WHERE top_division_titles__overall_ = 0 AND home_stadium = "guiyang olympic sports center"
What were the years for Seasons in CSL when they played in the Guiyang Olympic Sports Center and had Top Division Titles (Overall) of 0?
CREATE TABLE table_name_15 (seasons_in_csl VARCHAR, top_division_titles__overall_ VARCHAR, home_stadium VARCHAR)
SELECT DISTINCT YEAR FROM party WHERE Governor = "Eliot Spitzer"
In which distinct years was the governor "Eliot Spitzer"?
CREATE TABLE party (YEAR VARCHAR, Governor VARCHAR)
SELECT icao FROM table_name_2 WHERE commenced_operations < 1989
What is the ICAO with commenced operations before 1989?
CREATE TABLE table_name_2 (icao VARCHAR, commenced_operations INTEGER)
SELECT pada_3 FROM table_name_41 WHERE pada_1 = "टे te"
Which Pada 3 has a Pada 1 of टे te?
CREATE TABLE table_name_41 (pada_3 VARCHAR, pada_1 VARCHAR)
SELECT tonnage FROM table_name_75 WHERE built = 2007
What tonnage was built in 2007?
CREATE TABLE table_name_75 (tonnage VARCHAR, built VARCHAR)
SELECT netflow_version FROM table_1206114_2 WHERE vendor_and_type = "PC and Servers"
What is the netflow version when vendor and type is pc and servers?
CREATE TABLE table_1206114_2 (netflow_version VARCHAR, vendor_and_type VARCHAR)
SELECT score FROM table_name_46 WHERE home_team = "maine road"
What is home team Maine Road's score?
CREATE TABLE table_name_46 (score VARCHAR, home_team VARCHAR)
SELECT AVG(laps) FROM table_name_93 WHERE constructor = "ferrari" AND time_retired = "fuel pressure"
What is the mean number of laps for the constructor Ferrari when the time/retired was fuel pressure?
CREATE TABLE table_name_93 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR)
SELECT result_f_a FROM table_name_96 WHERE h___a = "h" AND round = "quarter-final first leg"
What is the Result F-A that was the quarter-final first leg round with a H/A of h?
CREATE TABLE table_name_96 (result_f_a VARCHAR, h___a VARCHAR, round VARCHAR)