sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Notes FROM table WHERE Rank > 4 AND Country = south korea
CREATE TABLE INST, Here is a database schema( table schema);
What shows for notes when rank is more than 4, and country is South Korea?.It is not neccessary to use all the tables.
SELECT team FROM table_17058226_5 WHERE high_assists = "Sebastian Telfair (7)"
CREATE TABLE INST, Here is a database schema( table schema);
What opposing team was playing when sebastian telfair (7) had the highest assists?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Surface = clay AND Opponent = jean-julien rojer
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the match against Jean-Julien Rojer, on a clay surface?.It is not neccessary to use all the tables.
SELECT 1st leg score* FROM table WHERE Opponent = Steaua Bucureşti
CREATE TABLE INST, Here is a database schema( table schema);
How many goals did each team score in the first leg of the match between Liverpool and Steaua Bucureşti?.It is not neccessary to use all the tables.
SELECT Callsign FROM table WHERE Area served = brisbane AND Freq currently = 4rph
CREATE TABLE INST, Here is a database schema( table schema);
What is the Callsign in Brisbane with a Freq currently of 4rph?.It is not neccessary to use all the tables.
SELECT release_date FROM table_name_31 WHERE title = "aladdin time"
CREATE TABLE INST, Here is a database schema( table schema);
What is Release Date when Title is Aladdin Time?It is not neccessary to use all the tables.
SELECT Partner FROM table WHERE Opponents in the final = florian mayer & alexander waske
CREATE TABLE INST, Here is a database schema( table schema);
Who is the partner facing the opponents florian Mayer & alexander waske in the final?.It is not neccessary to use all the tables.
SELECT COUNT Record FROM table WHERE Date = November 27
CREATE TABLE INST, Here is a database schema( table schema);
How many games were played on november 27?.It is not neccessary to use all the tables.
SELECT 1998 FROM table WHERE 2002 = 2–4
CREATE TABLE INST, Here is a database schema( table schema);
Which 1998 has a 2002 of 2–4?.It is not neccessary to use all the tables.
SELECT Constellation FROM table WHERE Right ascension ( J2000 ) = 20h56m40s
CREATE TABLE INST, Here is a database schema( table schema);
What Constellation has a 20h56m40s Right Ascension (J2000)?.It is not neccessary to use all the tables.
SELECT district FROM table_1805191_50 WHERE party = "Democratic" AND first_elected = 1998
CREATE TABLE INST, Here is a database schema( table schema);
What district first elected a Democratic incumbent in 1998?It is not neccessary to use all the tables.
SELECT COUNT(date) FROM table_12206918_2 WHERE opponent = "Pernell Whitaker"
CREATE TABLE INST, Here is a database schema( table schema);
How many times was pernell whitaker an opponent?It is not neccessary to use all the tables.
SELECT MAX Opened FROM table WHERE System = c-train AND Daily ridership < 269,600
CREATE TABLE INST, Here is a database schema( table schema);
Which Opened has a System of c-train, and a Daily ridership smaller than 269,600?.It is not neccessary to use all the tables.
SELECT representative_work FROM table_name_20 WHERE year > 2005 AND result = "nominated" AND award = "best variety show host"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the Representative Work in a year later than 2005 with a Result of nominated and an Award of best variety show host?It is not neccessary to use all the tables.
SELECT Other Mozilla FROM table WHERE Opera = 2.29%
CREATE TABLE INST, Here is a database schema( table schema);
What percentage of users were using other Mozilla browsers during the period in which 2.29% were using Opera?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Men's Open = nsw AND Men's 35s = qld AND Year > 1983
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue later than 1983 with Men's Open of NSW and Men's 35 of QLD?.It is not neccessary to use all the tables.
SELECT result FROM table_name_94 WHERE time___et__ = "12:30pm" AND location = "shea stadium"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the game at the Shea Stadium at 12:30pm (ET)?It is not neccessary to use all the tables.
SELECT Income poverty f FROM table WHERE District = San Juan
CREATE TABLE INST, Here is a database schema( table schema);
How low was the San Juan income?.It is not neccessary to use all the tables.
SELECT Engine FROM table WHERE Chassis = march 90ca
CREATE TABLE INST, Here is a database schema( table schema);
What car has a March 90ca Chassis?.It is not neccessary to use all the tables.
SELECT Set 1 FROM table WHERE Time = 13:00 AND Total = 97–74
CREATE TABLE INST, Here is a database schema( table schema);
What is the set 1 when the time is 13:00, and total is 97–74?.It is not neccessary to use all the tables.
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 739) AND icustays.outtime IS NULL) AN...
CREATE TABLE INST, Here is a database schema( table schema);
how many days has passed since the last time patient 739 on the current intensive care unit visit took a .9% normal saline intake?It is not neccessary to use all the tables.
SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the name of the party that has the most delegates.It is not neccessary to use all the tables.
SELECT Children Together FROM table WHERE Deceased Spouse = Dennis Hawley
CREATE TABLE INST, Here is a database schema( table schema);
How many children did Dennis Hawley have at his time of death?.It is not neccessary to use all the tables.
SELECT Poles FROM table WHERE Pts = 81
CREATE TABLE INST, Here is a database schema( table schema);
what's the poles with pts being 81.It is not neccessary to use all the tables.
SELECT AVG Drawn FROM table WHERE Played > 42
CREATE TABLE INST, Here is a database schema( table schema);
What average drawn has a played greater than 42?.It is not neccessary to use all the tables.
SELECT DEPT_CODE, SUM(CRS_CREDIT) FROM COURSE GROUP BY DEPT_CODE ORDER BY DEPT_CODE
CREATE TABLE INST, Here is a database schema( table schema);
Bar chart of sum crs credit from each dept code, I want to order from low to high by the bars.It is not neccessary to use all the tables.
SELECT winning_mentor FROM table_16331144_1 WHERE season = "Two"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning mentor in season two?It is not neccessary to use all the tables.
SELECT Method FROM table WHERE Record = 11-1
CREATE TABLE INST, Here is a database schema( table schema);
Which method has the record of 11-1?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Record = 15–15
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent at the game when the record was 15–15?.It is not neccessary to use all the tables.
SELECT COUNT Duration (days) FROM table WHERE Crew = Vladimir Vasyutin , Alexander Volkov
CREATE TABLE INST, Here is a database schema( table schema);
Name the duration for vladimir vasyutin , alexander volkov.It is not neccessary to use all the tables.
SELECT venue FROM table_name_3 WHERE against = 15 AND date = "10/11/2001"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the match on 10/11/2001 against 15?It is not neccessary to use all the tables.
SELECT record FROM table_name_65 WHERE date = "november 7"
CREATE TABLE INST, Here is a database schema( table schema);
what team scored on november 7It is not neccessary to use all the tables.
SELECT Drawn FROM table WHERE Points for = 402
CREATE TABLE INST, Here is a database schema( table schema);
What is the drawn when there are 402 points?.It is not neccessary to use all the tables.
SELECT 1953 FROM table_name_48 WHERE 1949 = "2" AND 1952 = "3"
CREATE TABLE INST, Here is a database schema( table schema);
What 1953 has 2 as a 1949 and 3 as 1952?It is not neccessary to use all the tables.
SELECT COUNT Economy FROM table WHERE BBI = 2/19
CREATE TABLE INST, Here is a database schema( table schema);
How many economy stats for the player with 2/19 BBI?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home = suns
CREATE TABLE INST, Here is a database schema( table schema);
On what date was there a competition in which the home team was the Suns?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Prod. Code = 40811-002
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of the episode with production code 40811-002?.It is not neccessary to use all the tables.
SELECT location FROM table_name_23 WHERE name = "pine valley"
CREATE TABLE INST, Here is a database schema( table schema);
Where is pine valley?It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Score = 136-134
CREATE TABLE INST, Here is a database schema( table schema);
What home has 136-134 as the score?.It is not neccessary to use all the tables.
SELECT mixed_doubles FROM table_15001681_1 WHERE womens_singles = "Michaela Ritter" AND mens_singles = "Armand Jehle"
CREATE TABLE INST, Here is a database schema( table schema);
In 2001 where the mens singles is armand jehle and the womens singles is michaela ritter who are the mixed doublesIt is not neccessary to use all the tables.
SELECT date FROM table_name_91 WHERE outcome = "runner up" AND opponent = "lu jiaxiang"
CREATE TABLE INST, Here is a database schema( table schema);
What is Date when Outcome is "Runner Up" and when Opponent is "Lu Jiaxiang"?It is not neccessary to use all the tables.
SELECT type FROM table_1602620_1 WHERE elected = 1980
CREATE TABLE INST, Here is a database schema( table schema);
What type had an election day in 1980It is not neccessary to use all the tables.
SELECT score FROM table_name_40 WHERE record = "9-24"
CREATE TABLE INST, Here is a database schema( table schema);
With a Record of 9-24 what was the Score?It is not neccessary to use all the tables.
SELECT away_team FROM table_name_64 WHERE venue = "arden street oval"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opposing team at the match played at the Arden Street Oval?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE College = Stanford
CREATE TABLE INST, Here is a database schema( table schema);
Which players attend Stanford college?.It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_93 WHERE beer_name = "maggs magnificent mild" AND prize = "gold medal" AND category = "mild and porter" AND competition = "siba south east region beer competition"
CREATE TABLE INST, Here is a database schema( table schema);
What year did maggs magnificent mild win a gold medal in the mild and porter category at the siba south east region beer competition?It is not neccessary to use all the tables.
SELECT COUNT Role FROM table WHERE 2011 Off-Broadway Revival = MJ Rodriguez
CREATE TABLE INST, Here is a database schema( table schema);
How many times was mj rodriguez cast?.It is not neccessary to use all the tables.
SELECT race FROM table_name_24 WHERE track = "pocono" AND date = "08-02-2008"
CREATE TABLE INST, Here is a database schema( table schema);
What race happened at pocono on 08-02-2008?It is not neccessary to use all the tables.
SELECT Country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name
CREATE TABLE INST, Here is a database schema( table schema);
How many players are from each country. Show a pie chart.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Runner-Up = River Plate
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score when River Plate was the runner-up?.It is not neccessary to use all the tables.
SELECT MIN(gold) FROM table_name_34 WHERE bronze > 6
CREATE TABLE INST, Here is a database schema( table schema);
Which Gold has a Bronze larger than 6?It is not neccessary to use all the tables.
SELECT Greek Designation FROM table WHERE City = riverside
CREATE TABLE INST, Here is a database schema( table schema);
What's the greek designation of the city riverside?.It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Location = veterans stadium AND Game > 3 AND Time = 2:21
CREATE TABLE INST, Here is a database schema( table schema);
what is the attendance when the location is veterans stadium, the game is more than 3 and the time is 2:21?.It is not neccessary to use all the tables.
SELECT away FROM table_name_40 WHERE round = "second round"
CREATE TABLE INST, Here is a database schema( table schema);
What is the away where the round is the second round?It is not neccessary to use all the tables.
SELECT run_1 FROM table_name_15 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 Attendance FROM table 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 high_rebounds FROM table_name_50 WHERE high_assists = "jason kidd (13)"
CREATE TABLE INST, Here is a database schema( table schema);
What is High Rebounds when High Assists is "Jason Kidd (13)"?It is not neccessary to use all the tables.
SELECT MIN(first_elected) FROM table_name_53 WHERE district = "south carolina 2"
CREATE TABLE INST, Here is a database schema( table schema);
Which First elected has a District of south carolina 2?It is not neccessary to use all the tables.
SELECT 2012–13 FROM table WHERE 2011–12 = dnp AND Event = autumn gold
CREATE TABLE INST, Here is a database schema( table schema);
what is 2012-13 when 2011-12 is dnp and event is autumn gold?.It is not neccessary to use all the tables.
SELECT MAX(league_cup_goals) FROM table_name_6 WHERE club = "hartlepool"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of League Cup goals that were scored by Hartlepool?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Leading scorer = ricky davis (20)
CREATE TABLE INST, Here is a database schema( table schema);
When has a Leading scorer of ricky davis (20)?.It is not neccessary to use all the tables.
SELECT score FROM table_name_97 WHERE report = "fifa" AND date = "october 13, 2007"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the FIFA report on October 13 2007?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.admission_location = "EMERGENCY ROOM ADMIT" AND diagnoses.icd9_code = "78559"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients are admitted under emergency room admit and diagnosed with icd9 code 78559?It is not neccessary to use all the tables.
SELECT power FROM table_name_40 WHERE years = "1975-84"
CREATE TABLE INST, Here is a database schema( table schema);
What is the power for the years 1975-84?It is not neccessary to use all the tables.
SELECT MAX Neutral Losses FROM table WHERE Neutral Wins = 0 AND Home Losses = 0 AND Away Losses < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest neutral losses of the institution with 0 neutral wins, 0 home losses, and less than 0 away losses?.It is not neccessary to use all the tables.
SELECT record FROM table_name_75 WHERE date = "april 15"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record after the April 15 game?It is not neccessary to use all the tables.
SELECT production_code FROM table_22181917_2 WHERE us_viewers__millions_ = "8.56"
CREATE TABLE INST, Here is a database schema( table schema);
What is the production code for the episode with 8.56 million U.S. viewers?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Result = 1st AND Venue = melbourne , australia AND Extra = 100 m
CREATE TABLE INST, Here is a database schema( table schema);
Result of 1st, and a Venue of melbourne , australia, and a Extra of 100 m happened in which year?.It is not neccessary to use all the tables.
SELECT AVG(pop_¹) FROM table_name_75 WHERE region = "chūgoku" AND prefecture = "okayama"
CREATE TABLE INST, Here is a database schema( table schema);
Name the average pop for chūgoku and prefecture of okayamaIt is not neccessary to use all the tables.
SELECT COUNT Localities FROM table WHERE Population density (per km²) = 2.5
CREATE TABLE INST, Here is a database schema( table schema);
How many time is the population density (per km²) is 2.5?.It is not neccessary to use all the tables.
SELECT MAX Stats FROM table WHERE Pitcher = Doug Davis
CREATE TABLE INST, Here is a database schema( table schema);
What are Doug Davis' maximum pitching stats?.It is not neccessary to use all the tables.
SELECT Atsushi Aoki FROM table WHERE Black Tiger V = ibushi (16:35)
CREATE TABLE INST, Here is a database schema( table schema);
What is he Atsushi Aoki when the Black Tiger V is ibushi (16:35)?.It is not neccessary to use all the tables.
SELECT Championship Titles FROM table WHERE Fastest Laps < 3 AND Podiums = 22
CREATE TABLE INST, Here is a database schema( table schema);
How many titles for the nation with less than 3 fastest laps and 22 podiums?.It is not neccessary to use all the tables.
SELECT team__number1 FROM table_name_12 WHERE team__number2 = "akasvayu girona"
CREATE TABLE INST, Here is a database schema( table schema);
with team #2 as akasvayu girona what is team #1?It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Award = drama desk award AND Nominated Work = the mineola twins
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest year with a Drama Desk award when the Mineola Twins was a nominated work?.It is not neccessary to use all the tables.
SELECT Opposition FROM table WHERE Score = 37 - 28
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opposition when the score is 37 - 28?.It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Opening Week Nett Gross < 99,00,00,000 AND Movie = jab tak hai jaan AND Year > 2012
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest rank of Jab Tak Hai Jaan, which has an opening week net gross less than 99,00,00,000 and was after 2012?.It is not neccessary to use all the tables.
SELECT COUNT January 15-16 FROM table WHERE August 21-22 = 155
CREATE TABLE INST, Here is a database schema( table schema);
How many datas were recorded on January 15-16 if August 21-22 is 155?.It is not neccessary to use all the tables.
SELECT PC demo FROM table WHERE C64 demo = Tower Power (Camelot)
CREATE TABLE INST, Here is a database schema( table schema);
What won best pc demo when tower power (camelot) won best c64 demo?.It is not neccessary to use all the tables.
SELECT player FROM table_name_74 WHERE long = "5" AND yards = "6"
CREATE TABLE INST, Here is a database schema( table schema);
Which Player had a Long of 5 and Yards of 6?It is not neccessary to use all the tables.
SELECT Bleeding time FROM table WHERE Condition = Aspirin
CREATE TABLE INST, Here is a database schema( table schema);
What kind of bleeding does aspirin cause?.It is not neccessary to use all the tables.
SELECT Starting_Year FROM technician WHERE Team = "CLE" INTERSECT SELECT Starting_Year FROM technician WHERE Team = "CWS"
CREATE TABLE INST, Here is a database schema( table schema);
Show the starting years shared by technicians from team "CLE" and "CWS".It is not neccessary to use all the tables.
SELECT 2011 FROM table WHERE Tournament = miami masters
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE 2011 PERFORMANCE AT THE MIAMI MASTERS?.It is not neccessary to use all the tables.
SELECT Film FROM table 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 To par FROM table WHERE Score = 70-76-68-214
CREATE TABLE INST, Here is a database schema( table schema);
Who has the par score of 70-76-68-214?.It is not neccessary to use all the tables.
SELECT record FROM table_11391448_2 WHERE week = 7
CREATE TABLE INST, Here is a database schema( table schema);
What was the record at week 7It is not neccessary to use all the tables.
SELECT "team" FROM table_204_468 WHERE id = 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the name of the first team on this chart ?It is not neccessary to use all the tables.
SELECT T1.title, T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'
CREATE TABLE INST, Here is a database schema( table schema);
Show the movie titles and book titles for all companies in China.It is not neccessary to use all the tables.
SELECT Police_force FROM county_public_safety WHERE LOCATION = "East" INTERSECT SELECT Police_force FROM county_public_safety WHERE LOCATION = "West"
CREATE TABLE INST, Here is a database schema( table schema);
Show the police force shared by counties with location on the east and west.It is not neccessary to use all the tables.
SELECT SUM Drawn FROM table WHERE Played > 14
CREATE TABLE INST, Here is a database schema( table schema);
What is the whole of Drawn that has a Played larger than 14?.It is not neccessary to use all the tables.
SELECT MAX Gold FROM table WHERE Total < 3 AND Rank = 5 AND Silver > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Games = 2009 hanoi
CREATE TABLE INST, Here is a database schema( table schema);
What was the rank in the 2009 Hanoi Games?.It is not neccessary to use all the tables.
SELECT Class FROM table WHERE Wheel arrangement = 2-8-2 AND Quantity made = 25
CREATE TABLE INST, Here is a database schema( table schema);
What is the locomotive class that has a wheel arrangement of 2-8-2 and a quantity made of 25?.It is not neccessary to use all the tables.
SELECT Original title FROM table WHERE Film title used in nomination = Lion's Den
CREATE TABLE INST, Here is a database schema( table schema);
Whatis the original title for lion's den?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = july 21
CREATE TABLE INST, Here is a database schema( table schema);
What was the opponent for july 21?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.dob_year < "1850"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose admission location is emergency room admit and year of birth is less than 1850?It is not neccessary to use all the tables.
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id WHERE (area.area LIKE '%Ancient Civilizations and Biblical Studies%' OR course.description LIKE '%Ancient Civilizations and Biblical Studies%' OR course.name LIKE '%Ancient Civilizations and Bi...
CREATE TABLE INST, Here is a database schema( table schema);
Are there any Ancient Civilizations and Biblical Studies courses which have no prerequisites ?It is not neccessary to use all the tables.
SELECT Current Streak FROM table WHERE Last Meeting = 12/5/1987
CREATE TABLE INST, Here is a database schema( table schema);
if they played last on 12/5/1987 what is their record.It is not neccessary to use all the tables.
SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'ATLANTA' AND ground_service.city_code = city.city_code
CREATE TABLE INST, Here is a database schema( table schema);
what kind of ground transportation is available in ATLANTAIt is not neccessary to use all the tables.
SELECT MAX(round) FROM table_name_34 WHERE nationality = "canada" AND draft < 1970 AND pick = 7
CREATE TABLE INST, Here is a database schema( table schema);
What round had Canada with a draft of 1970 and a pick of 7?It is not neccessary to use all the tables.