instruction stringlengths 0 1.06k | input stringlengths 11 5.3k | response stringlengths 2 4.44k |
|---|---|---|
When Denizli was the province, what was the total number of valid votes? | CREATE TABLE table_27274222_2 (valid_votes VARCHAR,province VARCHAR) | SELECT COUNT(valid_votes) FROM table_27274222_2 WHERE province = "Denizli" |
Who was the home team that played against the visiting team Minnesota? | CREATE TABLE table_name_63 (home VARCHAR,visitor VARCHAR) | SELECT home FROM table_name_63 WHERE visitor = "minnesota" |
What School/Club Team is Player Howard Wood from? | CREATE TABLE table_name_83 (school_club_team VARCHAR,player VARCHAR) | SELECT school_club_team FROM table_name_83 WHERE player = "howard wood" |
Who directed the show that had a TV broadcast of S07E04? | CREATE TABLE table_20546 ("No. in series" real,"No. in season" real,"Title" text,"Directed by" text,"Written By" text,"Originalairdate" text,"TV Broadcast" text) | SELECT "Directed by" FROM table_20546 WHERE "TV Broadcast" = 'S07E04' |
in this month, have there been any microbiology tests conducted for patient 025-44495? | CREATE TABLE treatment (treatmentid number,patientunitstayid number,treatmentname text,treatmenttime time)CREATE TABLE allergy (allergyid number,patientunitstayid number,drugname text,allergyname text,allergytime time)CREATE TABLE vitalperiodic (vitalperiodicid number,patientunitstayid number,temperature number,sao2 nu... | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495')) AND DATETIME(microlab.culturetakentime, 'start of month') = DATET... |
How many documents in different ending date? Return a line chart binning ending date by year interval, could you rank by the X-axis from low to high? | CREATE TABLE All_Documents (Document_ID INTEGER,Date_Stored DATETIME,Document_Type_Code CHAR(15),Document_Name CHAR(255),Document_Description CHAR(255),Other_Details VARCHAR(255))CREATE TABLE Ref_Locations (Location_Code CHAR(15),Location_Name VARCHAR(255),Location_Description VARCHAR(255))CREATE TABLE Documents_to_be_... | SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations ORDER BY Date_in_Locaton_To |
What place had a score of 73-69-68=210? | CREATE TABLE table_50567 ("Place" text,"Player" text,"Country" text,"Score" text,"To par" text) | SELECT "Place" FROM table_50567 WHERE "Score" = '73-69-68=210' |
What is the most number of assists for players with exactly 25 games played? | CREATE TABLE table_30518 ("Nr." real,"Player" text,"Games played" real,"Starting" real,"Sub" real,"Subbed" real,"Mins played" real,"Goals" real,"Pens. against" real,"Pens. for" real,"Fouls suff." real,"Fouls comm." real,"Yellow C" real,"Red c" real,"Assists" real,"Passes" real,"Good passes" real) | SELECT MAX("Assists") FROM table_30518 WHERE "Games played" = '25' |
what is the malayalam name of tamil name punarpoosam | CREATE TABLE table_201400_2 (malayalam_name_മലയാളം VARCHAR,tamil_name_தமிழ் VARCHAR) | SELECT malayalam_name_മലയാളം FROM table_201400_2 WHERE tamil_name_தமிழ் = "Punarpoosam புனர்பூசம்" |
What is the year First elected when the Member is John Armitage? | CREATE TABLE table_70137 ("Member" text,"Party" text,"Electorate" text,"State" text,"First elected" text) | SELECT "First elected" FROM table_70137 WHERE "Member" = 'john armitage' |
Name the cancelable for onmouseover | CREATE TABLE table_39429 ("Category" text,"Type" text,"Attribute" text,"Bubbles" text,"Cancelable" text) | SELECT "Cancelable" FROM table_39429 WHERE "Attribute" = 'onmouseover' |
If the floor number is 14.200, what is the number for the parallel bars? | CREATE TABLE table_73040 ("Position" real,"Gymnast" text,"Floor" text,"Pommel Horse" text,"Rings" text,"Vault" text,"Parallel Bars" text,"Horizontal Bar" text,"Total" text) | SELECT "Parallel Bars" FROM table_73040 WHERE "Floor" = '14.200' |
What is the number of types of competition?, order in asc by the names. | CREATE TABLE club_rank (Rank real,Club_ID int,Gold real,Silver real,Bronze real,Total real)CREATE TABLE competition (Competition_ID int,Year real,Competition_type text,Country text)CREATE TABLE competition_result (Competition_ID int,Club_ID_1 int,Club_ID_2 int,Score text)CREATE TABLE player (Player_ID int,name text,Pos... | SELECT Competition_type, COUNT(Competition_type) FROM competition GROUP BY Competition_type ORDER BY Competition_type |
Return the name of rooms and the number of reservations made for each of the rooms to draw a bar chart. | CREATE TABLE Rooms (RoomId TEXT,roomName TEXT,beds INTEGER,bedType TEXT,maxOccupancy INTEGER,basePrice INTEGER,decor TEXT)CREATE TABLE Reservations (Code INTEGER,Room TEXT,CheckIn TEXT,CheckOut TEXT,Rate REAL,LastName TEXT,FirstName TEXT,Adults INTEGER,Kids INTEGER) | SELECT roomName, COUNT(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room |
Draw a bar chart about the distribution of meter_300 and ID , and rank X-axis in descending order. | CREATE TABLE record (ID int,Result text,Swimmer_ID int,Event_ID int)CREATE TABLE stadium (ID int,name text,Capacity int,City text,Country text,Opening_year int)CREATE TABLE event (ID int,Name text,Stadium_ID int,Year text)CREATE TABLE swimmer (ID int,name text,Nationality text,meter_100 real,meter_200 text,meter_300 te... | SELECT meter_300, ID FROM swimmer ORDER BY meter_300 DESC |
What class has 0 preserved and 2 made? | CREATE TABLE table_name_56 (class VARCHAR,quantity_preserved VARCHAR,quantity_made VARCHAR) | SELECT class FROM table_name_56 WHERE quantity_preserved = "0" AND quantity_made = "2" |
who is the 4th runner-up when the 2nd runner-up is osmariel villalobos? | CREATE TABLE table_9724 ("Year" real,"Miss Earth Venezuela" text,"1st Runner Up" text,"2nd Runner Up" text,"3rd Runner Up" text,"4th Runner Up" text) | SELECT "4th Runner Up" FROM table_9724 WHERE "2nd Runner Up" = 'osmariel villalobos' |
ru.SO tags with in wiki. | 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 ReviewTaskResults (Id number,ReviewTaskId number,ReviewTaskResultTypeId number,CreationDate time,RejectionReasonId nu... | SELECT TagName, Count, LastEditorUserId, LastEditDate, Body FROM Tags INNER JOIN Posts ON WikiPostId = Posts.Id WHERE Body LIKE '% %' OR Body LIKE '% %' OR Body LIKE N'% %' ORDER BY Count DESC |
What shows for 2008 when 2010 is 138? | CREATE TABLE table_name_2 (Id VARCHAR) | SELECT 2008 FROM table_name_2 WHERE 2010 = "138" |
What is the sum of the heights in meters for the commerzbank tower built after 1984? | CREATE TABLE table_47886 ("Name" text,"Height (m)" real,"Height (ft)" real,"Location" text,"Year built" real) | SELECT SUM("Height (m)") FROM table_47886 WHERE "Year built" > '1984' AND "Name" = 'commerzbank tower' |
What was the sum of the years, when the entrant was Scuderia Centro Sud, and when there were 6 points? | CREATE TABLE table_71425 ("Year" real,"Entrant" text,"Chassis" text,"Engine" text,"Points" real) | SELECT SUM("Year") FROM table_71425 WHERE "Entrant" = 'scuderia centro sud' AND "Points" = '6' |
Draw a scatter chart about the correlation between School_ID and All_Games_Percent , and group by attribute ACC_Home. | 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 School_ID, All_Games_Percent FROM basketball_match GROUP BY ACC_Home |
What brand is model G6xxx? | CREATE TABLE table_24018112_1 (brand_name VARCHAR,model__list_ VARCHAR) | SELECT brand_name FROM table_24018112_1 WHERE model__list_ = "G6xxx" |
Which episode was written by anthony e. zuiker & ken solarz | CREATE TABLE table_17019 ("No. in series" real,"No. in season" real,"Title" text,"Directed by" text,"Written by" text,"Original air date" text,"U.S. viewers (millions)" text) | SELECT "Title" FROM table_17019 WHERE "Written by" = 'Anthony E. Zuiker & Ken Solarz' |
what is ethnicity of subject id 6983? | 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 text,gender text,language text,religion text,admission_type text,days_stay text,insurance text,ethni... | SELECT demographic.ethnicity FROM demographic WHERE demographic.subject_id = "6983" |
Who has the lead in the season where Cathrine Norberg is second and Anna Rindeskog is third? | CREATE TABLE table_49277 ("Season" text,"Skip" text,"Third" text,"Second" text,"Lead" text) | SELECT "Lead" FROM table_49277 WHERE "Second" = 'cathrine norberg' AND "Third" = 'anna rindeskog' |
Name the webcast for website of and frequency of 103.3 | CREATE TABLE table_name_5 (webcast VARCHAR,website VARCHAR,frequency VARCHAR) | SELECT webcast FROM table_name_5 WHERE website = "•" AND frequency = 103.3 |
What is the highest number of wins when there are less than 2 losses? | CREATE TABLE table_63495 ("Club" text,"Wins" real,"Losses" real,"Draws" real,"Against" real) | SELECT MAX("Wins") FROM table_63495 WHERE "Losses" < '2' |
Question posted with most favorites given the specified tag and duration. | 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 CloseReasonTypes (Id number,Name text,Description text)CREATE TABLE FlagTypes (Id number,Name text,Description text)C... | SELECT p1.Title AS "Question", 'http://www.stackoverflow.com/questions/' + CAST(p1.Id AS TEXT) AS "URL", p1.FavoriteCount AS "Favorite Votes" FROM Posts AS p1, PostTypes AS ptypes1, PostTags AS ptags1, Tags AS t1 WHERE p1.PostTypeId = ptypes1.Id AND ptypes1.Id = 1 AND p1.Id = ptags1.PostId AND ptags1.TagId = t1.Id AND ... |
how many patients died in or before year 2126 due to bowel obstruction? | 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 WHERE demographic.diagnosis = "BOWEL OBSTRUCTION" AND demographic.dod_year <= "2126.0" |
what was the total number of races ? | CREATE TABLE table_203_271 (id number,"date" text,"series" text,"circuit" text,"city / state" text,"winner" text,"team" text,"car" text,"report" text) | SELECT COUNT(*) FROM table_203_271 |
For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ? | CREATE TABLE table_name_5 (tie_no VARCHAR,attendance VARCHAR,home_team VARCHAR) | SELECT tie_no FROM table_name_5 WHERE attendance = "2 january 1999" AND home_team = "plymouth argyle" |
What type of yacht has a LOA of 15.15 metres? | CREATE TABLE table_name_94 (yacht VARCHAR,loa__metres_ VARCHAR) | SELECT yacht AS Type FROM table_name_94 WHERE loa__metres_ = 15.15 |
what was the last arterial bp mean of patient 19428 on the current intensive care unit visit. | 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,intime time,outtime time)CREATE TABLE cost (row_id number,subject_id number,hadm_id number,event_type text,event_id number,chargetime time,cost number)CRE... | SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19428) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHE... |
what's the attribute with cancelable being yes | CREATE TABLE table_72650 ("Category" text,"Type" text,"Attribute" text,"Description" text,"Bubbles" text,"Cancelable" text) | SELECT "Attribute" FROM table_72650 WHERE "Cancelable" = 'Yes' |
what is the higher number of meters listed in the notes section of the table ? | CREATE TABLE table_203_763 (id number,"year" number,"competition" text,"venue" text,"position" text,"notes" text) | SELECT "notes" FROM table_203_763 ORDER BY "notes" DESC LIMIT 1 |
how many patients were admitted in emergency primarily for brain mass; intracranial hemorrhage ? | 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 AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" |
How many directors were there for the production code 1ark08? | CREATE TABLE table_22835602_1 (directed_by VARCHAR,production_code VARCHAR) | SELECT COUNT(directed_by) FROM table_22835602_1 WHERE production_code = "1ARK08" |
What date was Rodger Ward the winning driver? | CREATE TABLE table_name_48 (date VARCHAR,winning_driver VARCHAR) | SELECT date FROM table_name_48 WHERE winning_driver = "rodger ward" |
Where was the game played when the score was 1-4? | CREATE TABLE table_name_72 (venue VARCHAR,score VARCHAR) | SELECT venue FROM table_name_72 WHERE score = "1-4" |
How many current account balances are associated with GDP at constant prices growth rates of 4.6? | CREATE TABLE table_4299 ("Year" real,"GDP at constant prices (THB trillions)" text,"GDP at constant prices growth rate (percent change)" text,"GDP at current prices (USD billions)" text,"Export volume of goods and services (percent change)" text,"Current account balance (percent of GDP)" text) | SELECT COUNT("Current account balance (percent of GDP)") FROM table_4299 WHERE "GDP at constant prices growth rate (percent change)" = '4.6' |
How many points were there when tries for were 84? | CREATE TABLE table_17369472_2 (points VARCHAR,tries_for VARCHAR) | SELECT points FROM table_17369472_2 WHERE tries_for = "84" |
calculate the one year survival probability of patients that were prescribed amiodarone (cordarone) 150 mg in d5w 100ml bolus after they were diagnosed with acute respiratory failure - due to inability to clear secretions? | CREATE TABLE intakeoutput (intakeoutputid number,patientunitstayid number,cellpath text,celllabel text,cellvaluenumeric number,intakeoutputtime time)CREATE TABLE microlab (microlabid number,patientunitstayid number,culturesite text,organism text,culturetakentime time)CREATE TABLE medication (medicationid number,patient... | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t4.diagnosistime) > 1 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.uniquepid, t2.diagnosistime FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid... |
For those records from the products and each product's manufacturer, show me about the distribution of founder and the average of price , and group by attribute founder in a bar chart, and rank in desc by the x-axis. | CREATE TABLE Products (Code INTEGER,Name VARCHAR(255),Price DECIMAL,Manufacturer INTEGER)CREATE TABLE Manufacturers (Code INTEGER,Name VARCHAR(255),Headquarter VARCHAR(255),Founder VARCHAR(255),Revenue REAL) | SELECT Founder, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC |
What is the Torque that has a Power of hp (kw), and a Trim of xr (2009)? Question 6 | CREATE TABLE table_name_18 (torque VARCHAR,power VARCHAR,trim VARCHAR) | SELECT torque FROM table_name_18 WHERE power = "hp (kw)" AND trim = "xr (2009)" |
What's the lowest Overall average that has a College of Arkansas, and a Round larger than 3? | CREATE TABLE table_name_51 (overall INTEGER,college VARCHAR,round VARCHAR) | SELECT MIN(overall) FROM table_name_51 WHERE college = "arkansas" AND round > 3 |
What was the maximum number of wins? | CREATE TABLE table_22081847_1 (wins INTEGER) | SELECT MAX(wins) FROM table_22081847_1 |
i would like to fly from PHILADELPHIA to DALLAS | CREATE TABLE equipment_sequence (aircraft_code_sequence varchar,aircraft_code varchar)CREATE TABLE ground_service (city_code text,airport_code text,transport_type text,ground_fare int)CREATE TABLE restriction (restriction_code text,advance_purchase int,stopovers text,saturday_stay_required text,minimum_stay int,maximum... | 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 = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'D... |
What is the Opponent of the game with a Score of 74-66? | CREATE TABLE table_name_82 (opponent VARCHAR,score VARCHAR) | SELECT opponent FROM table_name_82 WHERE score = "74-66" |
how many people had been diagnosed with hx of physical abuse until 4 years ago? | CREATE TABLE diagnoses_icd (row_id number,subject_id number,hadm_id number,icd9_code text,charttime time)CREATE TABLE d_icd_diagnoses (row_id number,icd9_code text,short_title text,long_title text)CREATE TABLE admissions (row_id number,subject_id number,hadm_id number,admittime time,dischtime time,admission_type text,a... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hx of physical abuse') AND DATETIME(diagnoses_icd.charttim... |
What is the Home team of Tie no 40? | CREATE TABLE table_12728 ("Tie no" text,"Home team" text,"Score" text,"Away team" text,"Date" text) | SELECT "Home team" FROM table_12728 WHERE "Tie no" = '40' |
what is nico rosberg 's total number of wins throughout his career ? | CREATE TABLE table_203_150 (id number,"season" number,"series" text,"team" text,"races" number,"wins" number,"poles" number,"f/laps" number,"podiums" number,"points" number,"position" text) | SELECT SUM("wins") FROM table_203_150 |
What college or club team did Dale Mitchell play for? | CREATE TABLE table_10098 ("Round" real,"Player" text,"Position" text,"Nationality" text,"College/Junior/Club Team (League)" text) | SELECT "College/Junior/Club Team (League)" FROM table_10098 WHERE "Player" = 'dale mitchell' |
WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5? | CREATE TABLE table_47853 ("Driver" text,"Team" text,"Laps" real,"Time/Retired" text,"Grid" real,"Points" real) | SELECT MIN("Laps") FROM table_47853 WHERE "Points" > '5' AND "Team" = 'forsythe racing' AND "Grid" = '5' |
What is the power in KW of the transmitter situated in Borongan? | CREATE TABLE table_27055 ("Branding" text,"Callsign" text,"Ch. #" text,"Power kW" text,"Station Type" text,"Location (Transmitter site)" text) | SELECT "Power kW" FROM table_27055 WHERE "Location (Transmitter site)" = 'Borongan' |
What's in third place that's going 1-0? | CREATE TABLE table_name_39 (score VARCHAR) | SELECT 3 AS rd_place FROM table_name_39 WHERE score = "1-0" |
What is the smallest capacity for Bursa? | CREATE TABLE table_12552 ("Club" text,"City" text,"Arena" text,"Capacity" real,"Last Year" text) | SELECT MIN("Capacity") FROM table_12552 WHERE "City" = 'bursa' |
What is week 6 when week 7, week 4, and week 3 are evicted and week 2 29.35? | CREATE TABLE table_name_22 (week_6 VARCHAR,week_2 VARCHAR,week_3 VARCHAR,week_7 VARCHAR,week_4 VARCHAR) | SELECT week_6 FROM table_name_22 WHERE week_7 = "evicted" AND week_4 = "evicted" AND week_3 = "evicted" AND week_2 = "29.35" |
What is the Position with a height of less than 183, and a weight of less than 91 kg and born in bloomington, minnesota? | CREATE TABLE table_6846 ("Position" text,"Name" text,"Height (cm)" real,"Weight (kg)" real,"Birthdate" text,"Birthplace" text,"1997\u20131998 Team" text) | SELECT "Position" FROM table_6846 WHERE "Height (cm)" < '183' AND "Weight (kg)" < '91' AND "Birthplace" = 'bloomington, minnesota' |
let me know the time of admission and primary disease of patient michael tyndall. | 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.diagnosis, demographic.admittime FROM demographic WHERE demographic.name = "Michael Tyndall" |
Who is the incumbent first elected in 1944? | CREATE TABLE table_1342013_20 (incumbent VARCHAR,first_elected VARCHAR) | SELECT incumbent FROM table_1342013_20 WHERE first_elected = 1944 |
Get Unique technology or programming related keywords. | CREATE TABLE ReviewRejectionReasons (Id number,Name text,Description text,PostTypeId number)CREATE TABLE VoteTypes (Id number,Name text)CREATE TABLE ReviewTaskResultTypes (Id number,Name text,Description text)CREATE TABLE PostNotices (Id number,PostId number,PostNoticeTypeId number,CreationDate time,DeletionDate time,E... | SELECT * FROM Tags ORDER BY Count DESC |
Which player is from County Dublin? | CREATE TABLE table_64445 ("Rank" real,"Player" text,"County" text,"Tally" text,"Total" real,"Opposition" text) | SELECT "Player" FROM table_64445 WHERE "County" = 'dublin' |
the title swat 4 shared the same developer as what other title ? | CREATE TABLE table_203_633 (id number,"title" text,"year" number,"platform" text,"developer" text,"publisher" text) | SELECT "title" FROM table_203_633 WHERE "title" <> 'swat 4' AND "developer" = (SELECT "developer" FROM table_203_633 WHERE "title" = 'swat 4') |
Name the constituency for 175130 | CREATE TABLE table_25279 ("Constituency" text,"Winner" text,"Party" text,"Margin" real,"Runner-up a" text,"Party a" text) | SELECT "Constituency" FROM table_25279 WHERE "Margin" = '175130' |
List the 1st air date for the episode titled 'baby talk'. | CREATE TABLE table_3194 ("Episode #" real,"Production Count" real,"Original Airdate" text,"Prod. Code" text,"Title" text,"Viewing Figures millions" text) | SELECT "Original Airdate" FROM table_3194 WHERE "Title" = 'Baby Talk' |
What club has less than 61 goals for and 55 goals against? | CREATE TABLE table_69341 ("Position" real,"Club" text,"Played" real,"Points" text,"Wins" real,"Draws" real,"Losses" real,"Goals for" real,"Goals against" real,"Goal Difference" real) | SELECT "Club" FROM table_69341 WHERE "Goals for" < '61' AND "Goals against" = '55' |
What is the lowest enrollment amount for a year left of 2012 and a current conference of Mid-South? | CREATE TABLE table_name_17 (enrollment INTEGER,left VARCHAR,current_conference VARCHAR) | SELECT MIN(enrollment) FROM table_name_17 WHERE left = 2012 AND current_conference = "mid-south" |
Find Laravel Experts Near Salt Lake City, UT. | CREATE TABLE VoteTypes (Id number,Name text)CREATE TABLE PostTags (PostId number,TagId number)CREATE TABLE Tags (Id number,TagName text,Count number,ExcerptPostId number,WikiPostId number)CREATE TABLE PostsWithDeleted (Id number,PostTypeId number,AcceptedAnswerId number,ParentId number,CreationDate time,DeletionDate ti... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Location, Reputation FROM Users WHERE LOWER(Location) LIKE LOWER('%##Location##%') ORDER BY Reputation DESC |
What nation was the film from that was in english and had a Literary tradition of canadian literature? | CREATE TABLE table_36060 ("Year" real,"Name" text,"Country" text,"Language(s)" text,"Literary tradition" text) | SELECT "Country" FROM table_36060 WHERE "Language(s)" = 'english' AND "Literary tradition" = 'canadian literature' |
List the stadium and number of people in attendance when the team record was 45-22. | CREATE TABLE table_23284271_9 (location_attendance VARCHAR,record VARCHAR) | SELECT COUNT(location_attendance) FROM table_23284271_9 WHERE record = "45-22" |
WHAT IS THE HIGHEST POINTS FOR LOS ANGELES? | CREATE TABLE table_45917 ("Game" real,"Date" text,"Opponent" text,"Score" text,"High points" text,"High rebounds" text,"High assists" text,"Location/Attendance" text,"Record" text) | SELECT "High points" FROM table_45917 WHERE "Opponent" = 'los angeles' |
What is the Notes of the Frequency with a Format of soft adult contemporary? | CREATE TABLE table_42685 ("Frequency" text,"Call sign" text,"Format" text,"Owner" text,"Notes" text) | SELECT "Notes" FROM table_42685 WHERE "Format" = 'soft adult contemporary' |
top user in every tag. | CREATE TABLE Comments (Id number,PostId number,Score number,Text text,CreationDate time,UserDisplayName text,UserId number,ContentLicense text)CREATE TABLE VoteTypes (Id number,Name text)CREATE TABLE ReviewTaskTypes (Id number,Name text,Description text)CREATE TABLE PostNoticeTypes (Id number,ClassId number,Name text,B... | WITH user_tag AS (SELECT t.TagName, a.OwnerUserId AS "user_link", SUM(a.Score) / 10.0 AS Score, COUNT(a.Score) AS "count", ((SUM(a.Score) / 10.0) + COUNT(a.Score)) / 2.0 AS Total FROM Posts AS a JOIN Posts AS q ON a.ParentId = q.Id JOIN PostTags AS qt ON q.Id = qt.PostId JOIN Tags AS t ON t.Id = qt.TagId WHERE a.PostTy... |
Which Hereditary peers have a Total of 1? | CREATE TABLE table_name_15 (hereditary_peers VARCHAR,total VARCHAR) | SELECT hereditary_peers FROM table_name_15 WHERE total = 1 |
Which submission received the highest score in acceptance result. Show me the result. | CREATE TABLE submission (submission_id number,scores number,author text,college text)CREATE TABLE workshop (workshop_id number,date text,venue text,name text)CREATE TABLE acceptance (submission_id number,workshop_id number,result text) | SELECT T1.result FROM acceptance AS T1 JOIN submission AS T2 ON T1.submission_id = T2.submission_id ORDER BY T2.scores DESC LIMIT 1 |
what 2001 has 1991 of 4r? | CREATE TABLE table_name_42 (Id VARCHAR) | SELECT 2001 FROM table_name_42 WHERE 1991 = "4r" |
when deland is the fcsl team and 2008 is the year played who is the mlb team? | CREATE TABLE table_18373863_2 (mlb_team VARCHAR,years_played VARCHAR,fcsl_team VARCHAR) | SELECT mlb_team FROM table_18373863_2 WHERE years_played = "2008" AND fcsl_team = "DeLand" |
provide the number of patients with procedure icd9 code 9229 who died on or before 2126. | 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 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,marita... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2126.0" AND procedures.icd9_code = "9229" |
What was the 2nd leg score when atl tico tucum n played at home? | CREATE TABLE table_61350 ("Home (1st leg)" text,"Home (2nd leg)" text,"1st Leg" text,"2nd leg" text,"Aggregate" text) | SELECT "2nd leg" FROM table_61350 WHERE "Home (2nd leg)" = 'atlético tucumán' |
Is FILMVID 503 available for me to take over the Fall ? | CREATE TABLE jobs (job_id int,job_title varchar,description varchar,requirement varchar,city varchar,state varchar,country varchar,zip int)CREATE TABLE instructor (instructor_id int,name varchar,uniqname varchar)CREATE TABLE semester (semester_id int,semester varchar,year int)CREATE TABLE program_course (program_id int... | SELECT COUNT(*) > 0 FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND NOT COURSEalias0.course_id IN... |
All posts in early January 2017. | 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 PostFeedback (Id number,PostId number,IsAnonymous boolean,VoteTypeId number,CreationDate time)CREATE TABLE FlagTypes ... | SELECT * FROM Posts WHERE MONTH(CreationDate) = 1 AND YEAR(CreationDate) = 2017 |
What were the high rebounds when the score was l 101 109 (ot)? | CREATE TABLE table_8057 ("Game" real,"Date" text,"Team" text,"Score" text,"High points" text,"High rebounds" text,"High assists" text,"Location Attendance" text,"Record" text) | SELECT "High rebounds" FROM table_8057 WHERE "Score" = 'l 101–109 (ot)' |
during their last hospital visit what was the insurance plan of patient 29741? | CREATE TABLE d_icd_procedures (row_id number,icd9_code text,short_title text,long_title 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 TABLE labevents (row_id number,subject_id number,hadm_id numb... | SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 29741 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 |
what was the name of the drug that's been prescribed to patient 006-47576 two times on the current hospital encounter? | CREATE TABLE cost (costid number,uniquepid text,patienthealthsystemstayid number,eventtype text,eventid number,chargetime time,cost number)CREATE TABLE medication (medicationid number,patientunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time)CREATE TABLE microlab (microlabi... | SELECT t1.drugname FROM (SELECT medication.drugname, COUNT(medication.drugstarttime) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006... |
What is the total number of points for all players? | CREATE TABLE competition_result (competition_id number,club_id_1 number,club_id_2 number,score text)CREATE TABLE player (player_id number,name text,position text,club_id number,apps number,tries number,goals text,points number)CREATE TABLE club_rank (rank number,club_id number,gold number,silver number,bronze number,to... | SELECT SUM(points) FROM player |
Tell me the totla number of goal difference for goals against of 30 and played less than 18 | CREATE TABLE table_name_4 (goal_difference VARCHAR,goals_against VARCHAR,played VARCHAR) | SELECT COUNT(goal_difference) FROM table_name_4 WHERE goals_against = 30 AND played < 18 |
anna zagorska recieved 2nd place , what was her time ? | CREATE TABLE table_204_59 (id number,"rank" number,"athlete" text,"nationality" text,"time" text) | SELECT "time" FROM table_204_59 WHERE "athlete" = 'anna zagorska' |
Name the result for milwaukee county stadium | CREATE TABLE table_14984050_1 (result VARCHAR,game_site VARCHAR) | SELECT result FROM table_14984050_1 WHERE game_site = "Milwaukee County Stadium" |
What Position does First Elected in 2003 William D. Euille hold ? | CREATE TABLE table_13375 ("Position" text,"Name" text,"Party" text,"First Election" text,"District" text) | SELECT "Position" FROM table_13375 WHERE "First Election" = '2003' AND "Name" = 'william d. euille' |
How many attended the game with a record of 43-34? | CREATE TABLE table_name_59 (attendance VARCHAR,record VARCHAR) | SELECT COUNT(attendance) FROM table_name_59 WHERE record = "43-34" |
what is the last value of urea nitrogen laboratory test of patient 75762 on their first hospital encounter? | CREATE TABLE d_icd_procedures (row_id number,icd9_code text,short_title text,long_title text)CREATE TABLE patients (row_id number,subject_id number,gender text,dob time,dod time)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... | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 75762 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'urea ... |
What's the highest season number with a series number of 47? | CREATE TABLE table_29486 ("No. in Series" real,"No. in Season" real,"Title" text,"Directed by" text,"Written by" text,"Original air date" text,"U.S. viewers (millions)" text) | SELECT MAX("No. in Season") FROM table_29486 WHERE "No. in Series" = '47' |
had patient 030-47098 been treated since 4 years ago in other hospitals with a administration of electrolytes - intravenous procedure? | CREATE TABLE medication (medicationid number,patientunitstayid number,drugname text,dosage text,routeadmin text,drugstarttime time,drugstoptime time)CREATE TABLE allergy (allergyid number,patientunitstayid number,drugname text,allergyname text,allergytime time)CREATE TABLE diagnosis (diagnosisid number,patientunitstayi... | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '030-47098' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '030-47098' AND patient.hospitaldischargetime IS NULL)) AND tr... |
What was the final game result that was played on December 2? | CREATE TABLE table_name_80 (result VARCHAR,date VARCHAR) | SELECT result FROM table_name_80 WHERE date = "december 2" |
What was the weight division for the fight that ended in a TKO (strikes)? | CREATE TABLE table_name_55 (weight_division VARCHAR,method VARCHAR) | SELECT weight_division FROM table_name_55 WHERE method = "tko (strikes)" |
Show the names and total passengers for all train stations not in London Visualize by bar chart, and show by the X-axis from high to low. | CREATE TABLE train_station (Train_ID int,Station_ID int)CREATE TABLE station (Station_ID int,Name text,Annual_entry_exit real,Annual_interchanges real,Total_Passengers real,Location text,Main_Services text,Number_of_Platforms int)CREATE TABLE train (Train_ID int,Name text,Time text,Service text) | SELECT Name, Total_Passengers FROM station WHERE Location <> 'London' ORDER BY Name DESC |
7 credits are for which upper-level classes ? | CREATE TABLE offering_instructor (offering_instructor_id int,offering_id int,instructor_id int)CREATE TABLE student (student_id int,lastname varchar,firstname varchar,program_id int,declare_major varchar,total_credit int,total_gpa float,entered_as varchar,admit_term int,predicted_graduation_semester int,degree varchar,... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 7 AND program_course.category LIKE 'ULCS' |
what is the maximum age of patients with admission location trsf within this facility and diagnosed with primary disease liver transplant? | 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 MAX(demographic.age) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.diagnosis = "LIVER TRANSPLANT" |
i need a sunday flight from TAMPA to CHARLOTTE | CREATE TABLE time_zone (time_zone_code text,time_zone_name text,hours_from_gmt int)CREATE TABLE food_service (meal_code text,meal_number int,compartment text,meal_description varchar)CREATE TABLE date_day (month_number int,day_number int,year int,day_name varchar)CREATE TABLE flight_stop (flight_id int,stop_number int,... | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CHARLOTTE' AND date_day.day_number = 27 AND date_day.month_number = 8 AND... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.