instruction stringlengths 0 1.06k | input stringlengths 11 5.3k | response stringlengths 2 4.44k |
|---|---|---|
Name the bulgarian for jullie hadden gehoord | CREATE TABLE table_22307 ("English" text,"German" text,"Dutch" text,"Latin" text,"Romanian" text,"Portuguese" text,"Spanish" text,"Italian" text,"French" text,"Greek (Modern)" text,"Bulgarian" text,"Macedonian" text,"Polish (extinct)" text) | SELECT "Bulgarian" FROM table_22307 WHERE "Dutch" = 'jullie hadden gehoord' |
What was the final score when the Denver Broncos were the visiting team? | CREATE TABLE table_70684 ("Date" text,"Visiting Team" text,"Final Score" text,"Host Team" text,"Stadium" text) | SELECT "Final Score" FROM table_70684 WHERE "Visiting Team" = 'denver broncos' |
what was the air date of the first episode ? | CREATE TABLE table_204_362 (id number,"episode" number,"airdate" text,"game 1" text,"game 2" text,"game 3" text,"viewers" text) | SELECT "airdate" FROM table_204_362 WHERE "episode" = 1 |
give me the number of patients whose year of death is less than or equal to 2180 and procedure long title is local excision of lesion or tissue of bone, scapula, clavicle, and thorax [ribs and sternum]? | CREATE TABLE procedures (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE diagnoses (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE prescriptions (subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2180.0" AND procedures.long_title = "Local excision of lesion or tissue of bone, scapula, clavicle, and thorax [ribs and sternum]" |
Name the country with a score of 69-71=140. | CREATE TABLE table_name_33 (country VARCHAR,score VARCHAR) | SELECT country FROM table_name_33 WHERE score = 69 - 71 = 140 |
What is the seat of the county that has a density of 14.1? | CREATE TABLE table_214920_1 (seat_of_rcm VARCHAR,density__pop_per_km2_ VARCHAR) | SELECT seat_of_rcm FROM table_214920_1 WHERE density__pop_per_km2_ = "14.1" |
what is the number of patients whose death status is 0 and diagnoses long title is atrial fibrillation? | CREATE TABLE prescriptions (subject_id text,hadm_id text,icustay_id text,drug_type text,drug text,formulary_drug_cd text,route text,drug_dose text)CREATE TABLE lab (subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid text)CREATE TABLE diagnoses (subject_id text,hadm_id tex... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.long_title = "Atrial fibrillation" |
Name the total number in the series written by john banas and directed by pino amenta | CREATE TABLE table_73010 ("No. in series" real,"No. in season" real,"Title" text,"Directed by" text,"Written by" text,"Original air date" text) | SELECT COUNT("No. in series") FROM table_73010 WHERE "Written by" = 'John Banas' AND "Directed by" = 'Pino Amenta' |
what was the lowest position ramon gonzalez came in ? | CREATE TABLE table_203_763 (id number,"year" number,"competition" text,"venue" text,"position" text,"notes" text) | SELECT "position" FROM table_203_763 ORDER BY "position" DESC LIMIT 1 |
does AA fly from PITTSBURGH to ATLANTA | CREATE TABLE flight_stop (flight_id int,stop_number int,stop_days text,stop_airport text,arrival_time int,arrival_airline text,arrival_flight_number int,departure_time int,departure_airline text,departure_flight_number int,stop_time int)CREATE TABLE aircraft (aircraft_code varchar,aircraft_description varchar,manufactu... | SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.airline_code = 'AA') AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.to_airport = AIRPORT_SE... |
what is the top five of the frequent input event in 2105? | CREATE TABLE chartevents (row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text)CREATE TABLE icustays (row_id number,subject_id number,hadm_id number,icustay_id number,first_careunit text,last_careunit text,first_wardid number,last_wardid number,inti... | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE STRFTIME('%y', inputevents_cv.charttime) = '2105' GROUP BY inputevents_cv.itemid) AS t1 WHERE t1.c1 <= 5) |
What is the location of the school named Brisbane Girls' Grammar School? | CREATE TABLE table_11318462_29 (location VARCHAR,school VARCHAR) | SELECT location FROM table_11318462_29 WHERE school = "Brisbane Girls' Grammar school" |
how many patients are diagnosed with shock unspecified and administered through buccal drug route? | CREATE TABLE demographic (subject_id text,hadm_id text,name text,marital_status text,age text,dob text,gender text,language text,religion text,admission_type text,days_stay text,insurance text,ethnicity text,expire_flag text,admission_location text,discharge_location text,diagnosis text,dod text,dob_year text,dod_year ... | 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.long_title = "Shock, unspecified" AND prescriptions.route = "BUCCAL" |
Where did the character of Aiden Burn csi detective first appear? | CREATE TABLE table_name_21 (first_appearance VARCHAR,character VARCHAR) | SELECT first_appearance FROM table_name_21 WHERE character = "aiden burn csi detective" |
What's the Bronze cumulative number for less than 0 gold? | CREATE TABLE table_38949 ("Rank" text,"Gold" real,"Silver" real,"Bronze" real,"Total" real) | SELECT SUM("Bronze") FROM table_38949 WHERE "Gold" < '0' |
What is the total when the league cup is less than 1, and the fa cup is less than 1? | CREATE TABLE table_8522 ("Player" text,"Position" text,"Premier League" real,"FA Cup" real,"League Cup" real,"UEFA Cup" real,"Total" real) | SELECT SUM("Total") FROM table_8522 WHERE "League Cup" < '1' AND "FA Cup" < '1' |
Number of Edits per Posts. | CREATE TABLE VoteTypes (Id number,Name text)CREATE TABLE PostHistoryTypes (Id number,Name text)CREATE TABLE ReviewTaskTypes (Id number,Name text,Description text)CREATE TABLE PostHistory (Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment tex... | SELECT PostId, COUNT(*) FROM PostHistory WHERE NOT PostId IS NULL GROUP BY PostId ORDER BY PostId, NEWID() |
count the number of patients whose days of hospital stay is greater than 17 and lab test name is bilirubin, total? | CREATE TABLE diagnoses (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE demographic (subject_id text,hadm_id text,name text,marital_status text,age text,dob text,gender text,language text,religion text,admission_type text,days_stay text,insurance text,ethnicity text,expire_flag... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "17" AND lab.label = "Bilirubin, Total" |
What are the fewest seats with fewer than 5.4% seats and more than -1 change? | CREATE TABLE table_59447 ("Party" text,"% votes" real,"% change" real,"Seats" real,"Change" real) | SELECT MIN("Seats") FROM table_59447 WHERE "% votes" < '5.4' AND "Change" > '-1' |
How many results are listed for week 13? | CREATE TABLE table_72933 ("Week" real,"Date" text,"Opponent" text,"Result" text,"Game site" text,"Record" text,"Attendance" real) | SELECT COUNT("Result") FROM table_72933 WHERE "Week" = '13' |
What team did the New York Rangers recruit a player from? | CREATE TABLE table_4122 ("Pick" text,"Player" text,"Position" text,"Nationality" text,"NHL team" text,"College/junior/club team" text) | SELECT "College/junior/club team" FROM table_4122 WHERE "NHL team" = 'New York Rangers' |
What is the ergative for the dative (i)mas? | CREATE TABLE table_name_53 (ergative VARCHAR,dative VARCHAR) | SELECT ergative FROM table_name_53 WHERE dative = "(i)mas" |
Top 100 questions that are inactive for last six months. Top 100 questions that are inactive for last six months and still unanswered.
This query helpful to achieve 'Archaeologist' badge in stack overflow. | CREATE TABLE Comments (Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLicense text)CREATE TABLE CloseAsOffTopicReasonTypes (Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance t... | SELECT * FROM Posts WHERE LastActivityDate < (CURRENT_TIMESTAMP() - 180) AND AcceptedAnswerId IS NULL AND Tags LIKE '%<java>%' ORDER BY LastActivityDate DESC LIMIT 100 |
What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes? | CREATE TABLE table_name_20 (code__iata_ VARCHAR,total_cargo__metric_tonnes_ VARCHAR) | SELECT code__iata_ FROM table_name_20 WHERE total_cargo__metric_tonnes_ = "1,838,894" |
look for the maximum age of patients whose ethnicity is white and hospital stay is 4 days. | CREATE TABLE procedures (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE diagnoses (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE lab (subject_id text,hadm_id text,itemid text,charttime text,flag text,value_unit text,label text,fluid ... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.days_stay = "4" |
How much did Jeff Burton win? | CREATE TABLE table_25146455_1 (winnings VARCHAR,driver VARCHAR) | SELECT winnings FROM table_25146455_1 WHERE driver = "Jeff Burton" |
breast feeding female | CREATE TABLE table_train_35 ("id" int,"pregnancy_or_lactation" bool,"glucocorticoid_history" bool,"impaired_consciousness" bool,"hematologic_disease" bool,"glasgow_come_score_gcs" int,"liver_disease" bool,"NOUSE" float) | SELECT * FROM table_train_35 WHERE pregnancy_or_lactation = 1 |
Which 2009 has a 2008 of wta premier mandatory tournaments? | CREATE TABLE table_38648 ("Tournament" text,"2006" text,"2007" text,"2008" text,"2009" text,"2010" text,"2011" text,"2012" text) | SELECT "2009" FROM table_38648 WHERE "2008" = 'wta premier mandatory tournaments' |
how many total wins were recorded on the table ? | CREATE TABLE table_203_828 (id number,"date" text,"opponent#" text,"rank#" text,"site" text,"result" text,"attendance" number) | SELECT COUNT(*) FROM table_203_828 WHERE "result" = 'w' |
Does any course have MO 503 as an enforced prerequisite ? | CREATE TABLE program (program_id int,name varchar,college varchar,introduction varchar)CREATE TABLE program_requirement (program_id int,category varchar,min_credit int,additional_req varchar)CREATE TABLE area (course_id int,area varchar)CREATE TABLE gsi (course_offering_id int,student_id int)CREATE TABLE course (course... | SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_0.department = 'MO' AND COURSE_0.number = 503 AND COURSE_1.course_id = course_prerequisite.course_id |
Week Five Homework Ordinal Three. | CREATE TABLE PostTypes (Id number,Name text)CREATE TABLE PostHistoryTypes (Id number,Name text)CREATE TABLE CloseAsOffTopicReasonTypes (Id number,IsUniversal boolean,InputTitle text,MarkdownInputGuidance text,MarkdownPostOwnerGuidance text,MarkdownPrivilegedUserGuidance text,MarkdownConcensusDescription text,CreationDa... | SELECT TagName, AVG(Score * 1.0) FROM Tags AS t JOIN PostTags AS tx ON t.Id = tx.TagId JOIN Posts AS p ON p.Id = tx.PostId WHERE DATEDIFF(month, p.CreationDate, GETDATE()) < 1 AND p.PostTypeId = 1 GROUP BY p.Id, TagName ORDER BY AVG(Score * 1.0) |
What was the total number when the vote percentage was 44.8%? | CREATE TABLE table_26375386_23 (total VARCHAR,vote_percentage VARCHAR) | SELECT COUNT(total) FROM table_26375386_23 WHERE vote_percentage = "44.8%" |
which team , ranked first , also finished as winner in the 1985 acc women 's basketball tournament ? | CREATE TABLE table_204_807 (id number,"date" text,"winner" text,"runner-up" text,"result" text,"site" text,"attendance" number) | SELECT "winner" FROM table_204_807 WHERE "date" = 1985 |
What type is the settlement of Lok? | CREATE TABLE table_2562572_19 (type VARCHAR,settlement VARCHAR) | SELECT type FROM table_2562572_19 WHERE settlement = "Lok" |
What was the opponent of the game when the reocrd was 0-12? | CREATE TABLE table_49568 ("Date" text,"H/A/N" text,"Opponent" text,"Score" text,"Record" text) | SELECT "Opponent" FROM table_49568 WHERE "Record" = '0-12' |
What was the TNS-Sofres when the Iflop was 5%? | CREATE TABLE table_name_2 (tns_sofres_6_2_09 VARCHAR,ifop_5_30_09 VARCHAR) | SELECT tns_sofres_6_2_09 FROM table_name_2 WHERE ifop_5_30_09 = "5%" |
What are the points for a chassis of march 811? | CREATE TABLE table_15249 ("Year" real,"Entrant" text,"Chassis" text,"Engine" text,"Pts." real) | SELECT SUM("Pts.") FROM table_15249 WHERE "Chassis" = 'march 811' |
Name the lowest first elected for chester w. taylor | CREATE TABLE table_1342426_5 (first_elected INTEGER,incumbent VARCHAR) | SELECT MIN(first_elected) FROM table_1342426_5 WHERE incumbent = "Chester W. Taylor" |
Name the lowest Round with Opponent of rolando delgado? | CREATE TABLE table_50032 ("Res." text,"Record" text,"Opponent" text,"Method" text,"Event" text,"Round" real,"Time" text,"Location" text) | SELECT MIN("Round") FROM table_50032 WHERE "Opponent" = 'rolando delgado' |
Which Exhibition has a Position of second row, and a Game 3 of les davidson? | CREATE TABLE table_5207 ("Position" text,"Game 1" text,"Game 2" text,"Game 3" text,"Exhibition*" text) | SELECT "Exhibition*" FROM table_5207 WHERE "Position" = 'second row' AND "Game 3" = 'les davidson' |
what's the original air date where written by is iain morris & damon beesley | CREATE TABLE table_11589522_3 (original_air_date VARCHAR,written_by VARCHAR) | SELECT original_air_date FROM table_11589522_3 WHERE written_by = "Iain Morris & Damon Beesley" |
who finished next after sylvain guintoli in the 2008 malaysian motorcycle grand prix ? | CREATE TABLE table_203_166 (id number,"pos" text,"no" number,"rider" text,"manufacturer" text,"laps" number,"time" text,"grid" number,"points" number) | SELECT "rider" FROM table_203_166 WHERE "pos" = (SELECT "pos" FROM table_203_166 WHERE "rider" = 'sylvain guintoli') + 1 |
count the number of patients whose marital status is single and lab test name is amylase, ascites? | CREATE TABLE demographic (subject_id text,hadm_id text,name text,marital_status text,age text,dob text,gender text,language text,religion text,admission_type text,days_stay text,insurance text,ethnicity text,expire_flag text,admission_location text,discharge_location text,diagnosis text,dod text,dob_year text,dod_year ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab.label = "Amylase, Ascites" |
what is the number of inpatient hospital admission patients who have lab test item id 51419? | CREATE TABLE procedures (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE demographic (subject_id text,hadm_id text,name text,marital_status text,age text,dob text,gender text,language text,religion text,admission_type text,days_stay text,insurance text,ethnicity text,expire_fla... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND lab.itemid = "51419" |
Find the rank of the faculty that the fewest faculties belong to. | CREATE TABLE FACULTY (Rank VARCHAR) | SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY COUNT(*) LIMIT 1 |
How many discs for the complete 4th series? | CREATE TABLE table_17798548_4 (_number_of_discs INTEGER,season VARCHAR) | SELECT MAX(_number_of_discs) FROM table_17798548_4 WHERE season = "The Complete 4th Series" |
Where is the player Davis Love III? | CREATE TABLE table_44707 ("Place" text,"Player" text,"Country" text,"Score" real,"To par" text) | SELECT "Place" FROM table_44707 WHERE "Player" = 'davis love iii' |
For those employees who was hired before 2002-06-21, draw a line chart about the change of manager_id over hire_date , and sort from high to low by the X-axis. | CREATE TABLE jobs (JOB_ID varchar(10),JOB_TITLE varchar(35),MIN_SALARY decimal(6,0),MAX_SALARY decimal(6,0))CREATE TABLE locations (LOCATION_ID decimal(4,0),STREET_ADDRESS varchar(40),POSTAL_CODE varchar(12),CITY varchar(30),STATE_PROVINCE varchar(25),COUNTRY_ID varchar(2))CREATE TABLE job_history (EMPLOYEE_ID decimal(... | SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC |
On what date was the game played where the opponent was Stanford, ranked #5? | CREATE TABLE table_59322 ("Date" text,"Time" text,"Opponent#" text,"Rank #" text,"Result" text,"Attendance" text) | SELECT "Date" FROM table_59322 WHERE "Rank #" = '5' AND "Opponent#" = 'stanford' |
Name the incumbent for district texas 12 | CREATE TABLE table_1341690_43 (incumbent VARCHAR,district VARCHAR) | SELECT incumbent FROM table_1341690_43 WHERE district = "Texas 12" |
what is the record for years 2006-11? | CREATE TABLE table_9760 ("Coach" text,"Years" text,"Seasons" real,"Record" text,"Winning %" real) | SELECT "Record" FROM table_9760 WHERE "Years" = '2006-11' |
Name the date for princes park | CREATE TABLE table_53091 ("Home team" text,"Home team score" text,"Away team" text,"Away team score" text,"Venue" text,"Date" text) | SELECT "Date" FROM table_53091 WHERE "Venue" = 'princes park' |
what is the number of wins ? | CREATE TABLE table_203_164 (id number,"#" number,"date" text,"venue" text,"opponent" text,"score" text,"result" text,"competition" text) | SELECT COUNT(*) FROM table_203_164 WHERE "result" = 'won' |
Questions with answer along with tag. | CREATE TABLE PostHistory (Id number,PostHistoryTypeId number,PostId number,RevisionGUID other,CreationDate time,UserId number,UserDisplayName text,Comment text,Text text,ContentLicense text)CREATE TABLE Votes (Id number,PostId number,VoteTypeId number,UserId number,CreationDate time,BountyAmount number)CREATE TABLE Pos... | SELECT p.Id, p.Title, p.Score, p.ViewCount, p.AnswerCount, p.CommentCount FROM Posts AS p JOIN PostTags AS pt ON p.Id = pt.PostId JOIN Tags AS t ON pt.TagId = t.Id JOIN Posts AS a ON p.AcceptedAnswerId = a.Id WHERE (t.TagName = '##TagName:string##') AND (NOT p.AcceptedAnswerId IS NULL) AND (p.CreationDate >= '##Date1?2... |
What is the socket location for sSPEC number sl3f7(kc0)sl3fj(kc0)? | CREATE TABLE table_20776 ("Model number" text,"sSpec number" text,"Frequency" text,"L2 cache" text,"FSB" text,"Mult." text,"Voltage" text,"TDP" text,"Socket" text,"Release date" text,"Part number(s)" text,"Release price (USD)" text) | SELECT "Socket" FROM table_20776 WHERE "sSpec number" = 'SL3F7(kC0)SL3FJ(kC0)' |
what was the first procedure time of the revision of pedicle grft of patient 2004? | CREATE TABLE procedures_icd (row_id number,subject_id number,hadm_id number,icd9_code text,charttime time)CREATE TABLE d_icd_procedures (row_id number,icd9_code text,short_title text,long_title text)CREATE TABLE d_icd_diagnoses (row_id number,icd9_code text,short_title text,long_title text)CREATE TABLE diagnoses_icd (r... | SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'revision of pedicle grft') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2004) ORDE... |
What is the Constituency number for Bikhangaon with a Reserved for ( SC / ST /None) of st? | CREATE TABLE table_name_11 (constituency_number VARCHAR,reserved_for___sc___st__none_ VARCHAR,name VARCHAR) | SELECT constituency_number FROM table_name_11 WHERE reserved_for___sc___st__none_ = "st" AND name = "bikhangaon" |
What is the code name of the person born in Liverpool? | CREATE TABLE table_72040 ("Code Name" text,"Function (figure)" text,"Real Name" text,"Birthplace" text,"Serial number" text,"Primary military speciality" text,"Secondary military speciality" text) | SELECT "Code Name" FROM table_72040 WHERE "Birthplace" = 'liverpool' |
Name the Shuji Kondo for MAZADA of hijikata (14:24) | CREATE TABLE table_57985 ("Block A" text,"Ryuji Hijikata" text,"Shuji Kondo" text,"MAZADA" text,"El Samurai" text) | SELECT "Shuji Kondo" FROM table_57985 WHERE "MAZADA" = 'hijikata (14:24)' |
Name the least number | CREATE TABLE table_73429 ("Number" real,"Name" text,"Height (m)" real,"Date of Birth" text,"Position" text,"Nationality" text) | SELECT MIN("Number") FROM table_73429 |
What is the brigade when Al-Hamra ('arab al-hamra) shows for name? | CREATE TABLE table_name_63 (brigade VARCHAR,name VARCHAR) | SELECT brigade FROM table_name_63 WHERE name = "al-hamra ('arab al-hamra)" |
What is the Date of the Game with a Result of w 22 16 in TV Time of CBS 1:00ET? | CREATE TABLE table_name_90 (date VARCHAR,tv_time VARCHAR,result VARCHAR) | SELECT date FROM table_name_90 WHERE tv_time = "cbs 1:00et" AND result = "w 22–16" |
How many original air dates are there for the episode titled 'Everyone can't be George Washington'? | CREATE TABLE table_26060 ("Episode #" real,"Season #" real,"Title" text,"Directed by" text,"Written by" text,"Original airdate" text,"Production code #" real) | SELECT COUNT("Original airdate") FROM table_26060 WHERE "Title" = 'Everyone Can''t Be George Washington' |
Give me the comparison about meter_100 over the meter_600 by a bar chart, and could you order from low to high by the Y-axis? | CREATE TABLE record (ID int,Result text,Swimmer_ID int,Event_ID int)CREATE TABLE swimmer (ID int,name text,Nationality text,meter_100 real,meter_200 text,meter_300 text,meter_400 text,meter_500 text,meter_600 text,meter_700 text,Time text)CREATE TABLE event (ID int,Name text,Stadium_ID int,Year text)CREATE TABLE stadiu... | SELECT meter_600, meter_100 FROM swimmer ORDER BY meter_100 |
What party was first elected in 1974? | CREATE TABLE table_18172 ("District" text,"Incumbent" text,"Party" text,"First elected" real,"Results" text,"Candidates" text) | SELECT "Party" FROM table_18172 WHERE "First elected" = '1974' |
what are the total number of laps phil hill drove ? | CREATE TABLE table_204_473 (id number,"pos" text,"no" number,"driver" text,"constructor" text,"laps" number,"time/retired" text,"grid" number,"points" number) | SELECT "laps" FROM table_204_473 WHERE "driver" = 'phil hill' |
Who was the judge for the state SD? | CREATE TABLE table_78746 ("Judge" text,"State" text,"Born/Died" text,"Began active service*" real,"Ended active service" real) | SELECT "Judge" FROM table_78746 WHERE "State" = 'sd' |
What is Identifier, when City of License is Hornepayne? | CREATE TABLE table_42413 ("City of license" text,"Identifier" text,"Frequency" text,"Power" text,"Class" text,"RECNet" text) | SELECT "Identifier" FROM table_42413 WHERE "City of license" = 'hornepayne' |
What is the Place of the Player with a To par of 5? | CREATE TABLE table_61952 ("Place" text,"Player" text,"Country" text,"Score" text,"To par" text) | SELECT "Place" FROM table_61952 WHERE "To par" = '–5' |
Name the location for 2-1 record | CREATE TABLE table_23192661_3 (location VARCHAR,record VARCHAR) | SELECT location FROM table_23192661_3 WHERE record = "2-1" |
Which player's nationality is from Sweden? | CREATE TABLE table_36989 ("Round" real,"Player" text,"Position" text,"Nationality" text,"College/Junior/Club Team (League)" text) | SELECT "Player" FROM table_36989 WHERE "Nationality" = 'sweden' |
Who was the outgoing manager that was replaced by Thomas Von Heesen? | CREATE TABLE table_9886 ("Team" text,"Outgoing manager" text,"Manner of departure" text,"Date of vacancy" text,"Replaced by" text,"Date of appointment" text) | SELECT "Outgoing manager" FROM table_9886 WHERE "Replaced by" = 'thomas von heesen' |
who won the highest number of legs in the 2009 world matchplay ? | CREATE TABLE table_203_460 (id number,"player" text,"played" number,"legs won" number,"legs lost" number,"lwat" number,"100+" number,"140+" number,"180s" number,"high checkout" number,"3-dart average" number) | SELECT "player" FROM table_203_460 ORDER BY "legs won" DESC LIMIT 1 |
Which catalog did Village Records have on February 14, 2002? | CREATE TABLE table_15646 ("Region" text,"Date" text,"Label" text,"Format" text,"Catalog" text) | SELECT "Catalog" FROM table_15646 WHERE "Label" = 'village records' AND "Date" = 'february 14, 2002' |
What date sent has orion as the constellation? | CREATE TABLE table_name_63 (date_sent VARCHAR,constellation VARCHAR) | SELECT date_sent FROM table_name_63 WHERE constellation = "orion" |
What is every reason for change for the Washington 3rd District? | CREATE TABLE table_24496 ("District" text,"Vacator" text,"Reason for change" text,"Successor" text,"Date successor seated" text) | SELECT "Reason for change" FROM table_24496 WHERE "District" = 'Washington 3rd' |
what is minimum area where the largest city is bloemfontein? | CREATE TABLE table_1690 ("Province" text,"Provincial capital" text,"Largest city" text,"Area (km 2)" real,"Population (2013)" real) | SELECT MIN("Area (km 2 )") FROM table_1690 WHERE "Largest city" = 'Bloemfontein' |
tell me the total number of patients in the micu careunits until 1 year ago? | CREATE TABLE chartevents (row_id number,subject_id number,hadm_id number,icustay_id number,itemid number,charttime time,valuenum number,valueuom text)CREATE TABLE prescriptions (row_id number,subject_id number,hadm_id number,startdate time,enddate time,drug text,dose_val_rx text,dose_unit_rx text,route text)CREATE TABL... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.careunit = 'micu' AND DATETIME(transfers.intime) <= DATETIME(CURRENT_TIME(), '-1 year')) |
Find the country of the airlines whose name starts with 'Orbit', and count them by a bar chart, rank from low to high by the y axis. | CREATE TABLE routes (rid integer,dst_apid integer,dst_ap varchar(4),src_apid bigint,src_ap varchar(4),alid bigint,airline varchar(4),codeshare text)CREATE TABLE airlines (alid integer,name text,iata varchar(2),icao varchar(3),callsign text,country text,active varchar(2))CREATE TABLE airports (apid integer,name text,cit... | SELECT country, COUNT(country) FROM airlines WHERE name LIKE 'Orbit%' GROUP BY country ORDER BY COUNT(country) |
Name the venue for eng by 6 wkts | CREATE TABLE table_name_46 (venue VARCHAR,result VARCHAR) | SELECT venue FROM table_name_46 WHERE result = "eng by 6 wkts" |
What is the population where the median family income is $48,446 and there are more than 35,343 households? | CREATE TABLE table_name_48 (population INTEGER,median_family_income VARCHAR,number_of_households VARCHAR) | SELECT AVG(population) FROM table_name_48 WHERE median_family_income = "$48,446" AND number_of_households > 35 OFFSET 343 |
at what time was the patient stephanie suchan admitted in hospital? | CREATE TABLE demographic (subject_id text,hadm_id text,name text,marital_status text,age text,dob text,gender text,language text,religion text,admission_type text,days_stay text,insurance text,ethnicity text,expire_flag text,admission_location text,discharge_location text,diagnosis text,dod text,dob_year text,dod_year ... | SELECT demographic.admittime FROM demographic WHERE demographic.name = "Stephanie Suchan" |
Location for focal plane in ft (m) is naidi hills, basco. | CREATE TABLE table_25597136_1 (focal_plane_in_ft__m_ VARCHAR,location VARCHAR) | SELECT focal_plane_in_ft__m_ FROM table_25597136_1 WHERE location = "Naidi Hills, Basco" |
Which Venue has a Result of won 5-4? | CREATE TABLE table_name_65 (venue VARCHAR,result VARCHAR) | SELECT venue FROM table_name_65 WHERE result = "won 5-4" |
Name the chairman for iker casillas | CREATE TABLE table_31118 ("Team" text,"Chairman" text,"Head Coach" text,"Captain" text,"Kitmaker" text,"Shirt sponsor" text) | SELECT "Chairman" FROM table_31118 WHERE "Captain" = 'Iker Casillas' |
How many Gold medals did Australia receive? | CREATE TABLE table_name_59 (gold INTEGER,nation VARCHAR) | SELECT AVG(gold) FROM table_name_59 WHERE nation = "australia" |
List the series number for season 12. | CREATE TABLE table_27437601_2 (no_in_series VARCHAR,no_in_season VARCHAR) | SELECT COUNT(no_in_series) FROM table_27437601_2 WHERE no_in_season = 12 |
What did the home team score when the away team scored 18.20 (128)? | CREATE TABLE table_58193 ("Home team" text,"Home team score" text,"Away team" text,"Away team score" text,"Venue" text,"Crowd" real,"Date" text) | SELECT "Home team score" FROM table_58193 WHERE "Away team score" = '18.20 (128)' |
On what date was Game 3? | CREATE TABLE table_name_2 (date VARCHAR,game VARCHAR) | SELECT date FROM table_name_2 WHERE game = "game 3" |
What is the Cook PVI for the location that has a representative of Mike Thompson? | CREATE TABLE table_19283806_4 (cook_pvi VARCHAR,representative VARCHAR) | SELECT cook_pvi FROM table_19283806_4 WHERE representative = "Mike Thompson" |
What Pastoral Region has 3 Cemeteries? | CREATE TABLE table_43916 ("Pastoral Region" text,"Episcopal vicar" text,"Parishes" real,"High schools" real,"Elementary schools" text,"Cemeteries" real) | SELECT "Pastoral Region" FROM table_43916 WHERE "Cemeteries" = '3' |
What home team played Fitzroy? | CREATE TABLE table_55627 ("Home team" text,"Home team score" text,"Away team" text,"Away team score" text,"Venue" text,"Crowd" real,"Date" text) | SELECT "Home team" FROM table_55627 WHERE "Away team" = 'fitzroy' |
what is the country when the total is 111 and the day 1 is 69? | CREATE TABLE table_65765 ("Rank" real,"Athlete" text,"Country" text,"Day 1" real,"Total" real) | SELECT "Country" FROM table_65765 WHERE "Total" = '111' AND "Day 1" = '69' |
What college did the player with a school of crete-monee high school go to? | CREATE TABLE table_name_83 (college VARCHAR,school VARCHAR) | SELECT college FROM table_name_83 WHERE school = "crete-monee high school" |
What is the Fate of the HMS Manistee (f 104) with a Tonnage of 4,671 or more? | CREATE TABLE table_59934 ("Date" text,"Name of ship" text,"Flag" text,"Tonnage" real,"Fate" text) | SELECT "Fate" FROM table_59934 WHERE "Tonnage" > '4,671' AND "Name of ship" = 'hms manistee (f 104)' |
In what Round was Grant Long Drafted? | CREATE TABLE table_name_6 (round INTEGER,player VARCHAR) | SELECT MIN(round) FROM table_name_6 WHERE player = "grant long" |
what are the five most commonly given diagnoses for patients who have previously received parenteral feeds - tpn in the same hospital encounter a year before? | CREATE TABLE microlab (microlabid number,patientunitstayid number,culturesite text,organism text,culturetakentime time)CREATE TABLE vitalperiodic (vitalperiodicid number,patientunitstayid number,temperature number,sao2 number,heartrate number,respiration number,systemicsystolic number,systemicdiastolic number,systemicm... | SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'paren... |
List the names of states that have more than 2 parks. | CREATE TABLE park (state VARCHAR) | SELECT state FROM park GROUP BY state HAVING COUNT(*) > 2 |
I want to see trend of the total number by yearid, display yearid from high to low order please. | CREATE TABLE park (park_id TEXT,park_name TEXT,park_alias TEXT,city TEXT,state TEXT,country TEXT)CREATE TABLE team (year INTEGER,league_id TEXT,team_id TEXT,franchise_id TEXT,div_id TEXT,rank INTEGER,g INTEGER,ghome NUMERIC,w INTEGER,l INTEGER,div_win TEXT,wc_win TEXT,lg_win TEXT,ws_win TEXT,r INTEGER,ab INTEGER,h INTE... | SELECT yearid, COUNT(*) FROM hall_of_fame GROUP BY yearid ORDER BY yearid DESC |
When are the birthdays of customer who are classified as 'Good Customer' status, and count them by a bar chart, could you order y-axis in ascending order? | CREATE TABLE Addresses (address_id INTEGER,line_1_number_building VARCHAR(80),city VARCHAR(50),zip_postcode VARCHAR(20),state_province_county VARCHAR(50),country VARCHAR(50))CREATE TABLE Vehicles (vehicle_id INTEGER,vehicle_details VARCHAR(255))CREATE TABLE Lessons (lesson_id INTEGER,customer_id INTEGER,lesson_status_c... | SELECT date_of_birth, COUNT(date_of_birth) FROM Customers WHERE customer_status_code = 'Good Customer' ORDER BY COUNT(date_of_birth) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.