instruction stringlengths 0 1.06k | input stringlengths 11 5.3k | response stringlengths 2 4.44k |
|---|---|---|
count the number of patients whose year of death is less than or equal to 2180 and drug name is verapamil sr? | 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 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2180.0" AND prescriptions.drug = "Verapamil SR" |
In the game where Melbourne was the away team, what did they score? | CREATE TABLE table_name_67 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_67 WHERE away_team = "melbourne" |
what is the daily average amount of the drain out #1 jackson pratt of patient 20251 until 17 months ago? | CREATE TABLE transfers (row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time)CREATE TABLE d_icd_diagnoses (row_id number,icd9_code text,short_title text,long_title text)CREATE TABLE procedures_icd (row_id number,subject_id number,hadm_id nu... | SELECT AVG(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20251)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'dra... |
Which 2002 has a 2008 of 3 3? | CREATE TABLE table_name_79 (Id VARCHAR) | SELECT 2002 FROM table_name_79 WHERE 2008 = "3–3" |
What was the position in 2006? | CREATE TABLE table_name_66 (pos VARCHAR,year VARCHAR) | SELECT pos FROM table_name_66 WHERE year = 2006 |
WHAT IS THE DATE WITH AN AWAY TEAM OF WORKINGTON? | CREATE TABLE table_9929 ("Tie no" text,"Home team" text,"Score" text,"Away team" text,"Date" text) | SELECT "Date" FROM table_9929 WHERE "Away team" = 'workington' |
What is the number of climbers for each mountain? Show me a bar chart, order bar in descending order please. | CREATE TABLE mountain (Mountain_ID int,Name text,Height real,Prominence real,Range text,Country text)CREATE TABLE climber (Climber_ID int,Name text,Country text,Time text,Points real,Mountain_ID int) | SELECT T2.Name, COUNT(T2.Name) FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID GROUP BY T2.Name ORDER BY T2.Name DESC |
What do the notes say for 1989 May 7? | CREATE TABLE table_42696 ("Result" text,"Record" text,"Opponent" text,"Method" text,"Date" text,"Round" real,"Notes" text) | SELECT "Notes" FROM table_42696 WHERE "Date" = '1989 may 7' |
Who played in group 11 when Persipal Palu played in group 12? | CREATE TABLE table_19523142_5 (group_11 VARCHAR,group_12 VARCHAR) | SELECT group_11 FROM table_19523142_5 WHERE group_12 = "Persipal Palu" |
give the number of patients whose diagnosis long title is benign neoplasm of spinal meninges. | CREATE TABLE diagnoses (subject_id text,hadm_id text,icd9_code text,short_title text,long_title text)CREATE TABLE procedures (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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Benign neoplasm of spinal meninges" |
What rank has a population of 4839400? | CREATE TABLE table_name_87 (rank INTEGER,population VARCHAR) | SELECT MIN(rank) FROM table_name_87 WHERE population = "4839400" |
What region has a 2002 date, and a Catalog dos 195? | CREATE TABLE table_name_70 (region VARCHAR,date VARCHAR,catalog VARCHAR) | SELECT region FROM table_name_70 WHERE date = "2002" AND catalog = "dos 195" |
Who has a reported age of 111 years, 66 days? | CREATE TABLE table_name_38 (name VARCHAR,reported_age VARCHAR) | SELECT name FROM table_name_38 WHERE reported_age = "111 years, 66 days" |
what's the department with acronym being deped (ked) | CREATE TABLE table_1331313_1 (department VARCHAR,acronym VARCHAR) | SELECT department FROM table_1331313_1 WHERE acronym = "DepEd (KEd)" |
Visualize a bar chart for what are total transaction amounts for each transaction type?, and sort X in asc order please. | CREATE TABLE Product_Categories (production_type_code VARCHAR(15),product_type_description VARCHAR(80),vat_rating DECIMAL(19,4))CREATE TABLE Customers (customer_id INTEGER,customer_first_name VARCHAR(50),customer_middle_initial VARCHAR(1),customer_last_name VARCHAR(50),gender VARCHAR(1),email_address VARCHAR(255),login... | SELECT transaction_type, SUM(transaction_amount) FROM Financial_Transactions GROUP BY transaction_type ORDER BY transaction_type |
Tell me the 1968 for 1r | CREATE TABLE table_32141 ("Tournament" text,"1966" text,"1967" text,"1968" text,"1969" text,"1970" text,"1971" text,"1972" text,"1973" text,"1974" text,"1975" text,"1976" text,"Career SR" text) | SELECT "1968" FROM table_32141 WHERE "1967" = '1r' |
Are there Winter -s when ARCH 589 has been offered ? | CREATE TABLE program (program_id int,name varchar,college varchar,introduction varchar)CREATE TABLE student_record (student_id int,course_id int,semester int,grade varchar,how varchar,transfer_source varchar,earn_credit varchar,repeat_term varchar,test_id varchar)CREATE TABLE ta (campus_job_id int,student_id int,locati... | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ARCH' AND course.number = 589 AND semester.semester = 'Winter' AND semester.semester_id = course_offering.semester |
in 2105 patient 006-47576 had been prescribed maalox? | CREATE TABLE lab (labid number,patientunitstayid number,labname text,labresult number,labresulttime time)CREATE TABLE microlab (microlabid number,patientunitstayid number,culturesite text,organism text,culturetakentime time)CREATE TABLE medication (medicationid number,patientunitstayid number,drugname text,dosage text,... | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-47576')) AND medication.drugname = 'maalox' AND STRFTIME('%y', medicat... |
What player is associated with soenderjyske.dk? | CREATE TABLE table_name_58 (name VARCHAR,source VARCHAR) | SELECT name FROM table_name_58 WHERE source = "soenderjyske.dk" |
how many teams won at least 2 games throughout the 1951 world ice hockey championships ? | CREATE TABLE table_203_486 (id number,"place" number,"team" text,"matches" number,"won" number,"drawn" number,"lost" number,"difference" text,"points" number) | SELECT COUNT("team") FROM table_203_486 WHERE "won" >= 2 |
What is School Year, when Cross Country is Lexington, when Soccer is Ashland, and when Volleyball is Wooster? | CREATE TABLE table_49026 ("School Year" text,"Volleyball" text,"Cross Country" text,"Soccer" text,"Tennis" text,"Golf" text) | SELECT "School Year" FROM table_49026 WHERE "Cross Country" = 'lexington' AND "Soccer" = 'ashland' AND "Volleyball" = 'wooster' |
what was the total number of medals won by madagascar ? | CREATE TABLE table_203_61 (id number,"rank" number,"nation" text,"gold" number,"silver" number,"bronze" number,"total" number) | SELECT "total" FROM table_203_61 WHERE "nation" = 'madagascar' |
How many games had an assist number greater than 54? | CREATE TABLE table_32595 ("Rank" real,"Player" text,"Nation" text,"Assist" real,"Games" real,"Years" text) | SELECT SUM("Games") FROM table_32595 WHERE "Assist" > '54' |
What is the province where the age of the contestant is 27? | CREATE TABLE table_18349697_1 (province VARCHAR,_community VARCHAR,age VARCHAR) | SELECT province, _community FROM table_18349697_1 WHERE age = 27 |
What is the home leg who are opponents of rotor volgograd | CREATE TABLE table_40944 ("Season" text,"Round" text,"Opponents" text,"Home leg" text,"Away leg" text,"Aggregate" text) | SELECT "Home leg" FROM table_40944 WHERE "Opponents" = 'rotor volgograd' |
What are the Opponents that have Djurg rden scorers of sj lund (2)? | CREATE TABLE table_name_43 (opponents VARCHAR,djurgården_scorers VARCHAR) | SELECT opponents FROM table_name_43 WHERE djurgården_scorers = "sjölund (2)" |
Pie chart. what is the project id and detail for the project with at least two documents? | CREATE TABLE Ref_Budget_Codes (Budget_Type_Code CHAR(15),Budget_Type_Description VARCHAR(255))CREATE TABLE Documents (Document_ID INTEGER,Document_Type_Code CHAR(15),Project_ID INTEGER,Document_Date DATETIME,Document_Name VARCHAR(255),Document_Description VARCHAR(255),Other_Details VARCHAR(255))CREATE TABLE Statements ... | SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID |
What team plays in Dinamo, Brest? | CREATE TABLE table_name_97 (team VARCHAR,venue VARCHAR) | SELECT team FROM table_name_97 WHERE venue = "dinamo, brest" |
What is the Opponent from the final with a Partner named jorgelina cravero? | CREATE TABLE table_34782 ("Date" text,"Tournament" text,"Surface" text,"Partner" text,"Opponent in the final" text,"Score" text) | SELECT "Opponent in the final" FROM table_34782 WHERE "Partner" = 'jorgelina cravero' |
i'd like to have flight from DENVER to PITTSBURGH | CREATE TABLE fare (fare_id int,from_airport varchar,to_airport varchar,fare_basis_code text,fare_airline text,restriction_code text,one_direction_cost int,round_trip_cost int,round_trip_required varchar)CREATE TABLE days (days_code varchar,day_name varchar)CREATE TABLE state (state_code text,state_name text,country_nam... | 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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBU... |
Which Record has an Opponent of milwaukee bucks? | CREATE TABLE table_12890 ("Game" real,"Date" text,"Opponent" text,"Score" text,"Location/Attendance" text,"Record" text,"Streak" text) | SELECT "Record" FROM table_12890 WHERE "Opponent" = 'milwaukee bucks' |
provide the number of patients whose admission year is less than 2203 and lab test name is carboxyhemoglobin? | 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.admityear < "2203" AND lab.label = "Carboxyhemoglobin" |
Name the sum of points for 1992 | CREATE TABLE table_name_38 (points INTEGER,year VARCHAR) | SELECT SUM(points) FROM table_name_38 WHERE year = 1992 |
what is the total number of players who tied for fourth , seventh , and tenth combined ? | CREATE TABLE table_203_134 (id number,"place" text,"player" text,"country" text,"score" text,"to par" number) | SELECT COUNT("player") FROM table_203_134 WHERE "place" IN (4, 7, 10) |
which papers in icml 2014 had lasso in them ? | CREATE TABLE paperdataset (paperid int,datasetid int)CREATE TABLE dataset (datasetid int,datasetname varchar)CREATE TABLE writes (paperid int,authorid int)CREATE TABLE author (authorid int,authorname varchar)CREATE TABLE paperfield (fieldid int,paperid int)CREATE TABLE cite (citingpaperid int,citedpaperid int)CREATE TA... | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'lasso' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2014 AND venue.venueid = paper.venueid AND venue.venuename = 'icml' |
What was the Best score during the game played from 1971-1984? | CREATE TABLE table_18914438_1 (best VARCHAR,career VARCHAR) | SELECT best FROM table_18914438_1 WHERE career = "1971-1984" |
What was the date of the discus throw for Bulgaria? | CREATE TABLE table_55229 ("Event" text,"Record" text,"Athlete" text,"Nationality" text,"Date" text) | SELECT "Date" FROM table_55229 WHERE "Nationality" = 'bulgaria' AND "Event" = 'discus throw' |
How many times was the date october 3, 2010? | CREATE TABLE table_74143 ("Date" text,"Player" text,"Injury" text,"Date of injury" text,"Number of matches (Total)" text,"Source" text) | SELECT COUNT("Player") FROM table_74143 WHERE "Date" = 'October 3, 2010' |
When 9 is the rank who are the couple? | CREATE TABLE table_19744915_18 (couple VARCHAR,rank VARCHAR) | SELECT couple FROM table_19744915_18 WHERE rank = 9 |
Which event had Carlos Alexandre Pereira as opponent? | CREATE TABLE table_name_55 (event VARCHAR,opponent VARCHAR) | SELECT event FROM table_name_55 WHERE opponent = "carlos alexandre pereira" |
What Opponents in the final had a match in 1984 with a Score in the final of 7 6, 6 1? | CREATE TABLE table_name_77 (opponents_in_the_final VARCHAR,date VARCHAR,score_in_the_final VARCHAR) | SELECT opponents_in_the_final FROM table_name_77 WHERE date = 1984 AND score_in_the_final = "7–6, 6–1" |
What is the name of each course and the corresponding number of student enrollment? | CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)CREATE TABLE Courses (course_name VARCHAR,course_id VARCHAR) | SELECT T1.course_name, COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name |
How many championships are there on the date January 9, 2005? | CREATE TABLE table_73916 ("Outcome" text,"No." text,"Date" text,"Championship" text,"Surface" text,"Opponent in the final" text,"Score in the final" text) | SELECT COUNT("Championship") FROM table_73916 WHERE "Date" = 'January 9, 2005' |
Which Yards have an avg of 11.8, and a Player of brent celek, and a Long larger than 44? | CREATE TABLE table_name_2 (yards INTEGER,long VARCHAR,avg VARCHAR,player VARCHAR) | SELECT AVG(yards) FROM table_name_2 WHERE avg = 11.8 AND player = "brent celek" AND long > 44 |
What is the result when the nominee(s) of janine sherman? | CREATE TABLE table_62981 ("Year" real,"Category" text,"Nominee(s)" text,"Episode" text,"Result" text) | SELECT "Result" FROM table_62981 WHERE "Nominee(s)" = 'janine sherman' |
What is the booking start dates of the apartments with type code 'Duplex'? Bin the year into weekday interval with a bar chart. | CREATE TABLE Apartment_Buildings (building_id INTEGER,building_short_name CHAR(15),building_full_name VARCHAR(80),building_description VARCHAR(255),building_address VARCHAR(255),building_manager VARCHAR(50),building_phone VARCHAR(80))CREATE TABLE Apartments (apt_id INTEGER,building_id INTEGER,apt_type_code CHAR(15),apt... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" |
Give me a histogram for what are the names of projects that require more than 300 hours, and how many scientists are assigned to each?, list from high to low by the the total number . | CREATE TABLE Projects (Code Char(4),Name Char(50),Hours int)CREATE TABLE Scientists (SSN int,Name Char(30))CREATE TABLE AssignedTo (Scientist int,Project char(4)) | SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project WHERE T1.Hours > 300 GROUP BY T1.Name ORDER BY COUNT(*) DESC |
what is the score for the 5th position and a score less than 7 | CREATE TABLE table_name_40 (b_score INTEGER,position VARCHAR,a_score VARCHAR) | SELECT MIN(b_score) FROM table_name_40 WHERE position = "5th" AND a_score < 7 |
Posts where the title contains the given string. | CREATE TABLE PostHistoryTypes (Id number,Name text)CREATE TABLE Badges (Id number,UserId number,Name text,Date time,Class number,TagBased boolean)CREATE TABLE ReviewTasks (Id number,ReviewTaskTypeId number,CreationDate time,DeletionDate time,ReviewTaskStateId number,PostId number,SuggestedEditId number,CompletedByRevie... | SELECT Id AS "post_link", Title FROM Posts WHERE Title LIKE '%##text?he##%' ORDER BY Id DESC |
List the number of the name of technicians whose team is not 'NYY'. | CREATE TABLE technician (technician_id real,Name text,Team text,Starting_Year real,Age int)CREATE TABLE machine (Machine_ID int,Making_Year int,Class text,Team text,Machine_series text,value_points real,quality_rank int)CREATE TABLE repair (repair_ID int,name text,Launch_Date text,Notes text)CREATE TABLE repair_assignm... | SELECT Name, COUNT(Name) FROM technician WHERE Team <> "NYY" GROUP BY Name |
Who had pole position in round 7? | CREATE TABLE table_18095719_2 (pole_position VARCHAR,round VARCHAR) | SELECT pole_position FROM table_18095719_2 WHERE round = 7 |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, what is the relationship between salary and commission_pct ? | CREATE TABLE departments (DEPARTMENT_ID decimal(4,0),DEPARTMENT_NAME varchar(30),MANAGER_ID decimal(6,0),LOCATION_ID decimal(4,0))CREATE TABLE countries (COUNTRY_ID varchar(2),COUNTRY_NAME varchar(40),REGION_ID decimal(10,0))CREATE TABLE jobs (JOB_ID varchar(10),JOB_TITLE varchar(35),MIN_SALARY decimal(6,0),MAX_SALARY ... | SELECT SALARY, COMMISSION_PCT FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 |
what is the number of mpixels/s that voodoo banshee had ? | CREATE TABLE table_204_582 (id number,"model" text,"launch" text,"code name" text,"fab (nm)" number,"bus interface" text,"memory (mib)" text,"core clock (mhz)" number,"memory clock (mhz)" number,"config core1" text,"fillrate\nmoperations/s" number,"fillrate\nmpixels/s" number,"fillrate\nmtextels/s" number,"fillrate\nmv... | SELECT "fillrate\nmpixels/s" FROM table_204_582 WHERE "model" = 'voodoo banshee' |
What is the nationality for milwaukee hawks? | CREATE TABLE table_name_91 (nationality VARCHAR,team VARCHAR) | SELECT nationality FROM table_name_91 WHERE team = "milwaukee hawks" |
Get user reputation on a given site. | CREATE TABLE SuggestedEditVotes (Id number,SuggestedEditId number,UserId number,VoteTypeId number,CreationDate time,TargetUserId number,TargetRepChange number)CREATE TABLE CloseReasonTypes (Id number,Name text,Description text)CREATE TABLE PostNoticeTypes (Id number,ClassId number,Name text,Body text,IsHidden boolean,P... | SELECT Reputation FROM "##Site##".Users WHERE AccountId = '##aUId##' |
Last 10 Posts From Me. | CREATE TABLE PostLinks (Id number,CreationDate time,PostId number,RelatedPostId number,LinkTypeId number)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 Posts (Id nu... | SELECT * FROM Posts WHERE OwnerUserId = @UserId ORDER BY LastActivityDate DESC LIMIT 10 |
give me the number of patients whose diagnoses long title is heart valve replaced by transplant and drug type is base? | 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 text)CREATE TABLE demographic (subject_id text,hadm_id text,name text,marital_status text,age text,dob... | 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 = "Heart valve replaced by transplant" AND prescriptions.drug_type = "BASE" |
What is Language, when Content is Monoscopio? | CREATE TABLE table_name_27 (language VARCHAR,content VARCHAR) | SELECT language FROM table_name_27 WHERE content = "monoscopio" |
provide the number of patients whose days of hospital stay is greater than 6 and diagnoses icd9 code is 60000? | 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.days_stay > "6" AND diagnoses.icd9_code = "60000" |
What are the upper-level elective options for the Fall and Winter ? | CREATE TABLE course (course_id int,name varchar,department varchar,number varchar,credits varchar,advisory_requirement varchar,enforced_requirement varchar,description varchar,num_semesters int,num_enrolled int,has_discussion varchar,has_lab varchar,has_projects varchar,has_exams varchar,num_reviews int,clarity_score i... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (semester.semester = ... |
what were the numbers of patients admitted to hospital since 2104? | CREATE TABLE procedures_icd (row_id number,subject_id number,hadm_id number,icd9_code text,charttime time)CREATE TABLE d_items (row_id number,itemid number,label text,linksto text)CREATE TABLE outputevents (row_id number,subject_id number,hadm_id number,icustay_id number,charttime time,itemid number,value number)CREATE... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE STRFTIME('%y', admissions.admittime) >= '2104' |
What is the lowest prominence for a peak with elevation of 3,615 meters? | CREATE TABLE table_name_87 (prominence__m_ INTEGER,elevation__m_ VARCHAR) | SELECT MIN(prominence__m_) FROM table_name_87 WHERE elevation__m_ = 3 OFFSET 615 |
On what date did the Cavaliers have a record of 9-14? | CREATE TABLE table_name_44 (date VARCHAR,record VARCHAR) | SELECT date FROM table_name_44 WHERE record = "9-14" |
What number of patients whose discharge location is snf had the primary disease of pneumonia human immunodefiency virus but not tuberculosis? | 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 WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "PNEUMONIA;HUMAN IMMUNODEFIENCY VIRUS;RULE OUT TUBERCULOSIS" |
What are the goals of Mile Sterjovski as a player? | CREATE TABLE table_name_59 (goals VARCHAR,player VARCHAR) | SELECT goals FROM table_name_59 WHERE player = "mile sterjovski" |
Who and what were the high points player for the game against Detroit? | CREATE TABLE table_27756572_6 (high_points VARCHAR,team VARCHAR) | SELECT high_points FROM table_27756572_6 WHERE team = "Detroit" |
On May 29 which team had the loss? | CREATE TABLE table_name_85 (loss VARCHAR,date VARCHAR) | SELECT loss FROM table_name_85 WHERE date = "may 29" |
Name the most week for record of 1-2 and attendance more than 61,602 | CREATE TABLE table_name_60 (week INTEGER,record VARCHAR,attendance VARCHAR) | SELECT MAX(week) FROM table_name_60 WHERE record = "1-2" AND attendance > 61 OFFSET 602 |
What is the High points of charles oakley , kevin willis (11)? | CREATE TABLE table_name_55 (high_points VARCHAR,high_rebounds VARCHAR) | SELECT high_points FROM table_name_55 WHERE high_rebounds = "charles oakley , kevin willis (11)" |
Which Points is the lowest one that has a Score of 1 4, and a January smaller than 18? | CREATE TABLE table_75649 ("Game" real,"January" real,"Opponent" text,"Score" text,"Record" text,"Points" real) | SELECT MIN("Points") FROM table_75649 WHERE "Score" = '1–4' AND "January" < '18' |
What was the name of the player from Olympiacos in 2008? | CREATE TABLE table_45822 ("Name" text,"Height" text,"Weight" text,"Spike" text,"2008 club" text) | SELECT "Name" FROM table_45822 WHERE "2008 club" = 'olympiacos' |
Create a pie chart showing all_games_percent across acc regular season. | CREATE TABLE university (School_ID int,School text,Location text,Founded real,Affiliation text,Enrollment real,Nickname text,Primary_conference text)CREATE TABLE basketball_match (Team_ID int,School_ID int,Team_Name text,ACC_Regular_Season text,ACC_Percent text,ACC_Home text,ACC_Road text,All_Games text,All_Games_Perce... | SELECT ACC_Regular_Season, All_Games_Percent FROM basketball_match |
For employees without the letter M in their first name, give me a line chart to show the salary change over their hire date using a line chart. | 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 regions (REGION_ID decimal(5,0),REGION_NAME varchar(25))CREATE TABLE employees (EMPLOYEE_ID decimal(6,0),FIRST_NAME varchar(20),LAST_NAME var... | SELECT HIRE_DATE, SALARY FROM employees WHERE NOT FIRST_NAME LIKE '%M%' |
What is the highest rank a team with 1 silver and less than 5 bronze medals has? | CREATE TABLE table_78101 ("Rank" real,"Nation" text,"Gold" real,"Silver" real,"Bronze" real,"Total" real) | SELECT MAX("Rank") FROM table_78101 WHERE "Silver" = '1' AND "Bronze" < '5' |
What is january 15-16 when november 3 is 153? | CREATE TABLE table_27589 ("June 10-11" text,"March 27-29" text,"January 15-16" text,"November 3" text,"August 21-22" text) | SELECT "January 15-16" FROM table_27589 WHERE "November 3" = '153' |
just show me the top five most common diagnoses in 2105? | CREATE TABLE transfers (row_id number,subject_id number,hadm_id number,icustay_id number,eventtype text,careunit text,wardid number,intime time,outtime time)CREATE TABLE patients (row_id number,subject_id number,gender text,dob time,dod time)CREATE TABLE d_items (row_id number,itemid number,label text,linksto text)CREA... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE STRFTIME('%y', diagnoses_icd.charttime) = '2105' GROUP BY diagnoses_icd.icd9_code) AS t1 WHERE t... |
What is the male incarceration rate of maule? | CREATE TABLE table_27322 ("Region" text,"Prison inmates Men" real,"Prison inmates Women" real,"Prison inmates Total" real,"Incarceration rate Male" real,"Incarceration rate Female" real,"Incarceration rate Total" real,"Country comparison" text) | SELECT MAX("Incarceration rate Male") FROM table_27322 WHERE "Region" = 'Maule' |
Which Date has a Record of 21 10? | CREATE TABLE table_name_43 (date VARCHAR,record VARCHAR) | SELECT date FROM table_name_43 WHERE record = "21–10" |
what site at most is taken place ? | CREATE TABLE table_204_250 (id number,"date" text,"opponent#" text,"rank#" text,"site" text,"result" text,"attendance" number) | SELECT "site" FROM table_204_250 GROUP BY "site" ORDER BY COUNT(*) DESC LIMIT 1 |
When rank is 33, what is the smallest lane? | CREATE TABLE table_66344 ("Rank" real,"Heat" real,"Lane" real,"Name" text,"Nationality" text,"Time" text) | SELECT MIN("Lane") FROM table_66344 WHERE "Rank" = '33' |
all am flights departing PITTSBURGH arriving DENVER | CREATE TABLE code_description (code varchar,description text)CREATE TABLE food_service (meal_code text,meal_number int,compartment text,meal_description varchar)CREATE TABLE dual_carrier (main_airline varchar,low_flight_number int,high_flight_number int,dual_airline varchar,service_name text)CREATE TABLE flight_fare (f... | 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 = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DE... |
how many patients with procedure titled replacement of tube or enterostomy device of small intestine had blood gas as lab test category? | 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 text)CREATE TABLE prescriptions (subject_id text,hadm_id text,icustay_id text,drug_type text,drug text... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Replacement of tube or enterostomy device of small intestine" AND lab."CATEGORY" = "Blood Gas" |
How many locations are listed for the Big 12 Conference? | CREATE TABLE table_22645714_5 (tournament_venue__city_ VARCHAR,conference VARCHAR) | SELECT COUNT(tournament_venue__city_) FROM table_22645714_5 WHERE conference = "Big 12 conference" |
What is the att-cmp-int with an effic smaller than 117.88 and a gp-gs of 10-0? | CREATE TABLE table_name_73 (att_cmp_int VARCHAR,effic VARCHAR,gp_gs VARCHAR) | SELECT att_cmp_int FROM table_name_73 WHERE effic < 117.88 AND gp_gs = "10-0" |
Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist? | CREATE TABLE table_name_44 (issue INTEGER,artist VARCHAR,spoofed_title VARCHAR) | SELECT SUM(issue) FROM table_name_44 WHERE artist = "mort drucker" AND spoofed_title = "route 67" |
what song was in the first week ? | CREATE TABLE table_204_889 (id number,"date" text,"week (stage)" text,"song choice" text,"original artist" text,"theme" text,"result" text) | SELECT "song choice" FROM table_204_889 WHERE "week (stage)" = 1 |
Name the least clubs involved for leagues being none for semi finals | CREATE TABLE table_19089486_1 (clubs_involved INTEGER,leagues_entering_this_round VARCHAR,round VARCHAR) | SELECT MIN(clubs_involved) FROM table_19089486_1 WHERE leagues_entering_this_round = "none" AND round = "Semi finals" |
Which player had a To par of +11? | CREATE TABLE table_name_66 (player VARCHAR,to_par VARCHAR) | SELECT player FROM table_name_66 WHERE to_par = "+11" |
What Scores by each individual judge has a Total score/week of 51/60, and a Co-contestant (Yaar vs. Pyaar) of tina sachdev? | CREATE TABLE table_name_76 (scores_by_each_individual_judge VARCHAR,total_score_week VARCHAR,co_contestant__yaar_vs_pyaar_ VARCHAR) | SELECT scores_by_each_individual_judge FROM table_name_76 WHERE total_score_week = "51/60" AND co_contestant__yaar_vs_pyaar_ = "tina sachdev" |
Which colleges have the english abbreviation MTC? | CREATE TABLE table_11390711_4 (english_name VARCHAR,abbreviation VARCHAR) | SELECT english_name FROM table_11390711_4 WHERE abbreviation = "MTC" |
WHAT SCORE WAS ON 1999-05-31? | CREATE TABLE table_name_52 (score VARCHAR,date VARCHAR) | SELECT score FROM table_name_52 WHERE date = "1999-05-31" |
what is the daily minimum of chest tube b amount output of patient 007-1517 on the first icu visit? | CREATE TABLE cost (costid number,uniquepid text,patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number)CREATE TABLE allergy (allergyid number,patientunitstayid number,drugname text,allergyname text,allergytime time)CREATE TABLE lab (labid number,patientunitstayid number,labname text,... | SELECT MIN(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 = '007-1517') AND NOT patient.unitdischargetime IS ... |
how many times since 6 years ago rifampin was prescribed for patient 16066? | CREATE TABLE procedures_icd (row_id number,subject_id number,hadm_id number,icd9_code text,charttime time)CREATE TABLE microbiologyevents (row_id number,subject_id number,hadm_id number,charttime time,spec_type_desc text,org_name text)CREATE TABLE chartevents (row_id number,subject_id number,hadm_id number,icustay_id n... | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16066) AND prescriptions.drug = 'rifampin' AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-6 year') |
What is the maximum acres in Castledermot? | CREATE TABLE table_4114 ("Townland" text,"s Acre" real,"Barony" text,"Civil parish" text,"Poor law union" text) | SELECT MAX("s Acre") FROM table_4114 WHERE "Civil parish" = 'Castledermot' |
What is the total number of Points that were in a Year that was 2005? | CREATE TABLE table_40335 ("Year" text,"GP/GS" text,"Shots" real,"Goals" real,"Assists" real,"Points" real) | SELECT COUNT("Points") FROM table_40335 WHERE "Year" = '2005' |
Monthly activity distribution by year of registration. | CREATE TABLE PostTags (PostId number,TagId number)CREATE TABLE Comments (Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLicense text)CREATE TABLE PostsWithDeleted (Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDa... | WITH Raw AS (SELECT TIME_TO_STR(Users.CreationDate, '%Y') AS UserYear, DATEFROMPARTS(TIME_TO_STR(Posts.CreationDate, '%Y'), TIME_TO_STR(Posts.CreationDate, '%-M'), 1) AS PostMonth, COUNT(*) AS Count FROM Posts, Users WHERE Posts.OwnerUserId = Users.Id AND Posts.OwnerUserId > 0 GROUP BY TIME_TO_STR(Users.CreationDate, '... |
What draft pick number was Andy Brereton? | CREATE TABLE table_28059992_5 (pick__number INTEGER,player VARCHAR) | SELECT MIN(pick__number) FROM table_28059992_5 WHERE player = "Andy Brereton" |
how many townships are in leavenworth county ? | CREATE TABLE table_204_616 (id number,"township" text,"fips" number,"population\ncenter" text,"population" number,"population\ndensity\n/km2 (/sq mi)" text,"land area\nkm2 (sq mi)" text,"water area\nkm2 (sq mi)" text,"water %" text,"geographic coordinates" text) | SELECT COUNT("township") FROM table_204_616 |
Which Country has the Director Chen Kaige? | CREATE TABLE table_name_79 (country VARCHAR,director VARCHAR) | SELECT country FROM table_name_79 WHERE director = "chen kaige" |
What is the long for the player with under 30 carries and 0 yards? | CREATE TABLE table_name_78 (long VARCHAR,car VARCHAR,yards VARCHAR) | SELECT long FROM table_name_78 WHERE car < 30 AND yards = "0" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.