sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT howard_baker FROM table_name_64 WHERE george_h_w_bush = "66%"
CREATE TABLE INST, Here is a database schema( table schema);
Name the howard bake when bush had 66%It is not neccessary to use all the tables.
SELECT Languages FROM table WHERE Member countries = Cyprus
CREATE TABLE INST, Here is a database schema( table schema);
Name the languages for cyprus.It is not neccessary to use all the tables.
SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'd5w' AND admissions.subject_id = 19175 AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of...
CREATE TABLE INST, Here is a database schema( table schema);
the last time the previous month, when was patient 19175 prescribed d5w and pantoprazole at the same time?It is not neccessary to use all the tables.
SELECT Loss FROM table WHERE Record = 16–15
CREATE TABLE INST, Here is a database schema( table schema);
What was the loss of the game when the record was 16–15?.It is not neccessary to use all the tables.
SELECT AVG(gold) FROM table_name_41 WHERE silver = 1 AND event = "2000 summer paralympics" AND bronze > 3
CREATE TABLE INST, Here is a database schema( table schema);
what is the gold when silver is 1, event is 2000 summer paralympics and bronze is more than 3?It is not neccessary to use all the tables.
SELECT Driver(s) FROM table WHERE Primary Sponsor(s) = Quicken Loans / Haas Automation
CREATE TABLE INST, Here is a database schema( table schema);
What is the driver for the team whose primary sponsor is Quicken Loans / Haas Automation?.It is not neccessary to use all the tables.
SELECT place FROM table_name_19 WHERE to_par = "–8"
CREATE TABLE INST, Here is a database schema( table schema);
Which Place has a To par of –8?It is not neccessary to use all the tables.
SELECT family_families FROM table_19897294_11 WHERE no_in_series = "US14"
CREATE TABLE INST, Here is a database schema( table schema);
What family was featured in episode us14 of the series?It is not neccessary to use all the tables.
SELECT MAX(best) FROM table_name_58 WHERE team = "rusport" AND qual_2 = "1:10.166"
CREATE TABLE INST, Here is a database schema( table schema);
What is the best time for a rusport driver with a qual 2 time of 1:10.166?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Year built < 1973 AND City = courbevoie
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of a building in Courbevoie built before 1973?.It is not neccessary to use all the tables.
SELECT "Constructor" FROM table_71458 WHERE "Chassis" = 'rb1' AND "Driver" = 'david coulthard'
CREATE TABLE INST, Here is a database schema( table schema);
Which constructor made the car with a rb1 chassis and which is driven by David Coulthard?It is not neccessary to use all the tables.
SELECT speed FROM table_name_28 WHERE rank < 3 AND time = "1:06.19.90"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Speed when the rank is smaller than 3 and time is 1:06.19.90?It is not neccessary to use all the tables.
SELECT result FROM table_name_41 WHERE attendance = "82,113"
CREATE TABLE INST, Here is a database schema( table schema);
What are the results for the game with 82113 attending?It is not neccessary to use all the tables.
SELECT t.TagName, COUNT(*) AS count FROM Posts AS p, PostTags AS pt, Tags AS t, PostTags AS ptjs WHERE pt.PostId = p.Id AND pt.TagId = t.Id AND pt.PostId = ptjs.PostId AND ptjs.TagId = (SELECT Id FROM Tags WHERE LOWER(TagName) = 'd3.js') GROUP BY t.TagName ORDER BY Count DESC
CREATE TABLE INST, Here is a database schema( table schema);
Top queries related to Bootstrap.It is not neccessary to use all the tables.
SELECT date FROM table_name_36 WHERE crowd > 35 OFFSET 151
CREATE TABLE INST, Here is a database schema( table schema);
When was the attendance at a venue bigger than 35151?It is not neccessary to use all the tables.
SELECT COUNT No. FROM table WHERE Chassis/Engine = Lola T92/00/ Buick
CREATE TABLE INST, Here is a database schema( table schema);
How many drivers used lola t92/00/ buick for their chassis/engine?.It is not neccessary to use all the tables.
SELECT MAX # FROM table WHERE Viewers (millions) = 6.95
CREATE TABLE INST, Here is a database schema( table schema);
Name the most number for viewers being 6.95.It is not neccessary to use all the tables.
SELECT score FROM table_27902171_9 WHERE record = "47-34"
CREATE TABLE INST, Here is a database schema( table schema);
What were the scores of the games with a record of 47-34?It is not neccessary to use all the tables.
SELECT Jockey FROM table WHERE Class = Group 1 AND Venue = Randwick AND Distance = 1400m
CREATE TABLE INST, Here is a database schema( table schema);
Who was the jockey in group 1 at the 1400m distance at randwick?.It is not neccessary to use all the tables.
SELECT MIN Bangladeshi Population FROM table WHERE Rank = 7
CREATE TABLE INST, Here is a database schema( table schema);
How many Bangladeshi citizens are there in the borough ranked at number 7?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Margin = 4
CREATE TABLE INST, Here is a database schema( table schema);
what is the venue where the margin is 4?.It is not neccessary to use all the tables.
SELECT COUNT(ilo_code) FROM table_2001348_1 WHERE revising_convention_s_ = "this convention, Work in Fishing Convention"
CREATE TABLE INST, Here is a database schema( table schema);
How many ILO codes are there with revising conventions of 'this convention work in fishing convention'?It is not neccessary to use all the tables.
SELECT Winning score FROM table WHERE Tournament = buy.com siouxland open
CREATE TABLE INST, Here is a database schema( table schema);
What was the winning score of the Buy.com Siouxland Open?.It is not neccessary to use all the tables.
SELECT COUNT(apps) FROM table_name_90 WHERE goals = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the final number of apps with 2 goals?It is not neccessary to use all the tables.
SELECT Label FROM table WHERE Date = 2002 AND Region = germany AND Catalog = dos 195
CREATE TABLE INST, Here is a database schema( table schema);
What is the label for 2002, in Germany, Catalog Dos 195?.It is not neccessary to use all the tables.
SELECT Party FROM table WHERE District = South Carolina 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the party for south carolina 3?.It is not neccessary to use all the tables.
SELECT team FROM table_1266602_2 WHERE crew_chief = "Wally Rogers"
CREATE TABLE INST, Here is a database schema( table schema);
Which teams used Wally Rogers as their crew chief?It is not neccessary to use all the tables.
SELECT id, country, city, name FROM airport ORDER BY name
CREATE TABLE INST, Here is a database schema( table schema);
List the id, country, city and name of the airports ordered alphabetically by the name.It is not neccessary to use all the tables.
SELECT MAX(year_set) FROM table_name_67 WHERE event = "100m freestyle"
CREATE TABLE INST, Here is a database schema( table schema);
What was the latest year that had a 100m freestyle?It is not neccessary to use all the tables.
SELECT player FROM table_name_83 WHERE wins = 14
CREATE TABLE INST, Here is a database schema( table schema);
What player has 14 wins?It is not neccessary to use all the tables.
SELECT T2.name, COUNT(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id
CREATE TABLE INST, Here is a database schema( table schema);
Show the station name and number of trains in each station.It is not neccessary to use all the tables.
SELECT MAX(incarceration_rate_male) FROM table_25042332_31 WHERE region = "Maule"
CREATE TABLE INST, Here is a database schema( table schema);
What is the male incarceration rate of maule?It is not neccessary to use all the tables.
SELECT High hill zone FROM table WHERE Mid-Hill Zone = slightly warm temperature
CREATE TABLE INST, Here is a database schema( table schema);
Which mid-hill zone has a slightly warm temperature?.It is not neccessary to use all the tables.
SELECT school FROM table_11677100_18 WHERE hometown = "Montvale, NJ"
CREATE TABLE INST, Here is a database schema( table schema);
What school did the player attend who's hometown was Montvale, NJ?It is not neccessary to use all the tables.
SELECT written_by FROM table_23483182_1 WHERE original_air_date = "February 4, 2010"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode that aired February 4 2010?It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Name = marie-dominique simonet
CREATE TABLE INST, Here is a database schema( table schema);
What party is Marie-Dominique Simonet part of?.It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Opponent = kim eun-ha
CREATE TABLE INST, Here is a database schema( table schema);
Which Round has kim eun-ha as an Opponent?.It is not neccessary to use all the tables.
SELECT MIN First elected FROM table WHERE Incumbent = howard mckeon
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest first elected date of incumbent howard mckeon?.It is not neccessary to use all the tables.
SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-17950')) ORDER BY lab.labresulttime DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
what was the name of the lab test that patient 010-17950 received for the last time?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Box office = $961,147
CREATE TABLE INST, Here is a database schema( table schema);
The box office was $961,147 in what year?.It is not neccessary to use all the tables.
SELECT "No. in series" FROM table_3989 WHERE "Title" = 'The Drum Major'
CREATE TABLE INST, Here is a database schema( table schema);
What episode number in the series is 'the drum major'?It is not neccessary to use all the tables.
SELECT outgoing_manager FROM table_26976615_3 WHERE incoming_manager = "Laurenţiu Reghecampf"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the outgoing manager when the incoming manager was laurenţiu reghecampf?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Record = 17-44
CREATE TABLE INST, Here is a database schema( table schema);
What is Opponent, when Record is 17-44?.It is not neccessary to use all the tables.
SELECT "Krypton" FROM table_59220 WHERE "Physical property" = 'critical pressure (atm)'
CREATE TABLE INST, Here is a database schema( table schema);
Which Krypton has a Physical property of critical pressure (atm)?It is not neccessary to use all the tables.
SELECT date FROM table_name_98 WHERE class = "gts" AND circuit = "mosport international raceway"
CREATE TABLE INST, Here is a database schema( table schema);
Which date was a GTS class on the Mosport International Raceway?It is not neccessary to use all the tables.
SELECT MIN Goals FROM table WHERE W-League = 8 (2)
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of goals with 8 (2) w-leagues?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Score = 82-0
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the venue for score of 82-0.It is not neccessary to use all the tables.
SELECT rounds FROM table_name_7 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 tries_against FROM table_name_19 WHERE drawn = "1" AND points = "41"
CREATE TABLE INST, Here is a database schema( table schema);
How many tries against did the club with 1 drawn and 41 points have?It is not neccessary to use all the tables.
SELECT population__2011_ FROM table_2562572_37 WHERE cyrillic_name_other_names = "Српска Црња"
CREATE TABLE INST, Here is a database schema( table schema);
Name the population for 2011 for српска црњаIt is not neccessary to use all the tables.
SELECT constructor FROM table_name_69 WHERE race = "belgian grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
Name the constructor for the belgian grand prixIt is not neccessary to use all the tables.
SELECT AVG(cup_goals) FROM table_name_9 WHERE league_apps > 34
CREATE TABLE INST, Here is a database schema( table schema);
How many cup goals for the season with more than 34 league apps?It is not neccessary to use all the tables.
SELECT Datacenter FROM table WHERE Standard = no AND Itanium = yes AND Features = fault tolerant memory sync
CREATE TABLE INST, Here is a database schema( table schema);
What is the Datacenter for the Fault Tolerant Memory Sync Feature that has Yes for Itanium and No for Standard?.It is not neccessary to use all the tables.
SELECT Lead Envoy FROM table WHERE Ryūkyūan King = shō kei AND Mission type = congratulation AND Year = 1718
CREATE TABLE INST, Here is a database schema( table schema);
Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = 3,4,5 jul 1902
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game that was played on 3,4,5 Jul 1902?.It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Production code = ad1d02
CREATE TABLE INST, Here is a database schema( table schema);
tell me the director of the production code ad1d02..It is not neccessary to use all the tables.
SELECT SUM Launches FROM table WHERE Rocket = long march 3 AND Failures > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of launches with Long March 3 and 0 failures?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Opponent = clayton mckinney
CREATE TABLE INST, Here is a database schema( table schema);
What is the record when Clayton Mckinney was the opponent?.It is not neccessary to use all the tables.
SELECT British FROM table WHERE American = ə
CREATE TABLE INST, Here is a database schema( table schema);
What is the British letter if American is ə?.It is not neccessary to use all the tables.
SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY AVG(rating) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Show me mean rating by languages in a histogram, order by the mean rating in desc please.It is not neccessary to use all the tables.
SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE course.department LIKE '%SAC%' AND program_course.category LIKE 'PreMajor' AND program_course.course_id = course.course_id
CREATE TABLE INST, Here is a database schema( table schema);
What classes should I enroll in in order to declare a major in SAC ?It is not neccessary to use all the tables.
SELECT MAX(pick) FROM table_name_20 WHERE college = "lsu"
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest pick number of the player who went to LSU in college?It is not neccessary to use all the tables.
SELECT AVG(num_of_staff) FROM museum WHERE open_year < 2009
CREATE TABLE INST, Here is a database schema( table schema);
Find the average number of staff working for the museums that were open before 2009.It is not neccessary to use all the tables.
SELECT pilot FROM table_name_98 WHERE position > 5 AND speed = "118.8km/h"
CREATE TABLE INST, Here is a database schema( table schema);
Which pilot has a position above 5 and a speed of 118.8km/h?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Bodyweight = 73.6
CREATE TABLE INST, Here is a database schema( table schema);
Which person has a bodyweight of 73.6?.It is not neccessary to use all the tables.
SELECT MIN Draws FROM table WHERE Against = 1547 AND Wins > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Draws, when Against is "1547", and when Wins is greater than 3?.It is not neccessary to use all the tables.
SELECT fastest_lap FROM table_name_31 WHERE race = "belgian grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
What was the fastest lap in the Belgian Grand Prix?It is not neccessary to use all the tables.
SELECT Pick FROM table WHERE Name = ralph shoaf
CREATE TABLE INST, Here is a database schema( table schema);
What was Ralph Shoaf's pick number?.It is not neccessary to use all the tables.
SELECT died FROM table_1656555_1 WHERE ordained_bishop = "April 26, 1927"
CREATE TABLE INST, Here is a database schema( table schema);
What is the death date of the archbishop who was ordained as bishop April 26 1927?It is not neccessary to use all the tables.
SELECT DISTINCT T1.Leader_Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID WHERE T2.Country = "Canada"
CREATE TABLE INST, Here is a database schema( table schema);
Show the distinct leader names of colleges associated with members from country "Canada".It is not neccessary to use all the tables.
SELECT Team 1 FROM table WHERE Team 2 = cbm valladolid
CREATE TABLE INST, Here is a database schema( table schema);
Which team 1 has cbm valladolid as team 2?.It is not neccessary to use all the tables.
SELECT competition FROM table_name_37 WHERE opponents = "sv werder bremen" AND score = "1-2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?It is not neccessary to use all the tables.
SELECT SUM Crowd FROM table WHERE Home team = south melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the crowd for the home team of South Melbourne?.It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_79 WHERE college_country = "baylor"
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest year a Baylor player made the list?It is not neccessary to use all the tables.
SELECT COUNT(incumbent) FROM table_1341718_14 WHERE candidates = "Phil Crane (R) 58.0% Edward A. Warman (D) 42.0%"
CREATE TABLE INST, Here is a database schema( table schema);
how many times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%?It is not neccessary to use all the tables.
SELECT release_date FROM table_name_37 WHERE location = "europe"
CREATE TABLE INST, Here is a database schema( table schema);
What is the release date when the location is Europe?It is not neccessary to use all the tables.
SELECT MIN Place FROM table WHERE Total = 38.55 AND 3 Balls, 2 Ribbons < 19.4
CREATE TABLE INST, Here is a database schema( table schema);
Total of 38.55, and a 3 Balls, 2 Ribbons smaller than 19.4 had what lowest place?.It is not neccessary to use all the tables.
SELECT 1980–1981 Team FROM table WHERE Birthplace = warroad, minnesota
CREATE TABLE INST, Here is a database schema( table schema);
What was the 1980-1981 team of the player born in Warroad, Minnesota?.It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Series # = 422
CREATE TABLE INST, Here is a database schema( table schema);
Who directed series # 422?.It is not neccessary to use all the tables.
SELECT points FROM table_23812628_1 WHERE team__number1 = "Zamora"
CREATE TABLE INST, Here is a database schema( table schema);
Name the points for zamoraIt is not neccessary to use all the tables.
SELECT COUNT $25 – 1/4 oz. FROM table WHERE $50 – 1/2 oz. = 13,836 AND $100 – 1 oz. < 14,912
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE NUMBER OF COINS OF $25-1/4 OZ WITH $50-1/2 OZ OF 13,836, AND $100-01 OZ, SMALLER THAN 14,912?.It is not neccessary to use all the tables.
SELECT COUNT Laps FROM table WHERE Grid = 9
CREATE TABLE INST, Here is a database schema( table schema);
How many laps were there with #9 grid?.It is not neccessary to use all the tables.
SELECT period_active FROM table_name_42 WHERE artist = "enya"
CREATE TABLE INST, Here is a database schema( table schema);
Name the period active for enyaIt is not neccessary to use all the tables.
SELECT AVG(goals_conceded) FROM table_name_48 WHERE draw = 0 AND played > 0
CREATE TABLE INST, Here is a database schema( table schema);
Name the Goals Conceded which has a Draw of 0 and a Played larger than 0?It is not neccessary to use all the tables.
SELECT metric_value FROM table_name_54 WHERE ratio = "1/20"
CREATE TABLE INST, Here is a database schema( table schema);
How big in metric terms is the unit that has a ratio of 1/20?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_78 WHERE venue = "kardinia park"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team at Kardinia Park?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = 28 march 1979
CREATE TABLE INST, Here is a database schema( table schema);
I want the score for 28 march 1979.It is not neccessary to use all the tables.
SELECT Top 5 FROM table WHERE Winnings = $52,595
CREATE TABLE INST, Here is a database schema( table schema);
name the top 5 where the winnings is $52,595.It is not neccessary to use all the tables.
SELECT SUM(gold) FROM table_name_18 WHERE nation = "new zealand" AND rank < 14
CREATE TABLE INST, Here is a database schema( table schema);
What is the total gold from New zealand and a rank less than 14?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.label = "Renal Epithelial Cells"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose gender is m and lab test name is renal epithelial cells?It is not neccessary to use all the tables.
SELECT SUM(lane) FROM table_name_15 WHERE react = 0.185 AND time < 20.9
CREATE TABLE INST, Here is a database schema( table schema);
Which lane did the swimmer who had a Reaction time of 0.185 and a time of 20.9 swim in?It is not neccessary to use all the tables.
SELECT MAX Frequency MHz FROM table WHERE Call sign = w292cu
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest frequency mhz with the call sign w292cu?.It is not neccessary to use all the tables.
SELECT COUNT UK co-presenter FROM table WHERE Co-presenter = Joe Swash AND Comedian = Russell Kane
CREATE TABLE INST, Here is a database schema( table schema);
Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?.It is not neccessary to use all the tables.
SELECT category FROM table_name_64 WHERE result = "nominated" AND year = 2006 AND title = "pierrepoint"
CREATE TABLE INST, Here is a database schema( table schema);
What Category has a Result of Nominated Year of 2006 and the Title of Pierrepoint?It is not neccessary to use all the tables.
SELECT "Tournament" FROM table_55457 WHERE "1996" = 'qf'
CREATE TABLE INST, Here is a database schema( table schema);
Which one of the tournaments had a QF in 1996?It is not neccessary to use all the tables.
SELECT area__km²_ FROM table_name_11 WHERE gdp_per_capita__us$_ = "11,929"
CREATE TABLE INST, Here is a database schema( table schema);
What is the area of the nation with GDP per capita (US$) of 11929?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = north melbourne
CREATE TABLE INST, Here is a database schema( table schema);
what was the away team for the north melbourne home team?.It is not neccessary to use all the tables.
SELECT date FROM table_name_33 WHERE score = "0-0"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the score 0-0?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Original air date = November 08, 1985
CREATE TABLE INST, Here is a database schema( table schema);
Name the title that aired for november 08, 1985.It is not neccessary to use all the tables.
SELECT SUM Glyph FROM table WHERE Binary < 111001 AND Octal < 65 AND Hexadecimal < 30
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the glyph with a binary less than 111001, an octal less than 65, and a hexadecimal less than 30?.It is not neccessary to use all the tables.