answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT scorers FROM table_name_61 WHERE group_position = "2nd" AND opponents = "olympiacos"
Who were the 2nd group scorers that were opponents of olympiacos?
CREATE TABLE table_name_61 (scorers VARCHAR, group_position VARCHAR, opponents VARCHAR)
SELECT SUM(lost) FROM table_name_99 WHERE draw > 0
How many losses have a draw greater than 0?
CREATE TABLE table_name_99 (lost INTEGER, draw INTEGER)
SELECT SUM(number_in_class) FROM table_name_13 WHERE owner = "whitehaven coal"
What is the total number in class for the Whitehaven Coal?
CREATE TABLE table_name_13 (number_in_class INTEGER, owner VARCHAR)
SELECT SUM(position) FROM table_name_97 WHERE against = 32 AND difference = "18" AND drawn > 4
Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4?
CREATE TABLE table_name_97 (position INTEGER, drawn VARCHAR, against VARCHAR, difference VARCHAR)
SELECT to_par FROM table_name_21 WHERE player = "bert yancey"
What was Bert Yancey's finishing score to par?
CREATE TABLE table_name_21 (to_par VARCHAR, player VARCHAR)
SELECT date_of_vacancy FROM table_name_37 WHERE team = "aberdeen"
What is Aberdeen team's date of vacancy?
CREATE TABLE table_name_37 (date_of_vacancy VARCHAR, team VARCHAR)
SELECT date FROM table_name_39 WHERE opponent = "new york jets"
What date did the Steelers play against the New York Jets?
CREATE TABLE table_name_39 (date VARCHAR, opponent VARCHAR)
SELECT season FROM table_name_43 WHERE last_air_date = "march 11, 2001"
Which season had its last episode air on March 11, 2001?
CREATE TABLE table_name_43 (season VARCHAR, last_air_date VARCHAR)
SELECT title FROM table_14724369_1 WHERE directed_by = "Neil Affleck"
Which title did Neil Affleck direct?
CREATE TABLE table_14724369_1 (title VARCHAR, directed_by VARCHAR)
SELECT high_rebounds FROM table_15780718_6 WHERE score = "W 105–91 (OT)"
Name for the high rebounds when score is w 105–91 (ot)
CREATE TABLE table_15780718_6 (high_rebounds VARCHAR, score VARCHAR)
SELECT reign FROM table_name_16 WHERE days_held = "35" AND wrestler = "super kendo"
What is the reign for super kendo who held it for 35 days?
CREATE TABLE table_name_16 (reign VARCHAR, days_held VARCHAR, wrestler VARCHAR)
SELECT approved_treatment_s_ FROM table_1661124_1 WHERE antibody = "Bevacizumab"
What are the approved treatments when the antibody is bevacizumab?
CREATE TABLE table_1661124_1 (approved_treatment_s_ VARCHAR, antibody VARCHAR)
SELECT area FROM table_name_60 WHERE hangul_chosongul = "경기도"
What is the area for the province having Hangul of 경기도?
CREATE TABLE table_name_60 (area VARCHAR, hangul_chosongul VARCHAR)
SELECT SUM(total) FROM table_name_96 WHERE player = "andy north"
How many totals have andy north as the player?
CREATE TABLE table_name_96 (total INTEGER, player VARCHAR)
SELECT bushi FROM table_name_45 WHERE kenny_omega = "yang (7:27)"
Name the BUSHI when it has kenny omega of yang (7:27)
CREATE TABLE table_name_45 (bushi VARCHAR, kenny_omega VARCHAR)
SELECT SUM(year) FROM table_name_2 WHERE points > 1
What is the total years with more than 1 points?
CREATE TABLE table_name_2 (year INTEGER, points INTEGER)
SELECT name FROM table_name_64 WHERE prize = "$279.330"
What is Name, when Prize is "$279.330"?
CREATE TABLE table_name_64 (name VARCHAR, prize VARCHAR)
SELECT player FROM table_14655985_1 WHERE pick__number = 64
who is the the player where pick # is 64
CREATE TABLE table_14655985_1 (player VARCHAR, pick__number VARCHAR)
SELECT listed FROM table_name_17 WHERE cerclis_id = "msd004006995"
Tell me the listed when cerclis id is msd004006995
CREATE TABLE table_name_17 (listed VARCHAR, cerclis_id VARCHAR)
SELECT date FROM table_name_69 WHERE home_team = "wrexham"
What date has wrexham as the home team?
CREATE TABLE table_name_69 (date VARCHAR, home_team VARCHAR)
SELECT state FROM table_name_67 WHERE host = "university of california, los angeles"
What state has the University of California, Los Angeles?
CREATE TABLE table_name_67 (state VARCHAR, host VARCHAR)
SELECT COUNT(opponent) FROM table_11465521_2 WHERE attendance = "64,087"
How many opponents were there at the game with 64,087 people in attendance?
CREATE TABLE table_11465521_2 (opponent VARCHAR, attendance VARCHAR)
SELECT captain FROM table_1301373_7 WHERE international_marquee = "Emile Heskey"
Name the captain for emile heskey
CREATE TABLE table_1301373_7 (captain VARCHAR, international_marquee VARCHAR)
SELECT record FROM table_16678052_2 WHERE opponent = "Phoenix Cardinals"
What record was reached when the Eagles played the Phoenix Cardinals?
CREATE TABLE table_16678052_2 (record VARCHAR, opponent VARCHAR)
SELECT MIN(draws) FROM table_name_83 WHERE goal_difference = "0:2" AND wins > 0
What is the lowest number of draws that have a goal difference of 0:2 and wins greater than 0?
CREATE TABLE table_name_83 (draws INTEGER, goal_difference VARCHAR, wins VARCHAR)
SELECT name FROM table_name_55 WHERE year > 2006 AND floors > 101
What is the name of the building housing more than 101 floors, that was built after 2006?
CREATE TABLE table_name_55 (name VARCHAR, year VARCHAR, floors VARCHAR)
SELECT goals FROM table_name_89 WHERE assists > 28 AND player = "steve walker"
What is Goals, when Assists is greater than 28, and when Player is Steve Walker?
CREATE TABLE table_name_89 (goals VARCHAR, assists VARCHAR, player VARCHAR)
SELECT venue FROM table_name_82 WHERE city = "manchester" AND year < 2003
Which venue had a city of Manchester before 2003?
CREATE TABLE table_name_82 (venue VARCHAR, city VARCHAR, year VARCHAR)
SELECT COUNT(rank) FROM table_name_61 WHERE silver = 1 AND total > 3 AND gold > 2
What rank has 1 silver, more than 2 gold, and a total larger than 3?
CREATE TABLE table_name_61 (rank VARCHAR, gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*) >= 2
What are the nationalities that are shared by at least two people?
CREATE TABLE people (Nationality VARCHAR)
SELECT 54 AS _holes FROM table_262383_1 WHERE runner_s__up = "Jimmy Demaret"
what is the number where the player was jimmy demaret
CREATE TABLE table_262383_1 (runner_s__up VARCHAR)
SELECT date_of_appointment FROM table_name_49 WHERE outgoing_manager = "edoardo reja"
What is the date of appointment for the outgoing manager edoardo reja?
CREATE TABLE table_name_49 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT nhl_team_s_ FROM table_1205598_1 WHERE media_market_ranking = 7
What is the NHL team in the media market ranking number 7?
CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, media_market_ranking VARCHAR)
SELECT ihsaa_class FROM table_name_93 WHERE mascot = "eagles" AND city = "evansville"
Which IHSAA Class has a Mascot of eagles, and a City of evansville?
CREATE TABLE table_name_93 (ihsaa_class VARCHAR, mascot VARCHAR, city VARCHAR)
SELECT COUNT(cfl_team) FROM table_28059992_2 WHERE player = "Jeff Traversy"
Name the number of cfl teams for jeff traversy
CREATE TABLE table_28059992_2 (cfl_team VARCHAR, player VARCHAR)
SELECT COUNT(2013 AS _press_freedom_index) FROM table_1604579_2 WHERE country = "Austria"
How many freedom indices does the country of Austria have?
CREATE TABLE table_1604579_2 (country VARCHAR)
SELECT pick__number FROM table_21321804_1 WHERE player = "Wes Lysack"
What is the pick # for player wes lysack?
CREATE TABLE table_21321804_1 (pick__number VARCHAR, player VARCHAR)
SELECT west FROM table_name_32 WHERE east = "esv gebensbach"
Who was in the West when ESV Gebensbach was in the East?
CREATE TABLE table_name_32 (west VARCHAR, east VARCHAR)
SELECT SUM(number_of_districts__kecamatan_) FROM table_name_4 WHERE geographical_unit = "java" AND number_of_regencies__kabupaten_ > 4 AND villages < 8 OFFSET 577
What is the sum of the number of districts (kecamatan) in the geographical unit of java with more than 4 recencies (kabupaten) and less than 8,577 villages?
CREATE TABLE table_name_4 (number_of_districts__kecamatan_ INTEGER, villages VARCHAR, geographical_unit VARCHAR, number_of_regencies__kabupaten_ VARCHAR)
SELECT ntfs FROM table_name_50 WHERE refs = "no" AND hpfs = "yes"
Which NTFS has a no for ReFS and a yes for HPFS?
CREATE TABLE table_name_50 (ntfs VARCHAR, refs VARCHAR, hpfs VARCHAR)
SELECT place FROM table_name_17 WHERE country = "united states" AND score = 67 - 71 = 138
Name the Place which has a Score of 67-71=138, united states?
CREATE TABLE table_name_17 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT SUM(capacity) FROM table_name_96 WHERE stadium = "pasquale ianniello"
What is the total capacity for the stadium of pasquale ianniello?
CREATE TABLE table_name_96 (capacity INTEGER, stadium VARCHAR)
SELECT SUM(week) FROM table_name_8 WHERE result = "safe" AND dance = "salsa"
What week was she safe for a salsa dance?
CREATE TABLE table_name_8 (week INTEGER, result VARCHAR, dance VARCHAR)
SELECT COUNT(first_elected) FROM table_1342370_42 WHERE result = "Re-elected" AND incumbent = "Hatton W. Sumners"
How many of the first elected were listed when Hatton W. Sumners was incumbent and re-elected?
CREATE TABLE table_1342370_42 (first_elected VARCHAR, result VARCHAR, incumbent VARCHAR)
SELECT venue FROM table_name_43 WHERE date = "july 17, 1999"
Where was the match held on July 17, 1999?
CREATE TABLE table_name_43 (venue VARCHAR, date VARCHAR)
SELECT country FROM table_name_97 WHERE score = 71 - 69 = 140
What country scored 71-69=140?
CREATE TABLE table_name_97 (country VARCHAR, score VARCHAR)
SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = "A Love of a Lifetime"
What is the TV Channel of TV series with Episode "A Love of a Lifetime"? List the TV Channel's series name.
CREATE TABLE TV_series (Channel VARCHAR, Episode VARCHAR); CREATE TABLE TV_Channel (series_name VARCHAR, id VARCHAR)
SELECT tournament FROM table_name_32 WHERE 2012 = "grand slam tournaments"
Name the tournament for 2012 grand slam tournaments
CREATE TABLE table_name_32 (tournament VARCHAR)
SELECT school_club_team FROM table_name_34 WHERE player = "deandre liggins"
Which School/Club Team has a Player of deandre liggins?
CREATE TABLE table_name_34 (school_club_team VARCHAR, player VARCHAR)
SELECT COUNT(pictorials) FROM table_1566848_7 WHERE centerfold_model = "Rebekka Armstrong"
Who were all the pictorials when the centerfold model was Rebekka Armstrong?
CREATE TABLE table_1566848_7 (pictorials VARCHAR, centerfold_model VARCHAR)
SELECT course FROM table_name_98 WHERE year < 1934 AND location = "midlothian, illinois"
what is the course at midlothian, illinois for a year before 1934?
CREATE TABLE table_name_98 (course VARCHAR, year VARCHAR, location VARCHAR)
SELECT outcome FROM table_name_15 WHERE score_in_the_final = "4–6, 4–6" AND date = "october 21, 1990"
Name the Outcome which has a Score in the final of 4–6, 4–6 on october 21, 1990?
CREATE TABLE table_name_15 (outcome VARCHAR, score_in_the_final VARCHAR, date VARCHAR)
SELECT result FROM table_name_65 WHERE game = "game 5"
What is the result for game 5?
CREATE TABLE table_name_65 (result VARCHAR, game VARCHAR)
SELECT MIN(teams) FROM table_23927423_4
How many were the minimum team that participated in the league?
CREATE TABLE table_23927423_4 (teams INTEGER)
SELECT against___percentage_ FROM table_1289762_1 WHERE constituency = "Vest-Agder"
What is the against percentage in the Vest-Agder constituency?
CREATE TABLE table_1289762_1 (against___percentage_ VARCHAR, constituency VARCHAR)
SELECT competition FROM table_name_56 WHERE town = "budva" AND opponent = "italy"
what is the competition played in budva against italy?
CREATE TABLE table_name_56 (competition VARCHAR, town VARCHAR, opponent VARCHAR)
SELECT co_singer FROM table_name_26 WHERE composer = "sukhwinder singh"
What co-singer has sukhwinder singh as the composer?
CREATE TABLE table_name_26 (co_singer VARCHAR, composer VARCHAR)
SELECT T1.name, COUNT(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid
How many patients do each physician take care of? List their names and number of patients they take care of.
CREATE TABLE patient (PCP VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR)
SELECT region FROM table_14532_1 WHERE capital = "Milan"
What is the region where Milan is located?
CREATE TABLE table_14532_1 (region VARCHAR, capital VARCHAR)
SELECT year FROM table_name_21 WHERE engine_code = "m57d30"
From what year is the engine with engine code M57D30?
CREATE TABLE table_name_21 (year VARCHAR, engine_code VARCHAR)
SELECT date FROM table_23308178_4 WHERE opponent = "New York Rangers"
What date did they play agains the New York Rangers?
CREATE TABLE table_23308178_4 (date VARCHAR, opponent VARCHAR)
SELECT MIN(year) FROM table_name_10 WHERE owner = "stuart janney iii"
What is the earliest year Stuart Janney III was an owner?
CREATE TABLE table_name_10 (year INTEGER, owner VARCHAR)
SELECT COUNT(production_number) FROM table_name_24 WHERE director = "robert mckimson" AND title = "mice follies"
What is the production number for the episode directed by Robert McKimson named Mice Follies?
CREATE TABLE table_name_24 (production_number VARCHAR, director VARCHAR, title VARCHAR)
SELECT MAX(first_elected) FROM table_1342359_2
What is the last year that someone is first elected?
CREATE TABLE table_1342359_2 (first_elected INTEGER)
SELECT captain FROM table_name_57 WHERE runner_up = "tanunda" AND year > 1939
When the year is later than 1939 and the Runner-up is Tanunda, who is the Captain?
CREATE TABLE table_name_57 (captain VARCHAR, runner_up VARCHAR, year VARCHAR)
SELECT no_10 FROM table_name_45 WHERE no_1 = "noah" AND no_9 = "carter"
What is No. 10, when No. 1 is Noah, and when No. 9 is Carter?
CREATE TABLE table_name_45 (no_10 VARCHAR, no_1 VARCHAR, no_9 VARCHAR)
SELECT height_m___ft FROM table_name_64 WHERE street_address = "207 w. hastings st."
What is the height m/ft where 207 w. hastings st. is the address?
CREATE TABLE table_name_64 (height_m___ft VARCHAR, street_address VARCHAR)
SELECT time FROM table_name_31 WHERE record = "66-95"
when is Record of 66-95?
CREATE TABLE table_name_31 (time VARCHAR, record VARCHAR)
SELECT death FROM table_name_56 WHERE spouse = "philippe"
When did the duchess, who was married to philippe, die?
CREATE TABLE table_name_56 (death VARCHAR, spouse VARCHAR)
SELECT score FROM table_name_34 WHERE country = "england" AND champion = "peter mcevoy" AND runner_up = "paul mckellar"
What is the score of the match played in England where Peter McEvoy was the champion and Paul McKellar was runner-up?
CREATE TABLE table_name_34 (score VARCHAR, runner_up VARCHAR, country VARCHAR, champion VARCHAR)
SELECT Theme FROM farm_competition ORDER BY YEAR
What are the themes of farm competitions sorted by year in ascending order?
CREATE TABLE farm_competition (Theme VARCHAR, YEAR VARCHAR)
SELECT runners_up FROM table_name_84 WHERE team = "espartanos de margarita"
How many runners-up did Espartanos de Margarita have?
CREATE TABLE table_name_84 (runners_up VARCHAR, team VARCHAR)
SELECT games_lost FROM table_27533947_1 WHERE best_run = 138
if the best run was 138, what is the amount of games lost?
CREATE TABLE table_27533947_1 (games_lost VARCHAR, best_run VARCHAR)
SELECT artist FROM table_23585197_3 WHERE songwriter_s_ = "Ingela Hemming"
Which artist sang the song that ingela hemming wrote?
CREATE TABLE table_23585197_3 (artist VARCHAR, songwriter_s_ VARCHAR)
SELECT batsmen FROM table_name_83 WHERE wicket = "7"
Who were the batsmen paired for wicket 7?
CREATE TABLE table_name_83 (batsmen VARCHAR, wicket VARCHAR)
SELECT list_entry_number FROM table_name_13 WHERE name = "fairfield moravian church"
What is the entry number on the list for Fairfield Moravian Church?
CREATE TABLE table_name_13 (list_entry_number VARCHAR, name VARCHAR)
SELECT COUNT(record___percentage__)[draw_ = _05_wins] FROM table_name_91 WHERE wins > 3 AND matches = 10 AND draws > 1
What is the draw record (%) total for clubs with more than 3 wins with 10 matches and more than 1 draw?
CREATE TABLE table_name_91 (record___percentage__ VARCHAR, draw_ VARCHAR, _05_wins VARCHAR, draws VARCHAR, wins VARCHAR, matches VARCHAR)
SELECT high_rebounds FROM table_name_7 WHERE date = "january 3"
Who had the most rebounds on January 3?
CREATE TABLE table_name_7 (high_rebounds VARCHAR, date VARCHAR)
SELECT title_rank FROM table_name_7 WHERE series = "1-8, 13" AND character = "arthur hastings"
What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?
CREATE TABLE table_name_7 (title_rank VARCHAR, series VARCHAR, character VARCHAR)
SELECT finished FROM table_name_84 WHERE celebrity = "camilla dallerup"
When did camilla dallerup finish?
CREATE TABLE table_name_84 (finished VARCHAR, celebrity VARCHAR)
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city
Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?
CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Feb INTEGER, Jun VARCHAR)
SELECT score FROM table_name_14 WHERE location = "tiger stadium" AND date = "october 12"
What was the score at Tiger Stadium on October 12?
CREATE TABLE table_name_14 (score VARCHAR, location VARCHAR, date VARCHAR)
SELECT episode__number FROM table_name_66 WHERE eliminated_contestant = "govinda & david dhawan"
What episode # has govinda & david dhawan as the eliminated contestant?
CREATE TABLE table_name_66 (episode__number VARCHAR, eliminated_contestant VARCHAR)
SELECT term_end FROM table_name_72 WHERE governments = "27" AND minister = "tzachi hanegbi"
When did the term end for the term that had government 27 and Minister Tzachi Hanegbi?
CREATE TABLE table_name_72 (term_end VARCHAR, governments VARCHAR, minister VARCHAR)
SELECT MIN(played) FROM table_14460085_3 WHERE team = "Deportivo Español"
What is the lowest number of games played for deportivo español?
CREATE TABLE table_14460085_3 (played INTEGER, team VARCHAR)
SELECT MAX(killed), MIN(killed) FROM death
What is maximum and minimum death toll caused each time?
CREATE TABLE death (killed INTEGER)
SELECT AVG(year) FROM table_name_44 WHERE name = "shri. shambu nath khajuria"
What was the average year when shri. shambu nath khajuria won the padma shri awards?
CREATE TABLE table_name_44 (year INTEGER, name VARCHAR)
SELECT height__m_ FROM table_name_89 WHERE birth_date = "1968-07-01"
what is the height (m) when the birth date is 1968-07-01?
CREATE TABLE table_name_89 (height__m_ VARCHAR, birth_date VARCHAR)
SELECT score FROM table_name_80 WHERE place = "t2" AND player = "ted kroll"
What score did Ted Kroll get to come in at T2?
CREATE TABLE table_name_80 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT class FROM table_name_13 WHERE call_sign = "w267an"
What is the class of the w267an call sign?
CREATE TABLE table_name_13 (class VARCHAR, call_sign VARCHAR)
SELECT to_par FROM table_name_26 WHERE score = 70 - 68 - 74 - 70 = 282
What was the TO par for the player who scored 70-68-74-70=282?
CREATE TABLE table_name_26 (to_par VARCHAR, score VARCHAR)
SELECT group_11 FROM table_19523142_5 WHERE group_12 = "Persipal Palu"
Who played in group 11 when Persipal Palu played in group 12?
CREATE TABLE table_19523142_5 (group_11 VARCHAR, group_12 VARCHAR)
SELECT season FROM table_16331144_1 WHERE winning_mentor = "Ida Corr"
Which season did Ida Corr win?
CREATE TABLE table_16331144_1 (season VARCHAR, winning_mentor VARCHAR)
SELECT 2008 FROM table_name_2 WHERE 2009 = "heartland high tech"
What is the 2008 for 2009 heartland high tech?
CREATE TABLE table_name_2 (Id VARCHAR)
SELECT MAX(total_offense) FROM table_28697228_4 WHERE opponent = "Penn State"
What is the number of total offense when the opponentis Penn State?
CREATE TABLE table_28697228_4 (total_offense INTEGER, opponent VARCHAR)
SELECT fan_title FROM table_2560677_1 WHERE end_date = "1967-11-12"
What is the fan title with an end date of 1967-11-12?
CREATE TABLE table_2560677_1 (fan_title VARCHAR, end_date VARCHAR)
SELECT COUNT(party) FROM table_2668378_5 WHERE district = "Kentucky 1"
Name the number of party for kentucky 1
CREATE TABLE table_2668378_5 (party VARCHAR, district VARCHAR)
SELECT call_sign FROM table_name_60 WHERE erp_w > 38 AND city_of_license = "great falls, montana"
What is the call sign of the translator with an ERP W greater than 38 and a city license from Great Falls, Montana?
CREATE TABLE table_name_60 (call_sign VARCHAR, erp_w VARCHAR, city_of_license VARCHAR)
SELECT MAX(score) FROM table_name_97 WHERE place = "t2" AND player = "steve flesch"
What is T2 Place Player Steve Flesch's Score?
CREATE TABLE table_name_97 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT COUNT(seasons) FROM table_name_71 WHERE coach = "john mcfadden"
How many seasons has John Mcfadden coached?
CREATE TABLE table_name_71 (seasons VARCHAR, coach VARCHAR)