question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
what's the occupied territory with operational period of may 1940 – january 1945
CREATE TABLE table_10335_1 (occupied_territory VARCHAR, operational VARCHAR)
SELECT occupied_territory FROM table_10335_1 WHERE operational = "May 1940 – January 1945"
Which Episode has a Rank of 1?
CREATE TABLE table_name_71 (episode VARCHAR, rank VARCHAR)
SELECT episode FROM table_name_71 WHERE rank = 1
what is the least number of goals for when the goals against is 70 and the ties less than 0?
CREATE TABLE table_name_32 (goals_for INTEGER, goals_against VARCHAR, ties VARCHAR)
SELECT MIN(goals_for) FROM table_name_32 WHERE goals_against = 70 AND ties < 0
How many times was the womens doubles in china?
CREATE TABLE table_28138035_6 (mens_singles VARCHAR, womens_doubles VARCHAR)
SELECT COUNT(mens_singles) FROM table_28138035_6 WHERE womens_doubles = "China"
Tell me the time/retired for Laps of 42 and Grids of 4
CREATE TABLE table_name_74 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_74 WHERE laps = 42 AND grid = 4
Which Driver has a Grid of 1?
CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_45 WHERE grid = "1"
how many high assists with record being 15-11
CREATE TABLE table_13762472_4 (high_assists VARCHAR, record VARCHAR)
SELECT COUNT(high_assists) FROM table_13762472_4 WHERE record = "15-11"
Where is Southern Vermont College located?
CREATE TABLE table_1973816_2 (location VARCHAR, institution VARCHAR)
SELECT location FROM table_1973816_2 WHERE institution = "Southern Vermont College"
What's the greek designation of the city riverside?
CREATE TABLE table_name_28 (greek_designation VARCHAR, city VARCHAR)
SELECT greek_designation FROM table_name_28 WHERE city = "riverside"
What type of surface did Thomaz Bellucci play against tommy robredo?
CREATE TABLE table_name_66 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_66 WHERE opponent = "tommy robredo"
What is the aveage Egypt Cup value for players with 0 CAF Champions League goals, 6 Egyptian Premier League goals, and totals under 6?
CREATE TABLE table_name_93 (egypt_cup INTEGER, total VARCHAR, caf_champions_league VARCHAR, egyptian_premier_league VARCHAR)
SELECT AVG(egypt_cup) FROM table_name_93 WHERE caf_champions_league = 0 AND egyptian_premier_league = 6 AND total < 6
what is the recnet when the city of license is peterborough?
CREATE TABLE table_name_68 (recnet VARCHAR, city_of_license VARCHAR)
SELECT recnet FROM table_name_68 WHERE city_of_license = "peterborough"
Who lost with a time of 0:58?
CREATE TABLE table_name_44 (loser VARCHAR, time VARCHAR)
SELECT loser FROM table_name_44 WHERE time = "0:58"
What was the term of office for noel beaton?
CREATE TABLE table_name_1 (term_of_office VARCHAR, member VARCHAR)
SELECT term_of_office FROM table_name_1 WHERE member = "noel beaton"
What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?
CREATE TABLE table_name_90 (last_cf INTEGER, cf_wins VARCHAR, cf_appearances VARCHAR, cup_wins VARCHAR)
SELECT MIN(last_cf) FROM table_name_90 WHERE cf_appearances = 2 AND cup_wins = 0 AND cf_wins < 0
What position did the player who was with the grizzlies from 2007-2009 play?
CREATE TABLE table_name_89 (position VARCHAR, years_for_grizzlies VARCHAR)
SELECT position FROM table_name_89 WHERE years_for_grizzlies = "2007-2009"
What was the date of the game that had a goal of 3?
CREATE TABLE table_name_48 (date VARCHAR, goal VARCHAR)
SELECT date FROM table_name_48 WHERE goal = 3
What is the total number of U Wins, when Alianza Goals is "0", and when U Goals is greater than 3?
CREATE TABLE table_name_25 (u_wins VARCHAR, alianza_goals VARCHAR, u_goals VARCHAR)
SELECT COUNT(u_wins) FROM table_name_25 WHERE alianza_goals = 0 AND u_goals > 3
What grid is Ducati with fewer than 22 laps?
CREATE TABLE table_name_96 (grid VARCHAR, manufacturer VARCHAR, laps VARCHAR)
SELECT grid FROM table_name_96 WHERE manufacturer = "ducati" AND laps < 22
what is the lowest geo id?
CREATE TABLE table_18600760_15 (geo_id INTEGER)
SELECT MIN(geo_id) FROM table_18600760_15
What is the largest round number for the dt position when the pick number is bigger than 181?
CREATE TABLE table_name_54 (round INTEGER, position VARCHAR, pick VARCHAR)
SELECT MAX(round) FROM table_name_54 WHERE position = "dt" AND pick > 181
Tell me the method with a record of 4-2
CREATE TABLE table_name_1 (method VARCHAR, record VARCHAR)
SELECT method FROM table_name_1 WHERE record = "4-2"
How many years is ur sulcus listed with a diameter less than 1,145.0?
CREATE TABLE table_name_68 (year_named VARCHAR, name VARCHAR, diameter VARCHAR)
SELECT COUNT(year_named) FROM table_name_68 WHERE name = "ur sulcus" AND diameter < 1 OFFSET 145.0
Name the motorcycle for season 2012
CREATE TABLE table_16908657_1 (motorcycle VARCHAR, season VARCHAR)
SELECT motorcycle FROM table_16908657_1 WHERE season = 2012
When did the episode with series number 29a originally air?
CREATE TABLE table_14035132_3 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT original_air_date FROM table_14035132_3 WHERE no_in_series = "29a"
What is part 1 of the verb in class 7b
CREATE TABLE table_1745843_10 (part_1 VARCHAR, class VARCHAR)
SELECT part_1 FROM table_1745843_10 WHERE class = "7b"
What is the final position/round of the UEFA cup?
CREATE TABLE table_name_88 (final_position___round VARCHAR, competition VARCHAR)
SELECT final_position___round FROM table_name_88 WHERE competition = "uefa cup"
Tell me the discovery/publication for still living
CREATE TABLE table_name_55 (discovery___publication_of_name VARCHAR, fossil_record VARCHAR)
SELECT discovery___publication_of_name FROM table_name_55 WHERE fossil_record = "still living"
What round did Ray Kurpis play?
CREATE TABLE table_name_2 (round VARCHAR, player VARCHAR)
SELECT round FROM table_name_2 WHERE player = "ray kurpis"
Which Chicken wing has no steal/intercept ball?
CREATE TABLE table_name_76 (chicken_wing VARCHAR, steal_intercept_ball VARCHAR)
SELECT chicken_wing FROM table_name_76 WHERE steal_intercept_ball = "no"
When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999?
CREATE TABLE table_name_9 (construction_completed VARCHAR, listed VARCHAR, deleted VARCHAR)
SELECT construction_completed FROM table_name_9 WHERE listed = "09/21/1984" AND deleted = "11/04/1999"
Which IHSAA Class has a School of mitchell?
CREATE TABLE table_name_4 (ihsaa_class VARCHAR, school VARCHAR)
SELECT ihsaa_class FROM table_name_4 WHERE school = "mitchell"
List the numer of miles for 2010.
CREATE TABLE table_28178756_1 (miles__km_ VARCHAR, year VARCHAR)
SELECT miles__km_ FROM table_28178756_1 WHERE year = 2010
What year were there less than 1.5 points and an Entrant of escuderia bandeirantes, and a maserati straight-4 engine?
CREATE TABLE table_name_90 (year VARCHAR, engine VARCHAR, points VARCHAR, entrant VARCHAR)
SELECT year FROM table_name_90 WHERE points < 1.5 AND entrant = "escuderia bandeirantes" AND engine = "maserati straight-4"
Who was the runner-up when the year was 2008?
CREATE TABLE table_name_58 (runner_s__up VARCHAR, year VARCHAR)
SELECT runner_s__up FROM table_name_58 WHERE year = "2008"
What is the greatest lane with an overall rank of 79 and a time larger than 26.1?
CREATE TABLE table_name_24 (lane INTEGER, overall_rank VARCHAR, time VARCHAR)
SELECT MAX(lane) FROM table_name_24 WHERE overall_rank = "79" AND time > 26.1
Where was adac rally deutschland's rally HQ?
CREATE TABLE table_name_62 (rally_hq VARCHAR, rally_name VARCHAR)
SELECT rally_hq FROM table_name_62 WHERE rally_name = "adac rally deutschland"
Can you tell me the Record that has the Game smaller than 76?
CREATE TABLE table_name_61 (record VARCHAR, game INTEGER)
SELECT record FROM table_name_61 WHERE game < 76
For the directed by 1991, what was the gross in Singapore?
CREATE TABLE table_name_66 (singapore_gross VARCHAR, director VARCHAR)
SELECT singapore_gross FROM table_name_66 WHERE director = "1991"
What racing team/s had the 92nd position?
CREATE TABLE table_2190919_1 (team_s_ VARCHAR, position VARCHAR)
SELECT team_s_ FROM table_2190919_1 WHERE position = "92nd"
When the genre is fighting what is the game?
CREATE TABLE table_name_89 (game VARCHAR, genre VARCHAR)
SELECT game FROM table_name_89 WHERE genre = "fighting"
Name the number of high rebounds for april 21
CREATE TABLE table_17621978_11 (high_rebounds VARCHAR, date VARCHAR)
SELECT COUNT(high_rebounds) FROM table_17621978_11 WHERE date = "April 21"
what's the result with candidates being charles edward bennett (d) unopposed
CREATE TABLE table_1342013_9 (result VARCHAR, candidates VARCHAR)
SELECT result FROM table_1342013_9 WHERE candidates = "Charles Edward Bennett (D) Unopposed"
Name the date for alfa records and catalog of alr-28045
CREATE TABLE table_name_6 (date VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_6 WHERE label = "alfa records" AND catalog = "alr-28045"
on january 12 who was the visitor?
CREATE TABLE table_name_16 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_16 WHERE date = "january 12"
Which Record has a Visitor of pittsburgh, and a Score of 4–0?
CREATE TABLE table_name_23 (record VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT record FROM table_name_23 WHERE visitor = "pittsburgh" AND score = "4–0"
What is the average goals for with a position under 12, draws over 1, and goals against under 28?
CREATE TABLE table_name_49 (goals_for INTEGER, goals_against VARCHAR, position VARCHAR, draw VARCHAR)
SELECT AVG(goals_for) FROM table_name_49 WHERE position < 12 AND draw > 1 AND goals_against < 28
Who was the Constructor when the Grid was 2?
CREATE TABLE table_name_63 (constructor VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_63 WHERE grid = 2
What was Lee Smith's highest number of goals when he made fewer than 364 appearances?
CREATE TABLE table_name_51 (goals INTEGER, name VARCHAR, appearances VARCHAR)
SELECT MAX(goals) FROM table_name_51 WHERE name = "lee smith" AND appearances < 364
What is the name of the cover model on 3-97?
CREATE TABLE table_1566850_8 (cover_model VARCHAR, date VARCHAR)
SELECT cover_model FROM table_1566850_8 WHERE date = "3-97"
Who is the home team who plays at Glenferrie Oval?
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_95 WHERE venue = "glenferrie oval"
Who's the Fourth District with a Second District of kurt van koevering?
CREATE TABLE table_name_41 (fourth_district VARCHAR, second_district VARCHAR)
SELECT fourth_district FROM table_name_41 WHERE second_district = "kurt van koevering"
Which roll has an Area of mahia?
CREATE TABLE table_name_2 (roll VARCHAR, area VARCHAR)
SELECT roll FROM table_name_2 WHERE area = "mahia"
Who ran under the Socialist Labor ticket when Robert M. Morgenthau ran for the Democratic ticket?
CREATE TABLE table_name_28 (socialist_labor_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT socialist_labor_ticket FROM table_name_28 WHERE democratic_ticket = "robert m. morgenthau"
What was the country of the player at +5?
CREATE TABLE table_name_68 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_68 WHERE to_par = "+5"
What is Tie No, when Score is "Marlow United won 4–2 on penalties"?
CREATE TABLE table_name_89 (tie_no VARCHAR, score VARCHAR)
SELECT tie_no FROM table_name_89 WHERE score = "marlow united won 4–2 on penalties"
Who is the player who has a total less than 4, no scottish cups, and a league cup greater than 0?
CREATE TABLE table_name_31 (player VARCHAR, league_cup VARCHAR, total VARCHAR, scottish_cup VARCHAR)
SELECT player FROM table_name_31 WHERE total < 4 AND scottish_cup = 0 AND league_cup > 0
Tell me the winning driver for avusrennen
CREATE TABLE table_name_70 (winning_driver VARCHAR, name VARCHAR)
SELECT winning_driver FROM table_name_70 WHERE name = "avusrennen"
How many burglary crimes were committed if the forcible rapes were 1233?
CREATE TABLE table_26060884_2 (burglary VARCHAR, forcible_rape VARCHAR)
SELECT burglary FROM table_26060884_2 WHERE forcible_rape = 1233
What is the background of the person fired in week 5?
CREATE TABLE table_24501530_1 (background VARCHAR, result VARCHAR)
SELECT background FROM table_24501530_1 WHERE result = "Fired in week 5"
Who is in October when Carina Ragnarsson is in November?
CREATE TABLE table_name_61 (october VARCHAR, november VARCHAR)
SELECT october FROM table_name_61 WHERE november = "carina ragnarsson"
Which Series has a Site of ames on september 10, 2005?
CREATE TABLE table_name_90 (series VARCHAR, site VARCHAR, date VARCHAR)
SELECT series FROM table_name_90 WHERE site = "ames" AND date = "september 10, 2005"
When hany abu-assad category:articles with hcards is the director what is the result?
CREATE TABLE table_26555737_1 (result VARCHAR, director VARCHAR)
SELECT result FROM table_26555737_1 WHERE director = "Hany Abu-Assad Category:Articles with hCards"
Tell me the opponent for attendance of 53,899
CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_49 WHERE attendance = "53,899"
What is the area of Cromwell Primary school, which has a state authority?
CREATE TABLE table_name_96 (area VARCHAR, authority VARCHAR, name VARCHAR)
SELECT area FROM table_name_96 WHERE authority = "state" AND name = "cromwell primary school"
What movie did Bela Bose co-star in?
CREATE TABLE table_2528382_5 (movie_album VARCHAR, co_stars VARCHAR)
SELECT movie_album FROM table_2528382_5 WHERE co_stars = "Bela Bose"
Find the average access counts of documents with functional area "Acknowledgement".
CREATE TABLE document_functional_areas (document_code VARCHAR, functional_area_code VARCHAR); CREATE TABLE documents (access_count INTEGER, document_code VARCHAR); CREATE TABLE functional_areas (functional_area_code VARCHAR, functional_area_description VARCHAR)
SELECT AVG(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = "Acknowledgement"
Which Residence has a Party of dem, and a Representative of linda lawson?
CREATE TABLE table_name_20 (residence VARCHAR, party VARCHAR, representative VARCHAR)
SELECT residence FROM table_name_20 WHERE party = "dem" AND representative = "linda lawson"
Which viewers have the language of troff (typesetter runoff) , groff (gnu runoff)?
CREATE TABLE table_1574968_1 (viewer VARCHAR, language VARCHAR)
SELECT viewer FROM table_1574968_1 WHERE language = "troff (typesetter runoff) , groff (GNU runoff)"
What is the number eliminated when kelly and brendan are safe?
CREATE TABLE table_12305325_4 (eliminated VARCHAR, safe VARCHAR)
SELECT COUNT(eliminated) FROM table_12305325_4 WHERE safe = "Kelly and Brendan"
Which home team has a record of 3-2?
CREATE TABLE table_name_49 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_49 WHERE record = "3-2"
What time was the kickoff on week 5?
CREATE TABLE table_name_60 (kickoff_ VARCHAR, a_ VARCHAR, week VARCHAR)
SELECT kickoff_[a_] FROM table_name_60 WHERE week = "5"
Which Grid that has a Rider of mike di meglio, and Laps larger than 23?
CREATE TABLE table_name_23 (grid INTEGER, rider VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_23 WHERE rider = "mike di meglio" AND laps > 23
What is the NOAA of the higher harmonics that have a Darwin of mn 4?
CREATE TABLE table_name_49 (noaa VARCHAR, darwin VARCHAR)
SELECT noaa FROM table_name_49 WHERE darwin = "mn 4"
What was the weight in kg when the jockey was B. York?
CREATE TABLE table_2062148_2 (weight__kg_ VARCHAR, jockey VARCHAR)
SELECT weight__kg_ FROM table_2062148_2 WHERE jockey = "B. York"
What is the record of the match with a win res., a 5:00 time, and more than 3 rounds?
CREATE TABLE table_name_85 (record VARCHAR, round VARCHAR, res VARCHAR, time VARCHAR)
SELECT record FROM table_name_85 WHERE res = "win" AND time = "5:00" AND round > 3
What date has 113-115 (ot) as the score?
CREATE TABLE table_name_20 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_20 WHERE score = "113-115 (ot)"
What is Edinburgh's airport's freight in metric tonnes?
CREATE TABLE table_13836704_7 (freight___metric_tonnes__ INTEGER, airport VARCHAR)
SELECT MAX(freight___metric_tonnes__) FROM table_13836704_7 WHERE airport = "Edinburgh"
What is the title of series 23?
CREATE TABLE table_18481791_3 (title VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_18481791_3 WHERE no_in_series = 23
Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430
CREATE TABLE table_name_34 (erp___power_w VARCHAR, frequency VARCHAR, facility_id VARCHAR)
SELECT COUNT(erp___power_w) FROM table_name_34 WHERE frequency = "89.3 fm" AND facility_id < 40430
What is the number of people in attendance when Tonbridge Angels is the opponent?
CREATE TABLE table_name_86 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_86 WHERE opponent = "tonbridge angels"
How many poles in the year 2000
CREATE TABLE table_1875157_1 (poles INTEGER, year VARCHAR)
SELECT MAX(poles) FROM table_1875157_1 WHERE year = 2000
What is the resolution of the network Canal de las Estrellas?
CREATE TABLE table_name_96 (resolution VARCHAR, network VARCHAR)
SELECT resolution FROM table_name_96 WHERE network = "canal de las estrellas"
Tkkm o te ara rima has a decile less than 4 in what years?
CREATE TABLE table_name_36 (years VARCHAR, decile VARCHAR, name VARCHAR)
SELECT years FROM table_name_36 WHERE decile < 4 AND name = "tkkm o te ara rima"
Where was the game held where North Melbourne was the away team?
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_89 WHERE away_team = "north melbourne"
What player goes to Torrey Pines High School?
CREATE TABLE table_11677100_3 (player VARCHAR, school VARCHAR)
SELECT player FROM table_11677100_3 WHERE school = "Torrey Pines High school"
What teams drive cars manufactured by Toyota?
CREATE TABLE table_1963459_2 (team VARCHAR, manufacturer VARCHAR)
SELECT team FROM table_1963459_2 WHERE manufacturer = "Toyota"
What is the ISIN that has an amount issued of 223,000,000?
CREATE TABLE table_21692771_1 (isin VARCHAR, amount_issued_ VARCHAR, € VARCHAR)
SELECT isin FROM table_21692771_1 WHERE amount_issued_[€] = "223,000,000"
Which Year has a Competition of european championships, and Notes of 66.81 m?
CREATE TABLE table_name_26 (year INTEGER, competition VARCHAR, notes VARCHAR)
SELECT SUM(year) FROM table_name_26 WHERE competition = "european championships" AND notes = "66.81 m"
Name the maximum founded for blue hose
CREATE TABLE table_16168849_1 (founded INTEGER, nickname VARCHAR)
SELECT MAX(founded) FROM table_16168849_1 WHERE nickname = "Blue Hose"
what is the average water sqmi with a population (2010) more than 47 in the Brenna Township with Longitude less than -97.171507
CREATE TABLE table_name_8 (water__sqmi_ INTEGER, longitude VARCHAR, pop__2010_ VARCHAR, township VARCHAR)
SELECT AVG(water__sqmi_) FROM table_name_8 WHERE pop__2010_ > 47 AND township = "brenna" AND longitude < -97.171507
Tell me the nomination for peresohla zemlia
CREATE TABLE table_name_41 (nomination VARCHAR, film_name VARCHAR)
SELECT nomination FROM table_name_41 WHERE film_name = "peresohla zemlia"
Which lap-by-lap has a year after 1973, with pit reporter Bill Flemming?
CREATE TABLE table_name_74 (lap_by_lap VARCHAR, year VARCHAR, pit_reporters VARCHAR)
SELECT lap_by_lap FROM table_name_74 WHERE year > 1973 AND pit_reporters = "bill flemming"
Which providers use version 2008?
CREATE TABLE table_14465871_2 (provider VARCHAR, version VARCHAR)
SELECT provider FROM table_14465871_2 WHERE version = "2008"
Name the average apps for smederevo
CREATE TABLE table_name_73 (apps INTEGER, team VARCHAR)
SELECT AVG(apps) FROM table_name_73 WHERE team = "smederevo"
What was the score of the game when the record was 50-85?
CREATE TABLE table_name_73 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_73 WHERE record = "50-85"
What was the timeslot for the episode in the year 2008?
CREATE TABLE table_2639433_4 (timeslot VARCHAR, year VARCHAR)
SELECT timeslot FROM table_2639433_4 WHERE year = 2008
Which producer worked with Robert Sproul-cran as writer?
CREATE TABLE table_name_94 (producer_s_ VARCHAR, writer_s_ VARCHAR)
SELECT producer_s_ FROM table_name_94 WHERE writer_s_ = "robert sproul-cran"
How many times is the postion S?
CREATE TABLE table_name_4 (overall VARCHAR, position VARCHAR)
SELECT COUNT(overall) FROM table_name_4 WHERE position = "s"
Name the Fixtures Sec which has a Season of 2009–2010
CREATE TABLE table_name_12 (fixtures_sec VARCHAR, season VARCHAR)
SELECT fixtures_sec FROM table_name_12 WHERE season = "2009–2010"