sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
---|---|---|
SELECT Date FROM table WHERE Where sunk = south atlantic | CREATE TABLE INST, Here is a database schema( table schema); | What is the date that a ship sank in the South Atlantic?.It is not neccessary to use all the tables. |
SELECT Transfer fee FROM table WHERE Type = transfer AND Name = gravgaard | CREATE TABLE INST, Here is a database schema( table schema); | What is the transfer fee for Gravgaard?.It is not neccessary to use all the tables. |
SELECT AVG(founded) FROM table_name_96 WHERE team = "baton rouge blaze" | CREATE TABLE INST, Here is a database schema( table schema); | What is the mean Founded number when the team is the Baton Rouge Blaze?It is not neccessary to use all the tables. |
SELECT SUM Round FROM table WHERE Position = linebacker AND School = utah state | CREATE TABLE INST, Here is a database schema( table schema); | When the school picking is utah state for the position of linebacker, what's the sum of those rounds?.It is not neccessary to use all the tables. |
SELECT COUNT Losses FROM table WHERE Goals for < 73 AND Wins < 11 AND Points > 24 AND Position > 15 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of losses with less than 73 goals for, less than 11 wins, more than 24 points, and a position greater than 15?.It is not neccessary to use all the tables. |
SELECT Venue FROM table WHERE Home team score = 10.9 (69) | CREATE TABLE INST, Here is a database schema( table schema); | AT WHAT VENUE DID THE HOME TEAM SCORE 10.9 (69)?.It is not neccessary to use all the tables. |
SELECT COUNT Uni# FROM table WHERE Bats = s AND Position = utl | CREATE TABLE INST, Here is a database schema( table schema); | How many Uni numbers have Bats of s, and a Position of utl?.It is not neccessary to use all the tables. |
SELECT MAX Area (km²) FROM table WHERE Deed number = 21352022 AND Population > 184 | CREATE TABLE INST, Here is a database schema( table schema); | What is the largest Area (km²) for Deed number of 21352022 with a Population of more than 184?.It is not neccessary to use all the tables. |
SELECT COUNT District FROM table WHERE Incumbent = Gary Condit | CREATE TABLE INST, Here is a database schema( table schema); | How many districts does gary condit represent?.It is not neccessary to use all the tables. |
SELECT installation_date, COUNT(installation_date) FROM station ORDER BY COUNT(installation_date) | CREATE TABLE INST, Here is a database schema( table schema); | Bin the installation date into the day of week interval, and then you can draw a bar chart to tell me how many stations each year, sort from low to high by the y axis please.It is not neccessary to use all the tables. |
SELECT Directed by FROM table WHERE Title = "Out with the Old, in with the New" | CREATE TABLE INST, Here is a database schema( table schema); | Who directed the "Out with the Old, in with the new" episode?.It is not neccessary to use all the tables. |
SELECT COUNT(ties) FROM table_14389782_2 WHERE games_started = 36 | CREATE TABLE INST, Here is a database schema( table schema); | How many ties were there for game 36 started?It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Artist = Rebeka Dremelj | CREATE TABLE INST, Here is a database schema( table schema); | Name the score for rebeka dremelj.It is not neccessary to use all the tables. |
SELECT "Country" FROM table_41995 WHERE "Date" = 'april 11-april 21' | CREATE TABLE INST, Here is a database schema( table schema); | What country was the game played when it was played from April 11-April 21?It is not neccessary to use all the tables. |
SELECT television_service FROM table_15887683_15 WHERE country = "United Kingdom" AND n° > 854.0 | CREATE TABLE INST, Here is a database schema( table schema); | what television service are in the united kingdom and n° is greater than 854.0?It is not neccessary to use all the tables. |
SELECT AVG Total FROM table WHERE To par < 10 AND Country = south korea | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the average Total that has the To par smaller than 10, and the Country of south korea?.It is not neccessary to use all the tables. |
SELECT teams FROM table_name_80 WHERE season = "1954-55" | CREATE TABLE INST, Here is a database schema( table schema); | Which team had a season 1954-55?It is not neccessary to use all the tables. |
SELECT position FROM table_name_20 WHERE club_team = "miami university (ccha)" | CREATE TABLE INST, Here is a database schema( table schema); | What position does the player from the Miami University (CCHA) club team play?It is not neccessary to use all the tables. |
SELECT 2009 FROM table WHERE Total > 1 AND 2010 = 4th | CREATE TABLE INST, Here is a database schema( table schema); | What was the 2009 value for a total over 1 and 4th on 2010?.It is not neccessary to use all the tables. |
SELECT Owner FROM table WHERE Call sign = cjgx | CREATE TABLE INST, Here is a database schema( table schema); | Who is the owner with a call sign of cjgx?.It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Away team score = 13.11 (89) | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the home team that played an away team who scored 13.11 (89)?.It is not neccessary to use all the tables. |
SELECT Type FROM table WHERE Joined = 2007 | CREATE TABLE INST, Here is a database schema( table schema); | Name the type that joined 2007.It is not neccessary to use all the tables. |
SELECT report FROM table_name_98 WHERE location = "buenos aires" | CREATE TABLE INST, Here is a database schema( table schema); | What was the report in Buenos Aires?It is not neccessary to use all the tables. |
SELECT Coach FROM table WHERE Premier date = May 20, 2010 | CREATE TABLE INST, Here is a database schema( table schema); | Name the coach for may 20, 2010.It is not neccessary to use all the tables. |
SELECT "Title" FROM table_28117 WHERE "Airdate" = 'May 10, 1958' | CREATE TABLE INST, Here is a database schema( table schema); | What is the title of the episode that aired on May 10, 1958?It is not neccessary to use all the tables. |
SELECT Garfield Episode 2 FROM table WHERE Garfield Episode 1 = The Horror Hostess (Part 1) | CREATE TABLE INST, Here is a database schema( table schema); | What is the title of garfield episode 2 when "the horror hostess (part 1)" is episode 1?.It is not neccessary to use all the tables. |
SELECT number_of_deputies FROM table_name_44 WHERE election_date = 1964 | CREATE TABLE INST, Here is a database schema( table schema); | What were the number of deputies for the 1964 election year?It is not neccessary to use all the tables. |
SELECT term_ended FROM table_1602620_1 WHERE elected = 1984 | CREATE TABLE INST, Here is a database schema( table schema); | What year did the term end for the office elected in 1984It is not neccessary to use all the tables. |
SELECT municipality FROM table_24115349_6 WHERE coakley_votes = 754 | CREATE TABLE INST, Here is a database schema( table schema); | What municipality had 754 votes for coakley?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE School = hoover high school | CREATE TABLE INST, Here is a database schema( table schema); | Which player attended Hoover High School?.It is not neccessary to use all the tables. |
SELECT MAX(grid) FROM table_name_64 WHERE laps < 35 AND constructor = "maserati" | CREATE TABLE INST, Here is a database schema( table schema); | What is the high grid total for maserati with under 35 laps?It is not neccessary to use all the tables. |
SELECT country FROM table_name_50 WHERE town = "dubai" | CREATE TABLE INST, Here is a database schema( table schema); | what country is dubai inIt is not neccessary to use all the tables. |
SELECT COUNT(japanese) FROM table_1585609_2 WHERE name = "Amagasaki" | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of japanese for amagasakiIt is not neccessary to use all the tables. |
SELECT Memory FROM table WHERE Part number(s) = ct80618005844ab | CREATE TABLE INST, Here is a database schema( table schema); | What is the memory for ct80618005844ab?.It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Venue = windy hill | CREATE TABLE INST, Here is a database schema( table schema); | What is the home team for Windy Hill?.It is not neccessary to use all the tables. |
SELECT candidates FROM table_2668416_7 WHERE district = "Maryland 1" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the candidates for district maryland 1?It is not neccessary to use all the tables. |
SELECT tc FROM table_name_26 WHERE year > 2007 AND dc = "21st" | CREATE TABLE INST, Here is a database schema( table schema); | Which T.C. has a Year larger than 2007 and a D.C. of 21st?It is not neccessary to use all the tables. |
SELECT UpVotes, DownVotes, ROUND((CAST(DownVotes AS FLOAT) / (DownVotes + UpVotes)) * 100, 2) AS "DownVote %" FROM Users WHERE Id = @UserId | CREATE TABLE INST, Here is a database schema( table schema); | Downvote % to total votes.It is not neccessary to use all the tables. |
SELECT MAX(unfavorable) FROM table_name_34 WHERE favorable = 34 AND date = "1953 august" AND no_opinion > 24 | CREATE TABLE INST, Here is a database schema( table schema); | What is the most unfavorable that is favorable of 34 during 1953 August and has a no opinion score larger than 24?It is not neccessary to use all the tables. |
SELECT AVG to Iran FROM table WHERE survived < 9 AND Aircraft = ussr an-26 AND damaged > 3 | CREATE TABLE INST, Here is a database schema( table schema); | What's the to Iran with fewer than 9 survivors, more than 3 damaged, and an ussr an-26 aircraft?.It is not neccessary to use all the tables. |
SELECT runner_up FROM table_name_78 WHERE year = "1901" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the runner-up in 1901?It is not neccessary to use all the tables. |
SELECT SUM(long) FROM table_name_11 WHERE gain < 379 AND avg_g = 0.8 | CREATE TABLE INST, Here is a database schema( table schema); | How many longs have a gain less than 379 and 0.8 as an avg/g?It is not neccessary to use all the tables. |
SELECT attendance FROM table_name_86 WHERE date = "december 6" | CREATE TABLE INST, Here is a database schema( table schema); | What was the Bill's attendance on December 6?It is not neccessary to use all the tables. |
SELECT COUNT(tonnage) FROM table_name_4 WHERE date = "25 june 1943" | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of Tonnage when Date is "25 June 1943"?It is not neccessary to use all the tables. |
SELECT yacht FROM table_14882588_3 WHERE sail_number = "6952" | CREATE TABLE INST, Here is a database schema( table schema); | What were all Yachts with a sail number of 6952?It is not neccessary to use all the tables. |
SELECT SUM Crowd FROM table WHERE Home team = hawthorn | CREATE TABLE INST, Here is a database schema( table schema); | How many people were in the crowd when the Home Team was Hawthorn?.It is not neccessary to use all the tables. |
SELECT Nation FROM table WHERE Silver > 4 AND Gold > 3 AND Total = 18 | CREATE TABLE INST, Here is a database schema( table schema); | What Nation has more than 4 silver, more than 3 gold and 18 total medals?.It is not neccessary to use all the tables. |
SELECT revisions.Month, revisions."amount_of_revisions" / CAST(sum_posts."amount_of_posts" AS FLOAT) FROM (SELECT Month = DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0), 'Amount of revisions' = COUNT(Id) FROM PostHistory GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0)) AS revisions INNER JOIN (SELECT Month, 'Amount of posts' = SUM(posts) OVER (ORDER BY Month rows BETWEEN unbounded preceding AND CURRENT ROW) FROM (SELECT Month = DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0), Posts = COUNT(Id) FROM Posts GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0)) AS new_posts_per_month) AS sum_posts ON revisions.Month = sum_posts.Month ORDER BY Month | CREATE TABLE INST, Here is a database schema( table schema); | Average amount of revisions per post.It is not neccessary to use all the tables. |
SELECT 3rd placed FROM table WHERE City and venue = Krško , Slovenia Matije Gubca Stadium | CREATE TABLE INST, Here is a database schema( table schema); | Who came in 3rd place in Krško , Slovenia Matije Gubca Stadium.It is not neccessary to use all the tables. |
SELECT Replaced by FROM table WHERE Date of vacancy = 31 December 2008 AND Position in table = 1st | CREATE TABLE INST, Here is a database schema( table schema); | Name the replaced by where date of vacancy is 31 december 2008 where position in table is 1st.It is not neccessary to use all the tables. |
SELECT 2010 FROM table WHERE 2007 = a AND 2012 = a | CREATE TABLE INST, Here is a database schema( table schema); | Name the 2010 for 2007 of a and 2012 of a.It is not neccessary to use all the tables. |
SELECT outgoing_manager FROM table_17039232_3 WHERE position_in_table = "11th" | CREATE TABLE INST, Here is a database schema( table schema); | Name the outgoing manager for position in table being 11thIt is not neccessary to use all the tables. |
SELECT MAX Minutes FROM table WHERE Rebounds = 0 | CREATE TABLE INST, Here is a database schema( table schema); | If the amount of rebounds is 0, what is the maximum minutes?.It is not neccessary to use all the tables. |
SELECT party FROM table_name_55 WHERE minister = "franco frattini" | CREATE TABLE INST, Here is a database schema( table schema); | What is Party when Minister is "Franco Frattini"?It is not neccessary to use all the tables. |
SELECT Opponent# FROM table WHERE Result = w27-16 | CREATE TABLE INST, Here is a database schema( table schema); | What is the opponent number of the match with a w27-16 result?.It is not neccessary to use all the tables. |
SELECT Celebrity FROM table WHERE Finished = 6th | CREATE TABLE INST, Here is a database schema( table schema); | What celebrity finished 6th?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Date = October 16 | CREATE TABLE INST, Here is a database schema( table schema); | What is the score of the game played on october 16?.It is not neccessary to use all the tables. |
SELECT Nationality FROM table WHERE Name = jessica pengelly | CREATE TABLE INST, Here is a database schema( table schema); | What nationality is Jessica Pengelly?.It is not neccessary to use all the tables. |
SELECT To par FROM table WHERE Score = 73-70-70-65=278 | CREATE TABLE INST, Here is a database schema( table schema); | What is the to par of the player with a 73-70-70-65=278 score?.It is not neccessary to use all the tables. |
SELECT City of license FROM table WHERE Frequency MHz < 106.5 AND Call sign = w218ck | CREATE TABLE INST, Here is a database schema( table schema); | Which city has frequency under 106.5MHz and a callsign of w218ck?.It is not neccessary to use all the tables. |
SELECT MIN Game FROM table WHERE Date = March 27 | CREATE TABLE INST, Here is a database schema( table schema); | What was the game number on march 27?.It is not neccessary to use all the tables. |
SELECT Production code FROM table WHERE Patient Portrayer = Kathy Lamkin | CREATE TABLE INST, Here is a database schema( table schema); | What is the production code for the episode where the patient portrayer is Kathy Lamkin?.It is not neccessary to use all the tables. |
SELECT Transmission FROM table WHERE Trim = xe (2009) | CREATE TABLE INST, Here is a database schema( table schema); | What is the Removal that has a Trim of xe (2009)?.It is not neccessary to use all the tables. |
SELECT COUNT(power), _takeoff FROM table_1123802_1 WHERE engine = "Wasp Jr. T1B2" | CREATE TABLE INST, Here is a database schema( table schema); | When the engine is Wasp Jr. T1B2 what is the number needed for takeoff power?It is not neccessary to use all the tables. |
SELECT "Fastest Lap" FROM table_41990 WHERE "Round" = '5' AND "Winning driver" = 'james winslow' | CREATE TABLE INST, Here is a database schema( table schema); | What is Fastest Lap, when Round is 5, and when Winning Driver is James Winslow?It is not neccessary to use all the tables. |
SELECT team FROM table_name_28 WHERE recopa_sudamericana_1992 = "runner-up" | CREATE TABLE INST, Here is a database schema( table schema); | Which Team has a Recopa Sudamericana 1992 of runner-up?It is not neccessary to use all the tables. |
SELECT Region 1 FROM table WHERE No. of Episodes = 12 AND Region 2 = 18 august 2008 | CREATE TABLE INST, Here is a database schema( table schema); | Which region 1 has 12 Episodes and a Region 2 of 18 August 2008?.It is not neccessary to use all the tables. |
SELECT MAX(money___) AS $__ FROM table_name_56 WHERE to_par = "–1" AND score = 73 - 70 - 73 - 71 = 287 | CREATE TABLE INST, Here is a database schema( table schema); | Which money is the highest one that has a To par of –1 and a Score of 73-70-73-71=287?It is not neccessary to use all the tables. |
SELECT Team FROM table WHERE Record = 36-29 | CREATE TABLE INST, Here is a database schema( table schema); | name the team for 36-29 record.It is not neccessary to use all the tables. |
SELECT "capacity" FROM table_203_873 WHERE "model name" = "mega disk'o" | CREATE TABLE INST, Here is a database schema( table schema); | what is the number of capacity that mega disk ' o is able to hold ?It is not neccessary to use all the tables. |
SELECT party FROM table_25030512_12 WHERE candidates = "Dennis Ross (R) unopposed" | CREATE TABLE INST, Here is a database schema( table schema); | When dennis ross (r) unopposed is the candidate what is the party?It is not neccessary to use all the tables. |
SELECT condition_parameter FROM table_15314901_1 WHERE velocity_angle_η_in_i_radians = "ln[(1 + √5)/2] ≅ 0.481" | CREATE TABLE INST, Here is a database schema( table schema); | If the velocity angle is ln[(1 + √5)/2] ≅ 0.481 what is the condition/parameter?It is not neccessary to use all the tables. |
SELECT Part 2 FROM table WHERE Part 5 = january 24, 2008 | CREATE TABLE INST, Here is a database schema( table schema); | When is Part 2, when Part 5 is on January 24, 2008?.It is not neccessary to use all the tables. |
SELECT episodes FROM table_2639433_4 WHERE year = 2007 | CREATE TABLE INST, Here is a database schema( table schema); | What episode came out in the year 2007?It is not neccessary to use all the tables. |
SELECT high_points FROM table_18904831_6 WHERE high_rebounds = "Dydek (8)" | CREATE TABLE INST, Here is a database schema( table schema); | When dydek (8) has the highest rebounds who has the highest amount of points?It is not neccessary to use all the tables. |
SELECT elmers_end FROM table_name_65 WHERE bingham_road = "09:54" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Elmers End with a 09:54 Bingham Road?It is not neccessary to use all the tables. |
SELECT MIN First elected FROM table | CREATE TABLE INST, Here is a database schema( table schema); | What year was the earliest first elected?.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Date = 10 april 2007 AND Opponent = selima sfar | CREATE TABLE INST, Here is a database schema( table schema); | Name the score for 10 april 2007 and opponent of selima sfar.It is not neccessary to use all the tables. |
SELECT MAX(position) FROM table_name_75 WHERE points > 12 AND club = "lietava-2 jonava" AND wins > 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest position of club lietava-2 jonava which has more than 12 points and more than 7 wins?It is not neccessary to use all the tables. |
SELECT name FROM table_name_78 WHERE winning_constructor = "bugatti" AND winning_driver = "louis chiron" | CREATE TABLE INST, Here is a database schema( table schema); | What Name has a Winning constructor of bugatti and a Winning driver of louis chiron?It is not neccessary to use all the tables. |
SELECT city_code, COUNT(*) FROM Student WHERE Sex = 'M' GROUP BY city_code | CREATE TABLE INST, Here is a database schema( table schema); | Find the number of male students (with sex M) from each city in a bar chart.It is not neccessary to use all the tables. |
SELECT MAX(num_of_shops), AVG(Num_of_Factories) FROM manufacturer WHERE open_year < 1990 | CREATE TABLE INST, Here is a database schema( table schema); | what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.It is not neccessary to use all the tables. |
SELECT position FROM table_2387790_2 WHERE year = 1987 | CREATE TABLE INST, Here is a database schema( table schema); | What position did he finish in 1987?It is not neccessary to use all the tables. |
SELECT date FROM table_name_55 WHERE goal = 3 | CREATE TABLE INST, Here is a database schema( table schema); | Which date has 3 as the goal?It is not neccessary to use all the tables. |
SELECT SUM Points FROM table WHERE Team = navy AND Lost > 11 | CREATE TABLE INST, Here is a database schema( table schema); | How many points for the navy team that lost over 11?.It is not neccessary to use all the tables. |
SELECT SUM(altitude__mslm_) FROM table_name_89 WHERE density__inhabitants_km_2__ < 1467.5 AND common_of = "moncalieri" | CREATE TABLE INST, Here is a database schema( table schema); | Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5 and a Common of moncalieri?It is not neccessary to use all the tables. |
SELECT Status FROM table WHERE Against = 12 | CREATE TABLE INST, Here is a database schema( table schema); | What Status has Against of 12?.It is not neccessary to use all the tables. |
SELECT T3.Name, COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name | CREATE TABLE INST, Here is a database schema( table schema); | Show the names of journalists and the number of events they reported in a bar chart.It is not neccessary to use all the tables. |
SELECT Score FROM table WHERE Date = February 8, 1992 | CREATE TABLE INST, Here is a database schema( table schema); | What was the score on February 8, 1992?.It is not neccessary to use all the tables. |
SELECT Round FROM table WHERE Player = robert deciantis | CREATE TABLE INST, Here is a database schema( table schema); | Which round was Robert Deciantis taken in?.It is not neccessary to use all the tables. |
SELECT "country" FROM table_204_204 ORDER BY "result" LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | which team had the fastest time ?It is not neccessary to use all the tables. |
SELECT player FROM table_name_62 WHERE country = "ireland" | CREATE TABLE INST, Here is a database schema( table schema); | Which play is from Ireland?It is not neccessary to use all the tables. |
SELECT Ratings FROM table WHERE Year = 2013 | CREATE TABLE INST, Here is a database schema( table schema); | How many Ratings did the 2013 Year have?.It is not neccessary to use all the tables. |
SELECT COUNT(total_viewers__in_millions_) FROM table_12419515_4 WHERE series__number = 57 | CREATE TABLE INST, Here is a database schema( table schema); | How many millions of total viewers watched series #57?It is not neccessary to use all the tables. |
SELECT course FROM table_name_1 WHERE race_leader = "rest day" | CREATE TABLE INST, Here is a database schema( table schema); | Which course had a rest day for the Race Leader?It is not neccessary to use all the tables. |
SELECT IHSAA Football Class FROM table WHERE Location = culver | CREATE TABLE INST, Here is a database schema( table schema); | What is the IHSAA Football class at Culver?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_40 WHERE date = "september 26" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Opponent of the game on September 26?It is not neccessary to use all the tables. |
SELECT author FROM table_22464685_1 WHERE transliteration = "lasha-giorgis droindeli matiane" | CREATE TABLE INST, Here is a database schema( table schema); | who is the auther when the transliteration is lasha-giorgis droindeli matiane?It is not neccessary to use all the tables. |
SELECT COUNT(enrollment) FROM table_name_32 WHERE school = "indianapolis tindley" | CREATE TABLE INST, Here is a database schema( table schema); | How much Enrollment has a School of indianapolis tindley?It is not neccessary to use all the tables. |
SELECT Laws against homosexuality FROM table WHERE Country = malaysia | CREATE TABLE INST, Here is a database schema( table schema); | What are the laws against homosexuality in Malaysia?.It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.