sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Name FROM actor ORDER BY Name
CREATE TABLE INST, Here is a database schema( table schema);
List the name of actors in ascending alphabetical order.It is not neccessary to use all the tables.
SELECT 2012 FROM table WHERE 2010 = 1.3 AND 2008 = 3.6
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2012 value with a 1.3 in 2010 and a 3.6 in 2008?.It is not neccessary to use all the tables.
SELECT Speed FROM table WHERE Location = coniston water AND Pilot(s) = malcolm campbell
CREATE TABLE INST, Here is a database schema( table schema);
How fast was the speed during the record set at Coniston Water that was piloted by Malcolm Campbell?.It is not neccessary to use all the tables.
SELECT COUNT Game FROM table WHERE Score = 1–0 AND Points < 66
CREATE TABLE INST, Here is a database schema( table schema);
How many games have a Score of 1–0, and Points smaller than 66?.It is not neccessary to use all the tables.
SELECT y_ = _2008 FROM table_214479_8 WHERE y_ = _2011 = a = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the y = 2008 when y = 2011 is a = 3?It is not neccessary to use all the tables.
SELECT females FROM table_name_10 WHERE number = "706"
CREATE TABLE INST, Here is a database schema( table schema);
Which language do 706 females speak?It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE High points = Kevin Durant (28)
CREATE TABLE INST, Here is a database schema( table schema);
Who did the High Assists when Kevin Durant (28) took the High Points?.It is not neccessary to use all the tables.
SELECT result FROM table_1341973_6 WHERE incumbent = "Clyde Doyle"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the election of the incumbent clyde doyle?It is not neccessary to use all the tables.
SELECT COUNT(directed_by) FROM table_23499946_1 WHERE us_viewers__in_millions_ = "2.80"
CREATE TABLE INST, Here is a database schema( table schema);
How many directed by have 2.80 as u.s. viewers (in millions)?It is not neccessary to use all the tables.
SELECT Runners-up FROM table WHERE Last final lost = 1985
CREATE TABLE INST, Here is a database schema( table schema);
How many runners-up did the club with the last final lost in 1985 have?.It is not neccessary to use all the tables.
SELECT COUNT Bronze FROM table WHERE Silver = 0 AND Sport = wrestling AND Total > 3
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the total number of bronze for silver being 0 and sport of wrestling and total more than 3.It is not neccessary to use all the tables.
SELECT Championship FROM table WHERE Score in the final = 3–6, 6–4, 5–7
CREATE TABLE INST, Here is a database schema( table schema);
Which championship had a score in the final of 3–6, 6–4, 5–7?.It is not neccessary to use all the tables.
SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code ORDER BY card_type_code DESC
CREATE TABLE INST, Here is a database schema( table schema);
Return a histogram on what are the different card types, and how many cards are there of each?, could you rank from high to low by the names?It is not neccessary to use all the tables.
SELECT Model number FROM table WHERE Order part number = tmdml44bkx5ld
CREATE TABLE INST, Here is a database schema( table schema);
Which model number has an order part number of TMDML44BKX5LD?.It is not neccessary to use all the tables.
SELECT Name FROM county_public_safety ORDER BY Population DESC
CREATE TABLE INST, Here is a database schema( table schema);
List the names of counties in descending order of population.It is not neccessary to use all the tables.
SELECT result FROM table_name_71 WHERE week < 8 AND date = "september 30, 1979"
CREATE TABLE INST, Here is a database schema( table schema);
On September 30, 1979, in a week before week 8, what was the result?It is not neccessary to use all the tables.
SELECT COUNT(index__year_) FROM table_19948664_2 WHERE countries_sampled = 157
CREATE TABLE INST, Here is a database schema( table schema);
How many years were listed under index when there were 157 countries sampled?It is not neccessary to use all the tables.
SELECT no_party_preference FROM table_27003186_3 WHERE city = "Murrieta"
CREATE TABLE INST, Here is a database schema( table schema);
What is the no party preference when the city is murrieta?It is not neccessary to use all the tables.
SELECT Production FROM table WHERE Result = nominated AND Year = 2009 AND Award ceremony = helpmann awards
CREATE TABLE INST, Here is a database schema( table schema);
Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony?.It is not neccessary to use all the tables.
SELECT name FROM table_name_34 WHERE years_played = "2004–2008" AND date_and_opponent = "2/17/07 vs. purdue"
CREATE TABLE INST, Here is a database schema( table schema);
Which Name has a Years Played of 2004 2008, and a Date and Opponent of 2/17/07 vs. purdue?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
When st kilda played as the Away team which date was that?.It is not neccessary to use all the tables.
SELECT "First round" FROM table_40740 WHERE "Members" = 'kenny smith'
CREATE TABLE INST, Here is a database schema( table schema);
What was the first round time for member Kenny Smith?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_68 WHERE venue = "lake oval"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team at Lake Oval?It is not neccessary to use all the tables.
SELECT COUNT Episode no. FROM table WHERE Original Airdate = january 26, 2009 AND Production no. < 38
CREATE TABLE INST, Here is a database schema( table schema);
What is the episode number of the episode that originally aired on January 26, 2009 and had a production number smaller than 38?.It is not neccessary to use all the tables.
SELECT finish FROM table_25920798_2 WHERE vote = "4-4"
CREATE TABLE INST, Here is a database schema( table schema);
Name the finish for 4-4It is not neccessary to use all the tables.
SELECT Chassis FROM table WHERE Points = 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Chassis has 0 points?.It is not neccessary to use all the tables.
SELECT "Nation" FROM table_7528 WHERE "Bronze" > '0' AND "Gold" > '0' AND "Silver" > '0' AND "Rank" = '5'
CREATE TABLE INST, Here is a database schema( table schema);
Which nation has a bronze greater than 0, a gold greater than 0, a silver greater than 0, and 5 as the rank?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_38 WHERE country = "united states"
CREATE TABLE INST, Here is a database schema( table schema);
what is the tournament when the country is united states?It is not neccessary to use all the tables.
SELECT segment_a FROM table_name_18 WHERE netflix = "s01e12"
CREATE TABLE INST, Here is a database schema( table schema);
What is the segment A name having a Netflix of s01e12?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Award = inte awards
CREATE TABLE INST, Here is a database schema( table schema);
How many times was the award inte awards?.It is not neccessary to use all the tables.
SELECT school FROM table_14286908_1 WHERE finalists = 2
CREATE TABLE INST, Here is a database schema( table schema);
What are the names that had a finalist score of 2?It is not neccessary to use all the tables.
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor
CREATE TABLE INST, Here is a database schema( table schema);
What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?It is not neccessary to use all the tables.
SELECT MIN(district) FROM table_1979619_3 WHERE residence = "Newtown Square"
CREATE TABLE INST, Here is a database schema( table schema);
Name the district for newtown squareIt is not neccessary to use all the tables.
SELECT Losing bonus FROM table WHERE Points for = 416 AND Club = ynysybwl rfc
CREATE TABLE INST, Here is a database schema( table schema);
For Ynysybwl RFC, what was the losing bonus for 416 points?.It is not neccessary to use all the tables.
SELECT Time/Retired FROM table WHERE Laps = 75
CREATE TABLE INST, Here is a database schema( table schema);
What's the Time/Retired of Laps of 75?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Round < 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the time for a round less than 3?.It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_64 WHERE game < 43 AND january > 8
CREATE TABLE INST, Here is a database schema( table schema);
Which Points is the highest one that has a Game smaller than 43 and a January larger than 8?It is not neccessary to use all the tables.
SELECT Date_of_Birth, Height FROM people ORDER BY Date_of_Birth DESC
CREATE TABLE INST, Here is a database schema( table schema);
Return a bar chart about the distribution of Date_of_Birth and Height , display in desc by the names please.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_13 WHERE score = "6–3, 2–6, 6–3"
CREATE TABLE INST, Here is a database schema( table schema);
What Tournament had a Score of 6–3 2–6 6–3?It is not neccessary to use all the tables.
SELECT Best FROM table WHERE Name = justin wilson
CREATE TABLE INST, Here is a database schema( table schema);
Justin Wilson has what has his best time?.It is not neccessary to use all the tables.
SELECT season FROM table_name_53 WHERE club = "celtic"
CREATE TABLE INST, Here is a database schema( table schema);
Which season has the Celtic club?It is not neccessary to use all the tables.
SELECT Hometown FROM table WHERE Player = ray drew
CREATE TABLE INST, Here is a database schema( table schema);
Which hometown has a player of Ray Drew?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Film/Series = thirst AND Year = 2010 AND Group = green globe film awards
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for Thirst in 2010 at the Green Globe Film Awards?.It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Week = 11
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the average attendance for week of 11.It is not neccessary to use all the tables.
SELECT Race FROM table WHERE Tyre = p AND Winning driver = juan manuel fangio
CREATE TABLE INST, Here is a database schema( table schema);
What is the race that had a tyre of p and Juan Manuel Fangio as the winning driver?.It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Team 2 = hanoi acb
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Season that has the Team 2 of hanoi acb?.It is not neccessary to use all the tables.
SELECT Place of birth FROM table WHERE Elevator = nicholas iv AND Elector = napoleone orsini frangipani
CREATE TABLE INST, Here is a database schema( table schema);
What is the place of birth when the elevator is Nicholas IV, and elector is Napoleone Orsini Frangipani?.It is not neccessary to use all the tables.
SELECT MAX(enrollment) FROM table_261906_2 WHERE joined_mac = 1997
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest enrollment schools that joined the mac in 1997?It is not neccessary to use all the tables.
SELECT record FROM table_name_27 WHERE date = "november 10, 1968"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record on the date of november 10 1968?It is not neccessary to use all the tables.
SELECT Format FROM table WHERE Catalog = 2508668
CREATE TABLE INST, Here is a database schema( table schema);
What is the Format of the release with Catalog number 2508668?.It is not neccessary to use all the tables.
SELECT Third FROM table WHERE Champion = metalurh novomoskovsk
CREATE TABLE INST, Here is a database schema( table schema);
Which Third has a Champion of metalurh novomoskovsk?.It is not neccessary to use all the tables.
SELECT Driver FROM table WHERE Engine = ford edb 3.0 v8
CREATE TABLE INST, Here is a database schema( table schema);
Who was the driver of the Ford EDB 3.0 v8 engine?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "83" AND demographic.days_stay > "6"
CREATE TABLE INST, Here is a database schema( table schema);
let me know the number of patients less than 83 years who stayed in hospital for more than 6 days.It is not neccessary to use all the tables.
SELECT MIN(total) FROM table_name_31 WHERE year_s__won = "1991"
CREATE TABLE INST, Here is a database schema( table schema);
In 1991 what was the lowest total?It is not neccessary to use all the tables.
SELECT MAX(league) FROM table_17598822_11 WHERE scottish_cup = 0
CREATE TABLE INST, Here is a database schema( table schema);
Name the maximum leagure for 0 scottish cupIt is not neccessary to use all the tables.
SELECT largest_ethnic_group__2002_ FROM table_2562572_44 WHERE cyrillic_name_other_names = "Банатски Карловац"
CREATE TABLE INST, Here is a database schema( table schema);
What was the largest ethnic group in in the settlement with the cyrillic name банатски карловац?It is not neccessary to use all the tables.
SELECT MIN(game) FROM table_name_69 WHERE date = "february 20"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest game number on February 20?It is not neccessary to use all the tables.
SELECT COUNT(nationality) FROM table_30083499_1 WHERE tournament = "2011 Apertura"
CREATE TABLE INST, Here is a database schema( table schema);
How many nationalities are there for the 2011 apertura?It is not neccessary to use all the tables.
SELECT COUNT(grid) FROM table_name_34 WHERE laps > 69
CREATE TABLE INST, Here is a database schema( table schema);
What is the grid total for cars with over 69 laps?It is not neccessary to use all the tables.
SELECT Manner of departure FROM table WHERE Incoming head coach = Mohammad Khakpour
CREATE TABLE INST, Here is a database schema( table schema);
What is the manner of departure when the incoming head coach is mohammad khakpour?.It is not neccessary to use all the tables.
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "8741"
CREATE TABLE INST, Here is a database schema( table schema);
Find the distinct last names of all the students who have president votes and whose advisor is 8741.It is not neccessary to use all the tables.
SELECT points_classification FROM table_name_93 WHERE young_rider_classification = "chris anker sørensen" AND general_classification = "christian vande velde"
CREATE TABLE INST, Here is a database schema( table schema);
What is the point classification with chris anker sørensen as the young rider classification and Christian vande velde as the general classification?It is not neccessary to use all the tables.
SELECT outcome FROM table_name_93 WHERE year < 1997
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome before 1997?It is not neccessary to use all the tables.
SELECT name FROM table_name_3 WHERE unit = "vyazniki assemblage"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the non mammal of the unit vyazniki assemblage?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Attendance = 72,949
CREATE TABLE INST, Here is a database schema( table schema);
What is the Result of the game with 72,949 in attendance?.It is not neccessary to use all the tables.
SELECT Played FROM table WHERE Tries against = correct as of 18:13 26 may 2008
CREATE TABLE INST, Here is a database schema( table schema);
What is the played number when the tries against shows correct as of 18:13 26 May 2008?.It is not neccessary to use all the tables.
SELECT att FROM table_name_75 WHERE time = "2:14"
CREATE TABLE INST, Here is a database schema( table schema);
Which Att has a Time of 2:14?It is not neccessary to use all the tables.
SELECT SUM Subframe # FROM table WHERE Bits = 18–22
CREATE TABLE INST, Here is a database schema( table schema);
What is the total subframe count with Bits of 18–22?.It is not neccessary to use all the tables.
SELECT engine FROM table_name_9 WHERE years = "1975-84" AND displacement = "1585cc"
CREATE TABLE INST, Here is a database schema( table schema);
What engine with years of 1975-84 has a displacement of 1585cc?It is not neccessary to use all the tables.
SELECT score FROM table_name_22 WHERE date = "april 8"
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Score that has the Date of april 8?It is not neccessary to use all the tables.
SELECT background_colour FROM table_name_43 WHERE type_of_sign = "mandatory instructions"
CREATE TABLE INST, Here is a database schema( table schema);
Which color is the background of the mandatory instructions?It is not neccessary to use all the tables.
SELECT winning_team FROM table_name_22 WHERE year = 2008
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning team in 2008?It is not neccessary to use all the tables.
SELECT speed FROM table_name_95 WHERE noaa = "37"
CREATE TABLE INST, Here is a database schema( table schema);
What is the speed of the higher harmonics that have an NOAA of 37?It is not neccessary to use all the tables.
SELECT language FROM table_name_87 WHERE translator = "ritah meltser and amatsyah porat"
CREATE TABLE INST, Here is a database schema( table schema);
What is the language for translators ritah meltser and amatsyah porat?It is not neccessary to use all the tables.
SELECT College/junior/club team FROM table WHERE Position = left wing AND Nationality = canada
CREATE TABLE INST, Here is a database schema( table schema);
What college/junior/club team is a left wing from Canada?.It is not neccessary to use all the tables.
SELECT Id AS "post_link", LENGTH(Body) AS length, Score FROM Posts WHERE OwnerUserId = '##UserId##' ORDER BY length DESC, Score
CREATE TABLE INST, Here is a database schema( table schema);
What are my longest answers.It is not neccessary to use all the tables.
SELECT name FROM artwork WHERE type <> "Program Talent Show"
CREATE TABLE INST, Here is a database schema( table schema);
List the name of artworks whose type is not 'Program Talent Show'.It is not neccessary to use all the tables.
SELECT demographic.insurance, demographic.ethnicity FROM demographic WHERE demographic.subject_id = "21796"
CREATE TABLE INST, Here is a database schema( table schema);
what is insurance and ethnicity of subject id 21796?It is not neccessary to use all the tables.
SELECT Launched FROM table WHERE Name = danaide
CREATE TABLE INST, Here is a database schema( table schema);
what is the name of the builder who launched in danaide.It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_46 WHERE team = "pramac d'antin ducati"
CREATE TABLE INST, Here is a database schema( table schema);
Question doesn't make sense since there is no team of pramac d'antin ducatiIt is not neccessary to use all the tables.
SELECT MIN(total) FROM table_name_24 WHERE bronze < 2 AND rank > 2 AND silver < 1
CREATE TABLE INST, Here is a database schema( table schema);
Name the least total when bronze is less than 2 and rank is more than 2 with silver less than 1It is not neccessary to use all the tables.
SELECT other FROM table_name_15 WHERE xdsl = "78.2%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the other for a 78.2% xDSL?It is not neccessary to use all the tables.
SELECT pronunciation_b FROM table_name_56 WHERE meaning_a = "grind"
CREATE TABLE INST, Here is a database schema( table schema);
Name the pronunciation b for meaning of grindIt is not neccessary to use all the tables.
SELECT driver FROM table_name_69 WHERE grid > 9 AND laps < 26 AND constructor = "ferrari"
CREATE TABLE INST, Here is a database schema( table schema);
I want the driver for ferrari who made Laps less than 26 and grids more than 9It is not neccessary to use all the tables.
SELECT Lyrics (l) / Music (m) FROM table WHERE Draw = 5
CREATE TABLE INST, Here is a database schema( table schema);
What are the Lyrics (l) / Music (m) when the draw was 5?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_38 WHERE notes = "qs" AND country = "china"
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank for the man from China with notes of QS?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Time (seconds) < 5.22
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the record for a time in seconds smaller than 5.22..It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Height = m (ft 1in)
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name of the Player with a Height of m (ft 1in)?.It is not neccessary to use all the tables.
SELECT stop_no FROM table_name_23 WHERE destination = "perth" AND line = "midland"
CREATE TABLE INST, Here is a database schema( table schema);
What is Stop No. when Destination is Perth and when Line is Midland?It is not neccessary to use all the tables.
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'drug overdose- general - multiple agents ingested')
CREATE TABLE INST, Here is a database schema( table schema);
how much does the cost of diagnosing drug overdose- general - multiple agents ingested cost?It is not neccessary to use all the tables.
SELECT "High assists" FROM table_55336 WHERE "High rebounds" = 'boozer (13)'
CREATE TABLE INST, Here is a database schema( table schema);
For boozer (13) what is the high assists and high rebounds?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab."CATEGORY" = "Hematology"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose admission type is emergency and lab test category is hematology?It is not neccessary to use all the tables.
SELECT COUNT Incumbent FROM table WHERE District = Louisiana 5
CREATE TABLE INST, Here is a database schema( table schema);
How many incumbents are there in district Louisiana 5?.It is not neccessary to use all the tables.
SELECT Early Modern English FROM table WHERE Example = bōg > "bough"; plōg > plōh > "plough"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Early Modern English phonology used in the example bōg > "bough"; plōg > plōh > "plough"?.It is not neccessary to use all the tables.
SELECT AVG Highest Position FROM table WHERE Album Title = unwritten
CREATE TABLE INST, Here is a database schema( table schema);
What is the average high position for the album unwritten?.It is not neccessary to use all the tables.
SELECT home FROM table_name_71 WHERE date = "april 3"
CREATE TABLE INST, Here is a database schema( table schema);
Where was home on April 3?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_14102379_4 WHERE stadium = "Cotton Bowl"
CREATE TABLE INST, Here is a database schema( table schema);
how many attendance with stadium being cotton bowlIt is not neccessary to use all the tables.
SELECT COUNT("Overall Rank") FROM table_57926 WHERE "Rating/Share 18\u201349" = '4.5/11' AND "Rating" < '8.2'
CREATE TABLE INST, Here is a database schema( table schema);
What is the overall rank with rating smaller than 8.2 and rating share of 4.5/11?It is not neccessary to use all the tables.
SELECT comedians FROM table_23122988_1 WHERE location = "Birmingham Hippodrome"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the comedians during the episode located in Birmingham Hippodrome?It is not neccessary to use all the tables.
SELECT date FROM table_name_16 WHERE label = "alfa records" AND format = "cd" AND catalog = "alca-9201"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the label Alfa records a CD format and an alca-9201 catalog?It is not neccessary to use all the tables.