sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Club FROM table WHERE Played = 22 AND Try bonus = 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the club when the played number is 22, and the try bonus was 0?.It is not neccessary to use all the tables.
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'acute respiratory failure - due to neurological process' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-3 year')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime, patient.patienthealthsystemstayid FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-3 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND t1.patienthealthsystemstayid = t2.patienthealthsystemstayid GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 5
CREATE TABLE INST, Here is a database schema( table schema);
what are the top five frequently prescribed drugs that patients have been prescribed in the same hospital encounter after having been diagnosed with acute respiratory failure - due to neurological process until 3 years ago?It is not neccessary to use all the tables.
SELECT Leagues FROM table WHERE Comp % = 54.0
CREATE TABLE INST, Here is a database schema( table schema);
In which league would you find the player with a comp percentage of 54.0?.It is not neccessary to use all the tables.
SELECT type FROM table_name_63 WHERE rite = "albanian"
CREATE TABLE INST, Here is a database schema( table schema);
What is Type for Rite Albanian?It is not neccessary to use all the tables.
SELECT MIN Wins FROM table WHERE Points = 6
CREATE TABLE INST, Here is a database schema( table schema);
Name the least wins for 6 points.It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Class D Winner = Roy Salvadori AND Class B Winner = Alan Hutcheson
CREATE TABLE INST, Here is a database schema( table schema);
In which round did Roy Salvadori won Class D and Alan Hutcheson won Class B?.It is not neccessary to use all the tables.
SELECT COUNT(directed_by) FROM table_20704243_3 WHERE season__number = 2
CREATE TABLE INST, Here is a database schema( table schema);
How many directors were in Season 2?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Location/attendance = los angeles AND Date < 18 AND Game = 54
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent of game 54, which was in Los Angeles and was before day 18?.It is not neccessary to use all the tables.
SELECT COUNT Lost FROM table WHERE Team = corinthians AND Points > 22
CREATE TABLE INST, Here is a database schema( table schema);
How many losses does corinthians have when they scored over 22 points?.It is not neccessary to use all the tables.
SELECT MAX(laps) FROM table_27940569_1
CREATE TABLE INST, Here is a database schema( table schema);
What was the greatest number of laps run?It is not neccessary to use all the tables.
SELECT type FROM table_name_73 WHERE record_description = "altitude with kg (lb) payload" AND pilot = "g.v. alfyorov"
CREATE TABLE INST, Here is a database schema( table schema);
Record description of altitude with kg (lb) payload and a Pilot of g.v. alfyorov had what type?It is not neccessary to use all the tables.
SELECT * FROM table_train_152 WHERE diastolic_blood_pressure_dbp > 90
CREATE TABLE INST, Here is a database schema( table schema);
diastolic blood pressure > 90 mm hg at restIt is not neccessary to use all the tables.
SELECT Leading Scorer FROM table WHERE Score = 96-87
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Leading Scorer in the Game with a Score of 96-87?.It is not neccessary to use all the tables.
SELECT Sponsor(s) FROM table WHERE Date introduced = june 9, 2011
CREATE TABLE INST, Here is a database schema( table schema);
Who sponsored the bill introduced on June 9, 2011?.It is not neccessary to use all the tables.
SELECT MAX FCWC FROM table WHERE Years = 1958–1965 AND ICFC < 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of FCWC in the Years of 1958–1965, and an ICFC smaller than 11?.It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Save = – AND Record = 94–36
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE NUMBER OF Attendance WITH A RECORD 94–36.It is not neccessary to use all the tables.
SELECT Champion FROM table WHERE Season = 1998-99
CREATE TABLE INST, Here is a database schema( table schema);
Who was the champion for the 1998-99 season?.It is not neccessary to use all the tables.
SELECT incumbent FROM table_1342249_35 WHERE district = "Ohio 12"
CREATE TABLE INST, Here is a database schema( table schema);
What is the incumbent for ohio 12?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_23916462_3 WHERE date = "August 26"
CREATE TABLE INST, Here is a database schema( table schema);
How many values for attendance on the date of August 26?It is not neccessary to use all the tables.
SELECT max_power_output FROM table_2326823_2 WHERE model = "2.0 TS" AND peak_torque = "NΒ·m (lbΒ·ft) at 3,500 rpm"
CREATE TABLE INST, Here is a database schema( table schema);
List the max power produced for model 2.0 ts with peak of nΒ·m (lbΒ·ft) at 3500 rpm.It is not neccessary to use all the tables.
SELECT MIN(population__2006_) FROM table_189893_1 WHERE percentage__2011_ = "1.06%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest population(2006) when there is a 1.06% in 2011?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Player = herbert s. graver
CREATE TABLE INST, Here is a database schema( table schema);
Player of herbert s. graver has what position?.It is not neccessary to use all the tables.
SELECT "Pick #" FROM table_29020 WHERE "College/junior/club team" = 'HIFK Helsinki (Finland)'
CREATE TABLE INST, Here is a database schema( table schema);
What number pick was the player from HIFK Helsinki (Finland)?It is not neccessary to use all the tables.
SELECT rounds FROM table_name_8 WHERE driver = "roger williamson"
CREATE TABLE INST, Here is a database schema( table schema);
None of the rounds has Roger Williamson as a driver.It is not neccessary to use all the tables.
SELECT Entrant FROM table WHERE Year > 1987 AND Chassis = benetton b188 AND Points = 12
CREATE TABLE INST, Here is a database schema( table schema);
which entrant after 1987 had 12 points and a benetton b188 chassis?.It is not neccessary to use all the tables.
SELECT Viewers(millions) FROM table WHERE Episode = Episode 5
CREATE TABLE INST, Here is a database schema( table schema);
How many millions of viewers did watch Episode 5?.It is not neccessary to use all the tables.
SELECT MAX(current_run_since) FROM table_name_12 WHERE last_title = "2010" AND seasons_in_esiliiga > 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest run currently since the last title in 2010 and a season in Esiliiga larger than 10?It is not neccessary to use all the tables.
SELECT reign_ended FROM table_name_17 WHERE name = "pharaoh seth"
CREATE TABLE INST, Here is a database schema( table schema);
When did Pharaoh Seth's reign end?It is not neccessary to use all the tables.
SELECT MAX(goals_against) FROM table_name_20 WHERE drawn < 3
CREATE TABLE INST, Here is a database schema( table schema);
How many goals against when the draws are fewer than 3?It is not neccessary to use all the tables.
SELECT network_name, COUNT(*) FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id ORDER BY COUNT(*) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Find the number of trains for each station, as well as the station network name Show the result with a bar graph, could you order Y from high to low order?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Nationality = canada AND Position = left wing AND Pick # = 49
CREATE TABLE INST, Here is a database schema( table schema);
What which player from Canada was picked #49 and plays left wing?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Attendance = 90,287
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent for the game that had 90,287 in attendance?.It is not neccessary to use all the tables.
SELECT COUNT Other a FROM table WHERE Name = Tommy Johnson Category:Articles with hCards
CREATE TABLE INST, Here is a database schema( table schema);
How many values of Other A correspond to Tommy Johnson Category:Articles with hCards?.It is not neccessary to use all the tables.
SELECT MAX NGC number FROM table WHERE Object type = open cluster AND Right ascension ( J2000 ) = 06h01m06s
CREATE TABLE INST, Here is a database schema( table schema);
Which NGC number has an Object type of open cluster, and a Right ascension (J2000) of 06h01m06s?.It is not neccessary to use all the tables.
SELECT player FROM table_name_7 WHERE to_par = "–2" AND country = "wales"
CREATE TABLE INST, Here is a database schema( table schema);
Which Player has a To par of –2 and a Country of wales?It is not neccessary to use all the tables.
SELECT masculine_u_stems FROM table_name_68 WHERE neuter_a_stems = "skipum"
CREATE TABLE INST, Here is a database schema( table schema);
What is the masculine u form for the old Swedish word with a neuter a form of skipum?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_2361788_1 WHERE playoffs = "Conference Finals"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most year for conference finalsIt is not neccessary to use all the tables.
SELECT Nominating Festival FROM table WHERE Director(s) = 2004
CREATE TABLE INST, Here is a database schema( table schema);
Name the nominating festival for director of 2004.It is not neccessary to use all the tables.
SELECT MIN(bronze) FROM table_name_58 WHERE gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Bronze, when Gold is less than 0?It is not neccessary to use all the tables.
SELECT MIN("Year") FROM table_68427 WHERE "Entrant" = 'ligier gitanes'
CREATE TABLE INST, Here is a database schema( table schema);
What was the earliest year for the Ligier Gitanes?It is not neccessary to use all the tables.
SELECT Capacity (litres) FROM table WHERE Cab size = Single AND Category = 2 Medium tanker
CREATE TABLE INST, Here is a database schema( table schema);
Name the capacity for single cab size 2 medium tanker.It is not neccessary to use all the tables.
SELECT DISTINCT LOCATION FROM cinema
CREATE TABLE INST, Here is a database schema( table schema);
What are all the locations with a cinema?It is not neccessary to use all the tables.
SELECT MIN("Enrollment") FROM table_3493 WHERE "Institution" = 'Augsburg College'
CREATE TABLE INST, Here is a database schema( table schema);
What is the enrollment for Augsburg college?It is not neccessary to use all the tables.
SELECT partitionid FROM user_profiles WHERE name = 'Iron Man'
CREATE TABLE INST, Here is a database schema( table schema);
What is the partition id of the user named "Iron Man".It is not neccessary to use all the tables.
SELECT 2nd leg FROM table WHERE Team #2 = dinamo minsk
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2nd leg of dinamo minsk team #2?.It is not neccessary to use all the tables.
SELECT nickname FROM table_1973842_2 WHERE joined = 2010
CREATE TABLE INST, Here is a database schema( table schema);
What's the nickname of the students of the school that joined the Conference in 2010?It is not neccessary to use all the tables.
SELECT COUNT Location Attendance FROM table WHERE Game = 3
CREATE TABLE INST, Here is a database schema( table schema);
How many locations was game 3 played at?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Competition = uefa cup AND Season = 2000-2001 AND Round = second round
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team of the UEFA cup in the 2000-2001 season with a second round?.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_21 WHERE country = "united states" AND total = 145 AND year_s__won = "2004"
CREATE TABLE INST, Here is a database schema( table schema);
What is the To par of the United States when the Total was 145 in 2004?It is not neccessary to use all the tables.
SELECT MIN(density) FROM table_name_74 WHERE population_2011_census = 13 OFFSET 708
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest density of a town with a 13708 2011 population census ?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND procedures.icd9_code = "3808"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose discharge location is left against medical advi and procedure icd9 code is 3808?It is not neccessary to use all the tables.
SELECT AVG(foundation) FROM table_name_73 WHERE official_name_in_malay = "politeknik pagoh"
CREATE TABLE INST, Here is a database schema( table schema);
what was the foundation of Politeknik Pagoh?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Player = jock hutchison
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for Jock Hutchison?.It is not neccessary to use all the tables.
SELECT rank FROM table_211714_2 WHERE viewers__in_millions_ = "14.80"
CREATE TABLE INST, Here is a database schema( table schema);
Name the rank for 14.80 viewersIt is not neccessary to use all the tables.
SELECT date FROM table_name_96 WHERE game = 59
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of game 59?It is not neccessary to use all the tables.
SELECT MIN(round) FROM table_name_88 WHERE res = "draw" AND opponent = "mari kaneko"
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest round resulting in a draw with an Opponent of mari kaneko?It is not neccessary to use all the tables.
SELECT speed FROM table_name_55 WHERE rider = "john hildreth"
CREATE TABLE INST, Here is a database schema( table schema);
What was John Hildreth's speed?It is not neccessary to use all the tables.
SELECT Visitor FROM table WHERE Home = toronto maple leafs AND Score = 4–1
CREATE TABLE INST, Here is a database schema( table schema);
What was the Visitor when the home was toronto maple leafs and the score was 4–1?.It is not neccessary to use all the tables.
SELECT SUM Position FROM table WHERE Lost > 16 AND Against > 74
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the team with more than 16 losses and an against greater than 74?.It is not neccessary to use all the tables.
SELECT AVG(goals) FROM table_name_68 WHERE matches < 228
CREATE TABLE INST, Here is a database schema( table schema);
What average goals have matches less than 228?It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_39 WHERE grid = 10
CREATE TABLE INST, Here is a database schema( table schema);
When the grid number is 10 what is the total number of laps?It is not neccessary to use all the tables.
SELECT "Semifinalists" FROM table_50563 WHERE "Surface" = 'hard' AND "Winner and score" = 'pete sampras 6–3, 3–6, 6–3'
CREATE TABLE INST, Here is a database schema( table schema);
Which Semifinalists have a Surface of hard, and a Winner and score of pete sampras 6 3, 3 6, 6 3?It is not neccessary to use all the tables.
SELECT name FROM table_name_46 WHERE points = 305
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the player with 305 points?It is not neccessary to use all the tables.
SELECT Status FROM table WHERE Name = joon-hyung park λ°•μ€€ν˜•
CREATE TABLE INST, Here is a database schema( table schema);
What was the status of joon-hyung park λ°•μ€€ν˜•?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_87 WHERE rank = "3"
CREATE TABLE INST, Here is a database schema( table schema);
What is Opponent when Rank is 3?It is not neccessary to use all the tables.
SELECT SUM December FROM table WHERE Record = 6-3-1
CREATE TABLE INST, Here is a database schema( table schema);
What day in December was the game that resulted in a record of 6-3-1?.It is not neccessary to use all the tables.
SELECT year FROM table_name_16 WHERE circuit = "kyalami" AND winning_constructor = "ferrari"
CREATE TABLE INST, Here is a database schema( table schema);
What year did Ferrari win the Kyalami circuit?It is not neccessary to use all the tables.
SELECT Transmission FROM table WHERE Engine = 2.0l AND Acceleration 0–100km/h (0–62mph) = 10.5 s
CREATE TABLE INST, Here is a database schema( table schema);
What is the transmission when the engine is 2.0l, and acceleration 0–100km/h (0–62mph) is 10.5 s?.It is not neccessary to use all the tables.
SELECT MAX("District") FROM table_29003 WHERE "Location of court" = 'Tolland'
CREATE TABLE INST, Here is a database schema( table schema);
What district is the court located in Tolland?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_76 WHERE venue = "princes park"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team at the game held at Princes Park?It is not neccessary to use all the tables.
SELECT ag FROM table_name_71 WHERE d3 & 4 = "41"
CREATE TABLE INST, Here is a database schema( table schema);
What is the AG value associated with a D3&4 of 41?It is not neccessary to use all the tables.
SELECT Number FROM table WHERE Name of the song = ε―¦ζƒ…
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the song named ε―¦ζƒ…?.It is not neccessary to use all the tables.
SELECT score FROM table_23453931_5 WHERE date = "December 19"
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for december 19It is not neccessary to use all the tables.
SELECT COUNT(mon_31_may) FROM table_25220821_4 WHERE rank = 5
CREATE TABLE INST, Here is a database schema( table schema);
How many times are listed for 31 May for the rider ranked 5?It is not neccessary to use all the tables.
SELECT player FROM table_name_78 WHERE place = "2"
CREATE TABLE INST, Here is a database schema( table schema);
What Player has a Place of 2?It is not neccessary to use all the tables.
SELECT DATEADD(month, DATEDIFF(month, @start, CreationDate), @start) AS "month", SUM(CASE WHEN PostTypeId = 1 THEN 1 ELSE 0 END) AS "questions", SUM(CASE WHEN PostTypeId = 2 THEN 1 ELSE 0 END) AS "answers" FROM Posts WHERE (PostTypeId = 1 OR PostTypeId = 2) AND CreationDate >= @start AND CreationDate < @stop AND Score = 0 GROUP BY DATEADD(month, DATEDIFF(month, @start, CreationDate), @start) ORDER BY DATEADD(month, DATEDIFF(month, @start, CreationDate), @start)
CREATE TABLE INST, Here is a database schema( table schema);
Questions and Answers per month.It is not neccessary to use all the tables.
SELECT Polyunsaturated fat FROM table WHERE Total fat = 100g AND Monounsaturated fat = 20g (84g in high oleic variety)
CREATE TABLE INST, Here is a database schema( table schema);
Name the polyunsaturated fat with total fat of 100g and monounsaturated fat of 20g (84g in high oleic variety).It is not neccessary to use all the tables.
SELECT Opponents in the final FROM table WHERE Score in the final = 6–4, 2–6, 6–4, 7–6(3)
CREATE TABLE INST, Here is a database schema( table schema);
Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)?.It is not neccessary to use all the tables.
SELECT "Team" FROM table_2840 WHERE "Date" = 'January 26'
CREATE TABLE INST, Here is a database schema( table schema);
Who was the game on January 26 played against?It is not neccessary to use all the tables.
SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 <= 4
CREATE TABLE INST, Here is a database schema( table schema);
what are the four most commonly prescribed medications the previous year?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Venue = hampden park AND Runners-up = rangers AND Winners = hibernian
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park?.It is not neccessary to use all the tables.
SELECT gdp__ppp__per_capita_2012_eu27_ = _100 FROM table_name_27 WHERE gdp_2012_millions_of_euro = "309,900"
CREATE TABLE INST, Here is a database schema( table schema);
What is GDP (PPP) Per Capita 2012 EU27 = 100 when GDP 2012 Millions Of Euro is 309900?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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' 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 BOSTON to OAKLAND flightsIt is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Record = 47-43
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance of the Blue Jays' game when their record was 47-43?.It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_4 WHERE result = "l 10-7" AND attendance < 37 OFFSET 500
CREATE TABLE INST, Here is a database schema( table schema);
What was the average week of a game with a result of l 10-7 attended by 37,500?It is not neccessary to use all the tables.
SELECT COUNT Winning driver FROM table WHERE Winning team = Bryan Herta Autosport
CREATE TABLE INST, Here is a database schema( table schema);
How many winning drivers are there when the winning team is Bryan herta autosport?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Place = t10 AND Score = 80-70-72-72=294
CREATE TABLE INST, Here is a database schema( table schema);
What Player with a Place of T10 had a Score of 80-70-72-72=294?.It is not neccessary to use all the tables.
SELECT guest_s_ FROM table_29135051_3 WHERE ratings = "1.44m"
CREATE TABLE INST, Here is a database schema( table schema);
who guest starred on the episode with a 1.44m ratingIt is not neccessary to use all the tables.
SELECT Score FROM table WHERE Country = south africa
CREATE TABLE INST, Here is a database schema( table schema);
What score has south africa as the country?.It is not neccessary to use all the tables.
SELECT season AS premiere FROM table_10819266_8 WHERE rank = "#21"
CREATE TABLE INST, Here is a database schema( table schema);
How many season premiers have a rank of #21?It is not neccessary to use all the tables.
SELECT COUNT First elected FROM table WHERE Incumbent = William Fadjo Cravens
CREATE TABLE INST, Here is a database schema( table schema);
William Fadjo Cravens is the only candidate who was first elected in 1939..It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "43" AND procedures.icd9_code = "4432"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients who have stayed in the hospital for more than 43 days have 4432 as their procedure icd9 code?It is not neccessary to use all the tables.
SELECT writer_s_ FROM table_26702078_1 WHERE no_in_series = 46
CREATE TABLE INST, Here is a database schema( table schema);
Name the writers for 46 in seriesIt is not neccessary to use all the tables.
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31482)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day') ORDER BY chartevents.valuenum, chartevents.charttime DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
when last did patient 31482 have the minimum arterial bp mean during a day before?It is not neccessary to use all the tables.
SELECT MAX(site) FROM table_name_42 WHERE sex_and_other_data = "old male"
CREATE TABLE INST, Here is a database schema( table schema);
Which Site that has a Sex and other data of old male?It is not neccessary to use all the tables.
SELECT transfer_fee FROM table_name_61 WHERE app_l_c_e_ = "0 (0/0/0)" AND notes = "to anagennisi karditsa"
CREATE TABLE INST, Here is a database schema( table schema);
What was the transfer fee for the player who had an App(L/C/E) of 0 (0/0/0) and notes of to anagennisi karditsa?It is not neccessary to use all the tables.
SELECT score FROM table_name_25 WHERE to_par = 12 AND country = "jersey"
CREATE TABLE INST, Here is a database schema( table schema);
What score has a to par of 12 and is from Jersey?It is not neccessary to use all the tables.
SELECT "Position" FROM table_44764 WHERE "Overall" < '314' AND "Pick" < '8'
CREATE TABLE INST, Here is a database schema( table schema);
What is Position, when Overallis less than 314, and when Pick is less than 8?It is not neccessary to use all the tables.
SELECT horse FROM table_name_61 WHERE athlete = "britta nΓ€pel" AND result < 71.909
CREATE TABLE INST, Here is a database schema( table schema);
What horse was shown by with Britta NΓ€pel and got less than 71.909?It is not neccessary to use all the tables.
SELECT COUNT Digital terrestrial channel FROM table WHERE Channel = Channel 4
CREATE TABLE INST, Here is a database schema( table schema);
How many digital terrestrial channels are there for channel 4?.It is not neccessary to use all the tables.