sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT MIN Subsidiaries FROM table WHERE COMPANY NAME = POSTERMOBILE ADVERTISING LIMITED
CREATE TABLE INST, Here is a database schema( table schema);
How many subsidiaries are there of Postermobile Advertising Limited?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team score = 12.17 (89)
CREATE TABLE INST, Here is a database schema( table schema);
When did the home team score 12.17 (89)?.It is not neccessary to use all the tables.
SELECT AVG Opened FROM table WHERE City = barcelona, spain AND Stadium = mini estadi
CREATE TABLE INST, Here is a database schema( table schema);
What is the average opened year of Mini Estadi stadium in Barcelona, Spain?.It is not neccessary to use all the tables.
SELECT COUNT Sub-Parish (Sokn) FROM table WHERE Year Built = 1865
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number for sub parish sokn for 1865.It is not neccessary to use all the tables.
SELECT builder FROM table_1181375_1 WHERE withdrawn = "1954–1958"
CREATE TABLE INST, Here is a database schema( table schema);
what's the builder where withdrawn is 1954–1958It is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_67 WHERE score = "2–7"
CREATE TABLE INST, Here is a database schema( table schema);
What were the Points in the game with a Score of 2–7?It is not neccessary to use all the tables.
SELECT type FROM table_name_79 WHERE res = "win" AND opponent = "michael gomez"
CREATE TABLE INST, Here is a database schema( table schema);
What is the type of the match with a win result and Michael Gomez as the opponent?It is not neccessary to use all the tables.
SELECT MIN Col (m) FROM table WHERE Prominence (m) > 1,519 AND Peak = jiehkkevárri AND Elevation (m) > 1,834
CREATE TABLE INST, Here is a database schema( table schema);
Which Col (m) has a Prominence (m) larger than 1,519, and a Peak of jiehkkevárri, and an Elevation (m) larger than 1,834?.It is not neccessary to use all the tables.
SELECT author FROM table_name_24 WHERE play = "electra"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the author of the Play Electra?It is not neccessary to use all the tables.
SELECT grant_id, COUNT(*) FROM Documents GROUP BY grant_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
How many documents can one grant have at most? List the grant id and number.It is not neccessary to use all the tables.
SELECT date FROM table_name_50 WHERE streak = "won 8"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date when streak was won 8?It is not neccessary to use all the tables.
SELECT Successor FROM table WHERE Vacator = Chester E. Holifield (D)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the successor when the vacator was chester e. holifield (d)?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Opponents = marc lópez santiago ventura
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has Opponents of marc lópez santiago ventura?.It is not neccessary to use all the tables.
SELECT First elected FROM table WHERE District = minnesota 2
CREATE TABLE INST, Here is a database schema( table schema);
What is First Elected, when District is "Minnesota 2"?.It is not neccessary to use all the tables.
SELECT rapid FROM table_name_91 WHERE distance__km_ < 14.2 AND station = "kōmyōji"
CREATE TABLE INST, Here is a database schema( table schema);
Which rapid has a distance in km smaller than 14.2 and a Station of kōmyōji?It is not neccessary to use all the tables.
SELECT MAX # FROM table WHERE Written by = Matthew Pitts
CREATE TABLE INST, Here is a database schema( table schema);
What is the most recent episode number written by Matthew Pitts?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Game = 9
CREATE TABLE INST, Here is a database schema( table schema);
What is game 9's record?.It is not neccessary to use all the tables.
SELECT SUM Points FROM table WHERE Played < 38
CREATE TABLE INST, Here is a database schema( table schema);
What is the points when played is less than 38?.It is not neccessary to use all the tables.
SELECT MIN Camp mates FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What was the least amount of camp mates?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "5" AND diagnoses.long_title = "Phlebitis and thrombophlebitis of superficial veins of upper extremities"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose days of hospital stay is greater than 5 and diagnoses long title is phlebitis and thrombophlebitis of superficial veins of upper extremities?It is not neccessary to use all the tables.
SELECT Mascot FROM table WHERE County = 69 ripley AND IHSAA Class = aa AND School = south ripley
CREATE TABLE INST, Here is a database schema( table schema);
Which Mascot has a County of 69 ripley, and an IHSAA Class of aa, and a School of south ripley?.It is not neccessary to use all the tables.
SELECT MIN(points) FROM table_name_3 WHERE drawn < 6 AND played < 18
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of points of any team with less than 6 draws and less than 18 matches played?It is not neccessary to use all the tables.
SELECT Nation FROM table WHERE Points = 108.8
CREATE TABLE INST, Here is a database schema( table schema);
What was the nationality of the skater with 108.8 points?.It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_64 WHERE position < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is listed as the highest Points that's got a Position that's smaller than 1?It is not neccessary to use all the tables.
SELECT College FROM table WHERE Overall > 226 AND Pick < 12 AND Position = ot
CREATE TABLE INST, Here is a database schema( table schema);
What college did the player who had the position of OT come from who was pick number less than 12 and a overall pick number bigger than 226?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_74 WHERE goals < 72 AND assists > 40
CREATE TABLE INST, Here is a database schema( table schema);
Where were less than 72 goals made and more than 40 assists made?It is not neccessary to use all the tables.
SELECT pick__number FROM table_name_49 WHERE college_junior_club_team = "edmonton oil kings (wchl)" AND position = "defence"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Pick # for the College/junior/club team of edmonton oil kings (wchl) and the position if defence?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = mark brooks
CREATE TABLE INST, Here is a database schema( table schema);
which Place has a Player of mark brooks?.It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Weeks at #1 = 8
CREATE TABLE INST, Here is a database schema( table schema);
How many years have a weeks at #1 value of exactly 8?.It is not neccessary to use all the tables.
SELECT player FROM table_name_29 WHERE year_s__won = "1989"
CREATE TABLE INST, Here is a database schema( table schema);
What Player won the PGA in 1989?It is not neccessary to use all the tables.
SELECT decision FROM table_name_71 WHERE visitor = "detroit" AND home = "ottawa"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the decision when the visitor was Detroit and the home team was Ottawa?It is not neccessary to use all the tables.
SELECT l2_cache FROM table_name_48 WHERE model_number = "mobile pentium 333"
CREATE TABLE INST, Here is a database schema( table schema);
What is the L2 cache for the Mobile Pentium 333?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 6.10 (46)
CREATE TABLE INST, Here is a database schema( table schema);
What was the team they played when the home team scored 6.10 (46)?.It is not neccessary to use all the tables.
SELECT MIN(elected) FROM table_name_87 WHERE district = 17
CREATE TABLE INST, Here is a database schema( table schema);
What was the year elected in District 17?It is not neccessary to use all the tables.
SELECT MIN(SALARY), DEPARTMENT_ID FROM employees
CREATE TABLE INST, Here is a database schema( table schema);
What is the minimum salary in each department. Show scatter chart.It is not neccessary to use all the tables.
SELECT high_points FROM table_11960610_10 WHERE high_rebounds = "Gray (8)"
CREATE TABLE INST, Here is a database schema( table schema);
Who had high points when high rebound is gray (8)?It is not neccessary to use all the tables.
SELECT date FROM table_name_5 WHERE region = "europe" AND label = "wichita recordings"
CREATE TABLE INST, Here is a database schema( table schema);
Which date was associated with the release in Europe on the Wichita Recordings label?It is not neccessary to use all the tables.
SELECT H ci (kA/m) FROM table WHERE T c (°C) = 720
CREATE TABLE INST, Here is a database schema( table schema);
When 720 is the t c (°c) what is the h ci (ka/m)?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Player = bob rosburg
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of player bob rosburg?.It is not neccessary to use all the tables.
SELECT MAX(wins) FROM table_name_40 WHERE year > 1996 AND championship_finish = "1st" AND points < 168
CREATE TABLE INST, Here is a database schema( table schema);
Which Wins is the highest one that has a Year larger than 1996 and a Championship Finish of 1st and Points smaller than 168?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Away team = north melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What is the Away Team score of North Melbourne?.It is not neccessary to use all the tables.
SELECT id FROM station WHERE city = "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 10
CREATE TABLE INST, Here is a database schema( table schema);
What are the ids of stations that are located in San Francisco and have average bike availability above 10.It is not neccessary to use all the tables.
SELECT SUM Latitude FROM table WHERE Longitude > -101.819319 AND Township = martin AND GEO ID = 3809951140
CREATE TABLE INST, Here is a database schema( table schema);
What is the latitude that has a longitude larger than -101.819319 in Martin and a GEO ID of 3809951140?.It is not neccessary to use all the tables.
SELECT Occupied territory FROM table WHERE Estimated deaths = 600,000
CREATE TABLE INST, Here is a database schema( table schema);
what's the occupied territory with estimated deaths of 600,000.It is not neccessary to use all the tables.
SELECT Engine FROM table WHERE Driver = michele alboreto
CREATE TABLE INST, Here is a database schema( table schema);
What was the Michele Alboreto's engine?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Championship = Wimbledon (2)
CREATE TABLE INST, Here is a database schema( table schema);
What year was the championship in Wimbledon (2)?.It is not neccessary to use all the tables.
SELECT SUM(production_num) FROM table_name_93 WHERE title = "bosko in dutch"
CREATE TABLE INST, Here is a database schema( table schema);
How many production numbers have a Title of bosko in dutch?It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Population (Woocoo) > 750 AND Population (Region total) > 74,210 AND Population (Tiaro) = 4,449 AND Population (Maryborough) < 24,465
CREATE TABLE INST, Here is a database schema( table schema);
Name the least year for population woocoo more than 750 and population region total more than 74,210 with population tiaro of 4,449 and population maryborough less than 24,465.It is not neccessary to use all the tables.
SELECT city FROM table_name_3 WHERE language = "spanish" AND website = "ultimahora.com"
CREATE TABLE INST, Here is a database schema( table schema);
Which city has spanish news on the website ultimahora.com ?It is not neccessary to use all the tables.
SELECT outgoing_manager FROM table_name_80 WHERE replaced_by = "thomas von heesen"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the outgoing manager that was replaced by Thomas Von Heesen?It is not neccessary to use all the tables.
SELECT Average Ratings FROM table WHERE Japanese Title = プリマダム
CREATE TABLE INST, Here is a database schema( table schema);
What are the average ratings for プリマダム?.It is not neccessary to use all the tables.
SELECT Code FROM table WHERE C.R. = 16.7:1
CREATE TABLE INST, Here is a database schema( table schema);
What code has a C.R of 16.7:1?.It is not neccessary to use all the tables.
SELECT title_subject FROM table_20903658_1 WHERE date_painted_created = "1982"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the subject of the sculpture created in 1982?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Recorded = 1959-09-15 AND Track = 7
CREATE TABLE INST, Here is a database schema( table schema);
Which track 7 title was recorded in 1959-09-15?.It is not neccessary to use all the tables.
SELECT UpVotes, DownVotes, COUNT(*) AS AnswersCount FROM (SELECT SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) AS UpVotes, SUM(CASE WHEN VoteTypeId = 3 THEN -1 ELSE 0 END) AS DownVotes FROM Posts INNER JOIN Votes ON Votes.PostId = Posts.Id AND (VoteTypeId = 2 OR VoteTypeId = 3) WHERE Posts.Id = @UserId GROUP BY Posts...
CREATE TABLE INST, Here is a database schema( table schema);
Find amount of downvotes of a post.It is not neccessary to use all the tables.
SELECT MIN(no_in_series) FROM table_27969432_3
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest numbered episode in the series?It is not neccessary to use all the tables.
SELECT score FROM table_name_29 WHERE home_team = "queens park rangers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score when the home team is queens park rangers?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_21 WHERE pick = "415"
CREATE TABLE INST, Here is a database schema( table schema);
Which nationality's pick was 415?It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Date = november 6, 1960
CREATE TABLE INST, Here is a database schema( table schema);
What was the Attendance on November 6, 1960?.It is not neccessary to use all the tables.
SELECT "Away team score" FROM table_74699 WHERE "Home team score" = '16.8 (104)'
CREATE TABLE INST, Here is a database schema( table schema);
What is the away team's score when the home team scores 16.8 (104)?It is not neccessary to use all the tables.
SELECT Genre FROM table WHERE Publisher = atari AND Year = 1991 AND Developer = nufx
CREATE TABLE INST, Here is a database schema( table schema);
Which Genre was published by Atari and developed by NuFX in 1991?.It is not neccessary to use all the tables.
SELECT year FROM table_name_88 WHERE character = "leiloon bala barareh"
CREATE TABLE INST, Here is a database schema( table schema);
What is the year of the TV series that has a character of Leiloon Bala Barareh?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Surface = clay AND Opponent = sofia shapatava
CREATE TABLE INST, Here is a database schema( table schema);
What is the tournament with a clay surface and sofia shapatava as the opponent?.It is not neccessary to use all the tables.
SELECT home_captain FROM table_name_22 WHERE result = "aus by 218 runs"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Home captain when the Result was Aus by 218 runs?It is not neccessary to use all the tables.
SELECT MAX Points FROM table WHERE Year > 1959
CREATE TABLE INST, Here is a database schema( table schema);
Which line after 1959 had the highest amount of points?.It is not neccessary to use all the tables.
SELECT AVG INEGI code FROM table WHERE Population density (/km 2 ) < 81.4 AND Human Development Index (2000) = 0.6593
CREATE TABLE INST, Here is a database schema( table schema);
WHich INEGI code has a Population density (/km 2 ) smaller than 81.4 and 0.6593 Human Development Index (2000)?.It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Result = l 41-37
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance number when the result is l 41-37?.It is not neccessary to use all the tables.
SELECT 1:00 pm FROM table WHERE 6:30 pm = local programs AND 7:30 am = animaniacs
CREATE TABLE INST, Here is a database schema( table schema);
What 1:00 pm has a 6:30 pm of local programs, and a 7:30 am of animaniacs?.It is not neccessary to use all the tables.
SELECT accreditation FROM table_2076522_2 WHERE school = "United Tribes Technical College"
CREATE TABLE INST, Here is a database schema( table schema);
What is the accrediation for united tribes technical college?It is not neccessary to use all the tables.
SELECT unit FROM table_name_31 WHERE type = "wwer-440/213"
CREATE TABLE INST, Here is a database schema( table schema);
Which unite had the type wwer-440/213?It is not neccessary to use all the tables.
SELECT Former Team FROM table WHERE Pick > 20
CREATE TABLE INST, Here is a database schema( table schema);
Which Former Team has a Pick larger than 20?.It is not neccessary to use all the tables.
SELECT Displacement FROM table WHERE Year = 1999 AND Torque = 280n·m (207lb·ft) @ 1750
CREATE TABLE INST, Here is a database schema( table schema);
What displacement is the model in 1999 with a Torque of 280n·m (207lb·ft) @ 1750?.It is not neccessary to use all the tables.
SELECT 2008 FROM table WHERE 2011 > 30,800,000 AND Country = united states
CREATE TABLE INST, Here is a database schema( table schema);
In the United States the 2011 attendance at this amusement park corporation was larger than 30,800,000 but lists what as its 2008 attendance?.It is not neccessary to use all the tables.
SELECT tv_time FROM table_name_63 WHERE date = "december 26, 1999"
CREATE TABLE INST, Here is a database schema( table schema);
Which TV Time has a Date of december 26 1999?It is not neccessary to use all the tables.
SELECT race_name FROM table_name_37 WHERE circuit = "snetterton"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the race for which the circuit was Snetterton?It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_name_84 WHERE points > 20
CREATE TABLE INST, Here is a database schema( table schema);
What is the year that has points larger than 20?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Match score = norths 19 manly 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the Away team when the match score was norths 19 manly 4?.It is not neccessary to use all the tables.
SELECT sanction FROM table_16275828_4 WHERE location = "Lincoln, Illinois"
CREATE TABLE INST, Here is a database schema( table schema);
Who sanctioned the event in lincoln illinois?It is not neccessary to use all the tables.
SELECT score FROM table_name_5 WHERE game = 2
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of game 2?It is not neccessary to use all the tables.
SELECT number_ & _name FROM table_name_65 WHERE date = "undergoing overhaul, restoration or repairs"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number & name with an Undergoing overhaul restoration or repairs date?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Tie no = replay AND Home team = chesterfield
CREATE TABLE INST, Here is a database schema( table schema);
Which Away Team has a Tie no of replay and a Home Team of Chesterfield?.It is not neccessary to use all the tables.
SELECT race_name FROM table_name_13 WHERE winning_driver = "stirling moss"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the race where Stirling Moss was the winning driver?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Set 2 = 25-20 AND Total = 75 - 49
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score when Set 2 shows 25-20, and a Total of 75 - 49?.It is not neccessary to use all the tables.
SELECT MIN(gold) FROM table_name_31 WHERE rank < 5 AND silver = 1 AND nation = "poland" AND total > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the least number of Gold for a Rank smaller than 5 and 1 silver medal for Poland with more than 1 medal in total?It is not neccessary to use all the tables.
SELECT kickoff___et__ FROM table_name_92 WHERE game_site = "ralph wilson stadium"
CREATE TABLE INST, Here is a database schema( table schema);
What is the kickoff time for the game that was at Ralph Wilson Stadium?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent in the final = katerina maleeva
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the opponent against Katerina Maleeva in the final?.It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Release title = HH
CREATE TABLE INST, Here is a database schema( table schema);
Which artist had a release title of HH?.It is not neccessary to use all the tables.
SELECT number FROM table_name_15 WHERE builder = "baldwin locomotive works" AND works_number = 40864
CREATE TABLE INST, Here is a database schema( table schema);
With a works number of 40864 for the builder of Baldwin Locomotive Works the number listed is?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE WSU Year(s) = 1981-82
CREATE TABLE INST, Here is a database schema( table schema);
What is Name, when WSU Year(s) is 1981-82?.It is not neccessary to use all the tables.
SELECT bleeding_time FROM table_1557752_1 WHERE condition = "Bernard-Soulier syndrome"
CREATE TABLE INST, Here is a database schema( table schema);
What is the bleeding time in Bernard-soulier syndrome?It is not neccessary to use all the tables.
SELECT 2009 FROM table WHERE 2007 = 345
CREATE TABLE INST, Here is a database schema( table schema);
What 2009 has 345 as the 2007?.It is not neccessary to use all the tables.
SELECT 50 AS s FROM table_28846752_8 WHERE average = "39.60"
CREATE TABLE INST, Here is a database schema( table schema);
How many entries is under 50s column when the average is 39.60?It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Rank = 12
CREATE TABLE INST, Here is a database schema( table schema);
Which Director has a Rank of 12?.It is not neccessary to use all the tables.
SELECT score FROM table_name_54 WHERE place = "t3" AND player = "seve ballesteros"
CREATE TABLE INST, Here is a database schema( table schema);
What score did Seve Ballesteros have when he was in T3 place?It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE College/Country/Team = mississippi
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of the player who went to college at Mississippi?.It is not neccessary to use all the tables.
SELECT Performer 3 FROM table WHERE Performer 2 = chip esten
CREATE TABLE INST, Here is a database schema( table schema);
Performer 2 of chip esten has what performer 3?.It is not neccessary to use all the tables.
SELECT previous_champion_s_ FROM table_1272033_1 WHERE champion_s_ = "Xix Xavant"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the champion prior to Xix Xavant?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.icd9_code = "80126" AND prescriptions.route = "INHALATION"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose diagnoses icd9 code is 80126 and drug route is inhalation?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_95 WHERE record = "0-5"
CREATE TABLE INST, Here is a database schema( table schema);
For the game showing a final record of 0-5 what was the attendance level?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Record = izod indycar series
CREATE TABLE INST, Here is a database schema( table schema);
When was the race that set the record for the Izod Indycar Series?.It is not neccessary to use all the tables.