sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT evening_gown FROM table_11970261_2 WHERE swimsuit = "9.134"
CREATE TABLE INST, Here is a database schema( table schema);
what's the evening gown with swimsuit being 9.134It is not neccessary to use all the tables.
SELECT Manufacturer FROM table WHERE Year > 1966 AND Start < 5 AND Team = wood AND Finish = 35
CREATE TABLE INST, Here is a database schema( table schema);
WHAT MANUFACTURER AFTER 1966 HAD A START SMALLER THAN 5, A WOOD TEAM AND FINISHED 35?.It is not neccessary to use all the tables.
SELECT MIN Apparent magnitude FROM table WHERE Object type = spiral galaxy AND Constellation = leo minor AND NGC number > 3021
CREATE TABLE INST, Here is a database schema( table schema);
what is the lowest apparent magnitude when the object type is spiral galaxy, the constellation is leo minor and the ngc number is more than 3021?.It is not neccessary to use all the tables.
SELECT ground FROM table_27409644_1 WHERE club = "Flora Tallinn"
CREATE TABLE INST, Here is a database schema( table schema);
What is the home location for team flora tallinn?It is not neccessary to use all the tables.
SELECT AVG Final rank FROM table WHERE Lose > 10 AND Point < 43
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the average final rank for loe more than 10 and point less than 43.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_34 WHERE home_team = "st kilda"
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team when the home was st kilda?It is not neccessary to use all the tables.
SELECT avg( death_year - birth_year ) FROM player
CREATE TABLE INST, Here is a database schema( hall of fame);
What is the average lifespan of a baseball player?. It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Player = rich manning
CREATE TABLE INST, Here is a database schema( table schema);
What position did Rich Manning play?.It is not neccessary to use all the tables.
SELECT AVG Pole positions FROM table WHERE Percentage = 44.81%
CREATE TABLE INST, Here is a database schema( table schema);
What's the average pole position for the driver that has a percentage of 44.81%?.It is not neccessary to use all the tables.
SELECT actor_required FROM table_name_29 WHERE actor_in_original_production = "robert austin"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the required actor when Robert Austin was the actor in the original production?It is not neccessary to use all the tables.
SELECT AVG Position FROM table WHERE Drawn < 0
CREATE TABLE INST, Here is a database schema( table schema);
What was the average Position for which the amount Drawn was less than 0?.It is not neccessary to use all the tables.
SELECT margin_of_victory FROM table_name_54 WHERE tournament = "bob hope desert classic"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Margin of victory at the Bob Hope Desert Classic Tournament?It is not neccessary to use all the tables.
SELECT unemployment_rate FROM table_22815568_12 WHERE county = "Botetourt"
CREATE TABLE INST, Here is a database schema( table schema);
Name the unemployment rate for botetourtIt is not neccessary to use all the tables.
SELECT position FROM table_name_1 WHERE team = "morristown minutemen"
CREATE TABLE INST, Here is a database schema( table schema);
Which position was morristown minutemen in?It is not neccessary to use all the tables.
SELECT Location Attendance FROM table WHERE Game > 36 AND Team = atlanta
CREATE TABLE INST, Here is a database schema( table schema);
What was the location and attendance for the game after game 36 against Atlanta?.It is not neccessary to use all the tables.
SELECT Score points FROM table WHERE Total = olympic bronze medalist
CREATE TABLE INST, Here is a database schema( table schema);
With Olympic Bronze Medalist as the total what are the score points?.It is not neccessary to use all the tables.
SELECT SUM(goals_for) FROM table_name_45 WHERE drawn > 12 AND team = "goole town" AND goals_against > 60
CREATE TABLE INST, Here is a database schema( table schema);
How many goals for had a drawn more than 12 for the Goole Town team as well as more than 60 goals against?It is not neccessary to use all the tables.
SELECT First season in first division FROM table WHERE First season after most recent promotion = 1959 AND Name = alianza
CREATE TABLE INST, Here is a database schema( table schema);
When was Alianza's first season in first division with a promotion after 1959?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team = geelong
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue of the game where Geelong was the away team?.It is not neccessary to use all the tables.
SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book"
CREATE TABLE INST, Here is a database schema( table schema);
What is the document type name for the document with name "How to read a book"?It is not neccessary to use all the tables.
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
Find the top 3 products which have the largest number of problems?It is not neccessary to use all the tables.
SELECT origin FROM table_name_71 WHERE launch = 2010
CREATE TABLE INST, Here is a database schema( table schema);
What is the origin for the launch taking place in 2010?It is not neccessary to use all the tables.
SELECT venue FROM table_name_77 WHERE position_in_2005 = "8"
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Venue that has the Position in 2005 of 8?It is not neccessary to use all the tables.
SELECT open_cup FROM table_2365150_1 WHERE playoffs = "division Finals"
CREATE TABLE INST, Here is a database schema( table schema);
Name the open cup for division finalsIt is not neccessary to use all the tables.
SELECT MIN(round) FROM table_name_51 WHERE record = "5-3 (1)"
CREATE TABLE INST, Here is a database schema( table schema);
Which round has a record of 5-3 (1)?It is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Date = november 24
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the attendance on November 24?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_96 WHERE home_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team that played Fitzroy?It is not neccessary to use all the tables.
SELECT 3:00 pm FROM table WHERE 7:30 am = local programs
CREATE TABLE INST, Here is a database schema( table schema);
What is the 3pm program when Local Programs are on at 7:30am?.It is not neccessary to use all the tables.
SELECT nationality FROM table_name_86 WHERE player = "larry wright"
CREATE TABLE INST, Here is a database schema( table schema);
Which Nationality has a Player of larry wright?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Regionalliga Süd = stuttgarter kickers
CREATE TABLE INST, Here is a database schema( table schema);
Which season had a Regionalliga Sud of Stuttgarter Kickers?.It is not neccessary to use all the tables.
SELECT TDP FROM table WHERE Socket = BGA956 AND Processor = Penryn-3M
CREATE TABLE INST, Here is a database schema( table schema);
When the socket is bga956 and processor is penryn-3m, what is the tdp?.It is not neccessary to use all the tables.
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t1.itemid FROM (SELECT labevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM labevents GROUP BY labevents.itemid) AS t1 WHERE t1.c1 <= 5)
CREATE TABLE INST, Here is a database schema( table schema);
list the top five most frequent lab tests?It is not neccessary to use all the tables.
SELECT result FROM table_2668367_7 WHERE district = "Kentucky 8"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result in the election in the Kentucky 8 district?It is not neccessary to use all the tables.
SELECT COUNT(district) FROM table_1342379_10 WHERE first_elected = 1912
CREATE TABLE INST, Here is a database schema( table schema);
how many areas were in the election in 1912It is not neccessary to use all the tables.
SELECT COUNT Lane FROM table WHERE Name = henrique barbosa
CREATE TABLE INST, Here is a database schema( table schema);
What lane was Henrique Barbosa in?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Team = indiana
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE SCORE WITH THE TEAM OF INDIANA?.It is not neccessary to use all the tables.
SELECT Decile FROM table WHERE Authority = state AND Area = raumati south
CREATE TABLE INST, Here is a database schema( table schema);
What Decile has State Authority and Raumati South Area?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game = 36
CREATE TABLE INST, Here is a database schema( table schema);
What is Record, when Game is "36"?.It is not neccessary to use all the tables.
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '015-59552' AND patient.hospitaldischargetime IS NULL
CREATE TABLE INST, Here is a database schema( table schema);
how many days has it elapsed since patient 015-59552 was admitted to the hospital?It is not neccessary to use all the tables.
SELECT MAX(crowd) FROM table_name_38 WHERE venue = "windy hill"
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest attendance of the matches that took place at Windy Hill?It is not neccessary to use all the tables.
SELECT 2013 Index of Economic Freedom FROM table WHERE Country = Armenia
CREATE TABLE INST, Here is a database schema( table schema);
How economically free is the country of Armenia?.It is not neccessary to use all the tables.
SELECT COUNT(lyricist) FROM table_11827596_2 WHERE co_singer = "Suresh Wadkar" AND film_name = "Tera Dukh Mera Dukh"
CREATE TABLE INST, Here is a database schema( table schema);
how many times is the co-singer suresh wadkar and the film name is tera dukh mera dukh?It is not neccessary to use all the tables.
SELECT name FROM table_name_27 WHERE authority = "state" AND roll = 318
CREATE TABLE INST, Here is a database schema( table schema);
Which school has a state authority and a roll of 318?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Manager = jesus alfaro AND Finish = 6th
CREATE TABLE INST, Here is a database schema( table schema);
Name the year for jesus alfaro and finish of 6th.It is not neccessary to use all the tables.
SELECT Circuit FROM table WHERE Winning driver = luigi villoresi AND Name = lausanne grand prix
CREATE TABLE INST, Here is a database schema( table schema);
What circuit did Luigi Villoresi win the Lausanne Grand Prix?.It is not neccessary to use all the tables.
SELECT Software FROM table WHERE Latest stable date (version) = 0.6.1
CREATE TABLE INST, Here is a database schema( table schema);
Name the software with the latest stable date of 0.6.1.It is not neccessary to use all the tables.
SELECT AVG Long FROM table WHERE GP-GS < 14 AND Avg/G < 0.8 AND Gain < 3 AND Loss > 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Long that has a GP-GS less than 14, a AVg/G less than 0.8 and a Gain less than 3 and a Loss greater than 8?.It is not neccessary to use all the tables.
SELECT score FROM table_name_14 WHERE opponent = "new jersey nets"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the game against the New Jersey Nets?It is not neccessary to use all the tables.
SELECT date FROM table_name_64 WHERE home_team = "collingwood"
CREATE TABLE INST, Here is a database schema( table schema);
What day did Collingwood play as the home team?It is not neccessary to use all the tables.
SELECT team FROM table_15420044_1 WHERE difference = "8"
CREATE TABLE INST, Here is a database schema( table schema);
Which teams had a difference of 8 between goals scored and goals conceededIt is not neccessary to use all the tables.
SELECT MAX(total) FROM table_name_25 WHERE gold = 0 AND bronze > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the total when the gold of 0 and a bronze larger than 1?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_39 WHERE venue = "western oval"
CREATE TABLE INST, Here is a database schema( table schema);
What's the home team for the western oval venue?It is not neccessary to use all the tables.
SELECT frequency FROM table_14670060_1 WHERE coverage = "Chihuahua Sinaloa Durango"
CREATE TABLE INST, Here is a database schema( table schema);
What frequency does Chihuahua Sinaloa Durango cover?It is not neccessary to use all the tables.
SELECT Lead FROM table WHERE Skip = pavol pitonak
CREATE TABLE INST, Here is a database schema( table schema);
Which Lead has a Skip of pavol pitonak?.It is not neccessary to use all the tables.
SELECT studio_host FROM table_name_1 WHERE play_by_play = "sean grande" AND flagship_station = "wrko" AND year = "2005-06"
CREATE TABLE INST, Here is a database schema( table schema);
Play-by-play of sean grande and a Flagship Station of wrko and a Year of 2005-06 had what studio host?It is not neccessary to use all the tables.
SELECT Catalogue FROM table WHERE Song Title = harbor lights
CREATE TABLE INST, Here is a database schema( table schema);
What is the catalogue for Harbor Lights as a title?.It is not neccessary to use all the tables.
SELECT Exit date FROM table WHERE To club = cardiff city
CREATE TABLE INST, Here is a database schema( table schema);
What is the exit date of the player who transferred to Cardiff City?.It is not neccessary to use all the tables.
SELECT Change over previous year as a whole FROM table WHERE Change over same quarter the previous year = Up 2.8%
CREATE TABLE INST, Here is a database schema( table schema);
What's the change over previous year as a whole in the period in which the change over same quarter the previous year was up 2.8%?.It is not neccessary to use all the tables.
SELECT Song FROM table WHERE Volume:Issue = 63:5
CREATE TABLE INST, Here is a database schema( table schema);
Which song is from Volume:Issue 63:5?.It is not neccessary to use all the tables.
SELECT record FROM table_name_20 WHERE score = "0-7"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record of the game that went 0-7?It is not neccessary to use all the tables.
SELECT chroma_format FROM table_name_69 WHERE picture_coding_types = "i, p, b" AND name = "main profile"
CREATE TABLE INST, Here is a database schema( table schema);
What Chroma Format that has both Picture Coding Types of i p b and the Name of main profile?It is not neccessary to use all the tables.
SELECT tie_no FROM table_name_12 WHERE home_team = "woking"
CREATE TABLE INST, Here is a database schema( table schema);
When the home team was Woking what was the tie no?It is not neccessary to use all the tables.
SELECT player FROM table_name_96 WHERE score = 68
CREATE TABLE INST, Here is a database schema( table schema);
Who scored a 68?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Production code = 1ACX04
CREATE TABLE INST, Here is a database schema( table schema);
Which title had the production code 1ACX04?.It is not neccessary to use all the tables.
SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY AVG(Weight)
CREATE TABLE INST, Here is a database schema( table schema);
Show me about the distribution of Sex and the average of Weight , and group by attribute Sex in a bar chart, list mean weight in ascending order.It is not neccessary to use all the tables.
SELECT mens_40 FROM table_16724844_1 WHERE mens_u20 = "Southern Suns def Gold Coast Sharks"
CREATE TABLE INST, Here is a database schema( table schema);
What were the results for mens 40 when the mens u20 was Southern Suns def Gold Coast Sharks?It is not neccessary to use all the tables.
SELECT 6:30 pm FROM table WHERE 2:00 pm = local programs
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 3:30 pm when 2:00 pm is local programs?.It is not neccessary to use all the tables.
SELECT driver FROM table_name_66 WHERE laps > 43 AND grid = 5
CREATE TABLE INST, Here is a database schema( table schema);
Who drive over 43 laps in grid 5?It is not neccessary to use all the tables.
SELECT points FROM table_name_30 WHERE home = "pittsburgh" AND date = "november 29"
CREATE TABLE INST, Here is a database schema( table schema);
What points have pittsburgh as the home and November 29 as the date?It is not neccessary to use all the tables.
SELECT date FROM table_name_35 WHERE home_team = "west ham united"
CREATE TABLE INST, Here is a database schema( table schema);
On what Date is West Ham United the Home team?It is not neccessary to use all the tables.
SELECT locality FROM table_name_90 WHERE ages = "8-16" AND school = "penarth group school"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Locality of the Penarth Group School for Ages 8-16?It is not neccessary to use all the tables.
SELECT Leading scorer FROM table WHERE Date = february 9
CREATE TABLE INST, Here is a database schema( table schema);
Who was the leading scorer on February 9?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_name_53 WHERE date = "february 6"
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest number of rebounds on February 6?It is not neccessary to use all the tables.
SELECT title FROM table_25548505_1 WHERE directed_by = "Linda Mendoza"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of the episode directed by Linda Mendoza?It is not neccessary to use all the tables.
SELECT SUM Silver FROM table WHERE Bronze > 5 AND Gold < 16
CREATE TABLE INST, Here is a database schema( table schema);
How many silver medals did the team that had 5 bronze and less than 16 gold have?.It is not neccessary to use all the tables.
SELECT COUNT Top 10 FROM table WHERE Avg. Finish = 23.3
CREATE TABLE INST, Here is a database schema( table schema);
How many teams finished in the top team with an average finish of 23.3?.It is not neccessary to use all the tables.
SELECT actor FROM table_name_85 WHERE duration = "17 years" AND character = "harold bishop"
CREATE TABLE INST, Here is a database schema( table schema);
Which actor played Harold Bishop for 17 years?It is not neccessary to use all the tables.
SELECT AVG("Number of electorates (2009)") FROM table_78969 WHERE "Constituency number" = '46'
CREATE TABLE INST, Here is a database schema( table schema);
Which Number of electorates (2009) has a Constituency number of 46?It is not neccessary to use all the tables.
SELECT MAX Seats up for election FROM table WHERE Election result > 8 AND Staying councillors = 24
CREATE TABLE INST, Here is a database schema( table schema);
Which Seats up for election have an Election result larger than 8, and Staying councillors of 24?.It is not neccessary to use all the tables.
SELECT player FROM table_name_70 WHERE place = "t3"
CREATE TABLE INST, Here is a database schema( table schema);
Which player is T3?It is not neccessary to use all the tables.
SELECT COUNT Total FROM table WHERE To par = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Total, when To Par is "7"?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_76 WHERE decision = "weekes"
CREATE TABLE INST, Here is a database schema( table schema);
How many attended the game with weekes recording the decision?It is not neccessary to use all the tables.
SELECT orchestra FROM table_name_41 WHERE songwriter_s_ = "ted varnick"
CREATE TABLE INST, Here is a database schema( table schema);
Name the orchestra for ted varnickIt is not neccessary to use all the tables.
SELECT score FROM table_name_15 WHERE player = "ernie els"
CREATE TABLE INST, Here is a database schema( table schema);
What is Score when Player is "Ernie Els"?It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Year = march 10, 1998
CREATE TABLE INST, Here is a database schema( table schema);
Which region had a year March 10, 1998?.It is not neccessary to use all the tables.
SELECT AVG(average) FROM table_name_90 WHERE matches < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the typical match smaller than 2?It is not neccessary to use all the tables.
SELECT score FROM table_name_54 WHERE venue = "cairns convention centre"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game where the venue was cairns convention centre?It is not neccessary to use all the tables.
SELECT T2.employee_name, T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_12 WHERE silver < 1 AND rank = "15"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Total when silver is less than 1 and the rank is 15?It is not neccessary to use all the tables.
SELECT COUNT(party) FROM table_19753079_36 WHERE district = "North Carolina 7"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total party for north carolina 7It is not neccessary to use all the tables.
SELECT MIN Total FROM table WHERE Rank = 11 AND Silver > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest total number of medals for rank 11 and more than 0 silver medals?.It is not neccessary to use all the tables.
SELECT SUM Production Number FROM table WHERE Title = from hare to heir
CREATE TABLE INST, Here is a database schema( table schema);
What is the production number of From Hare to Heir?.It is not neccessary to use all the tables.
SELECT Displacement (cm³) FROM table WHERE Torque (Nm@rpm) = 350@1800-6000
CREATE TABLE INST, Here is a database schema( table schema);
what's the dbeingplacement (cm³) with torque (nm@rpm) being [email protected] is not neccessary to use all the tables.
SELECT Shuttle Run (sec) FROM table WHERE Points = 2
CREATE TABLE INST, Here is a database schema( table schema);
How many seconds is a shuttle run that give 2 points?.It is not neccessary to use all the tables.
SELECT 1983 FROM table_name_44 WHERE 1975 = "career statistics"
CREATE TABLE INST, Here is a database schema( table schema);
What 1983 has a 1975 of career statistics?It is not neccessary to use all the tables.
SELECT visitor FROM table_name_39 WHERE home = "suns"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the visiting team when the Suns were the home team?It is not neccessary to use all the tables.
SELECT Fatalities FROM table WHERE Aircraft = ju-52
CREATE TABLE INST, Here is a database schema( table schema);
How many fatalities occurred for the Ju-52 aircraft?.It is not neccessary to use all the tables.
SELECT score FROM table_name_51 WHERE country = "japan"
CREATE TABLE INST, Here is a database schema( table schema);
What was japan's score?It is not neccessary to use all the tables.
SELECT Event FROM table WHERE Country = (local competition)
CREATE TABLE INST, Here is a database schema( table schema);
What is the Event labeled Country of (local competition)?.It is not neccessary to use all the tables.
SELECT Major, COUNT(*) FROM Student GROUP BY Major ORDER BY COUNT(Major) LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which major has least number of students? List the major and the number of students.It is not neccessary to use all the tables.