sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT tournament FROM table_name_9 WHERE score = "2–6 6–4 [10–8]"
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has a score of 2–6 6–4 [10–8]?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Result = w 20-17
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the result w 20-17?.It is not neccessary to use all the tables.
SELECT "Reported birth date" FROM table_44409 WHERE "Reported age" = '110 years, 185 days'
CREATE TABLE INST, Here is a database schema( table schema);
what is the reported birth date when the reported age is 110 years, 185 days?It is not neccessary to use all the tables.
SELECT Winner Season FROM table WHERE Year = 1998
CREATE TABLE INST, Here is a database schema( table schema);
Who won the season of 1998?.It is not neccessary to use all the tables.
SELECT Race FROM table WHERE Time = 17:11.572
CREATE TABLE INST, Here is a database schema( table schema);
Who holds the time of 17:11.572?.It is not neccessary to use all the tables.
SELECT er FROM table_15700367_6 WHERE runs_conceded = 368
CREATE TABLE INST, Here is a database schema( table schema);
What was the ER average for the player that conceded 368 runs?It is not neccessary to use all the tables.
SELECT userpics_free FROM table_name_18 WHERE registration = "open" AND yearly_cost_for_paid_account = "unknown" AND name = "kraslan"
CREATE TABLE INST, Here is a database schema( table schema);
What is Userpics Free when Registration is Open when Yearly Cost For Paid Account is "unknown" and when Name is Kraslan?It is not neccessary to use all the tables.
SELECT score__l__ = _score_in_legs, __s__ = _score_in_sets FROM table_name_51 WHERE year < 2012
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the score for score in legs and year less than 2012It is not neccessary to use all the tables.
SELECT total FROM table_150343_3 WHERE country_territory = "Venezuela"
CREATE TABLE INST, Here is a database schema( table schema);
What is Venezuela's total rank?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_13 WHERE fin_pos = "19"
CREATE TABLE INST, Here is a database schema( table schema);
What was the time of the driver with a finish position of 19?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_97 WHERE round = "sf" AND result = "0-0"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent of the match in round sf with a result of 0-0?It is not neccessary to use all the tables.
SELECT ihsaa_class FROM table_name_1 WHERE mascot = "musketeers"
CREATE TABLE INST, Here is a database schema( table schema);
What's the IHSAA Class when the mascot was the Musketeers?It is not neccessary to use all the tables.
SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance
CREATE TABLE INST, Here is a database schema( table schema);
Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.It is not neccessary to use all the tables.
SELECT Nickname(s) FROM table WHERE Enrollment (2013/14) = 436
CREATE TABLE INST, Here is a database schema( table schema);
What is the nickname of the team whose 2013/2014 enrollment is 436? .It is not neccessary to use all the tables.
SELECT "race" FROM table_204_630 WHERE id = (SELECT id FROM table_204_630 WHERE "race" = 'pocono 200') + 1
CREATE TABLE INST, Here is a database schema( table schema);
which race came next after the pocono 200 ?It is not neccessary to use all the tables.
SELECT position FROM table_name_40 WHERE races = "test driver"
CREATE TABLE INST, Here is a database schema( table schema);
If the Races is Test Driver what is the Position?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE To par > 5 AND Player = john mahaffey
CREATE TABLE INST, Here is a database schema( table schema);
What country has a to par larger than 5 and a player John Mahaffey?.It is not neccessary to use all the tables.
SELECT vca_155 FROM table_name_7 WHERE vcpc = "75km/h (47mph)"
CREATE TABLE INST, Here is a database schema( table schema);
If there is a VCPC of 75km/h (47mph) what is the VCA?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Away team = carlton
CREATE TABLE INST, Here is a database schema( table schema);
What is Away team Carlton's score?.It is not neccessary to use all the tables.
SELECT ungegn FROM table_name_40 WHERE khmer > ៑០០០០០០០០
CREATE TABLE INST, Here is a database schema( table schema);
What is the UNGEGN when the Khmer is greater than ៑០០០០០០០០?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Score = 2-1
CREATE TABLE INST, Here is a database schema( table schema);
Which team scored 2-1?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Date = september 10, 1979
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent on september 10, 1979?.It is not neccessary to use all the tables.
SELECT result FROM table_name_46 WHERE attendance = "69,365"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Result of the game with an Attendance of 69,365?It is not neccessary to use all the tables.
SELECT Season # FROM table WHERE Production code = 5M21
CREATE TABLE INST, Here is a database schema( table schema);
List all season numbers with production codes of 5m21..It is not neccessary to use all the tables.
SELECT DISTINCT dataset.datasetid, paper.year FROM dataset, keyphrase, paper, paperdataset, paperkeyphrase WHERE keyphrase.keyphrasename = 'deep learning' AND paperdataset.datasetid = dataset.datasetid AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paperkeyphrase.paperid = paperdataset.paperid AND paper.pap...
CREATE TABLE INST, Here is a database schema( table schema);
what was the first deep learning paper ?It is not neccessary to use all the tables.
SELECT demographic.diagnosis, prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Marilyn Norvell"
CREATE TABLE INST, Here is a database schema( table schema);
what is the primary disease and drug name of the patient marilyn norvell?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Date = september 25, 1995
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament was played on September 25, 1995?.It is not neccessary to use all the tables.
SELECT region_2 FROM table_191591_5 WHERE number_of_episodes = "25" AND dvd_title = "Catfights and Brawls"
CREATE TABLE INST, Here is a database schema( table schema);
Where are there 25 episodes in Catfights and Brawls?It is not neccessary to use all the tables.
SELECT no_in_series FROM table_23528223_2 WHERE directed_by = "Skipp Sudduth"
CREATE TABLE INST, Here is a database schema( table schema);
What's the series number of the episode directed by Skipp Sudduth?It is not neccessary to use all the tables.
SELECT MIN(altitude__mslm_) FROM table_1449169_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the minimum altitude (mslm) in all the commons?It is not neccessary to use all the tables.
SELECT works_number FROM table_name_76 WHERE builder = "avonside engine company" AND type = "4-6-0" AND number < 12 AND date = "december 1871"
CREATE TABLE INST, Here is a database schema( table schema);
Which Works number has a Builder of avonside engine company and a Type of 4-6-0 and a Number smaller than 12 and a Date of december 1871?It is not neccessary to use all the tables.
SELECT MAX 2002 FROM table WHERE 2008 > 19.5 AND 2006 < 24.5 AND 1999 = 18.3
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum 2002 figure when 2008 is 19.5, 2006 is less than 24.5 and 1999 is 18.3?.It is not neccessary to use all the tables.
SELECT "Record" FROM table_44154 WHERE "High assists" = 'lebron james (4)'
CREATE TABLE INST, Here is a database schema( table schema);
What was the record of the game when Lebron James (4) had the high assists?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 INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Perforation of intestine" AND prescriptions.route = "SL"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients are diagnosed for perforation of intestine and administered through si drug route?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = 41-46
CREATE TABLE INST, Here is a database schema( table schema);
Which date has a Record of 41-46?.It is not neccessary to use all the tables.
SELECT MAX Top-25 FROM table WHERE Events > 4 AND Wins = 2 AND Top-10 < 6
CREATE TABLE INST, Here is a database schema( table schema);
What was the larger number of players that played in 4 events that 2 wins but were less than 6 in the top 10?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Home Town = North Babylon, NY
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the player who's hometown is North Babylon, NY?.It is not neccessary to use all the tables.
SELECT player FROM table_name_49 WHERE place = "t1" AND country = "united states"
CREATE TABLE INST, Here is a database schema( table schema);
Which player had a position of t1 and played in the united states?It is not neccessary to use all the tables.
SELECT job, COUNT(job) FROM Person GROUP BY job
CREATE TABLE INST, Here is a database schema( table schema);
Compute the total the number of job across job as a pie chart.It is not neccessary to use all the tables.
SELECT MAX("Rank") FROM table_65296 WHERE "React" = '0.198' AND "Time" > '20.42'
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest rank for the react of 0.198, and the time more than 20.42?It is not neccessary to use all the tables.
SELECT soap_opera FROM table_name_10 WHERE years = "2000–2004, 2005β€”"
CREATE TABLE INST, Here is a database schema( table schema);
what is the soap opera when the years are 2000–2004 2005β€”?It is not neccessary to use all the tables.
SELECT Operating system version FROM table WHERE Storage ( flash ) = 128mb
CREATE TABLE INST, Here is a database schema( table schema);
Which operating system has a storage (flash) of 128MB?.It is not neccessary to use all the tables.
SELECT clubs FROM table_name_3 WHERE number_of_fixtures = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the Clubs when there are 4 for the number of fixtures?It is not neccessary to use all the tables.
SELECT Nominee FROM table WHERE Category = outstanding featured actor in a musical AND Result = nominated
CREATE TABLE INST, Here is a database schema( table schema);
What was nominee nominated for outstanding featured actor in a musical?.It is not neccessary to use all the tables.
SELECT location FROM table_1974632_1 WHERE type = "Private/Presbyterian"
CREATE TABLE INST, Here is a database schema( table schema);
where is the private/presbyterian instituteIt is not neccessary to use all the tables.
SELECT MAX(round) FROM table_name_16 WHERE name = "bob randall"
CREATE TABLE INST, Here is a database schema( table schema);
What round was Bob Randall selected in?It is not neccessary to use all the tables.
SELECT driver FROM table_name_45 WHERE grid = "18"
CREATE TABLE INST, Here is a database schema( table schema);
Which driver has grid value of 18?It is not neccessary to use all the tables.
SELECT MIN(league_goals) FROM table_name_46 WHERE fa_cup_apps = "0" AND total_apps = "1 (3)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest league goals that have 0 as the FA Cup Apps with 1 (3) as totals apps?It is not neccessary to use all the tables.
SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_68 WHERE tournament = "canadian open"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of first prizes in USD for the Canadian Open?It is not neccessary to use all the tables.
SELECT High points FROM table WHERE Location Attendance = united center 20,389
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high points at the United Center 20,389?.It is not neccessary to use all the tables.
SELECT "Captain" FROM table_52537 WHERE "Lost" = '13'
CREATE TABLE INST, Here is a database schema( table schema);
What Captain has Lost 13?It is not neccessary to use all the tables.
SELECT 2008 FROM table_name_79 WHERE tournament = "year end ranking"
CREATE TABLE INST, Here is a database schema( table schema);
what is 2008 when the tournament is year end ranking?It is not neccessary to use all the tables.
SELECT Catalog FROM table WHERE Region = world
CREATE TABLE INST, Here is a database schema( table schema);
Which catalog value has a region of world?.It is not neccessary to use all the tables.
SELECT "Player" FROM table_13138 WHERE "To par" = '7' AND "Country" = 'england'
CREATE TABLE INST, Here is a database schema( table schema);
Who was the player for England when the to par is 7?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Away team score = 12.11 (83)
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team that scored 12.11 (83)?.It is not neccessary to use all the tables.
SELECT MIN(tier) FROM table_name_68 WHERE postseason = "quarterfinalist"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest tier for a postseason result of quarterfinalist?It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Laps = 54
CREATE TABLE INST, Here is a database schema( table schema);
What is the make of the car that drove 54 laps?.It is not neccessary to use all the tables.
SELECT Studio FROM table WHERE Rank > 13 AND Gross = $83,531,958
CREATE TABLE INST, Here is a database schema( table schema);
Which studio grossed $83,531,958 and ranked lower than 13?.It is not neccessary to use all the tables.
SELECT MIN(group_stage) FROM table_1059743_2 WHERE points = "886.6"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest group to earn 886.6 points?It is not neccessary to use all the tables.
SELECT AVG Draft FROM table WHERE Round = 1 AND Nationality = canada AND Pick = 1 AND Player = vincent lecavalier
CREATE TABLE INST, Here is a database schema( table schema);
Which Draft has a Round of 1, a Nationality of canada, a Pick of 1, and a Player of vincent lecavalier?.It is not neccessary to use all the tables.
SELECT COUNT(nickname) FROM table_16432543_1 WHERE location = "Newark, DE"
CREATE TABLE INST, Here is a database schema( table schema);
How many nicknames does the school in Newark DE haveIt is not neccessary to use all the tables.
SELECT MAX(draw) FROM table_name_25 WHERE televoting < 2
CREATE TABLE INST, Here is a database schema( table schema);
Televoting smaller than 2 had what highest draw?It is not neccessary to use all the tables.
SELECT SUM(to_par) FROM table_name_32 WHERE total > 149 AND country = "united states" AND year_s__won = "1997"
CREATE TABLE INST, Here is a database schema( table schema);
How much To par has a Total larger than 149 and a Country of united states and a Year(s) won of 1997?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_42 WHERE result = "l 20-17"
CREATE TABLE INST, Here is a database schema( table schema);
How many were in attendance when the result was l 20-17?It is not neccessary to use all the tables.
SELECT year_s__won FROM table_name_76 WHERE to_par = "+5"
CREATE TABLE INST, Here is a database schema( table schema);
What are the years won when the to par is +5?It is not neccessary to use all the tables.
SELECT away_captain FROM table_name_81 WHERE venue = "kingsmead"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away captain for Kingsmead?It is not neccessary to use all the tables.
SELECT country FROM table_name_90 WHERE wins > 2 AND rank = 2 AND name = "federico bahamontes"
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has Wins larger than 2 and a Rank of 2 and a Name of federico bahamontes?It is not neccessary to use all the tables.
SELECT "Sequencer" FROM table_17773 WHERE "Ion Torrent PGM" = '200-400 bp'
CREATE TABLE INST, Here is a database schema( table schema);
What is the sequencer when ion torrent pgm is 200-400 bp?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = july 26
CREATE TABLE INST, Here is a database schema( table schema);
What was the record for July 26?.It is not neccessary to use all the tables.
SELECT MAX(altitude__mslm_) FROM table_name_47 WHERE city = "legnano" AND population > 59492
CREATE TABLE INST, Here is a database schema( table schema);
Which Altitude (mslm) is the highest one that has a City of legnano and a Population larger than 59492?It is not neccessary to use all the tables.
SELECT MAX Field Goals FROM table WHERE Assists = 27
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest number of goals did the player with 27 asists score.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Opponent in Final = john mcenroe
CREATE TABLE INST, Here is a database schema( table schema);
What date has the opponent competing in the final of john mcenroe?.It is not neccessary to use all the tables.
SELECT team FROM table_name_70 WHERE run_3 = "1:24.00"
CREATE TABLE INST, Here is a database schema( table schema);
What is Team when Run 3 is 1:24.00?It is not neccessary to use all the tables.
SELECT State (class) FROM table WHERE Date of successors formal installation = June 22, 1868
CREATE TABLE INST, Here is a database schema( table schema);
List all state classes when successors were formally installed on June 22, 1868..It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Mutya ng Pilipinas Asia Pacific = Ritchie Ocampo
CREATE TABLE INST, Here is a database schema( table schema);
List the number of years where ritchie ocampo was the mutya ng pilipinas winner..It is not neccessary to use all the tables.
SELECT AVG(bronze) FROM table_name_36 WHERE gold > 1 AND total > 11 AND silver > 5
CREATE TABLE INST, Here is a database schema( table schema);
Which Bronze has a Gold larger than 1 and a Total larger than 11 and a Silver larger than 5?It is not neccessary to use all the tables.
SELECT MAX(season__number) FROM table_25800134_14 WHERE airdate = "February 2, 1970"
CREATE TABLE INST, Here is a database schema( table schema);
What is the season # for the episode with air date february 2 1970?It is not neccessary to use all the tables.
SELECT result FROM table_name_91 WHERE week = 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the week 1 game?It is not neccessary to use all the tables.
SELECT laps FROM table_name_61 WHERE manufacturer = "yamaha" AND grid = 3
CREATE TABLE INST, Here is a database schema( table schema);
How many laps did the driver with the yamaha manufacturer go on grid 3?It is not neccessary to use all the tables.
SELECT series_4 FROM table_name_70 WHERE series_1 = "sarah newman"
CREATE TABLE INST, Here is a database schema( table schema);
What is the series 4 with sarah newman in series 1?It is not neccessary to use all the tables.
SELECT manuals FROM table WHERE kind = r AND opus = 144
CREATE TABLE INST, Here is a database schema( table schema);
What are the manuals with a kind of r, and an opus of 144?.It is not neccessary to use all the tables.
SELECT SUM Round FROM table WHERE NFL Club = new york jets AND Pick < 166
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the round of the new york jets NFL club, which has a pick less than 166?.It is not neccessary to use all the tables.
SELECT Lomavren FROM table WHERE Hindi = do
CREATE TABLE INST, Here is a database schema( table schema);
What Lomavren word has the same meaning as the Hindi word do?.It is not neccessary to use all the tables.
SELECT location FROM table_name_68 WHERE position_in_2012_13 = "13th, third division"
CREATE TABLE INST, Here is a database schema( table schema);
When the position in 2012-13 is 13th third division what is the location?It is not neccessary to use all the tables.
SELECT T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID HAVING COUNT(*) >= 3
CREATE TABLE INST, Here is a database schema( table schema);
Show names of musicals which have at least three actors.It is not neccessary to use all the tables.
SELECT joint_music_award FROM table_name_81 WHERE year < 2006 AND rthk = "1"
CREATE TABLE INST, Here is a database schema( table schema);
How many Joint Music Awards were there with a RTHK of 1 in a Year before 2006?It is not neccessary to use all the tables.
SELECT notes FROM table_name_3 WHERE silver = "jarkko huovila"
CREATE TABLE INST, Here is a database schema( table schema);
What is Notes when Silver is "Jarkko Huovila"?It is not neccessary to use all the tables.
SELECT MIN(pick__number) FROM table_name_69 WHERE player = "marc pilon"
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest pick number for Marc Pilon?It is not neccessary to use all the tables.
SELECT from_club FROM table_name_49 WHERE date = "20 oct. 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Which From club has a Date of 20 oct. 2008?It is not neccessary to use all the tables.
SELECT "Member countries" FROM table_73962 WHERE "Languages" = 'Finnish Swedish'
CREATE TABLE INST, Here is a database schema( table schema);
Name the member countries for finnish swedishIt is not neccessary to use all the tables.
SELECT Score FROM table WHERE Year = 1992
CREATE TABLE INST, Here is a database schema( table schema);
What the score of the 1992 game?.It is not neccessary to use all the tables.
SELECT home_captain FROM table_name_53 WHERE venue = "melbourne cricket ground"
CREATE TABLE INST, Here is a database schema( table schema);
Which Home captain has a Venue of melbourne cricket ground?It is not neccessary to use all the tables.
SELECT COUNT(league) AS Cup FROM table_name_30 WHERE total < 1
CREATE TABLE INST, Here is a database schema( table schema);
What's the total for a league cup less than 1?It is not neccessary to use all the tables.
SELECT venue FROM table_name_27 WHERE year < 2005 AND position = "10th (sf)"
CREATE TABLE INST, Here is a database schema( table schema);
What Venue is listed that has a Year smaller than 2005 and a Position of 10th (sf)?It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Revenue in USD = $428.2 billion
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the company who has a revenue of $428.2 billion?.It is not neccessary to use all the tables.
SELECT record FROM table_name_31 WHERE location = "des moines, iowa , united states" AND method = "submission (arm-triangle choke)"
CREATE TABLE INST, Here is a database schema( table schema);
What is Record when Location is "Des Moines Iowa United States" and when Method is "Submission (arm-triangle choke)"?It is not neccessary to use all the tables.
SELECT carpet FROM table_name_1 WHERE clay = "1–0" AND hard = "1–1"
CREATE TABLE INST, Here is a database schema( table schema);
Which carpet has a Clay of 1–0 and a Hard 1–1?It is not neccessary to use all the tables.
SELECT AVG(2008) FROM table_name_20 WHERE airport = "hurghada international airport"
CREATE TABLE INST, Here is a database schema( table schema);
Which 2008 has an Airport of hurghada international airport?It is not neccessary to use all the tables.
SELECT start FROM table_name_54 WHERE conv = "0" AND pens = "0" AND tries = "8"
CREATE TABLE INST, Here is a database schema( table schema);
Which Start has a 0 Conv 0 Pens and 8 Tries?It is not neccessary to use all the tables.
SELECT Race Title FROM table WHERE Winner = glenn seton AND Circuit = sandown international raceway
CREATE TABLE INST, Here is a database schema( table schema);
What race did Glenn Seton win on the Sandown International Raceway circuit?.It is not neccessary to use all the tables.