question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
What are the average and maximum number of tickets bought in all visits? | CREATE TABLE visit (num_of_ticket INTEGER) | SELECT AVG(num_of_ticket), MAX(num_of_ticket) FROM visit |
What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009? | CREATE TABLE table_240936_2 (region_1__can_ VARCHAR, region_2__uk_ VARCHAR) | SELECT region_1__can_ FROM table_240936_2 WHERE region_2__uk_ = "May 18, 2009" |
What is the record for November 26, with the decision made by Prusek? | CREATE TABLE table_name_44 (record VARCHAR, decision VARCHAR, date VARCHAR) | SELECT record FROM table_name_44 WHERE decision = "prusek" AND date = "november 26" |
Which Surface had a Date of june 13, 1983? | CREATE TABLE table_name_14 (surface VARCHAR, date VARCHAR) | SELECT surface FROM table_name_14 WHERE date = "june 13, 1983" |
Which person has an expiring term of December 31, 2020, and has Terry Branstad as the appointing governor? | CREATE TABLE table_name_8 (name VARCHAR, term_expires VARCHAR, appointing_governor VARCHAR) | SELECT name FROM table_name_8 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad" |
What is Television Service, when HDTV is No, and when Language is Italian? | CREATE TABLE table_name_11 (television_service VARCHAR, hdtv VARCHAR, language VARCHAR) | SELECT television_service FROM table_name_11 WHERE hdtv = "no" AND language = "italian" |
What is the date of death of the duchess born on 30 October 1797? | CREATE TABLE table_name_2 (death VARCHAR, birth VARCHAR) | SELECT death FROM table_name_2 WHERE birth = "30 october 1797" |
Which state has the most customers? | CREATE TABLE customers (state VARCHAR) | SELECT state FROM customers GROUP BY state ORDER BY COUNT(*) LIMIT 1 |
When did sony music direct a label? | CREATE TABLE table_name_60 (date VARCHAR, label VARCHAR) | SELECT date FROM table_name_60 WHERE label = "sony music direct" |
What is the Diligence Virtues Gloss? | CREATE TABLE table_name_22 (gloss VARCHAR, virtue VARCHAR) | SELECT gloss FROM table_name_22 WHERE virtue = "diligence" |
Name the average number of seasons for Prva HNL of 17 | CREATE TABLE table_name_65 (number_of_seasons_in_top_division INTEGER, number_of_seasons_in_prva_hnl VARCHAR) | SELECT AVG(number_of_seasons_in_top_division) FROM table_name_65 WHERE number_of_seasons_in_prva_hnl = 17 |
What is Event, when Date is August 20-August 27? | CREATE TABLE table_name_72 (event VARCHAR, date VARCHAR) | SELECT event FROM table_name_72 WHERE date = "august 20-august 27" |
What is Score, when Date is greater than 7, and when Game is "82"? | CREATE TABLE table_name_29 (score VARCHAR, date VARCHAR, game VARCHAR) | SELECT score FROM table_name_29 WHERE date > 7 AND game = 82 |
What's the latitude when the longitude is 152.0e later than 1997? | CREATE TABLE table_name_66 (latitude VARCHAR, year_named VARCHAR, longitude VARCHAR) | SELECT latitude FROM table_name_66 WHERE year_named > 1997 AND longitude = "152.0e" |
when was the ship laid down when it was completed on 3 july 1926? | CREATE TABLE table_name_43 (laid_down VARCHAR, completed VARCHAR) | SELECT laid_down FROM table_name_43 WHERE completed = "3 july 1926" |
What is the Country of the Player with a Total less than 153 and Year(s) won of 1984? | CREATE TABLE table_name_18 (country VARCHAR, total VARCHAR, year_s__won VARCHAR) | SELECT country FROM table_name_18 WHERE total < 153 AND year_s__won = "1984" |
Please show the name of the conductor that has conducted orchestras founded after 2008. | CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR) | SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008 |
What director(s) have the intouchables as the title? | CREATE TABLE table_name_67 (director_s_ VARCHAR, title VARCHAR) | SELECT director_s_ FROM table_name_67 WHERE title = "the intouchables" |
Tell me the total number of prom for height less than 615 | CREATE TABLE table_name_59 (prom__m_ VARCHAR, height__m_ INTEGER) | SELECT COUNT(prom__m_) FROM table_name_59 WHERE height__m_ < 615 |
What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28? | CREATE TABLE table_name_44 (rank VARCHAR, team VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_44 WHERE team = "250cc honda" AND time = "1:27.57.28" |
What is the record when the visiting team was the montreal canadiens? | CREATE TABLE table_name_45 (record VARCHAR, visitor VARCHAR) | SELECT record FROM table_name_45 WHERE visitor = "montreal canadiens" |
What was the win-loss record for the player from Switzerland? | CREATE TABLE table_25820786_2 (win_loss VARCHAR, nationality VARCHAR) | SELECT win_loss FROM table_25820786_2 WHERE nationality = "Switzerland" |
What type of ship was the Shinano? | CREATE TABLE table_name_77 (ship_type VARCHAR, name VARCHAR) | SELECT ship_type FROM table_name_77 WHERE name = "shinano" |
What number in season is number 141 in series? | CREATE TABLE table_27491610_2 (no_in_season INTEGER, no_in_series VARCHAR) | SELECT MAX(no_in_season) FROM table_27491610_2 WHERE no_in_series = 141 |
When was there a crowd larger than 23,000? | CREATE TABLE table_name_63 (date VARCHAR, crowd INTEGER) | SELECT date FROM table_name_63 WHERE crowd > 23 OFFSET 000 |
What shows as the format for catalog 11 135? | CREATE TABLE table_name_61 (format VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_61 WHERE catalog = "11 135" |
Who is the october playmate with February playmate Cristy Thom? | CREATE TABLE table_name_51 (october VARCHAR, february VARCHAR) | SELECT october FROM table_name_51 WHERE february = "cristy thom" |
What is the order for a red list of 7 in the didelphidae family? | CREATE TABLE table_name_91 (order VARCHAR, red_list VARCHAR, family VARCHAR) | SELECT order FROM table_name_91 WHERE red_list = 7 AND family = "didelphidae" |
Which Game has a November of 22? | CREATE TABLE table_name_32 (game INTEGER, november VARCHAR) | SELECT SUM(game) FROM table_name_32 WHERE november = 22 |
In 2005 the earnings is less than 615,499 with less than 2 LPGA wins and what smallest Money list rank? | CREATE TABLE table_name_2 (money_list_rank INTEGER, earnings__$_ VARCHAR, lpga_wins VARCHAR, year VARCHAR) | SELECT MIN(money_list_rank) FROM table_name_2 WHERE lpga_wins < 2 AND year = 2005 AND earnings__$_ < 615 OFFSET 499 |
What is the bullet weight with a 12,000 cup max pressure? | CREATE TABLE table_name_98 (bullet_weight VARCHAR, max_pressure VARCHAR) | SELECT bullet_weight FROM table_name_98 WHERE max_pressure = "12,000 cup" |
What Scores by each individual judge has a Status of eliminated, and a Date performed of august 13? | CREATE TABLE table_name_15 (scores_by_each_individual_judge VARCHAR, status VARCHAR, date_performed VARCHAR) | SELECT scores_by_each_individual_judge FROM table_name_15 WHERE status = "eliminated" AND date_performed = "august 13" |
What is the id and family name of the driver who has the longest laptime? | CREATE TABLE drivers (driverid VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds VARCHAR) | SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1 |
What is the sum of Week when there were 67,968 people in attendance? | CREATE TABLE table_name_66 (week INTEGER, attendance VARCHAR) | SELECT SUM(week) FROM table_name_66 WHERE attendance = "67,968" |
What is the total number of losses against 1412, and Byes less than 2? | CREATE TABLE table_name_4 (losses VARCHAR, against VARCHAR, byes VARCHAR) | SELECT COUNT(losses) FROM table_name_4 WHERE against = 1412 AND byes < 2 |
Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order. | CREATE TABLE Apartments (apt_type_code VARCHAR) | SELECT apt_type_code, COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) |
Name the team for susan bates | CREATE TABLE table_24535095_2 (team VARCHAR, listed_owner_s_ VARCHAR) | SELECT team FROM table_24535095_2 WHERE listed_owner_s_ = "Susan Bates" |
What is the e/vap value for a turnout of exactly 85.7%? | CREATE TABLE table_2683116_1 (E VARCHAR, vap VARCHAR, turnout VARCHAR) | SELECT E / vap FROM table_2683116_1 WHERE turnout = "85.7%" |
What is the year of the Premios Carlos Gardel 2009 award? | CREATE TABLE table_name_58 (year VARCHAR, award VARCHAR) | SELECT year FROM table_name_58 WHERE award = "premios carlos gardel 2009" |
What venue is home for the Melbourne team? | CREATE TABLE table_name_60 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_60 WHERE home_team = "melbourne" |
Game 71 was played against what team? | CREATE TABLE table_name_99 (opponent VARCHAR, game VARCHAR) | SELECT opponent FROM table_name_99 WHERE game = 71 |
What is the date for the podcast episode number 103? | CREATE TABLE table_name_21 (podcast_date VARCHAR, episode_number VARCHAR) | SELECT podcast_date FROM table_name_21 WHERE episode_number = 103 |
What is the original airdate of the episode that had 8.23 million viewers? | CREATE TABLE table_26139378_1 (original_airdate VARCHAR, viewers__in_millions_ VARCHAR) | SELECT original_airdate FROM table_26139378_1 WHERE viewers__in_millions_ = "8.23" |
what was the result in week 10? | CREATE TABLE table_name_51 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_51 WHERE week = 10 |
What is the total brup for the team? | CREATE TABLE table_18064020_21 (brup VARCHAR, name VARCHAR) | SELECT brup FROM table_18064020_21 WHERE name = "total" |
Cumulative point total for all teams playing on the Discovery Channel? | CREATE TABLE table_name_67 (points VARCHAR, team VARCHAR) | SELECT COUNT(points) FROM table_name_67 WHERE team = "discovery channel" |
How many seats were forfeited in the revolutionary socialist party? | CREATE TABLE table_20728138_1 (seats_forfeited VARCHAR, party VARCHAR) | SELECT COUNT(seats_forfeited) FROM table_20728138_1 WHERE party = "Revolutionary Socialist party" |
How many freedom indices does the country of Austria have? | CREATE TABLE table_1604579_2 (country VARCHAR) | SELECT COUNT(2013 AS _press_freedom_index) FROM table_1604579_2 WHERE country = "Austria" |
Which driver earned 32 points from the Andretti Green team? | CREATE TABLE table_name_91 (driver VARCHAR, team VARCHAR, points VARCHAR) | SELECT driver FROM table_name_91 WHERE team = "andretti green" AND points = "32" |
What is the position of the player from England with 62 goals? | CREATE TABLE table_name_72 (position VARCHAR, nationality VARCHAR, goals VARCHAR) | SELECT position FROM table_name_72 WHERE nationality = "england" AND goals = "62" |
In what location was a stadium built for the St Kilda Football Club? | CREATE TABLE table_28885977_1 (location VARCHAR, built_for VARCHAR) | SELECT location FROM table_28885977_1 WHERE built_for = "St Kilda Football Club" |
Find the number of matches in different competitions. | CREATE TABLE MATCH (Competition VARCHAR) | SELECT COUNT(*), Competition FROM MATCH GROUP BY Competition |
Who is the player with an E to par and a 68-73-69=210? | CREATE TABLE table_name_49 (player VARCHAR, to_par VARCHAR, score VARCHAR) | SELECT player FROM table_name_49 WHERE to_par = "e" AND score = 68 - 73 - 69 = 210 |
What team has a high score with tracy mcgrady (24)? | CREATE TABLE table_name_70 (team VARCHAR, high_points VARCHAR) | SELECT team FROM table_name_70 WHERE high_points = "tracy mcgrady (24)" |
Name the Qual 2 which has the name of katherine legge | CREATE TABLE table_name_40 (qual_2 VARCHAR, name VARCHAR) | SELECT qual_2 FROM table_name_40 WHERE name = "katherine legge" |
When has a Site of tainan city and a Score of 8–6? | CREATE TABLE table_name_21 (year VARCHAR, site VARCHAR, score VARCHAR) | SELECT year FROM table_name_21 WHERE site = "tainan city" AND score = "8–6" |
What is the amount of marginal ordinary income tax rate for single in which the range is $8,351– $33,950? | CREATE TABLE table_11647327_2 (marginal_ordinary_income_tax_rate VARCHAR, single VARCHAR) | SELECT COUNT(marginal_ordinary_income_tax_rate) FROM table_11647327_2 WHERE single = "$8,351– $33,950" |
What type is shown with a moving to of valenciennes? | CREATE TABLE table_name_7 (type VARCHAR, moving_to VARCHAR) | SELECT type FROM table_name_7 WHERE moving_to = "valenciennes" |
What is the series score of the game with Vancouver as the visiting team on April 16? | CREATE TABLE table_name_73 (series VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT series FROM table_name_73 WHERE visitor = "vancouver" AND date = "april 16" |
Which city and state hosted the adelaide street circuit? | CREATE TABLE table_26686908_2 (city___state VARCHAR, circuit VARCHAR) | SELECT city___state FROM table_26686908_2 WHERE circuit = "Adelaide Street circuit" |
What is Melaine Walker's Rank? | CREATE TABLE table_name_78 (rank INTEGER, name VARCHAR) | SELECT SUM(rank) FROM table_name_78 WHERE name = "melaine walker" |
Election results of 1976 | CREATE TABLE table_1341640_43 (result VARCHAR, first_elected VARCHAR) | SELECT result FROM table_1341640_43 WHERE first_elected = 1976 |
How many places have as their cyrillic name and other names његошево? | CREATE TABLE table_2562572_27 (settlement VARCHAR, cyrillic_name_other_names VARCHAR) | SELECT COUNT(settlement) FROM table_2562572_27 WHERE cyrillic_name_other_names = "Његошево" |
When the home team was footscray what did they score? | CREATE TABLE table_name_27 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_27 WHERE home_team = "footscray" |
What name has gen et sp nov as the novelty? | CREATE TABLE table_name_56 (name VARCHAR, novelty VARCHAR) | SELECT name FROM table_name_56 WHERE novelty = "gen et sp nov" |
Which week has a result L 56-3? | CREATE TABLE table_name_93 (week INTEGER, result VARCHAR) | SELECT AVG(week) FROM table_name_93 WHERE result = "l 56-3" |
Which Place has a Player of justin leonard? | CREATE TABLE table_name_48 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_48 WHERE player = "justin leonard" |
For the name romanised name is lo yik-kee, victor what is the total number foreign nationality that is listed? | CREATE TABLE table_17964087_2 (foreign_nationality VARCHAR, romanised_name VARCHAR) | SELECT COUNT(foreign_nationality) FROM table_17964087_2 WHERE romanised_name = "Lo Yik-kee, Victor" |
What is the average upper index MJ/Nm 3 for the upper index Kcal/Nm 3 entry of 19,376? | CREATE TABLE table_name_70 (upper_index_mj__nm_3 INTEGER, upper_index_kcal__nm_3 VARCHAR) | SELECT AVG(upper_index_mj__nm_3) FROM table_name_70 WHERE upper_index_kcal__nm_3 = 19 OFFSET 376 |
What is the try bonus for when tries against is 43? | CREATE TABLE table_13741576_4 (try_bonus VARCHAR, tries_against VARCHAR) | SELECT try_bonus FROM table_13741576_4 WHERE tries_against = "43" |
What was the maximum burglary statistics if the property crimes is 168630? | CREATE TABLE table_26060884_2 (burglary INTEGER, property_crimes VARCHAR) | SELECT MAX(burglary) FROM table_26060884_2 WHERE property_crimes = 168630 |
For a power notation of 10 12, what is the long scale? | CREATE TABLE table_name_7 (long_scale VARCHAR, power_notation VARCHAR) | SELECT long_scale FROM table_name_7 WHERE power_notation = "10 12" |
What team has Windy Hill as their home venue | CREATE TABLE table_name_47 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_47 WHERE venue = "windy hill" |
What was the score of the game with 96 points? | CREATE TABLE table_name_85 (score VARCHAR, points VARCHAR) | SELECT score FROM table_name_85 WHERE points = 96 |
Name the District which has a Reserved for ( SC / ST /None) of sc? | CREATE TABLE table_name_94 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR) | SELECT district FROM table_name_94 WHERE reserved_for___sc___st__none_ = "sc" |
What's the lowest amount of 12 games and less than 48 rebounds? | CREATE TABLE table_name_1 (rank INTEGER, games VARCHAR, rebounds VARCHAR) | SELECT MIN(rank) FROM table_name_1 WHERE games = 12 AND rebounds < 48 |
What away game had a time of 10:00? | CREATE TABLE table_name_98 (away VARCHAR, time VARCHAR) | SELECT away FROM table_name_98 WHERE time = "10:00" |
Which Name has a Years Played of 2004–2008, and a Date and Opponent of 2/17/07 vs. purdue? | CREATE TABLE table_name_34 (name VARCHAR, years_played VARCHAR, date_and_opponent VARCHAR) | SELECT name FROM table_name_34 WHERE years_played = "2004–2008" AND date_and_opponent = "2/17/07 vs. purdue" |
What is Title, when Doctor is 06 Sixth Doctor, and when Company is Big Finish? | CREATE TABLE table_name_87 (title VARCHAR, doctor VARCHAR, company VARCHAR) | SELECT title FROM table_name_87 WHERE doctor = "06 sixth doctor" AND company = "big finish" |
What was the place for the player whose final score was 71-69=140? | CREATE TABLE table_name_78 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_78 WHERE score = 71 - 69 = 140 |
What volume 3 weeks on top for Third Eye Blind? | CREATE TABLE table_name_47 (volume VARCHAR, weeks_on_top VARCHAR, artist VARCHAR) | SELECT volume AS :issue FROM table_name_47 WHERE weeks_on_top = "3" AND artist = "third eye blind" |
What is the sum of points in 1991, for footwork a11c chassis? | CREATE TABLE table_name_29 (points INTEGER, year VARCHAR, chassis VARCHAR) | SELECT SUM(points) FROM table_name_29 WHERE year = 1991 AND chassis = "footwork a11c" |
On what date did they play in Boston Garden with a record of 22-4? | CREATE TABLE table_name_24 (date VARCHAR, location VARCHAR, record VARCHAR) | SELECT date FROM table_name_24 WHERE location = "boston garden" AND record = "22-4" |
Which team had 7 losses and 55 goals? | CREATE TABLE table_name_80 (team VARCHAR, losses VARCHAR, goals_for VARCHAR) | SELECT team FROM table_name_80 WHERE losses = "7" AND goals_for = 55 |
How many different production codes does the episode originally aired on October 18, 1984 have? | CREATE TABLE table_2818164_2 (production_code VARCHAR, original_air_date VARCHAR) | SELECT COUNT(production_code) FROM table_2818164_2 WHERE original_air_date = "October 18, 1984" |
Which Total is the highest one that has a Gold of 1, and a Nation of czechoslovakia? | CREATE TABLE table_name_29 (total INTEGER, gold VARCHAR, nation VARCHAR) | SELECT MAX(total) FROM table_name_29 WHERE gold = 1 AND nation = "czechoslovakia" |
What is the nickname of the baby with the birth weight of 730g (23.5 oz.)? | CREATE TABLE table_name_58 (nickname VARCHAR, weight_at_birth VARCHAR) | SELECT nickname FROM table_name_58 WHERE weight_at_birth = "730g (23.5 oz.)" |
What was the score on March 21, 2009? | CREATE TABLE table_16864968_8 (score VARCHAR, date VARCHAR) | SELECT score FROM table_16864968_8 WHERE date = "March 21, 2009" |
What division did the Nashville Metros play in during the year that they did not qualify for the Playoffs, where in the USL PDL League, and had the Regular Season 7th, Southeast? | CREATE TABLE table_name_96 (division VARCHAR, regular_season VARCHAR, playoffs VARCHAR, league VARCHAR) | SELECT division FROM table_name_96 WHERE playoffs = "did not qualify" AND league = "usl pdl" AND regular_season = "7th, southeast" |
Name the date for value 55c | CREATE TABLE table_2006661_1 (date VARCHAR, value VARCHAR) | SELECT date FROM table_2006661_1 WHERE value = "55c" |
What is the fame number when the Montreal Canadiens were the opponent? | CREATE TABLE table_name_56 (game VARCHAR, opponent VARCHAR) | SELECT COUNT(game) FROM table_name_56 WHERE opponent = "montreal canadiens" |
Name the pennant number for completion of 30 october 1934 and launched 29 march 1934 | CREATE TABLE table_name_43 (pennant_number VARCHAR, launched VARCHAR, completed VARCHAR) | SELECT pennant_number FROM table_name_43 WHERE launched = "29 march 1934" AND completed = "30 october 1934" |
On what date was the venue VFL Park? | CREATE TABLE table_name_5 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_5 WHERE venue = "vfl park" |
What is the value in 2013 when it is 1R in 2007 and 2009? | CREATE TABLE table_name_38 (Id VARCHAR) | SELECT 2013 FROM table_name_38 WHERE 2007 = "1r" AND 2009 = "1r" |
What is the Game on May 24 with Road Team Seattle? | CREATE TABLE table_name_76 (game VARCHAR, road_team VARCHAR, date VARCHAR) | SELECT game FROM table_name_76 WHERE road_team = "seattle" AND date = "may 24" |
How many consecutive starts for the linebacker who played from 9/21/1975 – 12/16/1984? | CREATE TABLE table_28606933_7 (total INTEGER, period VARCHAR) | SELECT MAX(total) FROM table_28606933_7 WHERE period = "9/21/1975 – 12/16/1984" |
Who's the player that was eliminated on episode 4? | CREATE TABLE table_name_32 (player VARCHAR, eliminated VARCHAR) | SELECT player FROM table_name_32 WHERE eliminated = "episode 4" |
brooklyn dodgers – 3, new york yankees – 5, and a Game larger than 1 had what attendance figure? | CREATE TABLE table_name_47 (attendance INTEGER, score VARCHAR, game VARCHAR) | SELECT SUM(attendance) FROM table_name_47 WHERE score = "brooklyn dodgers – 3, new york yankees – 5" AND game > 1 |
Which Date has a Record of 7-9? | CREATE TABLE table_name_48 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_48 WHERE record = "7-9" |
Who was on the pole position in the Texaco/Havoline 200 race? | CREATE TABLE table_19908651_3 (pole_position VARCHAR, race_name VARCHAR) | SELECT pole_position FROM table_19908651_3 WHERE race_name = "Texaco/Havoline 200" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.