sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT launch_vehicle FROM table_name_59 WHERE institutional_authority = "ndc"
CREATE TABLE INST, Here is a database schema( table schema);
Name the launch vehicle with Institutional authority of ndcIt is not neccessary to use all the tables.
SELECT Province FROM table WHERE Turnout (%) = 54.09
CREATE TABLE INST, Here is a database schema( table schema);
What province had a turnout of 54.09%?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_15 WHERE location = "texas" AND winner = "tom watson (39)"
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has a Location of texas and a Winner of tom watson (39)?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE High rebounds = smith (10)
CREATE TABLE INST, Here is a database schema( table schema);
Name the team which has high rebounds of smith (10).It is not neccessary to use all the tables.
SELECT COUNT(transmitting_from) FROM table_14670060_1 WHERE call_sign = "XEZV"
CREATE TABLE INST, Here is a database schema( table schema);
How many times does the call sign XEZV appear?It is not neccessary to use all the tables.
SELECT "tribunal" FROM table_203_303 ORDER BY "total" LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
which tribunal pronounced the least number of sentences between 1701 and 1746 ?It is not neccessary to use all the tables.
SELECT Game site FROM table WHERE Week = 15
CREATE TABLE INST, Here is a database schema( table schema);
What was the game site week 15?.It is not neccessary to use all the tables.
SELECT MAX(losses) FROM table_name_88 WHERE wins > 1 AND last_appearance = "2003"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Losses when Wins is greater than 1 and when Last Appearance is 2003?It is not neccessary to use all the tables.
SELECT AVG Grid FROM table WHERE Laps < 10 AND Team = china
CREATE TABLE INST, Here is a database schema( table schema);
What is the average grid number that had Team China with less than 10 laps?.It is not neccessary to use all the tables.
SELECT MAX of which currently forests, km² FROM table WHERE land formation = Middle Prut Valley
CREATE TABLE INST, Here is a database schema( table schema);
When middle prut valley is the land formation what is the highest of which currently forests, km² ?.It is not neccessary to use all the tables.
SELECT COUNT(purse__) AS $__ FROM table_name_88 WHERE location = "iowa"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Purse ($) total for Iowa?It is not neccessary to use all the tables.
SELECT name FROM table_name_59 WHERE rank > 2 AND nationality = "spain"
CREATE TABLE INST, Here is a database schema( table schema);
What's the name of spain rank greater than 2?It is not neccessary to use all the tables.
SELECT position FROM table_name_31 WHERE cfl_team = "toronto"
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Position that has the CFL Team of toronto?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
CREATE TABLE INST, Here is a database schema( table schema);
show me all flights from BALTIMORE to PHILADELPHIAIt is not neccessary to use all the tables.
SELECT La Cañada Flintridge FROM table WHERE Pasadena = 34
CREATE TABLE INST, Here is a database schema( table schema);
What is the figure for La Canada Flintridge when Pasadena is 34?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_45 WHERE home_team = "geelong"
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has a Home team of geelong?It is not neccessary to use all the tables.
SELECT 2006 FROM table_name_70 WHERE career_w_l = "career statistics"
CREATE TABLE INST, Here is a database schema( table schema);
What is the value in 2006 when Career Statistics is in Career W-L?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 21454) AND STRFTIME('%y', labevents.charttime) >= '2102'
CREATE TABLE INST, Here is a database schema( table schema);
have any laboratory tests been performed since 2102 on patient 21454?It is not neccessary to use all the tables.
SELECT mixed_doubles FROM table_13857700_1 WHERE year = 1972
CREATE TABLE INST, Here is a database schema( table schema);
who is the the mixed doubles with year being 1972It is not neccessary to use all the tables.
SELECT COUNT(total) FROM table_name_55 WHERE player = "todd hamilton" AND to_par < 15
CREATE TABLE INST, Here is a database schema( table schema);
How much Total has a Player of todd hamilton and a To par smaller than 15?It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Average Speed (mph) = 145.24
CREATE TABLE INST, Here is a database schema( table schema);
What year was the average speed 145.24.It is not neccessary to use all the tables.
SELECT COUNT(location) FROM table_22875369_3 WHERE record = "22-1"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of location for 22-1It is not neccessary to use all the tables.
SELECT SUM Snow (days/year) FROM table WHERE Storms (days/year) = 31
CREATE TABLE INST, Here is a database schema( table schema);
What is the amount of snow where the days for storms are 31?.It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Driver = piercarlo ghinzani AND Engine = ford cosworth dfv 3.0 v8
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Constructor for driver Piercarlo Ghinzani and a Ford cosworth dfv 3.0 v8 engine?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Episode Number = episode 34
CREATE TABLE INST, Here is a database schema( table schema);
Which contestant was associated with episode 34?.It is not neccessary to use all the tables.
SELECT Round 1 FROM table WHERE From < 1984 AND Round 3 = double AND Goal < 300
CREATE TABLE INST, Here is a database schema( table schema);
Which round 1 has a from prior to 1984, double as round 3, with a goal lwss than 300?.It is not neccessary to use all the tables.
SELECT Automobile Name FROM table WHERE Manufacturer = letecke zavody n.p., jinonice
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the car manufactured by Letecke Zavody N.P., Jinonice?.It is not neccessary to use all the tables.
SELECT date FROM table_name_52 WHERE opponent = "dender" AND tournament = "jupiler league" AND ground = "a"
CREATE TABLE INST, Here is a database schema( table schema);
Which date's opponent was Dender when the tournament was in the Jupiler League and the ground was a?It is not neccessary to use all the tables.
SELECT ICAO FROM table WHERE AIRLINE = asiana airlines
CREATE TABLE INST, Here is a database schema( table schema);
What is the ICAO for Asiana Airlines?.It is not neccessary to use all the tables.
SELECT COUNT(first_elected) FROM table_1342315_4 WHERE incumbent = "Claude Fuller"
CREATE TABLE INST, Here is a database schema( table schema);
How many first elections have Claude Fuller as incumbent?It is not neccessary to use all the tables.
SELECT Runner-up FROM table WHERE Venue = minikahda club
CREATE TABLE INST, Here is a database schema( table schema);
Who was the runner-up of the competition played at Minikahda Club?.It is not neccessary to use all the tables.
SELECT date FROM table_name_95 WHERE points = 37
CREATE TABLE INST, Here is a database schema( table schema);
What date has 37 points?It is not neccessary to use all the tables.
SELECT MAX(total) FROM table_name_42 WHERE rank = "2" AND silver < 6
CREATE TABLE INST, Here is a database schema( table schema);
Which country has a rand of 2 and a silver less than 6?It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Original air date = January 13, 1999
CREATE TABLE INST, Here is a database schema( table schema);
The episode with original air date January 13, 1999 is written by who?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Round < 6 AND Pick = 69
CREATE TABLE INST, Here is a database schema( table schema);
What is Player, when Round is less than 6, and when Pick is "69"?.It is not neccessary to use all the tables.
SELECT MIN("Games") FROM table_71717 WHERE "Goals" = '20' AND "Goal Ratio" < '0.14'
CREATE TABLE INST, Here is a database schema( table schema);
What lowest games have 20 goals and a Goal Ratio smaller than 0.14?It is not neccessary to use all the tables.
SELECT Ad Freq FROM table WHERE Show Name = american top 40
CREATE TABLE INST, Here is a database schema( table schema);
How often are there ads during American Top 40?.It is not neccessary to use all the tables.
SELECT record FROM table_name_38 WHERE score = "0–2"
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has a Score of 0 2?It is not neccessary to use all the tables.
SELECT surface FROM table_name_42 WHERE partner = "robert haybittel"
CREATE TABLE INST, Here is a database schema( table schema);
What is the surface when the partner was Robert Haybittel?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Time = 1:00.59
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Time of 1:00.59?.It is not neccessary to use all the tables.
SELECT MIN(goals) FROM table_name_87 WHERE games = 51 AND debut_year < 1992
CREATE TABLE INST, Here is a database schema( table schema);
Which Goals have Games of 51 and a Debut year smaller than 1992?It is not neccessary to use all the tables.
SELECT Height (ft) FROM table WHERE Country = Honduras
CREATE TABLE INST, Here is a database schema( table schema);
How tall is the contestant from Honduras?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = january 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the record for the game on January 19?.It is not neccessary to use all the tables.
SELECT competition FROM table_name_55 WHERE date = "2007-08-22"
CREATE TABLE INST, Here is a database schema( table schema);
Which competition has a Date of 2007-08-22?It is not neccessary to use all the tables.
SELECT diameter__km_ FROM table_16799784_3 WHERE year_named = 1997
CREATE TABLE INST, Here is a database schema( table schema);
What was the diameter of the feature found in 1997?It is not neccessary to use all the tables.
SELECT MIN("Finished") FROM table_46425 WHERE "Post" < '2'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Finished, when Post is less than 2?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Production Code = 214
CREATE TABLE INST, Here is a database schema( table schema);
What was the airdate of the episode of production code 214?.It is not neccessary to use all the tables.
SELECT COUNT("Weight (kg)") FROM table_18864 WHERE "Winner/2nd" = '1st - Defier' AND "Venue" = 'Randwick'
CREATE TABLE INST, Here is a database schema( table schema);
How many entries are there for weight when the winner is 1st - defier and venue is randwick?It is not neccessary to use all the tables.
SELECT Pole Position FROM table WHERE Winning Rider = Rob Guiver AND Fastest Lap = Kyle Ryde
CREATE TABLE INST, Here is a database schema( table schema);
Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap?.It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Score = 4–1
CREATE TABLE INST, Here is a database schema( table schema);
Which Points have a Score of 4–1?.It is not neccessary to use all the tables.
SELECT player FROM table_name_5 WHERE to_par > 7 AND total = 298
CREATE TABLE INST, Here is a database schema( table schema);
Which player had a to par score larger than 7 and a total score of 298?It is not neccessary to use all the tables.
SELECT COUNT League Cup FROM table WHERE Player = Mark Roberts
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of league cup for mark roberts.It is not neccessary to use all the tables.
SELECT Background FROM table WHERE Hometown = los angeles, california
CREATE TABLE INST, Here is a database schema( table schema);
What is the Background of the contestant with a Hometown listed as Los Angeles, California?.It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Position < 7 AND Goals for = 68 AND Played < 30
CREATE TABLE INST, Here is a database schema( table schema);
What is the total amount of points for a position less than 7, 68 goals for, and less than 30 played?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Motorcycle = Honda
CREATE TABLE INST, Here is a database schema( table schema);
What's the name of the team who had a Honda motorcycle?.It is not neccessary to use all the tables.
SELECT Pos. FROM table WHERE Height = m (ft 6in) AND Name = martina miceli
CREATE TABLE INST, Here is a database schema( table schema);
What is Pos., when Height is "m (ft 6in)", and when Name is "Martina Miceli"?.It is not neccessary to use all the tables.
SELECT head_of_household FROM table_name_39 WHERE task_no = 7
CREATE TABLE INST, Here is a database schema( table schema);
Who is the head of household for task number 7?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE School = plant high school
CREATE TABLE INST, Here is a database schema( table schema);
What position is for Plant high school?.It is not neccessary to use all the tables.
SELECT score FROM table_22669044_10 WHERE record = "31-29"
CREATE TABLE INST, Here is a database schema( table schema);
What's the score of the game with 31-29 record?It is not neccessary to use all the tables.
SELECT dance FROM table_name_68 WHERE worst_dancer_s_ = "priscilla presley" AND worst_score = "21"
CREATE TABLE INST, Here is a database schema( table schema);
What is the dance that has priscilla presley is the worst dancer(s) and the worst score of 21?It is not neccessary to use all the tables.
SELECT score FROM table_name_58 WHERE opponent = "bornor regis town"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when Bornor Regis Town was the opponent?It is not neccessary to use all the tables.
SELECT "place" FROM table_204_607 WHERE "date" = 12 AND "date" = 2010
CREATE TABLE INST, Here is a database schema( table schema);
what was the finishing place of the last race in december 2010 ?It is not neccessary to use all the tables.
SELECT Pole Position FROM table WHERE Grand Prix = german grand prix
CREATE TABLE INST, Here is a database schema( table schema);
What is the Pole Position for the German Grand Prix.It is not neccessary to use all the tables.
SELECT high_points FROM table_27755603_10 WHERE date = "March 25"
CREATE TABLE INST, Here is a database schema( table schema);
What were the high points on March 25?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_47 WHERE rank > 2 AND time = "55.77"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of the swimmer with a rank over 2 with a time of 55.77?It is not neccessary to use all the tables.
SELECT town FROM table_name_29 WHERE structural_type = "guyed mast" AND country = "belgium"
CREATE TABLE INST, Here is a database schema( table schema);
Which Town has a Structural type of guyed mast and a Country of belgium?It is not neccessary to use all the tables.
SELECT Series # FROM table WHERE Episode Title = "The Fallen Star"
CREATE TABLE INST, Here is a database schema( table schema);
What is the series number of "the fallen star"?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_13619135_7 WHERE team = "Charlotte"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the high rebounder against charlotte?It is not neccessary to use all the tables.
SELECT Founded FROM table WHERE Color = Navy Blue
CREATE TABLE INST, Here is a database schema( table schema);
What was the founding of navy blue?.It is not neccessary to use all the tables.
SELECT Open Cup FROM table WHERE Year = 2006
CREATE TABLE INST, Here is a database schema( table schema);
What's the team's status in the Open Cup in 2006?.It is not neccessary to use all the tables.
SELECT College FROM table WHERE Player = Lenard Semajuste
CREATE TABLE INST, Here is a database schema( table schema);
What schools did lenard semajuste play for?.It is not neccessary to use all the tables.
SELECT June FROM table WHERE November = lorraine olivia
CREATE TABLE INST, Here is a database schema( table schema);
Who is the June playmate with the November playmate Lorraine Olivia?.It is not neccessary to use all the tables.
SELECT show FROM table_name_45 WHERE year < 2011 AND episode_title = "part 3"
CREATE TABLE INST, Here is a database schema( table schema);
Which show had a part 3 before 2011?It is not neccessary to use all the tables.
SELECT candidates FROM table_1342451_38 WHERE incumbent = "Samuel J. Nicholls"
CREATE TABLE INST, Here is a database schema( table schema);
What candidate was featured in the election for incumbent samuel j. nicholls' seat?It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE U.S. Viewers (in millions) = 2.09
CREATE TABLE INST, Here is a database schema( table schema);
if the 2.09 million US viewers watched this episode, who was it written by.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_56 WHERE date = "march 31"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Visitor on March 31?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Name = woodburn dragstrip
CREATE TABLE INST, Here is a database schema( table schema);
What is the Location for the woodburn dragstrip?.It is not neccessary to use all the tables.
SELECT AVG Crowd FROM table WHERE Away team score = 12.10 (82)
CREATE TABLE INST, Here is a database schema( table schema);
What is the average amount of attenders when away team score is 12.10 (82)?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_76 WHERE away_team = "geelong"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team when Geelong was the away team?It is not neccessary to use all the tables.
SELECT nation FROM table_name_79 WHERE team = "csc"
CREATE TABLE INST, Here is a database schema( table schema);
What is the nation of the person who was from the CSC team?It is not neccessary to use all the tables.
SELECT 2012 FROM table_name_97 WHERE 2011 = "qf"
CREATE TABLE INST, Here is a database schema( table schema);
Name the 2012 when 2011 is qfIt is not neccessary to use all the tables.
SELECT Road number FROM table WHERE Type = dead end AND Rank = 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the rad number for the dead end in rank 22?.It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_12 WHERE points = 4 AND chassis = "ensign n180b"
CREATE TABLE INST, Here is a database schema( table schema);
How many years was ensign n180b a Chassis with 4 points?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose admission location is clinic referral/premature and discharge location is left against medical advi?It is not neccessary to use all the tables.
SELECT COUNT(Posts.Id) FROM Tags JOIN PostTags ON Tags.Id = PostTags.TagId JOIN Posts ON PostTags.PostId = Posts.Id JOIN PostHistory ON PostHistory.PostId = Posts.Id WHERE TagName = 'java' AND PostHistoryTypeId = 19
CREATE TABLE INST, Here is a database schema( table schema);
select by tag protected sorted.It is not neccessary to use all the tables.
SELECT COUNT(cores) FROM table_name_33 WHERE clock_speed = "1.3ghz"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total Cores with a Clock Speed of 1.3ghz?It is not neccessary to use all the tables.
SELECT MAX(crowd) FROM table_name_97 WHERE venue = "mcg"
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest crowd at the venue MCG?It is not neccessary to use all the tables.
SELECT leading_actress FROM table_24225238_1 WHERE leading_actor = "Warren Beatty" AND oscars = "40th"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the leading actress in a film with Warren Beatty as the leading actor and also at the 40th Oscars?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent = tigers AND Record = 78-64
CREATE TABLE INST, Here is a database schema( table schema);
what score has the opponent of tigers and a record of 78-64?.It is not neccessary to use all the tables.
SELECT COUNT(season) FROM table_29471472_1 WHERE position = "3rd"
CREATE TABLE INST, Here is a database schema( table schema);
How many seasons are there for the 3rd position?It is not neccessary to use all the tables.
SELECT AVG Bronze FROM table WHERE Rank > 6 AND Nation = italy (ita) AND Total < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Bronze, when Rank is greater than 6, when Nation is Italy (ITA), and when Total is less than 1?.It is not neccessary to use all the tables.
SELECT episode__number FROM table_2570269_2 WHERE episode_title = "Leave Takers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the episode number for episode title Leave Takers?It is not neccessary to use all the tables.
SELECT Weight FROM table WHERE Name = serhiy alfyorov
CREATE TABLE INST, Here is a database schema( table schema);
What was the weight of Serhiy Alfyorov?.It is not neccessary to use all the tables.
SELECT school FROM table_11677100_15 WHERE player = "Jeff Malm"
CREATE TABLE INST, Here is a database schema( table schema);
What high school did Jeff Malm attend?It is not neccessary to use all the tables.
SELECT date FROM table_name_81 WHERE course = "rest day"
CREATE TABLE INST, Here is a database schema( table schema);
Which date was a rest day?It is not neccessary to use all the tables.
SELECT model_number FROM table_name_19 WHERE frequency = "750 mhz" AND socket = "bga2μpga2"
CREATE TABLE INST, Here is a database schema( table schema);
Which model has a frequency of 750 mhz and a socket of bga2μpga2?It is not neccessary to use all the tables.
SELECT COUNT Games won FROM table WHERE Bonus points > 1 AND Points difference < 50 AND Points against = 106 AND Points for < 152
CREATE TABLE INST, Here is a database schema( table schema);
Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152?.It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Result = w 27-24
CREATE TABLE INST, Here is a database schema( table schema);
In what Week was the Result W 27-24?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = "Glenn"
CREATE TABLE INST, Here is a database schema( table schema);
How many donors have endowment for school named "Glenn"?It is not neccessary to use all the tables.
SELECT Table FROM table WHERE Team = Slovan Bratislava
CREATE TABLE INST, Here is a database schema( table schema);
What is the table when the team is slovan bratislava?.It is not neccessary to use all the tables.