sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = "Feliciaberg"
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of the drama workshop groups with address in Feliciaberg city?It is not neccessary to use all the tables.
SELECT Sub-Parish (Sogn) FROM table WHERE Year Built < 1883 AND Parish (Prestegjeld) = jostedal parish AND Location of the Church = gaupne
CREATE TABLE INST, Here is a database schema( table schema);
Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?.It is not neccessary to use all the tables.
SELECT record FROM table_name_2 WHERE h_a_n = "a" AND date = "february 1"
CREATE TABLE INST, Here is a database schema( table schema);
What is Record when H/A/N is "A" and when Date is "February 1"?It is not neccessary to use all the tables.
SELECT AVG Played FROM table WHERE Losses = 6 AND Wins > 33
CREATE TABLE INST, Here is a database schema( table schema);
How many Played that has Losses of 6, and Wins larger than 33?.It is not neccessary to use all the tables.
SELECT Winning Driver FROM table WHERE Round = 6
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning driver in round 6?.It is not neccessary to use all the tables.
SELECT Duration FROM table WHERE Nº = 33
CREATE TABLE INST, Here is a database schema( table schema);
What is the duration for no 33?.It is not neccessary to use all the tables.
SELECT tries_for FROM table_name_76 WHERE losing_bonus = "6"
CREATE TABLE INST, Here is a database schema( table schema);
If the losing bonus was 6, what is the tries for?It is not neccessary to use all the tables.
SELECT rank FROM captain WHERE class = 'Cutter' INTERSECT SELECT rank FROM captain WHERE class = 'Armed schooner'
CREATE TABLE INST, Here is a database schema( table schema);
What are the ranks of captains that are both in the Cutter and Armed schooner classes?It is not neccessary to use all the tables.
SELECT most_laps_led FROM table_25668203_2 WHERE location = "Monterey, California" AND winning_driver = "Scott Rarick"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the most laps led in monterey california when scott rarick won the race?It is not neccessary to use all the tables.
SELECT MAX("Abandoned") FROM table_27606
CREATE TABLE INST, Here is a database schema( table schema);
What's the largest number of abandoned games by any of the teams?It is not neccessary to use all the tables.
SELECT Launched FROM table WHERE Name = harusame
CREATE TABLE INST, Here is a database schema( table schema);
What is the launched date for the Harusame ship?.It is not neccessary to use all the tables.
SELECT driver FROM table_name_98 WHERE grid = 1
CREATE TABLE INST, Here is a database schema( table schema);
What Driver has 1 in Grid?It is not neccessary to use all the tables.
SELECT result FROM table_name_94 WHERE association = "primetime emmy awards"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the result for primetime emmy awardsIt is not neccessary to use all the tables.
SELECT Team FROM table WHERE Year > 1990 AND Chassis = jordan 193
CREATE TABLE INST, Here is a database schema( table schema);
What team has jordan 193 chassis after 1990?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE First Star = M. Grabovski
CREATE TABLE INST, Here is a database schema( table schema);
What date was M. Grabovski the first start of the game?.It is not neccessary to use all the tables.
SELECT 1998 FROM table WHERE 1995 = a AND 1993 = a AND 1996 = 1r
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1998 value with A in 1995, A in 1993, and 1r in 1996?.It is not neccessary to use all the tables.
SELECT home_team FROM table_26847237_3 WHERE opposition = "East Coast"
CREATE TABLE INST, Here is a database schema( table schema);
what is the home team when the opposition is east coast?It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_97 WHERE team = "suzuki" AND points = 4
CREATE TABLE INST, Here is a database schema( table schema);
What year did they get 4 points with Suzuki?It is not neccessary to use all the tables.
SELECT competition FROM table_name_92 WHERE venue = "manchester" AND year = 2009
CREATE TABLE INST, Here is a database schema( table schema);
Which Competition has a Venue of manchester in 2009?It is not neccessary to use all the tables.
SELECT "Format" FROM table_52353 WHERE "Region" = 'united states' AND "Date" = 'august 11, 2009'
CREATE TABLE INST, Here is a database schema( table schema);
Which format had a United States region and a date of August 11, 2009?It is not neccessary to use all the tables.
SELECT MIN(genes) FROM table_name_66 WHERE species = "rubrobacter xylanophilus"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of genes in Rubrobacter Xylanophilus?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Visiting Team = houston texans
CREATE TABLE INST, Here is a database schema( table schema);
What date had the Houston Texans as visitors?.It is not neccessary to use all the tables.
SELECT MAX Length (miles) FROM table WHERE Name = l-56g
CREATE TABLE INST, Here is a database schema( table schema);
what is the length (miles) when the name is l-56g?.It is not neccessary to use all the tables.
SELECT COUNT Goals FROM table WHERE Position = df AND Nationality = england AND Crewe Alexandra career = 1948–1951
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of goals when the position is DF, the nationality is England, and the Crewe Alexandra career is 1948–1951?.It is not neccessary to use all the tables.
SELECT Grand Prix FROM table WHERE Location = Detroit
CREATE TABLE INST, Here is a database schema( table schema);
What event was in detroit?.It is not neccessary to use all the tables.
SELECT event FROM table_name_3 WHERE opponent = "jason yee"
CREATE TABLE INST, Here is a database schema( table schema);
Which Event has the Opponent, Jason Yee?It is not neccessary to use all the tables.
SELECT Warship FROM table WHERE Horse- power = 1500
CREATE TABLE INST, Here is a database schema( table schema);
What warship has horse-power of 1500?.It is not neccessary to use all the tables.
SELECT MAX(finishes) FROM table_name_48 WHERE points < 337 AND stage_wins = 2 AND wins > 0
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest finishes when the points is less than 337 the stage wins is 2 and the wins is more than 0?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Director = dariush mehrjui
CREATE TABLE INST, Here is a database schema( table schema);
Where is the director Dariush Mehrjui from?.It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Driver = reg parnell
CREATE TABLE INST, Here is a database schema( table schema);
What Chassis does Reg Parnell drive?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Entrant = trio brdeact wind allass
CREATE TABLE INST, Here is a database schema( table schema);
What year was trio brdeact wind allass the entrant?.It is not neccessary to use all the tables.
SELECT finals FROM table_name_14 WHERE goals > 0 AND assists = 8
CREATE TABLE INST, Here is a database schema( table schema);
How many finals had more than 0 goals and 8 assists?It is not neccessary to use all the tables.
SELECT Social Democratic FROM table WHERE Green-Communist = 9.0% AND People's Party = 10.0% AND Socialist = 39.0%
CREATE TABLE INST, Here is a database schema( table schema);
What is the Social Democratic percentage for the poll with a Green-Communist rate of 9.0%, People's Party of 10.0%, and Socialist of 39.0%?.It is not neccessary to use all the tables.
SELECT COUNT(round) FROM table_name_95 WHERE position = "c"
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds have a position of C?It is not neccessary to use all the tables.
SELECT round FROM table_name_92 WHERE event = "bars - moscow vs st. petersburg"
CREATE TABLE INST, Here is a database schema( table schema);
What round did the match go to when the event was Bars - Moscow vs St. Petersburg?It is not neccessary to use all the tables.
SELECT Loss FROM table WHERE Date = april 25
CREATE TABLE INST, Here is a database schema( table schema);
How much was the loss of April 25?.It is not neccessary to use all the tables.
SELECT distance_duration FROM table_name_3 WHERE date = "sept 5" AND race_title = "le grand prix de trois-rivières"
CREATE TABLE INST, Here is a database schema( table schema);
What is the distance/duration on sept 5 of le grand prix de trois-rivières?It is not neccessary to use all the tables.
SELECT date FROM table_name_95 WHERE against = 7
CREATE TABLE INST, Here is a database schema( table schema);
What date has an against of 7?It is not neccessary to use all the tables.
SELECT MAX(production_in_2010__1), 000 AS _ton_ FROM table_293465_1 WHERE country = "Sweden"
CREATE TABLE INST, Here is a database schema( table schema);
When sweden is the country what is the highest production in 2010 (1000 ton)?It is not neccessary to use all the tables.
SELECT program FROM table_name_44 WHERE track_name = "south fork dirt riders"
CREATE TABLE INST, Here is a database schema( table schema);
What programs are there for the South Fork Dirt Riders track?It is not neccessary to use all the tables.
SELECT COUNT(deposits) FROM table_name_63 WHERE non_interest_income = 0.9500000000000001 AND no_of_branches_offices < 17
CREATE TABLE INST, Here is a database schema( table schema);
How many deposits had a Non-Interest Income of 0.9500000000000001 and number of branch/offices less than 17?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_78 WHERE team_from = "södertälje sk"
CREATE TABLE INST, Here is a database schema( table schema);
Name the Nationality of södertälje sk?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Date = apr 16, 1967
CREATE TABLE INST, Here is a database schema( table schema);
What is the Tournament with a Date that is apr 16, 1967?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_payments)
CREATE TABLE INST, Here is a database schema( table schema);
List the number of customers that did not have any payment history.It is not neccessary to use all the tables.
SELECT COUNT(school) FROM table_11677691_4 WHERE hometown = "Akron, Ohio"
CREATE TABLE INST, Here is a database schema( table schema);
How many players' hometown was Akron Ohio?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_17 WHERE round = 4
CREATE TABLE INST, Here is a database schema( table schema);
Which Nationality has a Round of 4?It is not neccessary to use all the tables.
SELECT Year entered league FROM table WHERE University = university of essex
CREATE TABLE INST, Here is a database schema( table schema);
What is the year of entry for the University of Essex?.It is not neccessary to use all the tables.
SELECT team FROM table_22297140_3 WHERE replaced_by = "Faraz Kamalvand"
CREATE TABLE INST, Here is a database schema( table schema);
Which team had a manager who was replaced by Faraz Kamalvand?It is not neccessary to use all the tables.
SELECT grid FROM table_name_72 WHERE points > 10 AND time_retired = "+13.7 secs"
CREATE TABLE INST, Here is a database schema( table schema);
Which Grid has Points larger than 10 and a Time/Retired of +13.7 secs?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Format = cd (limited edition steel-box) AND Country = united kingdom
CREATE TABLE INST, Here is a database schema( table schema);
what is the date when the format is cd (limited edition steel-box) from united kingdom?.It is not neccessary to use all the tables.
SELECT call_sign FROM table_name_51 WHERE city_of_license = "brownfield, texas"
CREATE TABLE INST, Here is a database schema( table schema);
What is Call Sign when City of License is Brownfield Texas?It is not neccessary to use all the tables.
SELECT "Score" FROM table_60028 WHERE "Attendance" = '349'
CREATE TABLE INST, Here is a database schema( table schema);
What is Score, when Attendance is '349'?It is not neccessary to use all the tables.
SELECT COUNT(frequency) FROM table_21716139_1 WHERE destination = "Jaipur"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of frequencies that have a destination of Jaipur?It is not neccessary to use all the tables.
SELECT incumbent FROM table_28898948_3 WHERE reason = "Death" AND by_election = 1881
CREATE TABLE INST, Here is a database schema( table schema);
When 1881 is the by-election and death is the reason who is the incumbent?It is not neccessary to use all the tables.
SELECT AVG Laps FROM table WHERE Driver = ricardo sperafico
CREATE TABLE INST, Here is a database schema( table schema);
Driver Ricardo Sperafico has what as his average laps?.It is not neccessary to use all the tables.
SELECT name FROM table_name_30 WHERE themed_area = "dreamworks experience" AND manufacturer = "ferrari"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the dreamworks experience from Ferrari?It is not neccessary to use all the tables.
SELECT circuit FROM table_1140090_6 WHERE race_name = "VI Rhein-Pokalrennen"
CREATE TABLE INST, Here is a database schema( table schema);
What circuit is the Vi Rhein-Pokalrennen race in?It is not neccessary to use all the tables.
SELECT MAX(wins) FROM table_name_11 WHERE class = "250cc" AND year = 1971
CREATE TABLE INST, Here is a database schema( table schema);
What are the most wins in 1971 in 250cc class?It is not neccessary to use all the tables.
SELECT player FROM table_1213511_2 WHERE nhl_team = "New York Rangers"
CREATE TABLE INST, Here is a database schema( table schema);
Who's the player for the New York Rangers?It is not neccessary to use all the tables.
SELECT "First elected" FROM table_36744 WHERE "District" = 'south carolina 1'
CREATE TABLE INST, Here is a database schema( table schema);
When was the incumbent from the south carolina 1 district first elected?It is not neccessary to use all the tables.
SELECT SUM Total FROM table WHERE Rank = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Total when rank is 2?.It is not neccessary to use all the tables.
SELECT total FROM table_name_80 WHERE set_2 = "17-25"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total for set 2 17-25?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Score = 70-71=141
CREATE TABLE INST, Here is a database schema( table schema);
What is the Place of the Player with a Score of 70-71=141?.It is not neccessary to use all the tables.
SELECT tv_time FROM table_name_66 WHERE road_team = "phoenix" AND date = "june 18"
CREATE TABLE INST, Here is a database schema( table schema);
What was the TV time for Chicago's road game against Phoenix on June 18?It is not neccessary to use all the tables.
SELECT country FROM table_name_69 WHERE to_par = "–1"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Country of the Player with a To par of –1?It is not neccessary to use all the tables.
SELECT "Location Attendance" FROM table_48517 WHERE "Date" = 'january 19'
CREATE TABLE INST, Here is a database schema( table schema);
What was the location attendance on January 19?It is not neccessary to use all the tables.
SELECT COUNT Date FROM table WHERE Visitor = New Jersey Nets
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of date where visitor is new jersey nets.It is not neccessary to use all the tables.
SELECT COUNT(production_code) FROM table_15938543_1 WHERE written_by = "Jack Burditt & Robert Carlock"
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were written by Jack Burditt & Robert CarlockIt is not neccessary to use all the tables.
SELECT Remarks FROM table WHERE Rank > 2 AND Alliance = skyteam (2012)
CREATE TABLE INST, Here is a database schema( table schema);
What are the remarks for the entry ranked greater than 2 with a skyteam (2012) alliance?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_54 WHERE city = "brussels, belgium"
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue in the city of Brussels Belgium?It is not neccessary to use all the tables.
SELECT Territory FROM table WHERE Screens = 17
CREATE TABLE INST, Here is a database schema( table schema);
What is the territory with 17 screens?.It is not neccessary to use all the tables.
SELECT Users.DisplayName AS "user_name", COUNT(DISTINCT answer.Id) AS "total_answers", COUNT(DISTINCT question.Id) AS "accepted_answers" FROM Posts AS answer LEFT OUTER JOIN Posts AS question ON question.AcceptedAnswerId = answer.Id INNER JOIN Users ON answer.OwnerUserId = Users.Id INNER JOIN PostTags ON answer.ParentId = PostTags.PostId INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE answer.OwnerUserId IN ('##UserId##') AND answer.PostTypeId = 2 AND answer.CreationDate BETWEEN '2015-01-01 00:00:00' AND '2015-12-31 00:00:00' GROUP BY answer.OwnerUserId, Users.Reputation, Users.DisplayName
CREATE TABLE INST, Here is a database schema( table schema);
Total answers and Accepted Answers By Date.It is not neccessary to use all the tables.
SELECT Archive FROM table WHERE Run time = 24:05
CREATE TABLE INST, Here is a database schema( table schema);
What is he archive for the episode with a run time of 24:05?.It is not neccessary to use all the tables.
SELECT T1.student_id, T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2
CREATE TABLE INST, Here is a database schema( table schema);
Find the student ID and middle name for all the students with at most two enrollments.It is not neccessary to use all the tables.
SELECT trigram FROM table_23406517_2 WHERE direction = "Northwest"
CREATE TABLE INST, Here is a database schema( table schema);
What is every trigram when direction is Northwest?It is not neccessary to use all the tables.
SELECT written_by FROM table_2226817_2 WHERE original_air_date = "April 5, 1987"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote when the original airdate is April 5 1987?It is not neccessary to use all the tables.
SELECT losing_bonus FROM table_15467476_3 WHERE points_difference = "-99"
CREATE TABLE INST, Here is a database schema( table schema);
What is the losing bonus for the team with a point difference of -99?It is not neccessary to use all the tables.
SELECT name FROM table_name_98 WHERE overall < 268 AND round = 1
CREATE TABLE INST, Here is a database schema( table schema);
What name has an overall less than 268 and 1 as the round?It is not neccessary to use all the tables.
SELECT MIN Games FROM table WHERE Name = travis watson AND Rebounds < 136
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Games, when Name is Travis Watson, and when Rebounds is less than 136?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Week = 6
CREATE TABLE INST, Here is a database schema( table schema);
What date was the week 6 game played on?.It is not neccessary to use all the tables.
SELECT - 750m FROM table WHERE - 250m = 18.852
CREATE TABLE INST, Here is a database schema( table schema);
If the -250m is 18.852, what is the .It is not neccessary to use all the tables.
SELECT week_2 FROM table_name_66 WHERE week_1 = "crystal beddows"
CREATE TABLE INST, Here is a database schema( table schema);
What Week 2 has a Week 1 of crystal beddows?It is not neccessary to use all the tables.
SELECT name FROM table_name_59 WHERE qual_1 = "1:26.056"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Name of the person with a Qual 1 of 1:26.056?It is not neccessary to use all the tables.
SELECT COUNT(week) FROM table_14940519_1 WHERE opponent = "at Cleveland Browns"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of weeks for at cleveland brownsIt is not neccessary to use all the tables.
SELECT Affiliation, SUM(Enrollment) FROM university GROUP BY Affiliation
CREATE TABLE INST, Here is a database schema( table schema);
Visualize a bar chart for what are the total enrollments of universities of each affiliation type?It is not neccessary to use all the tables.
SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Total DESC
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of body builders in descending order of total scores?It is not neccessary to use all the tables.
SELECT MAX("Peak position") FROM table_65981 WHERE "Album" = 'one of the boys'
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest peak position for the album one of the boys?It is not neccessary to use all the tables.
SELECT COUNT("Number of Examinees") FROM table_62497 WHERE "Year" > '2005' AND "Pass Percentage" = '78.35%' AND "Number of Passed Students" < '297'
CREATE TABLE INST, Here is a database schema( table schema);
What number of examines after 2005 has a pass percentage of 78.35% with less than 297 students?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Year = 2012
CREATE TABLE INST, Here is a database schema( table schema);
What is the location for 2012?.It is not neccessary to use all the tables.
SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu"
CREATE TABLE INST, Here is a database schema( table schema);
What type of state was Lu when Yi was the ruler from the royal house of Ji?It is not neccessary to use all the tables.
SELECT MIN(game) FROM table_name_46 WHERE score = "2–3 ot" AND points > 76
CREATE TABLE INST, Here is a database schema( table schema);
Which Game is the lowest one that has a Score of 2–3 ot and Points larger than 76?It is not neccessary to use all the tables.
SELECT COUNT Germans FROM table WHERE Slovaks = 0.11%
CREATE TABLE INST, Here is a database schema( table schema);
How many values for Germans occurs when value for Slovaks is 0.11%?.It is not neccessary to use all the tables.
SELECT MAX(round) FROM table_name_35 WHERE position = "d" AND nationality = "united states" AND player = "ian cole"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest round of Ian Cole who played position d from the United States?It is not neccessary to use all the tables.
SELECT Football stadium FROM table WHERE Team = carabins
CREATE TABLE INST, Here is a database schema( table schema);
What's the name of the carabins stadium?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM files WHERE duration LIKE "4:%"
CREATE TABLE INST, Here is a database schema( table schema);
How many songs have 4 minute duration?It is not neccessary to use all the tables.
SELECT MIN Goals FROM table WHERE Venue = tehran, iran AND Date = 1948-10-28
CREATE TABLE INST, Here is a database schema( table schema);
In 1948-10-28, what were the lowest Goals in Tehran, Iran?.It is not neccessary to use all the tables.
SELECT width FROM table_1251878_1 WHERE frame_size = "4.5K"
CREATE TABLE INST, Here is a database schema( table schema);
what's the width with frame size being 4.5kIt is not neccessary to use all the tables.
SELECT "Race 4" FROM table_49953 WHERE "Race 1" = '28'
CREATE TABLE INST, Here is a database schema( table schema);
What is Race 4, when Race 1 is 28?It is not neccessary to use all the tables.
SELECT film_title_used_in_nomination FROM table_name_18 WHERE original_title = "monsieur hawarden"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nomination title used for the original film Monsieur Hawarden?It is not neccessary to use all the tables.
SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory?It is not neccessary to use all the tables.