sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT home FROM table_name_86 WHERE date = "march 30"
CREATE TABLE INST, Here is a database schema( table schema);
Date of march 30 involves what home?It is not neccessary to use all the tables.
SELECT COUNT(points) FROM table_name_96 WHERE horse = "chippison"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total points when the horse is Chippison?It is not neccessary to use all the tables.
SELECT Video FROM table WHERE Channel > 56.4
CREATE TABLE INST, Here is a database schema( table schema);
WHich Video has a Channel larger than 56.4?.It is not neccessary to use all the tables.
SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the most common college of authors of submissions.It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Score = 70-70=140
CREATE TABLE INST, Here is a database schema( table schema);
what is the place when the score is 70-70=140?.It is not neccessary to use all the tables.
SELECT SUM Goals FROM table WHERE Name = johan cruyff AND Rank < 3
CREATE TABLE INST, Here is a database schema( table schema);
How many goals were there for Johan Cruyff when the rank's less than 3?.It is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Date = january 4, 2008
CREATE TABLE INST, Here is a database schema( table schema);
How many people were in attendance on January 4, 2008?.It is not neccessary to use all the tables.
SELECT City of license FROM table WHERE Class = lp
CREATE TABLE INST, Here is a database schema( table schema);
What is the city of license that has lp as the class?.It is not neccessary to use all the tables.
SELECT Yield FROM table WHERE Location = nts area 3s
CREATE TABLE INST, Here is a database schema( table schema);
What was the yield for a blast that was in nts area 3s?.It is not neccessary to use all the tables.
SELECT COUNT(loss) FROM table_name_86 WHERE avg_g < -3.3 AND gain > 126
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of losses of the player with an avg/g smaller than -3.3 and a gain larger than 126?It is not neccessary to use all the tables.
SELECT 0–100km/h,s FROM table WHERE Name = 2.0 8v
CREATE TABLE INST, Here is a database schema( table schema);
Name the 0-100 km/hs for name of 2.0 8v.It is not neccessary to use all the tables.
SELECT AVG("weight") FROM table_204_688 WHERE id <= 3
CREATE TABLE INST, Here is a database schema( table schema);
what is average weight of the fist three contestants ?It is not neccessary to use all the tables.
SELECT rounds FROM table_name_46 WHERE driver = "shirley van der lof"
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds did shirley van der lof go?It is not neccessary to use all the tables.
SELECT COUNT(podiums) FROM table_18811741_15 WHERE stage_wins = 18
CREATE TABLE INST, Here is a database schema( table schema);
How many podiums for the driver with 18 stage wins?It is not neccessary to use all the tables.
SELECT Latin motto FROM table WHERE Translation = spouse
CREATE TABLE INST, Here is a database schema( table schema);
What is the Latin motto of the sign that translates to spouse?.It is not neccessary to use all the tables.
SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the id of the order which has the most items?It is not neccessary to use all the tables.
SELECT record FROM table_name_34 WHERE game > 34 AND date = "january 9"
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has a Game larger than 34 and a Date of january 9?It is not neccessary to use all the tables.
SELECT Fastest Lap FROM table WHERE Pole Position = david coulthard AND Winning Driver = michael schumacher
CREATE TABLE INST, Here is a database schema( table schema);
Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver..It is not neccessary to use all the tables.
SELECT MIN Norwegian Americans (1980) FROM table WHERE State = Rhode Island
CREATE TABLE INST, Here is a database schema( table schema);
what is the minimum norwegian americans (1980) where state is rhode island.It is not neccessary to use all the tables.
SELECT Candidates FROM table WHERE District = Massachusetts 8
CREATE TABLE INST, Here is a database schema( table schema);
Name the candidates for massachusetts 8.It is not neccessary to use all the tables.
SELECT Game FROM table WHERE Date = march 30
CREATE TABLE INST, Here is a database schema( table schema);
What is the Game number on March 30?.It is not neccessary to use all the tables.
SELECT doctor_who_episode FROM table_name_91 WHERE original_airdate__uk_ = "14 may 2005"
CREATE TABLE INST, Here is a database schema( table schema);
Which Doctor Who episode has an Original airdate (UK) of 14 may 2005?It is not neccessary to use all the tables.
SELECT icao FROM table_name_69 WHERE iata = "rgn"
CREATE TABLE INST, Here is a database schema( table schema);
Name the ICAO for IATA of rgnIt is not neccessary to use all the tables.
SELECT MAX No. in series FROM table WHERE Title = "Dick vs. Strudwick"
CREATE TABLE INST, Here is a database schema( table schema);
What is the episode number od "Dick Vs. Strudwick"?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_27 WHERE record = "17-19-4"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent when the record is 17-19-4?It is not neccessary to use all the tables.
SELECT Race 4 FROM table WHERE Race 1 = 28
CREATE TABLE INST, Here is a database schema( table schema);
What is Race 4, when Race 1 is 28?.It is not neccessary to use all the tables.
SELECT SUM Game FROM table WHERE Record = 4–2–1 AND Points > 9
CREATE TABLE INST, Here is a database schema( table schema);
Which Game has a Record of 4–2–1, and Points larger than 9?.It is not neccessary to use all the tables.
SELECT AVG(draws) FROM table_name_38 WHERE losses < 16 AND team = "university" AND wins > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Draws have Losses smaller than 16, and a Team of university, and Wins larger than 0?It is not neccessary to use all the tables.
SELECT location FROM table_name_40 WHERE tournament = "buick-goodwrench open"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Location for the buick-goodwrench open?It is not neccessary to use all the tables.
SELECT "2002" FROM table_35149 WHERE "2008" = '3–3'
CREATE TABLE INST, Here is a database schema( table schema);
Which 2002 has a 2008 of 3 3?It is not neccessary to use all the tables.
SELECT Province FROM table WHERE District = San Antonio de Chuca
CREATE TABLE INST, Here is a database schema( table schema);
Which province is in the district of San Antonio de Chuca? .It is not neccessary to use all the tables.
SELECT COUNT(type) FROM table_2562572_43 WHERE cyrillic_name_other_names = "Падина (Slovak: Padina)"
CREATE TABLE INST, Here is a database schema( table schema);
How many entries are there for type for the cyrillic name other names is падина (slovak: padina)?It is not neccessary to use all the tables.
SELECT score FROM table_name_47 WHERE tie_no = "4"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when the tie number is 4?It is not neccessary to use all the tables.
SELECT "Tikhak" FROM table_38487 WHERE "Yonguk" = 'wu¹ti¹'
CREATE TABLE INST, Here is a database schema( table schema);
Which Tikhak has a Yonguk of wu ti ?It is not neccessary to use all the tables.
SELECT player FROM table_11734041_9 WHERE years_for_rockets = "1986-92"
CREATE TABLE INST, Here is a database schema( table schema);
Which player who played for the Rockets for the years 1986-92?It is not neccessary to use all the tables.
SELECT Date of Appointment FROM table WHERE Replaced by = lucien favre
CREATE TABLE INST, Here is a database schema( table schema);
When was the appointment date for the manager replaced by Lucien Favre?.It is not neccessary to use all the tables.
SELECT Original Club FROM table WHERE Name = Hapoel Katamon Jerusalem F.C.
CREATE TABLE INST, Here is a database schema( table schema);
Which club was originally named hapoel katamon jerusalem f.c.?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Notes = sc/d AND Country = estonia
CREATE TABLE INST, Here is a database schema( table schema);
What is the time for Estonia with sc/d notes?.It is not neccessary to use all the tables.
SELECT Outgoing manager FROM table WHERE Date of vacancy = 22 november
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the outgoing manager for 22 november date of vacancy.It is not neccessary to use all the tables.
SELECT Party FROM table WHERE First elected > 1999 AND Position = supervisor AND Name = john foust
CREATE TABLE INST, Here is a database schema( table schema);
Name the party with first elected more than 1999 and position of supervisor for john foust.It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE UK viewers (million) = 2.70
CREATE TABLE INST, Here is a database schema( table schema);
Who is the director when there are 2.70 million viewers?.It is not neccessary to use all the tables.
SELECT revising convention(s) FROM table WHERE Denunciations (September 2011) = 21
CREATE TABLE INST, Here is a database schema( table schema);
What were the revising conventions commentary with a denunciation of 21?.It is not neccessary to use all the tables.
SELECT competition FROM table_name_60 WHERE result = "2–0 (w)" AND venue = "shah alam stadium"
CREATE TABLE INST, Here is a database schema( table schema);
What Competition in Shah Alam Stadium have a Result of 2–0 (w)?It is not neccessary to use all the tables.
SELECT constructor FROM table_name_75 WHERE date = "10 august"
CREATE TABLE INST, Here is a database schema( table schema);
Name the constructor for 10 augustIt is not neccessary to use all the tables.
SELECT format FROM table_1949994_8 WHERE local_title = "Fort Boyard: Ultimate Challenge"
CREATE TABLE INST, Here is a database schema( table schema);
What was the production format for the series with the local title Fort Boyard: Ultimate Challenge?It is not neccessary to use all the tables.
SELECT COUNT(left_bloc) FROM table_1463383_1 WHERE social_democratic = "32.1%"
CREATE TABLE INST, Here is a database schema( table schema);
How many percentages of Left Bloc correspond to a 32.1% Social Democratic?It is not neccessary to use all the tables.
SELECT COUNT Title FROM table WHERE Written by = Don Shank and Genndy Tartakovsky
CREATE TABLE INST, Here is a database schema( table schema);
How many titles were written by Don Shank and Genndy Tartakovsky?.It is not neccessary to use all the tables.
SELECT year__ceremony_ FROM table_17350255_1 WHERE result = "Not Nominated" AND film_title_used_in_nomination = "My Mother's Teahouse"
CREATE TABLE INST, Here is a database schema( table schema);
What was the year when My Mother's Teahouse was not nominated?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Winning score = –16 (62-71-71-68=272)
CREATE TABLE INST, Here is a database schema( table schema);
When was –16 (62-71-71-68=272) the winning score?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team score = 10.14 (74)
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the home team score 10.14 (74)?.It is not neccessary to use all the tables.
SELECT "Coach" FROM table_47873 WHERE "Captain" = 'robert harvey'
CREATE TABLE INST, Here is a database schema( table schema);
Which coach works with Robert Harvey?It is not neccessary to use all the tables.
SELECT MIN Losses FROM table WHERE Wins < 4 AND Ties = 2 AND Place = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of Losses when the number of Wins is less than 4, the number of Tie is 2, and the Place is 5?.It is not neccessary to use all the tables.
SELECT MIN(bronze) FROM table_name_56 WHERE nation = "egypt (egy)" AND gold < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Bronze with a Nation of egypt (egy) and with a Gold that is smaller than 2?It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Airdate = September 25, 1967
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode that aired on September 25, 1967?.It is not neccessary to use all the tables.
SELECT current_club FROM table_name_31 WHERE height < 1.92 AND year_born > 1978
CREATE TABLE INST, Here is a database schema( table schema);
What player was born in 1978 and smaller than 1.92?It is not neccessary to use all the tables.
SELECT date FROM table_name_77 WHERE attendance = "35,842"
CREATE TABLE INST, Here is a database schema( table schema);
Attendance of 35842 had what date?It is not neccessary to use all the tables.
SELECT COUNT Pick FROM table WHERE Player = brandon rush
CREATE TABLE INST, Here is a database schema( table schema);
WHAT WAS THE PICK NUMBER FOR BRANDON RUSH?.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);
On what date is St Kilda the away team?.It is not neccessary to use all the tables.
SELECT team FROM table_name_55 WHERE position_in_table = "15th (a)" AND outgoing_manager = "claudio borghi"
CREATE TABLE INST, Here is a database schema( table schema);
Which Team that has a Position in table of 15th (a) and a Outgoing manager of claudio borghi?It is not neccessary to use all the tables.
SELECT highest FROM table_21824695_8 WHERE team = "Pohang Steelers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest when pohang steelers is the team?It is not neccessary to use all the tables.
SELECT COUNT Semifinalists FROM table WHERE Rank = 19
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of semifinalists for 19 rank.It is not neccessary to use all the tables.
SELECT Debut Album FROM table WHERE Winning Song = Kemenangan Hati
CREATE TABLE INST, Here is a database schema( table schema);
What is the debut album for the artist with the winning song kemenangan hati?.It is not neccessary to use all the tables.
SELECT service_type_code FROM services ORDER BY service_type_code
CREATE TABLE INST, Here is a database schema( table schema);
List the type of the services in alphabetical order.It is not neccessary to use all the tables.
SELECT year FROM table_name_32 WHERE record = "4-21"
CREATE TABLE INST, Here is a database schema( table schema);
What year had a record of 4-21?It is not neccessary to use all the tables.
SELECT platform_s_ FROM table_name_65 WHERE genre = "third-person shooter"
CREATE TABLE INST, Here is a database schema( table schema);
What is the platform for the game of the third-person shooter genre?It is not neccessary to use all the tables.
SELECT serial_no FROM table_name_26 WHERE entered_service = "october 1989"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Serial Number of the Locomotive that Entered Service October 1989?It is not neccessary to use all the tables.
SELECT 2003-04 FROM table WHERE Average = 1.377
CREATE TABLE INST, Here is a database schema( table schema);
What 2003-2004 values are associated with an average of 1.377?.It is not neccessary to use all the tables.
SELECT COUNT Publisher FROM table WHERE Cover Date = May 1939
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of publisher where cover date is may 1939.It is not neccessary to use all the tables.
SELECT "Word" FROM table_35735 WHERE "Pronunciation b" = '*sɨks'
CREATE TABLE INST, Here is a database schema( table schema);
Name the word with pronunciation b of *s ksIt is not neccessary to use all the tables.
SELECT Manner of departure FROM table WHERE Outgoing manager = luis fernando tena
CREATE TABLE INST, Here is a database schema( table schema);
What is Manner of Departure, when Outgoing Manager is "Luis Fernando Tena"?.It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Points classification = francesco moser AND Stage = 12
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner of Stage 12 with a Points Classification of Francesco Moser?.It is not neccessary to use all the tables.
SELECT T1.name, T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid GROUP BY T2.alid ORDER BY COUNT(*) DESC LIMIT 10
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of the top 10 airlines that operate the most number of routes.It is not neccessary to use all the tables.
SELECT AVG Change FROM table WHERE Centre = buenos aires AND Rank < 46
CREATE TABLE INST, Here is a database schema( table schema);
Which Change is the average one that has a Centre of buenos aires, and a Rank smaller than 46?.It is not neccessary to use all the tables.
SELECT MAX(wickets) FROM table_16570286_4 WHERE average = "22.66"
CREATE TABLE INST, Here is a database schema( table schema);
What number of wickets were there when the average was 22.66?It is not neccessary to use all the tables.
SELECT GT2 Winning Team FROM table WHERE GT3 Winning Team = #1 PTG
CREATE TABLE INST, Here is a database schema( table schema);
Who was the GT2 winning team when the GT3 winning team was #1 PTG?.It is not neccessary to use all the tables.
SELECT COUNT(rank) FROM table_name_35 WHERE time = "8:23.02"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Rank of the rower with a Time of 8:23.02?It is not neccessary to use all the tables.
SELECT COUNT("Air Date") FROM table_28135 WHERE "Team guest captain" = 'Stephen K Amos'
CREATE TABLE INST, Here is a database schema( table schema);
How many entries are shown for an air date when the team guest captain was stephen k amos?It is not neccessary to use all the tables.
SELECT Car # FROM table WHERE Driver = brendan gaughan
CREATE TABLE INST, Here is a database schema( table schema);
What is Brendan Gaughan's Car #?.It is not neccessary to use all the tables.
SELECT Entrant FROM table WHERE Engine † = mugen-honda mf-301 he
CREATE TABLE INST, Here is a database schema( table schema);
Which entrant had a mugen-honda mf-301 he engine?.It is not neccessary to use all the tables.
SELECT Rounds FROM table WHERE Sponsor(s) = arciero wines AND Chassis = march 85c
CREATE TABLE INST, Here is a database schema( table schema);
Which rounds do Arciero Wines sponsor a March 85c chassis?.It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Chassis = kurtis kraft 500a
CREATE TABLE INST, Here is a database schema( table schema);
What is the year with a kurtis kraft 500a chassis?.It is not neccessary to use all the tables.
SELECT % 75 + FROM table WHERE % 0-19 = 19,75%
CREATE TABLE INST, Here is a database schema( table schema);
What is every value for % 75 + if % 0-19 is 19,75%?.It is not neccessary to use all the tables.
SELECT nhl_team FROM table_2781227_7 WHERE player = "Tom White"
CREATE TABLE INST, Here is a database schema( table schema);
What NHL team picked Tom White?It is not neccessary to use all the tables.
SELECT Class FROM table WHERE Part 1 = lesan
CREATE TABLE INST, Here is a database schema( table schema);
What's the class of the verb whose part 1 is lesan?.It is not neccessary to use all the tables.
SELECT candidates FROM table_1341453_12 WHERE incumbent = "Saxby Chambliss"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the candidates in the election where Saxby Chambliss was the incumbent?It is not neccessary to use all the tables.
SELECT Production code (order they were made) # FROM table WHERE Episode # = 13
CREATE TABLE INST, Here is a database schema( table schema);
What is every production code for episode # 13?.It is not neccessary to use all the tables.
SELECT date FROM table_name_69 WHERE score = "6–4, 7–5"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the score 6–4 7–5?It is not neccessary to use all the tables.
SELECT City / State FROM table WHERE Winner = jim richards AND Circuit = winton motor raceway
CREATE TABLE INST, Here is a database schema( table schema);
When Jim Richards won at the Winton Motor Raceway circuit, what was the city and state listed?.It is not neccessary to use all the tables.
SELECT AVG Date FROM table WHERE Record = 30-31-9 AND Game > 70
CREATE TABLE INST, Here is a database schema( table schema);
What was the average date with a record of 30-31-9 in a game over 70?.It is not neccessary to use all the tables.
SELECT score FROM table_name_23 WHERE player = "jim furyk"
CREATE TABLE INST, Here is a database schema( table schema);
What was Jim Furyk's score?It is not neccessary to use all the tables.
SELECT SUM(grid) FROM table_name_58 WHERE constructor = "honda" AND laps = 31
CREATE TABLE INST, Here is a database schema( table schema);
When the laps are 31 and the constructor was honda what's the sum of all grid values?It is not neccessary to use all the tables.
SELECT COUNT Attendance FROM table WHERE Week = 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance record for week 6?.It is not neccessary to use all the tables.
SELECT MAX(bronze) FROM table_name_46 WHERE gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of bronze medals for nations with under 0 golds?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Laps Led = 0 AND Driver = dan wheldon
CREATE TABLE INST, Here is a database schema( table schema);
What team does Dan Wheldon drive for when he led 0 laps?.It is not neccessary to use all the tables.
SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "2560"
CREATE TABLE INST, Here is a database schema( table schema);
specify the admission type of patient with patient id 2560.It is not neccessary to use all the tables.
SELECT hangul___japanese FROM table_name_80 WHERE genre = "drama" AND title = "boys over flowers"
CREATE TABLE INST, Here is a database schema( table schema);
What's the Hangul/Japanese of Boys Over Flowers that's drama?It is not neccessary to use all the tables.
SELECT class_1 - 200 FROM table_1936678_1 WHERE best_uk_team = "University of Hertfordshire" AND class_1a = "University of Warwick"
CREATE TABLE INST, Here is a database schema( table schema);
Name the class 1-200 for university of hertfordshire for university of warwickIt is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Player = claude periard
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality when Claude Periard is the player?.It is not neccessary to use all the tables.
SELECT score FROM table_name_35 WHERE competition = "vfl reserves" AND venue = "mcg" AND year = "1971"
CREATE TABLE INST, Here is a database schema( table schema);
In 1971 at MCG what was the score of the VFL Reserves?It is not neccessary to use all the tables.
SELECT Date of Election FROM table WHERE Elected Successor = Arthur Hodges
CREATE TABLE INST, Here is a database schema( table schema);
What was the election date for Arthur Hodges?.It is not neccessary to use all the tables.