question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
What is the average decile with Years of 1–8, and an Area of waipara? | CREATE TABLE table_name_98 (decile INTEGER, years VARCHAR, area VARCHAR) | SELECT AVG(decile) FROM table_name_98 WHERE years = "1–8" AND area = "waipara" |
Who is the Opposing Pitcher when Team is phillies, Location is pittsburgh, and Inning is 8th? | CREATE TABLE table_name_37 (opposing_pitcher VARCHAR, inning VARCHAR, team VARCHAR, location VARCHAR) | SELECT opposing_pitcher FROM table_name_37 WHERE team = "phillies" AND location = "pittsburgh" AND inning = "8th" |
What country does the goaltender come from? | CREATE TABLE table_1213511_6 (nationality VARCHAR, position VARCHAR) | SELECT nationality FROM table_1213511_6 WHERE position = "Goaltender" |
Which championship had a final score of 6–4, 2–6, 6–4, 7–6(3)? | CREATE TABLE table_2362486_1 (championship VARCHAR, score_in_the_final VARCHAR) | SELECT championship FROM table_2362486_1 WHERE score_in_the_final = "6–4, 2–6, 6–4, 7–6(3)" |
What is High Assists, when High Rebounds is "Dwight Howard , Rashard Lewis (10)"? | CREATE TABLE table_name_80 (high_assists VARCHAR, high_rebounds VARCHAR) | SELECT high_assists FROM table_name_80 WHERE high_rebounds = "dwight howard , rashard lewis (10)" |
Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian? | CREATE TABLE table_14345690_15 (uk_co_presenter VARCHAR, co_presenter VARCHAR, comedian VARCHAR) | SELECT COUNT(uk_co_presenter) FROM table_14345690_15 WHERE co_presenter = "Joe Swash" AND comedian = "Russell Kane" |
How many elections have resulted in retired democratic hold? | CREATE TABLE table_1341453_34 (party VARCHAR, results VARCHAR) | SELECT COUNT(party) FROM table_1341453_34 WHERE results = "Retired Democratic hold" |
what is the score when the outcome is runner-up, the opponent in the final is herbert lawford and the year is after 1882? | CREATE TABLE table_name_39 (score VARCHAR, opponent_in_the_final VARCHAR, year VARCHAR, outcome VARCHAR) | SELECT score FROM table_name_39 WHERE year > 1882 AND outcome = "runner-up" AND opponent_in_the_final = "herbert lawford" |
What episode number of the season had BCW410 as a production code? | CREATE TABLE table_24319661_5 (no_in_season VARCHAR, production_code VARCHAR) | SELECT no_in_season FROM table_24319661_5 WHERE production_code = "BCW410" |
Which Programming has an Aspect of 4:3 and a PSIP Short Name of metvla? | CREATE TABLE table_name_98 (programming VARCHAR, aspect VARCHAR, psip_short_name VARCHAR) | SELECT programming FROM table_name_98 WHERE aspect = "4:3" AND psip_short_name = "metvla" |
what is the latitude of the feature of longitude 80.0e | CREATE TABLE table_16799784_7 (latitude VARCHAR, longitude VARCHAR) | SELECT latitude FROM table_16799784_7 WHERE longitude = "80.0E" |
What is the vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent? | CREATE TABLE table_name_75 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR) | SELECT date_of_vacancy FROM table_name_75 WHERE manner_of_departure = "mutual consent" AND date_of_appointment = "2 november 2009" |
What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5? | CREATE TABLE table_name_23 (points VARCHAR, rank VARCHAR, draw VARCHAR) | SELECT COUNT(points) FROM table_name_23 WHERE rank = "6th" AND draw < 5 |
What was the venue when the result was 3-2? | CREATE TABLE table_name_50 (venue VARCHAR, result VARCHAR) | SELECT venue FROM table_name_50 WHERE result = "3-2" |
Which episode number was associated with Vibhav Gautam? | CREATE TABLE table_name_1 (episode_number VARCHAR, name VARCHAR) | SELECT episode_number FROM table_name_1 WHERE name = "vibhav gautam" |
Name the total number of incumbent for first elected of 1944 | CREATE TABLE table_1341672_14 (incumbent VARCHAR, first_elected VARCHAR) | SELECT COUNT(incumbent) FROM table_1341672_14 WHERE first_elected = 1944 |
In the game that took place at junction oval, how much did the home team score? | CREATE TABLE table_name_24 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_24 WHERE venue = "junction oval" |
What is the type of disaster that the Arrow Air Flight 1285 categorized in? | CREATE TABLE table_name_55 (type VARCHAR, disaster VARCHAR) | SELECT type FROM table_name_55 WHERE disaster = "arrow air flight 1285" |
Name the Bore x stroke of 1929-32 | CREATE TABLE table_name_83 (bore_x_stroke VARCHAR, year VARCHAR) | SELECT bore_x_stroke FROM table_name_83 WHERE year = "1929-32" |
What is the Class for a year later than 1958, with 4 points? | CREATE TABLE table_name_30 (class VARCHAR, year VARCHAR, points VARCHAR) | SELECT class FROM table_name_30 WHERE year > 1958 AND points = 4 |
What was the distance on 24 May? | CREATE TABLE table_name_83 (distance VARCHAR, date VARCHAR) | SELECT distance FROM table_name_83 WHERE date = "24 may" |
How much To par has a Country of united states, and a Money ($) of 90? | CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, money___$__ VARCHAR) | SELECT COUNT(to_par) FROM table_name_42 WHERE country = "united states" AND money___$__ = 90 |
Who had the high rebounds on april 8? | CREATE TABLE table_27704187_11 (high_rebounds VARCHAR, date VARCHAR) | SELECT high_rebounds FROM table_27704187_11 WHERE date = "April 8" |
What is the total number of Rating(s), when Air Date is June 25, 2008, and when Share is greater than 3? | CREATE TABLE table_name_22 (rating VARCHAR, air_date VARCHAR, share VARCHAR) | SELECT COUNT(rating) FROM table_name_22 WHERE air_date = "june 25, 2008" AND share > 3 |
Which Paul McCartney has a Linda McCartney of keyboards? | CREATE TABLE table_name_98 (paul_mccartney VARCHAR, linda_mccartney VARCHAR) | SELECT paul_mccartney FROM table_name_98 WHERE linda_mccartney = "keyboards" |
what is the series sorted when the released is may 2012? | CREATE TABLE table_name_73 (series_sorted VARCHAR, released VARCHAR) | SELECT series_sorted FROM table_name_73 WHERE released = "may 2012" |
Which Date has a Game site of jeppesen stadium? | CREATE TABLE table_name_27 (date VARCHAR, game_site VARCHAR) | SELECT date FROM table_name_27 WHERE game_site = "jeppesen stadium" |
Which wireless network did LCD displays with 4 GB of internal storage use? | CREATE TABLE table_name_6 (wireless_network VARCHAR, screen_type VARCHAR, internal_storage VARCHAR) | SELECT wireless_network FROM table_name_6 WHERE screen_type = "lcd" AND internal_storage = "4 gb" |
What sport was played between the years of 2008-2010? | CREATE TABLE table_name_26 (sport VARCHAR, played VARCHAR) | SELECT sport FROM table_name_26 WHERE played = "2008-2010" |
What was the end result for 28 February 2001? | CREATE TABLE table_name_52 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_52 WHERE date = "28 february 2001" |
How many goals does mitsuo kato have? | CREATE TABLE table_name_87 (goals INTEGER, player VARCHAR) | SELECT MAX(goals) FROM table_name_87 WHERE player = "mitsuo kato" |
What driver had a 15-20 record? | CREATE TABLE table_name_34 (drivers VARCHAR, races VARCHAR) | SELECT drivers FROM table_name_34 WHERE races = "15-20" |
I want the ICAO for city of xi'an | CREATE TABLE table_name_51 (icao VARCHAR, city VARCHAR) | SELECT icao FROM table_name_51 WHERE city = "xi'an" |
What was the attendance at the week 7 game? | CREATE TABLE table_name_43 (attendance VARCHAR, week VARCHAR) | SELECT attendance FROM table_name_43 WHERE week = 7 |
What is the grand final date for the game with a score or 30-24? | CREATE TABLE table_name_44 (grand_finaldate VARCHAR, score VARCHAR) | SELECT grand_finaldate FROM table_name_44 WHERE score = "30-24" |
What is the average when the matches are 11? | CREATE TABLE table_name_47 (average VARCHAR, matches VARCHAR) | SELECT average FROM table_name_47 WHERE matches = "11" |
List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS. | CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR) | SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" EXCEPT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS" |
What was the record on september 2? | CREATE TABLE table_name_6 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_6 WHERE date = "september 2" |
What is the earliest first game for a rugby team that has 7 lost games and 0 draws? | CREATE TABLE table_name_78 (first_game INTEGER, lost VARCHAR, drawn VARCHAR) | SELECT MIN(first_game) FROM table_name_78 WHERE lost = 7 AND drawn < 0 |
Can you tell me the Artist that has the Draw smaller than 16, and the English translation of lullaby? | CREATE TABLE table_name_66 (artist VARCHAR, draw VARCHAR, english_translation VARCHAR) | SELECT artist FROM table_name_66 WHERE draw < 16 AND english_translation = "lullaby" |
What is the average total 0 are nominated by the Taoiseach and the agricultural panel is greater than 5? | CREATE TABLE table_name_38 (total INTEGER, nominated_by_the_taoiseach VARCHAR, agricultural_panel VARCHAR) | SELECT AVG(total) FROM table_name_38 WHERE nominated_by_the_taoiseach = 0 AND agricultural_panel > 5 |
What's the result when the Washington Redskins were the opponents on a week after 8? | CREATE TABLE table_name_85 (result VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_85 WHERE week > 8 AND opponent = "washington redskins" |
Name the least wins for goal difference being less than -20 with position less than 20 and goals for of 35 | CREATE TABLE table_name_19 (wins INTEGER, goal_difference VARCHAR, position VARCHAR, goals_for VARCHAR) | SELECT MIN(wins) FROM table_name_19 WHERE position < 20 AND goals_for = 35 AND goal_difference < -20 |
Who was the winning driver on 30 May? | CREATE TABLE table_name_90 (winning_driver VARCHAR, date VARCHAR) | SELECT winning_driver FROM table_name_90 WHERE date = "30 may" |
How many electronvolts is 3,600 joules? | CREATE TABLE table_name_44 (electronvolt VARCHAR, joule VARCHAR) | SELECT electronvolt FROM table_name_44 WHERE joule = "3,600" |
Who is the Original Australian performer when the Original West End Performer is Linzi Hateley? | CREATE TABLE table_1901751_1 (original_australian_performer VARCHAR, original_west_end_performer VARCHAR) | SELECT original_australian_performer FROM table_1901751_1 WHERE original_west_end_performer = "Linzi Hateley" |
What is the most recent year that Iftiraas was the winner? | CREATE TABLE table_name_68 (year INTEGER, winner VARCHAR) | SELECT MAX(year) FROM table_name_68 WHERE winner = "iftiraas" |
What version of iWork was released on October 22, 2013 with a pages version greater than 2? | CREATE TABLE table_name_44 (iwork_version VARCHAR, release_date VARCHAR, pages_version VARCHAR) | SELECT iwork_version FROM table_name_44 WHERE release_date = "october 22, 2013" AND pages_version > 2 |
Which Level has a Leading scorer 1 of tom greaves 8? | CREATE TABLE table_name_26 (level VARCHAR, leading_scorer_1 VARCHAR) | SELECT level FROM table_name_26 WHERE leading_scorer_1 = "tom greaves 8" |
What is the title when 2.50 is u.s. viewers (in millions)? | CREATE TABLE table_23499946_1 (title VARCHAR, us_viewers__in_millions_ VARCHAR) | SELECT title FROM table_23499946_1 WHERE us_viewers__in_millions_ = "2.50" |
Find the the name of the customers who have a loan with amount more than 3000. | CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR) | SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000 |
Who visited on march 26? | CREATE TABLE table_name_6 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_6 WHERE date = "march 26" |
How many people were born in 1368? | CREATE TABLE table_name_52 (number VARCHAR, born VARCHAR) | SELECT COUNT(number) FROM table_name_52 WHERE born = "1368" |
What date was the score 5-2 with a loss of sele (3-2)? | CREATE TABLE table_name_17 (date VARCHAR, score VARCHAR, loss VARCHAR) | SELECT date FROM table_name_17 WHERE score = "5-2" AND loss = "sele (3-2)" |
Who is the manager with the Hewlett-Packard shirt sponsor? | CREATE TABLE table_name_72 (manager_1 VARCHAR, shirt_sponsor VARCHAR) | SELECT manager_1 FROM table_name_72 WHERE shirt_sponsor = "hewlett-packard" |
what is the party when the incumbent is sidney r. yates? | CREATE TABLE table_1341718_14 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1341718_14 WHERE incumbent = "Sidney R. Yates" |
Which name has a USGS Map of clear lake? | CREATE TABLE table_name_85 (name VARCHAR, usgs_map VARCHAR) | SELECT name FROM table_name_85 WHERE usgs_map = "clear lake" |
What was the biggest crowd when South Melbourne was an away team? | CREATE TABLE table_name_94 (crowd INTEGER, away_team VARCHAR) | SELECT MAX(crowd) FROM table_name_94 WHERE away_team = "south melbourne" |
Where was the round 1 race? | CREATE TABLE table_25773116_2 (location VARCHAR, round VARCHAR) | SELECT location FROM table_25773116_2 WHERE round = 1 |
What is the highest Round that has a Position of Tackle and the Player Fred Neilsen? | CREATE TABLE table_name_91 (round INTEGER, position VARCHAR, player VARCHAR) | SELECT MAX(round) FROM table_name_91 WHERE position = "tackle" AND player = "fred neilsen" |
What did United States place when the score was 71-70-72-68=281? | CREATE TABLE table_name_17 (place VARCHAR, country VARCHAR, score VARCHAR) | SELECT place FROM table_name_17 WHERE country = "united states" AND score = 71 - 70 - 72 - 68 = 281 |
what is the biggest series episode number whose production code is 2t7211? | CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR) | SELECT MAX(no) FROM table_21979779_1 WHERE production_code = "2T7211" |
If the equation is 8 × 9² + 8 × 9 + 8, what is the 2nd throw? | CREATE TABLE table_17265535_7 (equation VARCHAR) | SELECT MIN(2 AS nd_throw) FROM table_17265535_7 WHERE equation = "8 × 9² + 8 × 9 + 8" |
What was the share (%) for the Semi-Final 2 episode? | CREATE TABLE table_27319183_5 (share___percentage_ VARCHAR, episode VARCHAR) | SELECT share___percentage_ FROM table_27319183_5 WHERE episode = "Semi-final 2" |
What player came from Cornell University (NCAA)? | CREATE TABLE table_2897457_2 (player VARCHAR, college_junior_club_team VARCHAR) | SELECT player FROM table_2897457_2 WHERE college_junior_club_team = "Cornell University (NCAA)" |
Texas Rate smaller than 32.9, and a U.S. Rate larger than 5.6 is what highest killeen rate? | CREATE TABLE table_name_89 (killeen_rate INTEGER, texas_rate VARCHAR, us_rate VARCHAR) | SELECT MAX(killeen_rate) FROM table_name_89 WHERE texas_rate < 32.9 AND us_rate > 5.6 |
What is Date, when Set 2 is 25-13? | CREATE TABLE table_name_29 (date VARCHAR, set_2 VARCHAR) | SELECT date FROM table_name_29 WHERE set_2 = "25-13" |
When 255627 is the attendance what is the stadium? | CREATE TABLE table_21436373_7 (stadium VARCHAR, attendance VARCHAR) | SELECT stadium FROM table_21436373_7 WHERE attendance = 255627 |
What broadcast dates have a weekly rank of 73? | CREATE TABLE table_16072430_1 (air_date VARCHAR, weekly_rank VARCHAR) | SELECT COUNT(air_date) FROM table_16072430_1 WHERE weekly_rank = "73" |
Which Total has a Bronze larger than 1, and a Gold larger than 0? | CREATE TABLE table_name_57 (total INTEGER, bronze VARCHAR, gold VARCHAR) | SELECT MAX(total) FROM table_name_57 WHERE bronze > 1 AND gold > 0 |
What was head count in 2010 where the farm production is 6.9? | CREATE TABLE table_13618358_1 (agri_culture_b VARCHAR) | SELECT MAX(2010 AS _population__000_) FROM table_13618358_1 WHERE agri_culture_b = "6.9" |
Name the most bits 14-12 for output from accumulator to character bus | CREATE TABLE table_14249278_1 (bits_14_12 INTEGER, description VARCHAR) | SELECT MIN(bits_14_12) FROM table_14249278_1 WHERE description = "Output from accumulator to character bus" |
Which Term end has a Political Party of balli kombëtar, and a Born-Died of 1905–1972? | CREATE TABLE table_name_23 (term_end VARCHAR, political_party VARCHAR, born_died VARCHAR) | SELECT term_end FROM table_name_23 WHERE political_party = "balli kombëtar" AND born_died = "1905–1972" |
What Russian word translates to bucket? | CREATE TABLE table_name_34 (russian VARCHAR, translation VARCHAR) | SELECT russian FROM table_name_34 WHERE translation = "bucket" |
Which Opposing Team has an Against smaller than 19, and a Date of 20/05/1979? | CREATE TABLE table_name_34 (opposing_team VARCHAR, against VARCHAR, date VARCHAR) | SELECT opposing_team FROM table_name_34 WHERE against < 19 AND date = "20/05/1979" |
What were the least Wins in 1988? | CREATE TABLE table_name_19 (wins INTEGER, year VARCHAR) | SELECT MIN(wins) FROM table_name_19 WHERE year = 1988 |
who was the opponent where the game is 14? | CREATE TABLE table_27539272_5 (opponent VARCHAR, game VARCHAR) | SELECT opponent FROM table_27539272_5 WHERE game = 14 |
WHICH Usual translation is on jun 21? | CREATE TABLE table_name_98 (usual_translation VARCHAR, date_³ VARCHAR) | SELECT usual_translation FROM table_name_98 WHERE date_³ = "jun 21" |
Which category does the product named "flax" belong to? | CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR) | SELECT product_category_code FROM products WHERE product_name = "flax" |
Who are all players from hometown of Carbondale, Illinois? | CREATE TABLE table_22824297_1 (player VARCHAR, hometown VARCHAR) | SELECT player FROM table_22824297_1 WHERE hometown = "Carbondale, Illinois" |
What score has 1998 as the year? | CREATE TABLE table_name_82 (score VARCHAR, year VARCHAR) | SELECT score FROM table_name_82 WHERE year = 1998 |
When was the earliest incumbent dave reichert was first elected? | CREATE TABLE table_name_86 (first_elected INTEGER, incumbent VARCHAR) | SELECT MIN(first_elected) FROM table_name_86 WHERE incumbent = "dave reichert" |
What K League classic had less than 10 teams? | CREATE TABLE table_name_3 (k_league_classic VARCHAR, teams INTEGER) | SELECT k_league_classic FROM table_name_3 WHERE teams < 10 |
How many gold medals did Denmark win? | CREATE TABLE table_name_65 (gold INTEGER, nation VARCHAR) | SELECT MIN(gold) FROM table_name_65 WHERE nation = "denmark" |
What event has a 122.5 snatch rate? | CREATE TABLE table_name_2 (event VARCHAR, snatch VARCHAR) | SELECT event FROM table_name_2 WHERE snatch = 122.5 |
What season shows podium 7? | CREATE TABLE table_29471472_1 (season INTEGER, podiums VARCHAR) | SELECT MIN(season) FROM table_29471472_1 WHERE podiums = 7 |
Who constructed the I Italian Republic Grand Prix? | CREATE TABLE table_1140088_6 (constructor VARCHAR, race_name VARCHAR) | SELECT constructor FROM table_1140088_6 WHERE race_name = "I Italian Republic Grand Prix" |
Where did Geelong play as the away team? | CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_14 WHERE away_team = "geelong" |
How many lines have the segment description of red line mos-2 west? | CREATE TABLE table_1817879_2 (line_s_ VARCHAR, segment_description VARCHAR) | SELECT line_s_ FROM table_1817879_2 WHERE segment_description = "Red Line MOS-2 West" |
What is the round where there was a KO (punch)? | CREATE TABLE table_name_64 (round VARCHAR, method VARCHAR) | SELECT round FROM table_name_64 WHERE method = "ko (punch)" |
what is the analog type for cw on digital 26? | CREATE TABLE table_name_45 (analog VARCHAR, affiliation VARCHAR, digital VARCHAR) | SELECT analog FROM table_name_45 WHERE affiliation = "cw" AND digital = "26" |
Who were the candidates in district Wisconsin 4? | CREATE TABLE table_1341453_51 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1341453_51 WHERE district = "Wisconsin 4" |
How many matches were drawn by a team with 447 points? | CREATE TABLE table_name_1 (drawn VARCHAR, points_for VARCHAR) | SELECT drawn FROM table_name_1 WHERE points_for = "447" |
What name has 5 as the pick, a round less than 25, ot as the position, at boston college? | CREATE TABLE table_name_59 (name VARCHAR, college VARCHAR, position VARCHAR, pick VARCHAR, round VARCHAR) | SELECT name FROM table_name_59 WHERE pick = 5 AND round < 25 AND position = "ot" AND college = "boston college" |
What is the score in game 3? | CREATE TABLE table_23286158_11 (score VARCHAR, game VARCHAR) | SELECT score FROM table_23286158_11 WHERE game = 3 |
How many entries for highest when the low team was baltimore rays? | CREATE TABLE table_237757_10 (highest VARCHAR, low_team VARCHAR) | SELECT COUNT(highest) FROM table_237757_10 WHERE low_team = "Baltimore Rays" |
What is the highest vertical drop among the 1,200 meter long tracks? | CREATE TABLE table_name_9 (vertical_drop__m_ INTEGER, length__m_ VARCHAR) | SELECT MAX(vertical_drop__m_) FROM table_name_9 WHERE length__m_ = 1 OFFSET 200 |
How many parties does william b. cravens represent? | CREATE TABLE table_1342292_4 (party VARCHAR, incumbent VARCHAR) | SELECT COUNT(party) FROM table_1342292_4 WHERE incumbent = "William B. Cravens" |
List the season, home team, away team of all the games. | CREATE TABLE game (season VARCHAR, home_team VARCHAR, away_team VARCHAR) | SELECT season, home_team, away_team FROM game |
What position did tomasz kiełbowicz play? | CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR) | SELECT position FROM table_name_35 WHERE player = "tomasz kiełbowicz" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.