question
stringlengths 12
244
| context
stringlengths 27
489
| answer
stringlengths 18
557
|
---|---|---|
what is the most silver when bronze is more than 0, total is more than 1, gold is more than 0 and the nation is china (chn)? | CREATE TABLE table_name_62 (silver INTEGER, nation VARCHAR, gold VARCHAR, bronze VARCHAR, total VARCHAR) | SELECT MAX(silver) FROM table_name_62 WHERE bronze > 0 AND total > 1 AND gold > 0 AND nation = "china (chn)" |
How many laps for mi-jack conquest racing when they went off course? | CREATE TABLE table_name_21 (laps INTEGER, team VARCHAR, time_retired VARCHAR) | SELECT SUM(laps) FROM table_name_21 WHERE team = "mi-jack conquest racing" AND time_retired = "off course" |
Which team is the kit manufacturer Umbro, and the captain Gary Mabbutt? | CREATE TABLE table_name_83 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR) | SELECT team FROM table_name_83 WHERE kit_manufacturer = "umbro" AND captain = "gary mabbutt" |
Who was the Best Male Artist where Bankie Travolta won the Best Male MC? | CREATE TABLE table_22546460_4 (best_male_artist VARCHAR, best_male_mc VARCHAR) | SELECT best_male_artist FROM table_22546460_4 WHERE best_male_mc = "Bankie Travolta" |
What was the date of the game with a score of 15–6? | CREATE TABLE table_name_15 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_15 WHERE score = "15–6" |
What is the document id with least number of paragraphs? | CREATE TABLE Paragraphs (document_id VARCHAR) | SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY COUNT(*) LIMIT 1 |
Which Points have an Opponent of vancouver canucks? | CREATE TABLE table_name_91 (points INTEGER, opponent VARCHAR) | SELECT AVG(points) FROM table_name_91 WHERE opponent = "vancouver canucks" |
Who had the fastest lap when the winning driver is giorgio sanna? | CREATE TABLE table_26920192_5 (fastest_lap VARCHAR, winning_driver VARCHAR) | SELECT fastest_lap FROM table_26920192_5 WHERE winning_driver = "Giorgio Sanna" |
What is the title of the episode no. 16 by season? | CREATE TABLE table_27250813_1 (title VARCHAR, no_in_season VARCHAR) | SELECT title FROM table_27250813_1 WHERE no_in_season = 16 |
Which Opponent has a Game larger than 56 and February of 24? | CREATE TABLE table_name_89 (opponent VARCHAR, game VARCHAR, february VARCHAR) | SELECT opponent FROM table_name_89 WHERE game > 56 AND february = 24 |
Which Label was cataloged as alca-9013? | CREATE TABLE table_name_2 (label VARCHAR, catalog VARCHAR) | SELECT label FROM table_name_2 WHERE catalog = "alca-9013" |
When was the game played that had Rochdale as the away team? | CREATE TABLE table_name_95 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_95 WHERE away_team = "rochdale" |
I want to know the stadium for tennessee titans visiting | CREATE TABLE table_name_32 (stadium VARCHAR, visiting_team VARCHAR) | SELECT stadium FROM table_name_32 WHERE visiting_team = "tennessee titans" |
What is the method in the round 2 win over Nick Gilardi? | CREATE TABLE table_name_75 (method VARCHAR, opponent VARCHAR, round VARCHAR, res VARCHAR) | SELECT method FROM table_name_75 WHERE round = "2" AND res = "win" AND opponent = "nick gilardi" |
What was the timeslot for the episode that aired on May 12, 2009? | CREATE TABLE table_11274401_3 (timeslot VARCHAR, air_date VARCHAR) | SELECT timeslot FROM table_11274401_3 WHERE air_date = "May 12, 2009" |
What week did the Seahawks play at los angeles memorial coliseum? | CREATE TABLE table_13258876_2 (week INTEGER, game_site VARCHAR) | SELECT MIN(week) FROM table_13258876_2 WHERE game_site = "Los Angeles Memorial Coliseum" |
What is the Rank of the rower with a Time of 8:23.02? | CREATE TABLE table_name_35 (rank VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_35 WHERE time = "8:23.02" |
What is the total number of stations with a line that is u 6? | CREATE TABLE table_name_86 (stations INTEGER, line VARCHAR) | SELECT SUM(stations) FROM table_name_86 WHERE line = "u 6" |
What ream played later than 1958 in the kellogg's tour? | CREATE TABLE table_name_54 (team_country VARCHAR, year VARCHAR, race_name VARCHAR) | SELECT team_country FROM table_name_54 WHERE year > 1958 AND race_name = "kellogg's tour" |
What is the Round din Ullevaal? | CREATE TABLE table_name_23 (round VARCHAR, venue VARCHAR) | SELECT round FROM table_name_23 WHERE venue = "ullevaal" |
Name the davids team for 8 august 2008 | CREATE TABLE table_23575917_2 (davids_team VARCHAR, first_broadcast VARCHAR) | SELECT davids_team FROM table_23575917_2 WHERE first_broadcast = "8 August 2008" |
What place did the golfer take whose country is South Africa? | CREATE TABLE table_name_72 (place VARCHAR, country VARCHAR) | SELECT place FROM table_name_72 WHERE country = "south africa" |
What was the frequency of the Core i7-3610QE? | CREATE TABLE table_name_50 (frequency VARCHAR, model_number VARCHAR) | SELECT frequency FROM table_name_50 WHERE model_number = "core i7-3610qe" |
Which country has a delegate who was first elected in 2006? | CREATE TABLE table_14009909_1 (counties_represented VARCHAR, first_elected VARCHAR) | SELECT counties_represented FROM table_14009909_1 WHERE first_elected = 2006 |
What was the result of the game on September 25 with a box score of box? | CREATE TABLE table_name_51 (result VARCHAR, box_scores VARCHAR, date VARCHAR) | SELECT result FROM table_name_51 WHERE box_scores = "box" AND date = "september 25" |
What is the score on december 10? | CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_98 WHERE date = "december 10" |
What was the opponent on november 8, 1981? | CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_6 WHERE date = "november 8, 1981" |
what is the legs when the year is earlier than 2009? | CREATE TABLE table_name_8 (legs VARCHAR, year INTEGER) | SELECT legs FROM table_name_8 WHERE year < 2009 |
What are the ids of documents with letter 's' in the name with any expense budgets. | CREATE TABLE Documents_with_expenses (document_id VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR) | SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%' |
What was the outcome of the match on 01/07/2007? | CREATE TABLE table_name_39 (outcome VARCHAR, date VARCHAR) | SELECT outcome FROM table_name_39 WHERE date = "01/07/2007" |
In district New York 10th, what was the reason for change? | CREATE TABLE table_1694492_2 (reason_for_change VARCHAR, district VARCHAR) | SELECT reason_for_change FROM table_1694492_2 WHERE district = "New York 10th" |
Does the Scout Association of Hong Kong admit boys, girls, or both? | CREATE TABLE table_104858_1 (admits_boys_girls VARCHAR, name_of_member_organization VARCHAR) | SELECT admits_boys_girls FROM table_104858_1 WHERE name_of_member_organization = "The Scout Association of Hong Kong" |
What is the power for the model xdrive28i sdrive28i? | CREATE TABLE table_name_18 (power VARCHAR, model VARCHAR) | SELECT power FROM table_name_18 WHERE model = "xdrive28i sdrive28i" |
Which Year has an Award of 17th bangkok critics assembly awards, and a Category of best original score? | CREATE TABLE table_name_7 (year VARCHAR, award VARCHAR, category VARCHAR) | SELECT year FROM table_name_7 WHERE award = "17th bangkok critics assembly awards" AND category = "best original score" |
What place was the horse with a barrier of 20 and weighing less than 54 kg | CREATE TABLE table_name_35 (placing VARCHAR, weight__kg_ VARCHAR, barrier_ VARCHAR, b_ VARCHAR) | SELECT placing FROM table_name_35 WHERE weight__kg_ < 54 AND barrier_[b_] = "20" |
What was the total number of weeks where the game played Ivor Wynne Stadium? | CREATE TABLE table_21761882_4 (week VARCHAR, location VARCHAR) | SELECT COUNT(week) FROM table_21761882_4 WHERE location = "Ivor Wynne Stadium" |
Which Neck has a Bullet of 10.566 (.416), and a Base of 14.78 (.582)? | CREATE TABLE table_name_48 (neck VARCHAR, bullet VARCHAR, base VARCHAR) | SELECT neck FROM table_name_48 WHERE bullet = "10.566 (.416)" AND base = "14.78 (.582)" |
When it is October 18, 1981 where is the game site? | CREATE TABLE table_14941284_1 (game_site VARCHAR, date VARCHAR) | SELECT game_site FROM table_14941284_1 WHERE date = "October 18, 1981" |
What Greek word means the same thing as the German word ebbe? | CREATE TABLE table_name_99 (greek VARCHAR, german VARCHAR) | SELECT greek FROM table_name_99 WHERE german = "ebbe" |
What were the total games in the Big Ten conference when Nebraska lost fewer than 488 games and had a Pct less than 0.7014? | CREATE TABLE table_name_68 (total_games INTEGER, pct VARCHAR, team VARCHAR, conference VARCHAR, lost VARCHAR) | SELECT SUM(total_games) FROM table_name_68 WHERE conference = "big ten" AND lost < 488 AND team = "nebraska" AND pct < 0.7014 |
What is the nationality of the player from the Detroit Red Wings? | CREATE TABLE table_1213511_6 (nationality VARCHAR, nhl_team VARCHAR) | SELECT nationality FROM table_1213511_6 WHERE nhl_team = "Detroit Red Wings" |
What is the total number of gold medals won by nations that won 2 silver medals but fewer than 7 in total? | CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, total VARCHAR) | SELECT SUM(gold) FROM table_name_24 WHERE silver = 2 AND total < 7 |
What is the Catalog number in the Region of France? | CREATE TABLE table_name_42 (catalog VARCHAR, region VARCHAR) | SELECT catalog FROM table_name_42 WHERE region = "france" |
In the Georgia 6 district, what is the elected party? | CREATE TABLE table_1341663_11 (party VARCHAR, district VARCHAR) | SELECT party FROM table_1341663_11 WHERE district = "Georgia 6" |
Name the call sign for the 17 physical | CREATE TABLE table_14623167_1 (call_sign VARCHAR, physical VARCHAR) | SELECT call_sign FROM table_14623167_1 WHERE physical = 17 |
What is the 2010 with a rank higher than 15 and a 2011 maserati? | CREATE TABLE table_name_72 (rank VARCHAR) | SELECT 2010 FROM table_name_72 WHERE rank > 15 AND 2011 = "maserati" |
Which Sub-Parish (Sogn) has a church named Jostedal Kyrkje? | CREATE TABLE table_name_99 (sub_parish__sogn_ VARCHAR, church_name VARCHAR) | SELECT sub_parish__sogn_ FROM table_name_99 WHERE church_name = "jostedal kyrkje" |
What score did Seve Ballesteros have when he was in T3 place? | CREATE TABLE table_name_54 (score VARCHAR, place VARCHAR, player VARCHAR) | SELECT score FROM table_name_54 WHERE place = "t3" AND player = "seve ballesteros" |
Name the height for date of birth being 17/08/75 | CREATE TABLE table_22705586_1 (height__m_ INTEGER, date_of_birth VARCHAR) | SELECT MIN(height__m_) FROM table_22705586_1 WHERE date_of_birth = "17/08/75" |
What is the second year course in the program where physics is taken in the fourth year? | CREATE TABLE table_12148147_2 (second_year VARCHAR, fourth_year VARCHAR) | SELECT second_year FROM table_12148147_2 WHERE fourth_year = "Physics" |
Which building has most faculty members? | CREATE TABLE Faculty (building VARCHAR) | SELECT building FROM Faculty GROUP BY building ORDER BY COUNT(*) DESC LIMIT 1 |
What is the type of Surface for the New Zealand F1 Futures Tournament? | CREATE TABLE table_name_12 (surface VARCHAR, tournament VARCHAR) | SELECT surface FROM table_name_12 WHERE tournament = "new zealand f1 futures" |
Who was the home team when Boston is the road team in game 4? | CREATE TABLE table_name_89 (home_team VARCHAR, road_team VARCHAR, game VARCHAR) | SELECT home_team FROM table_name_89 WHERE road_team = "boston" AND game = "game 4" |
Can you tell me the Opponent that has the Result of w 37-14? | CREATE TABLE table_name_25 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_25 WHERE result = "w 37-14" |
Which Year has a Score of 5–7, 4–6, 6–3, 1–6? | CREATE TABLE table_name_88 (year VARCHAR, score VARCHAR) | SELECT year FROM table_name_88 WHERE score = "5–7, 4–6, 6–3, 1–6" |
What was the decision when Chicago was the visiting team? | CREATE TABLE table_name_85 (decision VARCHAR, visitor VARCHAR) | SELECT decision FROM table_name_85 WHERE visitor = "chicago" |
What was the score of the home team at junction oval? | CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_19 WHERE venue = "junction oval" |
What is the plural for the Meaning of night? | CREATE TABLE table_name_85 (plural VARCHAR, meaning VARCHAR) | SELECT plural FROM table_name_85 WHERE meaning = "night" |
Who was the runner-up in 2004? | CREATE TABLE table_name_82 (runner_up VARCHAR, year VARCHAR) | SELECT runner_up FROM table_name_82 WHERE year = 2004 |
What is the average goals when the last appearance was before 1984, there were more than 17 appearances, the first appearance was before 1961 and the position was mf? | CREATE TABLE table_name_52 (goals INTEGER, position VARCHAR, first_appearance VARCHAR, last_appearance VARCHAR, appearances VARCHAR) | SELECT AVG(goals) FROM table_name_52 WHERE last_appearance < 1984 AND appearances > 17 AND first_appearance < 1961 AND position = "mf" |
What is the highest amount of bronze medals when the rank was larger than 9? | CREATE TABLE table_name_46 (bronze INTEGER, rank INTEGER) | SELECT MAX(bronze) FROM table_name_46 WHERE rank > 9 |
What is the commissioned for Vietnam? | CREATE TABLE table_name_29 (commissioned VARCHAR, operator VARCHAR) | SELECT commissioned FROM table_name_29 WHERE operator = "vietnam" |
how many high assits have a date of february 5? | CREATE TABLE table_30054758_5 (high_assists VARCHAR, date VARCHAR) | SELECT high_assists FROM table_30054758_5 WHERE date = "February 5" |
Can you tell me the Source that has the Rank of 78? | CREATE TABLE table_name_86 (source VARCHAR, rank VARCHAR) | SELECT source FROM table_name_86 WHERE rank = 78 |
What is the date for the catalog CDZAP22 in the United Kingdom? | CREATE TABLE table_name_69 (date VARCHAR, country VARCHAR, catalog VARCHAR) | SELECT date FROM table_name_69 WHERE country = "united kingdom" AND catalog = "cdzap22" |
Which tournament had a result in 2010 and 2012 of a? | CREATE TABLE table_name_49 (tournament VARCHAR) | SELECT tournament FROM table_name_49 WHERE 2012 = "a" AND 2010 = "a" |
Who had the high assists against detroit? | CREATE TABLE table_27712702_11 (high_assists VARCHAR, team VARCHAR) | SELECT high_assists FROM table_27712702_11 WHERE team = "Detroit" |
What club was derrick byfuglien drafted by before 283? | CREATE TABLE table_name_96 (club_team VARCHAR, overall VARCHAR, player VARCHAR) | SELECT club_team FROM table_name_96 WHERE overall < 283 AND player = "derrick byfuglien" |
What is Tie no, when Home Team is "Gillingham"? | CREATE TABLE table_name_96 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_96 WHERE home_team = "gillingham" |
Who won the mens doubles at the 2006 guangzhou event? | CREATE TABLE table_28138035_6 (mens_doubles VARCHAR, year_location VARCHAR) | SELECT mens_doubles FROM table_28138035_6 WHERE year_location = "2006 Guangzhou" |
Name the venue for staines town | CREATE TABLE table_name_43 (venue VARCHAR, opponent VARCHAR) | SELECT venue FROM table_name_43 WHERE opponent = "staines town" |
what is the total number of semi-finalist #2 where runner-up is east carolina | CREATE TABLE table_11214772_1 (semi_finalist__number2 VARCHAR, runner_up VARCHAR) | SELECT COUNT(semi_finalist__number2) FROM table_11214772_1 WHERE runner_up = "East Carolina" |
Which Losses has a Wins of 6, and an Against smaller than 1741? | CREATE TABLE table_name_56 (losses INTEGER, wins VARCHAR, against VARCHAR) | SELECT MIN(losses) FROM table_name_56 WHERE wins = 6 AND against < 1741 |
What ground had Portsmouth reserves as an opponent? | CREATE TABLE table_name_98 (ground VARCHAR, opponent VARCHAR) | SELECT ground FROM table_name_98 WHERE opponent = "portsmouth reserves" |
Which Nation has a Gold larger than 0, and a Bronze smaller than 2, and a Total larger than 3, and a Silver larger than 1? | CREATE TABLE table_name_96 (nation VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT nation FROM table_name_96 WHERE gold > 0 AND bronze < 2 AND total > 3 AND silver > 1 |
Which one took place on December 3, 1995? | CREATE TABLE table_name_60 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_60 WHERE date = "december 3, 1995" |
What is the Callsign with an Area of tamworth and frequency of 0 88.9? | CREATE TABLE table_name_8 (callsign VARCHAR, area_served VARCHAR, frequency VARCHAR) | SELECT callsign FROM table_name_8 WHERE area_served = "tamworth" AND frequency = "0 88.9" |
Name the least first elected | CREATE TABLE table_2668352_11 (first_elected INTEGER) | SELECT MIN(first_elected) FROM table_2668352_11 |
List the airport code and name in the city of Anthony. | CREATE TABLE AIRPORTS (AirportCode VARCHAR, AirportName VARCHAR, city VARCHAR) | SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = "Anthony" |
What is the lowest grid number that had a rider with KTM as the manufacturer who did more than 20 laps? | CREATE TABLE table_name_74 (grid INTEGER, manufacturer VARCHAR, laps VARCHAR) | SELECT MIN(grid) FROM table_name_74 WHERE manufacturer = "ktm" AND laps > 20 |
What championship was in the USA after 1994, and resulted in 5th place? | CREATE TABLE table_name_99 (championship VARCHAR, result VARCHAR, nation VARCHAR, year VARCHAR) | SELECT championship FROM table_name_99 WHERE nation = "usa" AND year > 1994 AND result = "5th" |
What is the country of player vijay singh? | CREATE TABLE table_name_59 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_59 WHERE player = "vijay singh" |
What is the average number of games of the player with a rank less than 1? | CREATE TABLE table_name_55 (games INTEGER, rank INTEGER) | SELECT AVG(games) FROM table_name_55 WHERE rank < 1 |
Which state can address "6862 Kaitlyn Knolls" possibly be in? | CREATE TABLE addresses (state_province_county VARCHAR, line_1_number_building VARCHAR) | SELECT state_province_county FROM addresses WHERE line_1_number_building LIKE "%6862 Kaitlyn Knolls%" |
What number was there 6.01 million u.s. drivers? | CREATE TABLE table_23483182_1 (no_in_season VARCHAR, us_viewers__million_ VARCHAR) | SELECT no_in_season FROM table_23483182_1 WHERE us_viewers__million_ = "6.01" |
How many wins were in the Masters Tournament with less than 15 events? | CREATE TABLE table_name_20 (wins INTEGER, tournament VARCHAR, events VARCHAR) | SELECT MAX(wins) FROM table_name_20 WHERE tournament = "masters tournament" AND events < 15 |
Which player(s) is from South Africa? | CREATE TABLE table_name_76 (player VARCHAR, country VARCHAR) | SELECT player FROM table_name_76 WHERE country = "south africa" |
How many different episode numbers are there for the episodes directed by Sheri Elwood? | CREATE TABLE table_27155243_3 (total__number VARCHAR, directed_by VARCHAR) | SELECT COUNT(total__number) FROM table_27155243_3 WHERE directed_by = "Sheri Elwood" |
Who had the pole(s) when esteban guerrieri led the most laps round 8a and josef newgarden had the fastest lap? | CREATE TABLE table_29690363_3 (pole_position VARCHAR, rd VARCHAR, most_laps_led VARCHAR, fastest_lap VARCHAR) | SELECT pole_position FROM table_29690363_3 WHERE most_laps_led = "Esteban Guerrieri" AND fastest_lap = "Josef Newgarden" AND rd = "8A" |
What tournament located is mississippi was nov 5 | CREATE TABLE table_name_83 (tournament VARCHAR, date VARCHAR, location VARCHAR) | SELECT tournament FROM table_name_83 WHERE date = "nov 5" AND location = "mississippi" |
What is the surface for the riverhead raceway? | CREATE TABLE table_name_84 (surface VARCHAR, track VARCHAR) | SELECT surface FROM table_name_84 WHERE track = "riverhead raceway" |
What is the lowest league cup goals for the entry with fa cup goals greater than 0 and FA cup apps larger than 2? | CREATE TABLE table_name_14 (league_cup_goals INTEGER, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) | SELECT MIN(league_cup_goals) FROM table_name_14 WHERE fa_cup_goals > 0 AND fa_cup_apps > 2 |
Which nominees won before year 2005? | CREATE TABLE table_name_69 (nominee_s_ VARCHAR, year VARCHAR, result VARCHAR) | SELECT nominee_s_ FROM table_name_69 WHERE year < 2005 AND result = "won" |
What is the average pick of player josh green from Canada from round 2 with a draft after 1996? | CREATE TABLE table_name_76 (pick INTEGER, draft VARCHAR, player VARCHAR, round VARCHAR, nationality VARCHAR) | SELECT AVG(pick) FROM table_name_76 WHERE round = "2" AND nationality = "canada" AND player = "josh green" AND draft > 1996 |
Which year has a Round of 17? | CREATE TABLE table_name_2 (year VARCHAR, round VARCHAR) | SELECT year FROM table_name_2 WHERE round = "17" |
Which Oil Pattern has a Winner (Title #) of mike wolfe (3)? | CREATE TABLE table_name_58 (oil_pattern VARCHAR, winner__title__number_ VARCHAR) | SELECT oil_pattern FROM table_name_58 WHERE winner__title__number_ = "mike wolfe (3)" |
Who made the highest assist in the game that scored 79-88? | CREATE TABLE table_17103645_9 (high_assists VARCHAR, score VARCHAR) | SELECT high_assists FROM table_17103645_9 WHERE score = "79-88" |
How many times is tries 0 and appearance less than 0? | CREATE TABLE table_name_51 (points VARCHAR, tries VARCHAR, appearance VARCHAR) | SELECT COUNT(points) FROM table_name_51 WHERE tries = 0 AND appearance < 0 |
Which grid has a Time/Retired of +5.004? | CREATE TABLE table_name_95 (grid INTEGER, time_retired VARCHAR) | SELECT MIN(grid) FROM table_name_95 WHERE time_retired = "+5.004" |
What position(s) do players from florida state play? | CREATE TABLE table_15592941_1 (position VARCHAR, college VARCHAR) | SELECT position FROM table_15592941_1 WHERE college = "Florida State" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.