sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT Number of dances FROM table WHERE Place = 1
CREATE TABLE INST, Here is a database schema( table schema);
How many numbers of dances for place 1?.It is not neccessary to use all the tables.
SELECT COUNT(*), T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?It is not neccessary to use all the tables.
SELECT MAX Pos FROM table WHERE Car = 19
CREATE TABLE INST, Here is a database schema( table schema);
For the #19 car, what was their finish position?.It is not neccessary to use all the tables.
SELECT City FROM table WHERE Stadium = don valley stadium
CREATE TABLE INST, Here is a database schema( table schema);
In what city is the Don Valley Stadium located?.It is not neccessary to use all the tables.
SELECT date FROM table_name_4 WHERE home_team = "philadelphia" AND result = "104–110"
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Home team of philadelphia and a Result of 104–110?It is not neccessary to use all the tables.
SELECT combination_classification FROM table_name_17 WHERE stage = "14"
CREATE TABLE INST, Here is a database schema( table schema);
Which Combination classification has a Stage of 14?It is not neccessary to use all the tables.
SELECT Song FROM table WHERE Score = 6.5 + 6.0 + 6.0 + 5.5 = 24.0
CREATE TABLE INST, Here is a database schema( table schema);
For which song was the score 6.5 + 6.0 + 6.0 + 5.5 = 24.0?.It is not neccessary to use all the tables.
SELECT aspect_ratio FROM table_272313_1 WHERE vertical = 480 AND pixel_aspect_ratio = "1:1"
CREATE TABLE INST, Here is a database schema( table schema);
What was the aspect ratio if the vertical pixel is 480 and pixel aspect ratio is 1:1?It is not neccessary to use all the tables.
SELECT date FROM table_name_15 WHERE motogp_winner = "casey stoner" AND grand_prix = "valencian grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for motogp winner of casey stoner and grand prix of valencian grand prixIt is not neccessary to use all the tables.
SELECT T1.Royal_Family_Details, T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID
CREATE TABLE INST, Here is a database schema( table schema);
What are the details and ways to get to tourist attractions related to royal family?It is not neccessary to use all the tables.
SELECT SUM Apps FROM table WHERE Rank < 6 AND Goals < 61
CREATE TABLE INST, Here is a database schema( table schema);
What are the apps for less than 61 goals and before rank 6?.It is not neccessary to use all the tables.
SELECT MAX Number of s EVA FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the most number of s eva.It is not neccessary to use all the tables.
SELECT name FROM table_name_44 WHERE position = "guard" AND home_town = "cary, nc"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the guard from Cary NC?It is not neccessary to use all the tables.
SELECT road_team FROM table_name_39 WHERE result = "105-95"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Road Team in the game with a Result of 105-95?It is not neccessary to use all the tables.
SELECT COUNT(week__number) FROM table_27614707_1 WHERE theme = "Judge's Choice" AND order__number = "4"
CREATE TABLE INST, Here is a database schema( table schema);
How many different weeks are there in order number 4 that were judge's choice?It is not neccessary to use all the tables.
SELECT DISTINCT T1.id, T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12
CREATE TABLE INST, Here is a database schema( table schema);
What are the id and name of the stations that have ever had more than 12 bikes available?It is not neccessary to use all the tables.
SELECT MAX(silver) FROM table_name_88 WHERE rank > 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of silvers for ranks over 7?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Date = 2001 AND Artist = mellow
CREATE TABLE INST, Here is a database schema( table schema);
Which title was created in 2001 by Mellow?.It is not neccessary to use all the tables.
SELECT Eliminated FROM table WHERE Finish = 15th Voted Out 9th Jury Member Day 46
CREATE TABLE INST, Here is a database schema( table schema);
What is listed in eliminated when the finish is 15th voted out 9th jury Member Day 46?.It is not neccessary to use all the tables.
SELECT per­cent­age FROM table_177766_1 WHERE area__sqdeg_ = "248.885"
CREATE TABLE INST, Here is a database schema( table schema);
What is the percentage of this constellation with an area of 248.885 sq. deg.?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Notes = 53.96
CREATE TABLE INST, Here is a database schema( table schema);
Is there a Position for Notes 53.96?.It is not neccessary to use all the tables.
SELECT MIN First issued FROM table WHERE Color = green
CREATE TABLE INST, Here is a database schema( table schema);
When was Color of green first issued?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_47 WHERE home_team = "essendon"
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has a Home team of essendon?It is not neccessary to use all the tables.
SELECT COUNT(earnings__) AS $__ FROM table_name_64 WHERE player = "jim colbert" AND rank < 2
CREATE TABLE INST, Here is a database schema( table schema);
How much did jim colbert earned ranked above 2?It is not neccessary to use all the tables.
SELECT production_company FROM table_name_61 WHERE producer_s_ = "sam mccarthy"
CREATE TABLE INST, Here is a database schema( table schema);
For which production company did Sam Mccarthy produce?It is not neccessary to use all the tables.
SELECT July FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the julys.It is not neccessary to use all the tables.
SELECT Developer FROM table WHERE Title = Windows Live Messenger
CREATE TABLE INST, Here is a database schema( table schema);
Who is the developer for Windows live messenger? .It is not neccessary to use all the tables.
SELECT MIN Burglary FROM table WHERE Population > 832,901 AND Murder and Non-Negligent Manslaughter = 11.6
CREATE TABLE INST, Here is a database schema( table schema);
When population is greater than 832,901 and murder and non-negligent manslaughter is 11.6, what is the smallest burglary?.It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_52 WHERE rank = "12.0 12"
CREATE TABLE INST, Here is a database schema( table schema);
What Year has a Rank of 12.0 12?It is not neccessary to use all the tables.
SELECT title FROM table_26429658_1 WHERE production_code = 2010
CREATE TABLE INST, Here is a database schema( table schema);
What was the title of the episode with a production code of 2010?It is not neccessary to use all the tables.
SELECT Denomination FROM table WHERE School = Seymour College
CREATE TABLE INST, Here is a database schema( table schema);
What is every denomination for the school Seymour college?.It is not neccessary to use all the tables.
SELECT Tries for FROM table WHERE Tries against = 140
CREATE TABLE INST, Here is a database schema( table schema);
WHAT TRIES HAVE TRIES AGAINST AT 140?.It is not neccessary to use all the tables.
SELECT COUNT Best finish FROM table WHERE Money list rank = 96
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of players who had a money list rank of 96?.It is not neccessary to use all the tables.
SELECT Winner and score FROM table WHERE Finalist = sébastien grosjean
CREATE TABLE INST, Here is a database schema( table schema);
who is the winner and score for finalist sébastien grosjean?.It is not neccessary to use all the tables.
SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-127032')) AND lab.labname = 'paco2' AND DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TIME(), '-6 year') GROUP BY STRFTIME('%y', lab.labresulttime)
CREATE TABLE INST, Here is a database schema( table schema);
since 6 years ago, what was the yearly maximum value of the paco2 of patient 022-127032?It is not neccessary to use all the tables.
SELECT COUNT F/Laps FROM table WHERE Position = 20th
CREATE TABLE INST, Here is a database schema( table schema);
How many f/laps did Pedro Nunes have when he was in 20th position?.It is not neccessary to use all the tables.
SELECT released FROM table_name_75 WHERE model = "precision m60"
CREATE TABLE INST, Here is a database schema( table schema);
what is the release date of the model precision m60?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = don whitt
CREATE TABLE INST, Here is a database schema( table schema);
What place did Don Whitt finish?.It is not neccessary to use all the tables.
SELECT Finish FROM table WHERE Laps < 197 AND Start = 9 AND Qual = 152.672
CREATE TABLE INST, Here is a database schema( table schema);
Where did the driver who started 9 with a qualifing speed of 152.672 and finished fewer than 197 laps finish?.It is not neccessary to use all the tables.
SELECT COUNT(originalairdate) FROM table_2626495_1 WHERE directed_by = "Maury Geraghty"
CREATE TABLE INST, Here is a database schema( table schema);
how many times was the episode directed by maury geraghty originally aired?It is not neccessary to use all the tables.
SELECT COUNT Group 7 FROM table WHERE Group 12 = Nusa Ina
CREATE TABLE INST, Here is a database schema( table schema);
Nusa Ina only played once while group 7 played..It is not neccessary to use all the tables.
SELECT Original name FROM table WHERE Country = france
CREATE TABLE INST, Here is a database schema( table schema);
Which film originated in France?.It is not neccessary to use all the tables.
SELECT award FROM table_name_20 WHERE category = "best performance by a leading actor in a musical"
CREATE TABLE INST, Here is a database schema( table schema);
Which Award has best performance by a leading actor in a musicalIt is not neccessary to use all the tables.
SELECT All_Neutral, All_Games_Percent FROM basketball_match
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the proportion of All_Games_Percent for each all neutral.It is not neccessary to use all the tables.
SELECT Week 5 FROM table WHERE Week 2 = audra lynn
CREATE TABLE INST, Here is a database schema( table schema);
When Audra Lynn was featured in Week 2, who was the cyber girl for Week 5?.It is not neccessary to use all the tables.
SELECT SUM(total) FROM table_name_90 WHERE bronze > 1 AND silver = 3 AND gold < 5
CREATE TABLE INST, Here is a database schema( table schema);
What's the total when the bronze was more than 1 silver was 3 and gold was less than 5?It is not neccessary to use all the tables.
SELECT Opponents in the final FROM table WHERE Partner = katarina srebotnik AND Championship = wimbledon (4)
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent in the final had a partner of Katarina Srebotnik and a championship of wimbledon (4)?.It is not neccessary to use all the tables.
SELECT Start date FROM table WHERE Series = 6
CREATE TABLE INST, Here is a database schema( table schema);
When did series 6 start?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Home = vancouver AND Date = december 8
CREATE TABLE INST, Here is a database schema( table schema);
What record was made in vancouver on December 8?.It is not neccessary to use all the tables.
SELECT altadeña FROM table_name_45 WHERE del_pueblo = "maroon/gray"
CREATE TABLE INST, Here is a database schema( table schema);
What kind of Altade a has del Pueblo of maroon/gray?It is not neccessary to use all the tables.
SELECT round FROM table_name_7 WHERE opponent_team = "slovakia" AND outcome = "loser" AND edition > 2010
CREATE TABLE INST, Here is a database schema( table schema);
What is Round when Opponent Team is Slovakia when Outcome is Loser and when Edition is greater than 2010?It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Title = "Car Wars"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode "car wars"?.It is not neccessary to use all the tables.
SELECT MIN(top_5) FROM table_name_33 WHERE top_25 < 4 AND cuts_made < 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Top-5 when Top-25 is less than 4 and when Cuts made is less than 7?It is not neccessary to use all the tables.
SELECT "c" AS ompression_ratio FROM table_name_38 WHERE vin_code = "c"
CREATE TABLE INST, Here is a database schema( table schema);
What's the compression ratio when the vin code is c?It is not neccessary to use all the tables.
SELECT SUM(track) FROM table_name_12 WHERE catalogue = "epa 4054" AND time = "2:05"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of every track with a catalogue of EPA 4054 with a 2:05 length?It is not neccessary to use all the tables.
SELECT AVG(overall) FROM table_name_36 WHERE name = "rich dobbert"
CREATE TABLE INST, Here is a database schema( table schema);
what was the overall pick number for rich dobbert?It is not neccessary to use all the tables.
SELECT player FROM table_name_96 WHERE score = 70
CREATE TABLE INST, Here is a database schema( table schema);
Which player had a score of 70?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_82 WHERE venue = "junction oval"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team when the venue was Junction Oval?It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the most attendance.It is not neccessary to use all the tables.
SELECT country FROM table_name_5 WHERE place = "t7" AND score = 73 - 69 - 73 = 215
CREATE TABLE INST, Here is a database schema( table schema);
Name Country which has a Place of t7 and a Score of 73-69-73=215?It is not neccessary to use all the tables.
SELECT qb_rating FROM table_18686317_1 WHERE comp__percentage = "62.0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Quarterback rating of the player who got a comp percentage of 62.0?It is not neccessary to use all the tables.
SELECT engine FROM table_name_87 WHERE model = "s320 cdi"
CREATE TABLE INST, Here is a database schema( table schema);
Which Engine has a Model of s320 cdi?It is not neccessary to use all the tables.
SELECT MIN(tons___lton__) FROM table_23614702_1 WHERE warship = "Independencia"
CREATE TABLE INST, Here is a database schema( table schema);
How much does the Independencia weight?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = sabina park
CREATE TABLE INST, Here is a database schema( table schema);
What dates had matches at the venue Sabina Park?.It is not neccessary to use all the tables.
SELECT power__kw_ FROM table_2523809_1 WHERE coverage = "Phoenix"
CREATE TABLE INST, Here is a database schema( table schema);
List the power output for Phoenix.It is not neccessary to use all the tables.
SELECT AVG(births__000s_) FROM table_name_38 WHERE deaths = 0.4
CREATE TABLE INST, Here is a database schema( table schema);
What is the average births that had a death rate of 0.4It is not neccessary to use all the tables.
SELECT location FROM table_name_80 WHERE game > 6
CREATE TABLE INST, Here is a database schema( table schema);
What was the location of the game after game 6?It is not neccessary to use all the tables.
SELECT quantity FROM table_name_50 WHERE railway_number_s_ = "263"
CREATE TABLE INST, Here is a database schema( table schema);
What is the quantity for railway 263?It is not neccessary to use all the tables.
SELECT Mens singles FROM table WHERE Mens doubles = Kaj Lindfors Kaj Osterberg
CREATE TABLE INST, Here is a database schema( table schema);
who is the the mens singles with mens doubles being kaj lindfors kaj osterberg.It is not neccessary to use all the tables.
SELECT name FROM table WHERE Calculated = 56
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the element with a calculated value of 56?.It is not neccessary to use all the tables.
SELECT Nation FROM table WHERE Total < 2 AND Bronze < 1 AND Silver = 1
CREATE TABLE INST, Here is a database schema( table schema);
What nation has a total less than 2, silver of 1 and bronze less than 1?.It is not neccessary to use all the tables.
SELECT Posts.Id AS "post_link", Comments.Text FROM Comments, Posts WHERE Text LIKE '%which%jurisdiction%' AND Comments.PostId = Posts.Id AND Posts.PostTypeId = 1
CREATE TABLE INST, Here is a database schema( table schema);
Comments asking for a jurisdiction on a question.It is not neccessary to use all the tables.
SELECT Program FROM table WHERE Duration (years) = 3.5
CREATE TABLE INST, Here is a database schema( table schema);
Which program has 3.5 years?.It is not neccessary to use all the tables.
SELECT Report FROM table WHERE Date = 7 february AND Away team = new zealand breakers
CREATE TABLE INST, Here is a database schema( table schema);
Name the Report of 7 february with an Away team of new zealand breakers?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game = 9
CREATE TABLE INST, Here is a database schema( table schema);
What was the record for game 9?.It is not neccessary to use all the tables.
SELECT team FROM table_name_66 WHERE week_1 = "33"
CREATE TABLE INST, Here is a database schema( table schema);
Name the team for week 1 of 33It is not neccessary to use all the tables.
SELECT Conference Joined FROM table WHERE Location = terre haute AND Mascot = golden bears
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Conference Joined that has the Location of terre haute, and the Mascot of golden bears?.It is not neccessary to use all the tables.
SELECT COUNT Literate Male(%) FROM table WHERE % of District Population = 3.28
CREATE TABLE INST, Here is a database schema( table schema);
How many literate male (%) are there in the district that has a population of 3.28?.It is not neccessary to use all the tables.
SELECT outcome FROM table_name_57 WHERE date = "june 9, 1997"
CREATE TABLE INST, Here is a database schema( table schema);
What is the outcome on June 9 1997?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Nationality = great britain AND Ship = afrika
CREATE TABLE INST, Here is a database schema( table schema);
What is the date for the ship Afrika, with nationality Great Britain?.It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_38 WHERE venue = "junction oval"
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team's score in Junction Oval?It is not neccessary to use all the tables.
SELECT serial_number FROM table_name_11 WHERE function__figure_ = "space security trooper"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Serial number for the Space Security Trooper Function (figure)?It is not neccessary to use all the tables.
SELECT MIN Round FROM table WHERE Fastest Lap = michael schumacher AND Winning Driver = michael schumacher AND Pole Position = michael schumacher
CREATE TABLE INST, Here is a database schema( table schema);
Name the lowest round for when pole position and winning driver is michael schumacher.It is not neccessary to use all the tables.
SELECT hire_date FROM employees WHERE NOT first_name LIKE '%M%'
CREATE TABLE INST, Here is a database schema( table schema);
On what dates were employees without the letter M in their first names hired?It is not neccessary to use all the tables.
SELECT percentage_of_global_total FROM table_11251601_2 WHERE carbon_dioxide_emissions_per_year__tons_per_person___2007_ = "4.9"
CREATE TABLE INST, Here is a database schema( table schema);
HOW MUCH IS THE PERCENTAGE OF GLOBAL TOTAL EMISSIONS IN THE COUNTRY THAT PRODUCED 4.9 TONS PER PERSON IN 2007?It is not neccessary to use all the tables.
SELECT 2011 FROM table_name_49 WHERE 2012 = "q1" AND 2010 = "4r"
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 2011 when 2012 is q1 and a 2010 is 4r?It is not neccessary to use all the tables.
SELECT MAX Draws FROM table WHERE Club = real valladolid AND Played < 38
CREATE TABLE INST, Here is a database schema( table schema);
How many draws has a Club of real valladolid that was played less than 38?.It is not neccessary to use all the tables.
SELECT COUNT Height FROM table WHERE Player name = Chad Henne
CREATE TABLE INST, Here is a database schema( table schema);
How many heights does chad henne have?.It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Population = 4839400
CREATE TABLE INST, Here is a database schema( table schema);
What rank has a population of 4839400?.It is not neccessary to use all the tables.
SELECT rider FROM table_name_46 WHERE laps = 14 AND grid > 23 AND bike = "honda cbr1000rr" AND time = "+1'04.877"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the rider who went 14 laps on a Honda CBR1000rr, with a time of +1'04.877 on a grid larger than 23?It is not neccessary to use all the tables.
SELECT village__german_ FROM table_10798421_1 WHERE percent_of_slovenes_1951 = "96.9%"
CREATE TABLE INST, Here is a database schema( table schema);
Provide me with the name of the village (German) where there is 96.9% Slovenes in 1951.It is not neccessary to use all the tables.
SELECT original_title FROM table_name_55 WHERE country = "canada"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Original title with a Country that is canada?It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Wins > 14 AND Goal Difference = 14 AND Draws > 6
CREATE TABLE INST, Here is a database schema( table schema);
How many points have more than 14 wins, a goal difference of 14, and more than 6 draws?.It is not neccessary to use all the tables.
SELECT name FROM table_name_22 WHERE assists > 0 AND position = "forward" AND apps > 84 AND goals = 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the player with more than 0 assists a position of forward 19 goals and more than 84 apps?It is not neccessary to use all the tables.
SELECT Republican: Steve Sauerberg FROM table WHERE Dates administered = August 12, 2008
CREATE TABLE INST, Here is a database schema( table schema);
Name the republican steve sauerberg for august 12, 2008.It is not neccessary to use all the tables.
SELECT county FROM table_name_90 WHERE ihsaa_class = "aa" AND location = "ferdinand"
CREATE TABLE INST, Here is a database schema( table schema);
What is the county with an AA IHSAA class in ferdinand?It is not neccessary to use all the tables.
SELECT status FROM table_22815568_2 WHERE poverty_rate = "17.3%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the status of the county that has a 17.3% poverty rate?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = 07-09-2012
CREATE TABLE INST, Here is a database schema( table schema);
What opponent played on 07-09-2012?.It is not neccessary to use all the tables.
SELECT basis_for_team_song FROM table_28243323_1 WHERE writer_composer = "Ken Walther"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the team song written by ken walther?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = junction oval
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team at the Junction Oval venue?.It is not neccessary to use all the tables.