sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT MAX(series__number) FROM table_19517621_4
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest series number?It is not neccessary to use all the tables.
SELECT MAX Podiums FROM table WHERE Season < 2008 AND Position = 5th AND F/Laps > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of podiums before 2008 with a 5th position and more than 0 f/laps?.It is not neccessary to use all the tables.
SELECT location, COUNT(*) FROM performance GROUP BY location
CREATE TABLE INST, Here is a database schema( table schema);
Show different locations and the number of performances at each location.It is not neccessary to use all the tables.
SELECT Championship FROM table WHERE Session = race AND Event = indianapolis sweepstakes
CREATE TABLE INST, Here is a database schema( table schema);
In the Indianapolis Sweepstakes race session, what is the championship?.It is not neccessary to use all the tables.
SELECT "Women's doubles" FROM table_34274 WHERE "Men's doubles" = 'no competition' AND "Men's singles" = 'no competition'
CREATE TABLE INST, Here is a database schema( table schema);
Who won the Women's doubles the year that there was no competition in both the Men's doubles and the Men's singles?It is not neccessary to use all the tables.
SELECT city_of_license FROM table_name_1 WHERE frequency_mhz = "104.5 fm"
CREATE TABLE INST, Here is a database schema( table schema);
Which city has a frequency of 104.5 fm?It is not neccessary to use all the tables.
SELECT COUNT(color_system) FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "5.734"
CREATE TABLE INST, Here is a database schema( table schema);
How many color systems has a bit rate of 5.734?It is not neccessary to use all the tables.
SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"
CREATE TABLE INST, Here is a database schema( table schema);
List the title of all Cartoons showed on TV Channel with series name "Sky Radio".It is not neccessary to use all the tables.
SELECT SR No. FROM table WHERE Wheel arrangement = 0-6-0t AND Year made > 1874 AND Year withdrawn = 1963
CREATE TABLE INST, Here is a database schema( table schema);
Which SR number had a wheel arrangement of 0-6-0t, the year made was more recent than 1874, and the year withdrawn was 1963?.It is not neccessary to use all the tables.
SELECT country FROM table_184803_4 WHERE commentator = "Gordana Bonetti"
CREATE TABLE INST, Here is a database schema( table schema);
which countries were commentated on by gordana bonettiIt is not neccessary to use all the tables.
SELECT MAX(padilla_municipality) FROM table_2509350_3 WHERE language = "Quechua"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most padilla municipality for quechuaIt is not neccessary to use all the tables.
SELECT Country FROM table WHERE FIS Nordic World Ski Championships = 1948, 1950
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a FIS Nordic World Ski Championships of 1948, 1950?.It is not neccessary to use all the tables.
SELECT "competition" FROM table_204_622 WHERE id = (SELECT id FROM table_204_622 WHERE "competition" = 'world indoor championships' AND "year" = 2008) + 1
CREATE TABLE INST, Here is a database schema( table schema);
which competition did this competitor compete in next after the world indoor championships in 2008 ?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Associated Field Digs? = no AND Town/City = malta
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the museum located in Malta with no associated field digs?.It is not neccessary to use all the tables.
SELECT MIN Lead Margin FROM table WHERE Republican: Mitch Daniels = 48%
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Lead Margin when Republican: Mitch Daniels was polling at 48%?.It is not neccessary to use all the tables.
SELECT location FROM table_name_62 WHERE round > 1 AND opponent = "yoshihiro akiyama"
CREATE TABLE INST, Here is a database schema( table schema);
What is the location of the match with a round bigger than 1 where the opponent was Yoshihiro Akiyama?It is not neccessary to use all the tables.
SELECT average_speed__mph_ FROM table_28178756_1 WHERE team = "FILMAR Racing"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average speed for filmar racing?It is not neccessary to use all the tables.
SELECT surface FROM table_name_58 WHERE score = "7–5, 3–6, 7–6"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface of the score of 7–5 3–6 7–6?It is not neccessary to use all the tables.
SELECT MIN(bronze) FROM table_name_37 WHERE gold > 0 AND nation = "russia"
CREATE TABLE INST, Here is a database schema( table schema);
what is the least bronze when gold is more than 0 for russia?It is not neccessary to use all the tables.
SELECT position FROM table_name_54 WHERE player = "andrew paopao"
CREATE TABLE INST, Here is a database schema( table schema);
what is the position for andrew paopao?It is not neccessary to use all the tables.
SELECT SUM Round FROM table WHERE College = tennessee AND Overall > 153 AND Pick < 14
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14?.It is not neccessary to use all the tables.
SELECT record FROM table_name_31 WHERE opponent = "@ indiana pacers"
CREATE TABLE INST, Here is a database schema( table schema);
For the game where the opponent is listed as @ Indiana Pacers, what was the end record?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_48 WHERE venue = "windy hill"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Home team score At Windy Hill?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'atelectasis/collapse' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2103') AS t1 JOIN (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'physical therapy consult' AND STRFTIME('%y', treatment.treatmenttime) <= '2103') AS t2 WHERE t1.diagnosistime < t2.treatmenttime AND DATETIME(t2.treatmenttime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month')
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients who received physical therapy consult within 2 months after being diagnosed until 2103 with atelectasis/collapse.It is not neccessary to use all the tables.
SELECT "Episode" FROM table_6797 WHERE "VIII Season" = '5 082 535 (19 october 2008)'
CREATE TABLE INST, Here is a database schema( table schema);
What is Episode, when VIII Season is 5 082 535 (19 October 2008)?It is not neccessary to use all the tables.
SELECT title FROM table_name_69 WHERE start_of_reign = 1993
CREATE TABLE INST, Here is a database schema( table schema);
What Title's Start of Reign is 1993?It is not neccessary to use all the tables.
SELECT AVG Draws FROM table WHERE Against = 989 AND Wins < 12
CREATE TABLE INST, Here is a database schema( table schema);
What is th average dras when wins are less than 12 and the against is 989?.It is not neccessary to use all the tables.
SELECT name FROM table_name_55 WHERE acquisition_via = "import" AND number > 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the player acquired via import and larger than 22?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_15 WHERE score = 67 - 68 = 135
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par score of the player that had a score of 67-68=135?It is not neccessary to use all the tables.
SELECT res FROM table_name_10 WHERE method = "decision (unanimous)" AND opponent = "wataru sakata"
CREATE TABLE INST, Here is a database schema( table schema);
Which Res has a Method of decision (unanimous) and an Opponent of Wataru Sakata?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Team = charlotte
CREATE TABLE INST, Here is a database schema( table schema);
What score is the team of charlotte?.It is not neccessary to use all the tables.
SELECT governments FROM table_name_60 WHERE party = "yisrael beiteinu"
CREATE TABLE INST, Here is a database schema( table schema);
Which goverment had a party of yisrael beiteinu?It is not neccessary to use all the tables.
SELECT production_code FROM table_26561508_1 WHERE patient_portrayer = "Kathy Lamkin"
CREATE TABLE INST, Here is a database schema( table schema);
What is the production code for the episode where the patient portrayer is Kathy Lamkin?It is not neccessary to use all the tables.
SELECT broadcaster FROM table_name_12 WHERE territory = "malaysia"
CREATE TABLE INST, Here is a database schema( table schema);
Who broadcasts in malaysia?It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Type = hydro AND Name = grand rapids generating station AND Capacity ( MW ) > 479
CREATE TABLE INST, Here is a database schema( table schema);
what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is more than 479?.It is not neccessary to use all the tables.
SELECT partnering FROM table_name_11 WHERE score = "7–6 7 , 6–1"
CREATE TABLE INST, Here is a database schema( table schema);
Which Partnering has a Score of 7 6 7 , 6 1?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE First operational = March 1945
CREATE TABLE INST, Here is a database schema( table schema);
what's the name with first operational being march 1945.It is not neccessary to use all the tables.
SELECT date FROM table_name_14 WHERE record = "31-15"
CREATE TABLE INST, Here is a database schema( table schema);
What was date of the game when the record was 31-15?It is not neccessary to use all the tables.
SELECT MAX(championships) FROM table_name_54 WHERE club = "springfield cardinals"
CREATE TABLE INST, Here is a database schema( table schema);
What are the highest championships where the club is Springfield Cardinals?It is not neccessary to use all the tables.
SELECT 2007/08 FROM table WHERE 2010/11 = 1,633.6
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2007/08number when the 2010/11 is 1,633.6?.It is not neccessary to use all the tables.
SELECT COUNT(location_attendance) FROM table_22893781_5 WHERE date = "December 2"
CREATE TABLE INST, Here is a database schema( table schema);
How many attended on december 2?It is not neccessary to use all the tables.
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%Pakistan%' OR UPPER(Location) LIKE '%Pak' ORDER BY Reputation DESC LIMIT 250
CREATE TABLE INST, Here is a database schema( table schema);
Top 250 Reputation Holder From India.It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_42 WHERE start = 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Year when Start is "11"?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Pick < 149 AND Round = 9
CREATE TABLE INST, Here is a database schema( table schema);
Who was picked before 149 in round 9?.It is not neccessary to use all the tables.
SELECT _number___county FROM table_name_54 WHERE enrollment < 774 AND school = "eastern pekin"
CREATE TABLE INST, Here is a database schema( table schema);
What's the county of Eastern Pekin school with fewer than 774 enrolled?It is not neccessary to use all the tables.
SELECT director FROM table_name_6 WHERE original_title = "turks fruit"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed Turks Fruit?It is not neccessary to use all the tables.
SELECT MIN(events) FROM table_name_77 WHERE top_10 > 1 AND wins > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of events a tournament with more than 1 top-10 and more than 0 wins has?It is not neccessary to use all the tables.
SELECT MAX(drawn) FROM table_name_81 WHERE points_for > 545
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest drawn for points over 545?It is not neccessary to use all the tables.
SELECT "Away team" FROM table_4829 WHERE "Away team score" = '10.13 (73)'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away team that scored 10.13 (73)?It is not neccessary to use all the tables.
SELECT country FROM table_name_67 WHERE rank < 5 AND notes = "fb"
CREATE TABLE INST, Here is a database schema( table schema);
What country were the athletes where ranked smaller than 5 with notes listed as fb?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Circuit = lakeside international raceway AND Series = amc round 4
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Winner in the AMC Round 4 at Lakeside International Raceway?.It is not neccessary to use all the tables.
SELECT AVG(starts) FROM table_name_35 WHERE podiums > 0 AND stage_wins > 39 AND points > 456
CREATE TABLE INST, Here is a database schema( table schema);
what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456?It is not neccessary to use all the tables.
SELECT AVG(round) FROM table_name_56 WHERE circuit = "oulton park"
CREATE TABLE INST, Here is a database schema( table schema);
What was the average round for the oulton park circuit?It is not neccessary to use all the tables.
SELECT COUNT Time FROM table WHERE Lane = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the Time of the Athlete in Lane 4?.It is not neccessary to use all the tables.
SELECT The Kennel Club (UK) Toy Group FROM table WHERE American Kennel Club Toy Group = shih-tzu
CREATE TABLE INST, Here is a database schema( table schema);
What is the Kennel Club (UK) Toy Group with the shih-tzu as the American Kennel Club Toy Group breed?.It is not neccessary to use all the tables.
SELECT manner_of_departure FROM table_name_77 WHERE outgoing_manager = "giuseppe iachini"
CREATE TABLE INST, Here is a database schema( table schema);
What was the manner of departure for the outgoing manager, giuseppe iachini?It is not neccessary to use all the tables.
SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'AS'
CREATE TABLE INST, Here is a database schema( table schema);
what airline is ASIt is not neccessary to use all the tables.
SELECT MAX Played FROM table WHERE Team = cerro porteño AND Position > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Played that's for the Team of Cerro Porteño, with a Position that's larger than 1?.It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_25 WHERE week = 8
CREATE TABLE INST, Here is a database schema( table schema);
Which Attendance has a Week of 8?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2170" AND prescriptions.drug = "Atorvastatin"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose admission year is less than 2170 and drug name is atorvastatin?It is not neccessary to use all the tables.
SELECT COUNT(part_1) FROM table_1745843_10 WHERE verb_meaning = "to grow, to produce"
CREATE TABLE INST, Here is a database schema( table schema);
How many verbs mean to grow to produceIt is not neccessary to use all the tables.
SELECT AVG(industry) FROM table_name_44 WHERE agriculture > 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Industry when Agriculture is greater than 11?It is not neccessary to use all the tables.
SELECT Original Name FROM table WHERE Designer = glen peloso AND Location = n/a
CREATE TABLE INST, Here is a database schema( table schema);
What is the original name of the place by designer Glen Peloso with a Location of n/a?.It is not neccessary to use all the tables.
SELECT __500m FROM table_1912276_2 WHERE name = "Theo Bos"
CREATE TABLE INST, Here is a database schema( table schema);
What is the -500 number for Theo Bos?It is not neccessary to use all the tables.
SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING COUNT(*) >= 2
CREATE TABLE INST, Here is a database schema( table schema);
Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.It is not neccessary to use all the tables.
SELECT college FROM table_name_11 WHERE round > 1 AND pick > 163
CREATE TABLE INST, Here is a database schema( table schema);
What is College when Round is greater than 1 and when Pick is greater than 163?It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Studio = walt disney pictures
CREATE TABLE INST, Here is a database schema( table schema);
What is the ranking of the movie made at Walt Disney Pictures?.It is not neccessary to use all the tables.
SELECT play_by_play FROM table_22485543_1 WHERE network = "NBC" AND ice_level_reporters = "Darren Pang"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the play-by-play when nbc is the network and darren pang is the ice level reporters?It is not neccessary to use all the tables.
SELECT "Circuit" FROM table_79039 WHERE "Date" = '25 july'
CREATE TABLE INST, Here is a database schema( table schema);
What Circuit has a Date of 25 july?It is not neccessary to use all the tables.
SELECT platform FROM table_name_28 WHERE stop_no = "99014"
CREATE TABLE INST, Here is a database schema( table schema);
Which Platform is the one that has a Stop number of 99014?It is not neccessary to use all the tables.
SELECT playoffs FROM table_name_83 WHERE year < 2012 AND open_cup = "did not enter"
CREATE TABLE INST, Here is a database schema( table schema);
Which Playoffs have a Year smaller than 2012 and an Open Cup of did not enter?It is not neccessary to use all the tables.
SELECT level FROM table_237036_2 WHERE macroblocks_s = 11880 AND high_10_profile = 6000
CREATE TABLE INST, Here is a database schema( table schema);
What level has 11880 macroblocks and high 10 profile is 6000?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Score = 76-68=144
CREATE TABLE INST, Here is a database schema( table schema);
Which player scored 76-68=144?.It is not neccessary to use all the tables.
SELECT COUNT GDP per capita FROM table WHERE Nation = Burkina Faso
CREATE TABLE INST, Here is a database schema( table schema);
How many items are listed under gdp per capita under the nation of Burkina Faso?.It is not neccessary to use all the tables.
SELECT height_in_ft FROM table_11734041_2 WHERE school_club_team_country = "Hartford"
CREATE TABLE INST, Here is a database schema( table schema);
What is the height of the player who attended Hartford?It is not neccessary to use all the tables.
SELECT Device FROM table WHERE Carrier = mts mobility
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE DEVICE WITH MTS MOBILITY?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Home team score = 19.18 (132)
CREATE TABLE INST, Here is a database schema( table schema);
Which home team scored 19.18 (132)?.It is not neccessary to use all the tables.
SELECT AVG(front_row_starts) FROM table_name_85 WHERE pole_positions < 68 AND entries < 52
CREATE TABLE INST, Here is a database schema( table schema);
What's the average front row starts for drivers with less than 68 pole positions and entries lower than 52?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_58 WHERE runner_s__up = "steve stricker"
CREATE TABLE INST, Here is a database schema( table schema);
In which year is the highest for runner-up Steve Stricker?It is not neccessary to use all the tables.
SELECT AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-8693')) AND lab.labname = 'ammonia' AND DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TIME(), '-92 month') GROUP BY STRFTIME('%y-%m', lab.labresulttime)
CREATE TABLE INST, Here is a database schema( table schema);
what is the monthly average amount of ammonia of patient 007-8693 since 92 months ago?It is not neccessary to use all the tables.
SELECT Moving to FROM table WHERE Nat. = tri
CREATE TABLE INST, Here is a database schema( table schema);
Who is moving with the nationality of Tri?.It is not neccessary to use all the tables.
SELECT record FROM table_17104539_9 WHERE date = "June 7"
CREATE TABLE INST, Here is a database schema( table schema);
Name the record for june 7It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Production code = 514
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of production code 514?.It is not neccessary to use all the tables.
SELECT "name" FROM table_204_832 WHERE "name" <> 'marc dos santos' AND "from" = (SELECT "from" FROM table_204_832 WHERE "name" = 'marc dos santos')
CREATE TABLE INST, Here is a database schema( table schema);
marc dos santos started as coach the same year as what other coach ?It is not neccessary to use all the tables.
SELECT completion_percentage FROM table_19517448_3 WHERE yards_per_attempt = "Steve McNair : 2003"
CREATE TABLE INST, Here is a database schema( table schema);
What is the completion percentage when yards per attempt was done by Steve McNair : 2003?It is not neccessary to use all the tables.
SELECT AVG Evening Gown FROM table WHERE Average = 8.686
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean evening gown number when the average is 8.686?.It is not neccessary to use all the tables.
SELECT release_date FROM table_name_85 WHERE title = "drip-along daffy"
CREATE TABLE INST, Here is a database schema( table schema);
What was the release date of the episode titled Drip-Along Daffy?It is not neccessary to use all the tables.
SELECT status FROM table_176521_2 WHERE area_km_2 = "304.06"
CREATE TABLE INST, Here is a database schema( table schema);
What is the status(es) of the place with an area of 304.06 km2?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE To par = +1 AND Player = adam scott
CREATE TABLE INST, Here is a database schema( table schema);
In what place did Adam Scott, who had a to par score of +1, finish?.It is not neccessary to use all the tables.
SELECT Make FROM table WHERE Car # > 59
CREATE TABLE INST, Here is a database schema( table schema);
Which Make has a Car # larger than 59?.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_92 WHERE score = 69 - 72 = 141 AND player = "tim herron"
CREATE TABLE INST, Here is a database schema( table schema);
What was the to par score for Tim Herron who had a score of 69-72=141?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_11 WHERE venue = "victoria park"
CREATE TABLE INST, Here is a database schema( table schema);
When the VFL played Victoria Park what was the home team score?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_62 WHERE beer_name = "maggs magnificent mild" AND competition = "camra reading branch beer festival" AND category = "overall"
CREATE TABLE INST, Here is a database schema( table schema);
What year did maggs magnificent mild bear win overall at the camra reading branch beer festival?It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Res. = loss AND Event = ufc 118
CREATE TABLE INST, Here is a database schema( table schema);
In what round was the loss at ufc 118?.It is not neccessary to use all the tables.
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-154299')) AND intakeoutput.cellpath LIKE '%output%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day')
CREATE TABLE INST, Here is a database schema( table schema);
what is the total amount of total output of patient 027-154299 in the previous day?It is not neccessary to use all the tables.
SELECT "Poll source" FROM table_34637 WHERE "John Oxendine" = '32%'
CREATE TABLE INST, Here is a database schema( table schema);
In what poll is John Oxendine at 32%?It is not neccessary to use all the tables.
SELECT position FROM table_name_15 WHERE player = "john keane"
CREATE TABLE INST, Here is a database schema( table schema);
Which position has john keane as the player?It is not neccessary to use all the tables.
SELECT Status FROM table WHERE Opposing Team = gauteng falcons
CREATE TABLE INST, Here is a database schema( table schema);
What status has gauteng falcons as the opposing team?.It is not neccessary to use all the tables.
SELECT COUNT(RejectionDate) AS Rejected, COUNT(ApprovalDate) AS Approved FROM SuggestedEdits WHERE Comment LIKE '%@%.com' AND CreationDate > CURRENT_TIMESTAMP() - 90
CREATE TABLE INST, Here is a database schema( table schema);
Suggested edits with email comment in the last 90 days.It is not neccessary to use all the tables.
SELECT Manner of departure FROM table WHERE Outgoing manager = giuseppe iachini
CREATE TABLE INST, Here is a database schema( table schema);
What was the manner of departure for the outgoing manager, giuseppe iachini?.It is not neccessary to use all the tables.