sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT catalogue FROM table_name_39 WHERE format = "cd remastered with 3 bonus tracks"
CREATE TABLE INST, Here is a database schema( table schema);
Which catalogue has a formate of "CD Remastered with 3 bonus tracks"?It is not neccessary to use all the tables.
SELECT year FROM table_name_56 WHERE league = "usl a-league" AND playoffs = "conference finals"
CREATE TABLE INST, Here is a database schema( table schema);
when did the usl a-league have conference finals?It is not neccessary to use all the tables.
SELECT Carriers FROM table WHERE Rank = 20
CREATE TABLE INST, Here is a database schema( table schema);
Which carrier is ranked 20?.It is not neccessary to use all the tables.
SELECT COUNT Title FROM table WHERE Directed by = Sarah Pia Anderson
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were directed by Sarah Pia Anderson?.It is not neccessary to use all the tables.
SELECT Net profit (US $m) FROM table WHERE Revenue (US $million) = 150.6
CREATE TABLE INST, Here is a database schema( table schema);
How much is the net profit when the revenue is 150.6 million dollars?.It is not neccessary to use all the tables.
SELECT COUNT(height) FROM table_name_36 WHERE current_club = "alba berlin" AND player = "patrick femerling"
CREATE TABLE INST, Here is a database schema( table schema);
What is the height of Patrick Femerling of the Alba Berlin club?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
Where does Collingwood play their games?.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_61 WHERE record = "14-10"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the visitor with the 14-10 record?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Draw = 3
CREATE TABLE INST, Here is a database schema( table schema);
In what place was the song that had a draw of 3?.It is not neccessary to use all the tables.
SELECT Player_name FROM player ORDER BY Votes
CREATE TABLE INST, Here is a database schema( table schema);
List the names of players in ascending order of votes.It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Title = "Responsible Parties"
CREATE TABLE INST, Here is a database schema( table schema);
What date did the episode called "Responsible Parties" air on?.It is not neccessary to use all the tables.
SELECT Manner of departure FROM table WHERE Date of appointment = 24 May 2010
CREATE TABLE INST, Here is a database schema( table schema);
What is the manner of departure for the date of appointment 24 may 2010?.It is not neccessary to use all the tables.
SELECT round FROM table_name_80 WHERE winning_driver = "uwe alzen" AND circuit = "sepang international circuit"
CREATE TABLE INST, Here is a database schema( table schema);
Which round had a winning driver of Uwe Alzen at the Sepang International circuit?It is not neccessary to use all the tables.
SELECT label FROM table_name_52 WHERE code = "cocy-78365"
CREATE TABLE INST, Here is a database schema( table schema);
What Label has a Code of cocy-78365?It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Date = december 25, 1925
CREATE TABLE INST, Here is a database schema( table schema);
Who played on December 25, 1925?.It is not neccessary to use all the tables.
SELECT MAX Floors FROM table WHERE Name = detroit marriott at the renaissance center
CREATE TABLE INST, Here is a database schema( table schema);
How many floors does detroit marriott at the renaissance center have?.It is not neccessary to use all the tables.
SELECT AVG(area__km²_) FROM table_name_10 WHERE density___km²_ = 263
CREATE TABLE INST, Here is a database schema( table schema);
What's the Area with a Density of 263?It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_77 WHERE gold > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Total with a Gold that is larger than 4?It is not neccessary to use all the tables.
SELECT Year Built FROM table WHERE Location of the Church = florø
CREATE TABLE INST, Here is a database schema( table schema);
In what year was the church located in florø built?.It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Opponents in the final = mark edmondson sherwood stewart AND Tournament = dallas , u.s.
CREATE TABLE INST, Here is a database schema( table schema);
which Surface has Opponents in the final of mark edmondson sherwood stewart, and a Tournament of dallas , u.s.?.It is not neccessary to use all the tables.
SELECT tournament_venue__city_ FROM table_28365816_2 WHERE conference = "Missouri Valley conference"
CREATE TABLE INST, Here is a database schema( table schema);
What tournament venue is listed during the Missouri Valley Conference?It is not neccessary to use all the tables.
SELECT _number_of_bids FROM table_name_98 WHERE conference = "atlantic 10"
CREATE TABLE INST, Here is a database schema( table schema);
How many bids does Atlantic 10 have?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE To par = e
CREATE TABLE INST, Here is a database schema( table schema);
What place has a to par of E?.It is not neccessary to use all the tables.
SELECT COUNT(population__1991_) FROM table_2562572_2 WHERE city___municipality = "Bečej"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of 1991 populations named Bečej?It is not neccessary to use all the tables.
SELECT Tier FROM table WHERE Opponent in the final = manana shapakidze
CREATE TABLE INST, Here is a database schema( table schema);
What was the tier versus Manana Shapakidze?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_65 WHERE crowd > 23 OFFSET 327
CREATE TABLE INST, Here is a database schema( table schema);
When the Crowd is larger than 23327 what Home team is playing?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hypertension nos') AND STRFTIME('%y', diagnoses_icd.charttime) >= '2103') AS t1 JOIN (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hyperlipidemia nec/nos') AND STRFTIME('%y', diagnoses_icd.charttime) >= '2103') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month')
CREATE TABLE INST, Here is a database schema( table schema);
since 2103 how many patients were diagnosed with hypertension nos in the same month after they had previously been diagnosed with hyperlipidemia nec/nos?It is not neccessary to use all the tables.
SELECT cerclis_id FROM table_name_74 WHERE proposed = "12/30/1982" AND partially_deleted = "05/01/2003"
CREATE TABLE INST, Here is a database schema( table schema);
what is the cerclis ID when the site was proposed on 12/30/1982 and was partially deleted on 05/01/2003?It is not neccessary to use all the tables.
SELECT actor_in_moscow, _2007 FROM table_name_44 WHERE shipwreck = "leonty ibayev"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the 2007 actor from Moscow for the shipwreck of Leonty Ibayev?It is not neccessary to use all the tables.
SELECT top_10 FROM table_2597876_2 WHERE team_s_ = "#10 Phil Parsons Racing" AND avg_finish = "22.9"
CREATE TABLE INST, Here is a database schema( table schema);
What is every value of Top 10 when team is #10 Phil Parsons Racing and average finish is 22.9?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Country = south africa
CREATE TABLE INST, Here is a database schema( table schema);
Which player is from south africa?.It is not neccessary to use all the tables.
SELECT COUNT(train_number) FROM table_29301050_1 WHERE frequency = "Daily" AND arrival_lonavla = "12:25"
CREATE TABLE INST, Here is a database schema( table schema);
how many trains run daily to lonavla and arrive at 12:25It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Portuguese title = Um Filme Falado
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the film with the Portuguese title, Um Filme Falado? .It is not neccessary to use all the tables.
SELECT location FROM table_13710464_1 WHERE date = "May 20"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game played on may 20?It is not neccessary to use all the tables.
SELECT MIN("Episode") FROM table_30969 WHERE "Guest(s)" = 'Sarah Millican and Grayson Perry'
CREATE TABLE INST, Here is a database schema( table schema);
which episode did sarah millican and grayson perry appear inIt is not neccessary to use all the tables.
SELECT region FROM table_name_15 WHERE format = "cd" AND label = "mca"
CREATE TABLE INST, Here is a database schema( table schema);
Which region has the format CD and label MCA?It is not neccessary to use all the tables.
SELECT opponents FROM table_21092444_1 WHERE record = "2-1"
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponents for record of 2-1It is not neccessary to use all the tables.
SELECT MIN Points FROM table WHERE February < 1
CREATE TABLE INST, Here is a database schema( table schema);
How many Points a February smaller than 1 have?.It is not neccessary to use all the tables.
SELECT issue_price__bu_[_clarification_needed_] FROM table_name_57 WHERE mintage__proof_ = "29,586"
CREATE TABLE INST, Here is a database schema( table schema);
What's listed as the Issue Price (BU) [Clarification Needed] with a Mintage (Proof) of 29586?It is not neccessary to use all the tables.
SELECT COUNT Number of electorates (2009) FROM table WHERE Name = katol
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of electorates (2009) for Katol?.It is not neccessary to use all the tables.
SELECT AVG(games_played) FROM table_name_5 WHERE loses = 10 AND player = "bo oshoniyi" AND minutes > 1170
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Games Played for Bo Oshoniyi who had more than 1170 minutes and 10 loses?It is not neccessary to use all the tables.
SELECT venue FROM table_name_96 WHERE date = "1 june 1929" AND away_team = "richmond"
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue for the game on 1 June 1929 where Richmond was the away team?It is not neccessary to use all the tables.
SELECT AVG No.(s) FROM table WHERE Years for Rockets = 2004-05
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of years for the Houston Rockets 2004-05?.It is not neccessary to use all the tables.
SELECT captain_2 FROM table_name_87 WHERE result = "ireland by 8 runs"
CREATE TABLE INST, Here is a database schema( table schema);
Which Captain 2 has a Result of ireland by 8 runs?It is not neccessary to use all the tables.
SELECT dec___j2000__ FROM table_name_31 WHERE redshift__km__s__ = "1331 ± 3"
CREATE TABLE INST, Here is a database schema( table schema);
Which Dec. (J2000) has a Redshift (km/ s) of 1331 ± 3?It is not neccessary to use all the tables.
SELECT first_broadcast FROM table_29141354_2 WHERE episode = "02x07"
CREATE TABLE INST, Here is a database schema( table schema);
When was episode 02x07 first broadcast?It is not neccessary to use all the tables.
SELECT clubname FROM club WHERE clublocation = "AKW"
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of all the clubs at "AKW".It is not neccessary to use all the tables.
SELECT MIN AS $50___1_2_oz FROM table_name_59 WHERE year = 1997 AND $25___1_4_oz > 27 OFFSET 100
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE LOWEST $50-1/2 OZ COIN WITH A 1997 YEAR AND $25-1/4 OZ LARGER THAN $27100?It is not neccessary to use all the tables.
SELECT OVERALL FROM table WHERE PLYFF = (0-1) AND AWAY = (1-1)
CREATE TABLE INST, Here is a database schema( table schema);
Which Overall has a playoff record of (0-1) and an away record of (1-1)?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team = richmond
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team's score when richmond is away?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE NFL Recap = recap AND Game site = arrowhead stadium
CREATE TABLE INST, Here is a database schema( table schema);
What is the Time of the game at Arrowhead Stadium with an NFL Recap of recap?.It is not neccessary to use all the tables.
SELECT SUM(electors) FROM table_name_70 WHERE share_of_votes = "11,0%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of electors when the share of votes was 110%?It is not neccessary to use all the tables.
SELECT Away Team FROM table WHERE Date = june 9, 2015 AND Home Team = f1
CREATE TABLE INST, Here is a database schema( table schema);
Which away team played on June 9, 2015 with a home team of f1?.It is not neccessary to use all the tables.
SELECT date FROM table_name_12 WHERE home = "ny rangers"
CREATE TABLE INST, Here is a database schema( table schema);
What date did NY Rangers play at home?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "3" AND diagnoses.long_title = "Ulcer of other part of foot"
CREATE TABLE INST, Here is a database schema( table schema);
How many patients with ulcer of an other part of the foot stayed at hospital for more than 3 days?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Week > 8 AND Date = december 4, 1960
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent in a week over 8 on December 4, 1960?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent = algeria AND Location = porto-novo
CREATE TABLE INST, Here is a database schema( table schema);
What is the score from the game where Algeria is the opponent at Porto-Novo?.It is not neccessary to use all the tables.
SELECT Avg seek time [ms] FROM table WHERE Device < 3231
CREATE TABLE INST, Here is a database schema( table schema);
What is the avg seek time for a device that is less than 3231?.It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Score = 71-71-70-70=282
CREATE TABLE INST, Here is a database schema( table schema);
When the score was 71-71-70-70=282 what was the To par recorded?.It is not neccessary to use all the tables.
SELECT grid FROM table_name_84 WHERE team = "racing professionals"
CREATE TABLE INST, Here is a database schema( table schema);
What grid did the team racing professionals race on?It is not neccessary to use all the tables.
SELECT MAX(year_of_release) FROM table_name_40 WHERE label = "mca"
CREATE TABLE INST, Here is a database schema( table schema);
What was the last year MCA had a Release?It is not neccessary to use all the tables.
SELECT MIN Crowd FROM table WHERE Home team = footscray
CREATE TABLE INST, Here is a database schema( table schema);
What was the smallest crowd size at a home game for Footscray?.It is not neccessary to use all the tables.
SELECT Theme FROM table WHERE Result = advanced AND Week = vegas verdicts
CREATE TABLE INST, Here is a database schema( table schema);
What was the theme for Vegas Verdicts week with a result of Advanced?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_66 WHERE opponent = "pittsburgh steelers"
CREATE TABLE INST, Here is a database schema( table schema);
In the game where they played the Pittsburgh Steelers what was the attendance?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team = geelong
CREATE TABLE INST, Here is a database schema( table schema);
Where did Geelong play a home game?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Competition = international match AND Date = 1948-10-28
CREATE TABLE INST, Here is a database schema( table schema);
In 1948-10-28, in what Venue was the Competition of International Match held?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Winnings = $281,945
CREATE TABLE INST, Here is a database schema( table schema);
What year did the winnings equal $281,945?.It is not neccessary to use all the tables.
SELECT AVG(game) FROM table_name_5 WHERE record = "20-12"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of games with a record of 20-12?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Year(s) won = 1991
CREATE TABLE INST, Here is a database schema( table schema);
Who won in 1991?.It is not neccessary to use all the tables.
SELECT Time/Retired FROM table WHERE Constructor = maserati AND Laps = 90
CREATE TABLE INST, Here is a database schema( table schema);
what is the time/retired when the constructor is maserati and the laps is 90?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Actress = shelley winters
CREATE TABLE INST, Here is a database schema( table schema);
What year did Shelley Winters win?.It is not neccessary to use all the tables.
SELECT Largest ethnic group (2002) FROM table 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 Administrative capital FROM table WHERE LGA Name = Akuku-Toru
CREATE TABLE INST, Here is a database schema( table schema);
What is the administrative capital of LGA name Akuku-Toru?.It is not neccessary to use all the tables.
SELECT COUNT Drop FROM table WHERE Points < 65
CREATE TABLE INST, Here is a database schema( table schema);
When the points are less than 65 what is the drop #?.It is not neccessary to use all the tables.
SELECT writer FROM table_29039942_1 WHERE episode = 3
CREATE TABLE INST, Here is a database schema( table schema);
Who was the writer for episode 3?It is not neccessary to use all the tables.
SELECT Run 1 FROM table WHERE Team = italy (ita) italy i
CREATE TABLE INST, Here is a database schema( table schema);
What is Run 1, when Team is "Italy (ITA) Italy I"?.It is not neccessary to use all the tables.
SELECT COUNT Mintage FROM table WHERE Theme = 85th anniversary of vimy ridge AND Year > 2002
CREATE TABLE INST, Here is a database schema( table schema);
What was the total mintage for years after 2002 that had a 85th Anniversary of Vimy Ridge theme?.It is not neccessary to use all the tables.
SELECT * FROM table_train_111 WHERE plasma_creatinine >= 0.5
CREATE TABLE INST, Here is a database schema( table schema);
current plasma creatinine >= 0.5 mg / dlIt is not neccessary to use all the tables.
SELECT production_code FROM table_10935548_1 WHERE written_by = "José Molina" AND original_air_date = "October 12, 2004"
CREATE TABLE INST, Here is a database schema( table schema);
What is the production code of the episode written by José Molina that aired on October 12 2004?It is not neccessary to use all the tables.
SELECT COUNT Gold FROM table WHERE Bronze = 3 AND Rank > 7 AND Total < 5
CREATE TABLE INST, Here is a database schema( table schema);
How many golds for teams ranking below 7 with 3 bronze and less than 5 total medals?.It is not neccessary to use all the tables.
SELECT SUM(losses) FROM table_name_15 WHERE scored > 15 AND points > 16 AND played > 9
CREATE TABLE INST, Here is a database schema( table schema);
What's the sum of Losses that Scored larger than 15, has Points that's larger than 16, and Played that's larger than 9?It is not neccessary to use all the tables.
SELECT ISBN UK FROM table WHERE Author = dave martin AND ISBN US = n/a
CREATE TABLE INST, Here is a database schema( table schema);
What is ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"?.It is not neccessary to use all the tables.
SELECT position FROM table_27132791_3 WHERE college = "SMU"
CREATE TABLE INST, Here is a database schema( table schema);
If the college is SMU, what is the position?It is not neccessary to use all the tables.
SELECT team__number2 FROM table_name_31 WHERE team__number1 = "deport"
CREATE TABLE INST, Here is a database schema( table schema);
What is the team #2 with Deport as team #1?It is not neccessary to use all the tables.
SELECT field FROM table_name_7 WHERE date = "july 22"
CREATE TABLE INST, Here is a database schema( table schema);
What is the field of the game on July 22?It is not neccessary to use all the tables.
SELECT MAX Challenge Cup FROM table WHERE League < 2 AND Total > 2 AND League Cup > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the greatest Challenge Cup with a League smaller than 2, Total greater than 2, and a League Cup greater than 1?.It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Incumbent = Richard S. Whaley
CREATE TABLE INST, Here is a database schema( table schema);
What was the winning party when the incumbent was richard s. whaley?.It is not neccessary to use all the tables.
SELECT navigator FROM table_name_3 WHERE driver = "james"
CREATE TABLE INST, Here is a database schema( table schema);
What is the navigator for James?It is not neccessary to use all the tables.
SELECT Region (year) FROM table WHERE No. 7 = abigail AND No. 1 = sophia AND No. 5 = aaliyah
CREATE TABLE INST, Here is a database schema( table schema);
Which region (year) has Abigail at number 7, Sophia at number 1 and Aaliyah at number 5?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = 29-jun-2009
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for the game that was played on 29-Jun-2009?.It is not neccessary to use all the tables.
SELECT Africa FROM table WHERE Oceania = 67 (0.6%)
CREATE TABLE INST, Here is a database schema( table schema);
what will be the population of Africa when Oceania is 67 (0.6%).It is not neccessary to use all the tables.
SELECT Margin of victory FROM table WHERE Tournament = pga championship
CREATE TABLE INST, Here is a database schema( table schema);
What is the margin of victory for PGA Championship?.It is not neccessary to use all the tables.
SELECT english_name FROM table_name_54 WHERE color = "green"
CREATE TABLE INST, Here is a database schema( table schema);
Which English name has a Color of green?It is not neccessary to use all the tables.
SELECT record FROM table_name_13 WHERE game = "45"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record after game 45?It is not neccessary to use all the tables.
SELECT AVG Grid FROM table WHERE Time/Retired = +1 lap AND Driver = johnny herbert
CREATE TABLE INST, Here is a database schema( table schema);
What is the average grid for johnny herbert with a Time/Retired of +1 lap?.It is not neccessary to use all the tables.
SELECT date FROM table_name_23 WHERE result = "won" AND score = "1-0"
CREATE TABLE INST, Here is a database schema( table schema);
Which date has a Result of won and a Score of 1-0?It is not neccessary to use all the tables.
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and code , and group by attribute name.It is not neccessary to use all the tables.
SELECT city FROM table_name_17 WHERE prize = "$1,859,000"
CREATE TABLE INST, Here is a database schema( table schema);
What is the City when the Prize is $1859000?It is not neccessary to use all the tables.
SELECT film FROM table_name_47 WHERE ceremony = "19th" AND name = "jerome kern"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Film with winner Jerome Kern in the 19th Ceremony?It is not neccessary to use all the tables.
SELECT region_4_release FROM table_name_99 WHERE region_2_release = "july 20, 2009"
CREATE TABLE INST, Here is a database schema( table schema);
What is the region 4 release that has july 20 2009 as the region 2?It is not neccessary to use all the tables.