answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT record FROM table_21839208_4 WHERE week = 11 | What was their record in week 11? | CREATE TABLE table_21839208_4 (record VARCHAR, week VARCHAR) |
SELECT COUNT(class) FROM table_14139408_1 WHERE poles > 1.0 | how many class with poles being bigger than 1.0 | CREATE TABLE table_14139408_1 (
class VARCHAR,
poles INTEGER
) |
SELECT position FROM table_name_32 WHERE player = "sal martinez" | What position is Sal Martinez? | CREATE TABLE table_name_32 (position VARCHAR, player VARCHAR) |
SELECT MIN(wins) FROM table_2187333_1 | Name the least wins | CREATE TABLE table_2187333_1 (wins INTEGER) |
SELECT high_rebounds FROM table_name_17 WHERE team = "@ charlotte" | What are the high rebounds of team @ Charlotte? | CREATE TABLE table_name_17 (
high_rebounds VARCHAR,
team VARCHAR
) |
SELECT constructor FROM table_name_67 WHERE time_retired = "+2:06.0" | Who constructed the car that has a Time/Retired of +2:06.0? | CREATE TABLE table_name_67 (constructor VARCHAR, time_retired VARCHAR) |
SELECT avg_start FROM table_2187333_1 WHERE avg_finish = "18.3" | Name the avg start for avg finish of 18.3 | CREATE TABLE table_2187333_1 (avg_start VARCHAR, avg_finish VARCHAR) |
SELECT "Date" FROM table_32658 WHERE "Opponent" = 'indianapolis colts' | When was the game against the Indianapolis Colts? | CREATE TABLE table_32658 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
) |
SELECT SUM(laps) FROM table_name_65 WHERE grid < 15 AND time_retired = "transmission" | What is the lap total for the grid under 15 that retired due to transmission? | CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) |
SELECT year FROM table_2187333_1 WHERE team_s_ = "#16 Roush Racing" AND poles < 1.0 | Name the year for #16 roush racing for poles less than smaller 1.0 | CREATE TABLE table_2187333_1 (year VARCHAR, team_s_ VARCHAR, poles VARCHAR) |
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NASHVILLE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.ci... | price of flight from NASHVILLE to CLEVELAND | CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,... |
SELECT constructor FROM table_name_47 WHERE grid < 10 AND laps > 76 AND driver = "juan manuel fangio" | Who constructed juan manuel fangio's car with over 76 laps and a grid under 10? | CREATE TABLE table_name_47 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR) |
SELECT listed_owner_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = "RepairOne" | Name the listen owners for repairone | CREATE TABLE table_2187178_1 (listed_owner_s_ VARCHAR, primary_sponsor_s_ VARCHAR) |
SELECT enrollment FROM table_name_39 WHERE ihsaa_class = "a" AND mascot = "vikings" | What is the enrollment at the school with IHSAA class A and where mascot is the Vikings? | CREATE TABLE table_name_39 (
enrollment VARCHAR,
ihsaa_class VARCHAR,
mascot VARCHAR
) |
SELECT SUM(laps) FROM table_name_29 WHERE grid < 20 AND driver = "johnny herbert" | what is the sum of laps when grid is less than 20 and johnny herbert is driving? | CREATE TABLE table_name_29 (laps INTEGER, grid VARCHAR, driver VARCHAR) |
SELECT truck_s_ FROM table_2187178_1 WHERE crew_chief = "Scott Neal" | Name the trucks for scott neal | CREATE TABLE table_2187178_1 (truck_s_ VARCHAR, crew_chief VARCHAR) |
SELECT county FROM table_name_38 WHERE ihsaa_class = "a" AND mascot = "cavaliers" | Which IHSAA class A school are the Cavaliers from? | CREATE TABLE table_name_38 (
county VARCHAR,
ihsaa_class VARCHAR,
mascot VARCHAR
) |
SELECT driver FROM table_name_43 WHERE constructor = "ferrari" AND time_retired = "+1:06.683" | who is the driver for the car constructed by ferrari with a time/retired of +1:06.683? | CREATE TABLE table_name_43 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR) |
SELECT listed_owner_s_ FROM table_2187178_1 WHERE team = "Brevak Racing" | Name the listed owners for brevak racing | CREATE TABLE table_2187178_1 (listed_owner_s_ VARCHAR, team VARCHAR) |
SELECT venue FROM table_name_12 WHERE tournament = "olympic games" AND year = 2012 | What Venue held the Olympic games in 2012? | CREATE TABLE table_name_12 (
venue VARCHAR,
tournament VARCHAR,
year VARCHAR
) |
SELECT driver FROM table_name_81 WHERE grid = 11 | who is the driver when grid is 11? | CREATE TABLE table_name_81 (driver VARCHAR, grid VARCHAR) |
SELECT crew_chief FROM table_2187178_1 WHERE driver_s_ = "Ricky Craven" | Name the crew chief for ricky craven | CREATE TABLE table_2187178_1 (crew_chief VARCHAR, driver_s_ VARCHAR) |
SELECT author.name FROM author, conference, publication, writes WHERE conference.name = 'VLDB' AND publication.cid = conference.cid AND writes.aid = author.aid AND writes.pid = publication.pid GROUP BY author.name ORDER BY COUNT(DISTINCT (publication.title)) DESC LIMIT 1 | return me the author who has the most number of papers in the VLDB conference . | CREATE TABLE conference (
cid int,
homepage varchar,
name varchar
)
CREATE TABLE writes (
aid int,
pid int
)
CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE author (... |
SELECT opponent FROM table_name_72 WHERE result = "30-12" | Who was the opponent with a score of 30-12? | CREATE TABLE table_name_72 (opponent VARCHAR, result VARCHAR) |
SELECT driver_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = "Superchips" | Name the drivers for superchips | CREATE TABLE table_2187178_1 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR) |
SELECT "Loss" FROM table_80087 WHERE "Record" = '71-81' | Name the loss for record of 71-81 | CREATE TABLE table_80087 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) |
SELECT opponent FROM table_name_89 WHERE result = "40-20" | Who was the opponent with a score of 40-20? | CREATE TABLE table_name_89 (opponent VARCHAR, result VARCHAR) |
SELECT year__ceremony_ FROM table_21904740_1 WHERE spanish_title = "Viva Cuba" | When was Viva Cuba submitted? | CREATE TABLE table_21904740_1 (year__ceremony_ VARCHAR, spanish_title VARCHAR) |
SELECT "Score" FROM table_44797 WHERE "Venue" = 'idrottsparken' | Which Score has a Venue of idrottsparken? | CREATE TABLE table_44797 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Comp" text,
"Attendance" text
) |
SELECT date FROM table_name_31 WHERE away_team = "geelong" | When did Geelong play as the away team? | CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR) |
SELECT name_or_number FROM table_2189647_1 WHERE yield__megatons_ = "15" | Name the name for 15 yield | CREATE TABLE table_2189647_1 (name_or_number VARCHAR, yield__megatons_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "83" AND demographic.days_stay > "6" | count the number of patients whose age is less than 83 and days of hospital stay is greater than 6? | 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
)
... |
SELECT COUNT(capacity__mw_) FROM table_name_17 WHERE notes = "under construction" | What is the total capacity (MW) of the farm that is noted as being under construction? | CREATE TABLE table_name_17 (capacity__mw_ VARCHAR, notes VARCHAR) |
SELECT COUNT(state_rank_by_revenue) FROM table_21926985_2 WHERE known_for = "Retailing" | What is the rank of the company known for retailing? | CREATE TABLE table_21926985_2 (state_rank_by_revenue VARCHAR, known_for VARCHAR) |
SELECT "Freestyle leg" FROM table_46861 WHERE "Country" = 'netherlands' | What is the freestyle leg for the Netherlands? | CREATE TABLE table_46861 (
"Country" text,
"Backstroke leg" text,
"Breaststroke leg" text,
"Butterfly leg" text,
"Freestyle leg" text
) |
SELECT state_province FROM table_name_72 WHERE wind_farm = "tehachapi pass wind farm" | Which state is Tehachapi Pass Wind Farm located in? | CREATE TABLE table_name_72 (state_province VARCHAR, wind_farm VARCHAR) |
SELECT state_rank_by_revenue FROM table_21926985_2 WHERE company_name = "Murphy Oil" | What is the rank for Murphy Oil? | CREATE TABLE table_21926985_2 (state_rank_by_revenue VARCHAR, company_name VARCHAR) |
SELECT MIN("Attendance") FROM table_79991 WHERE "Time" = '2:13' | What was the Attendance when the Time was 2:13? | CREATE TABLE table_79991 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
) |
SELECT wind_farm FROM table_name_58 WHERE country = "usa" AND notes = "multiple farms" | Which wind farm is in the USA and is noted as having multiple farms? | CREATE TABLE table_name_58 (wind_farm VARCHAR, country VARCHAR, notes VARCHAR) |
SELECT headquarters_city FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = "33.3" | Where is the company with estimated revenue of 33.3 billion headquartered? | CREATE TABLE table_21926985_2 (headquarters_city VARCHAR, revenue__$billions__2012_estimate VARCHAR) |
SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID | For all employees who have the letters D or S in their first name, give me the comparison about the sum of manager_id over the job_id , and group by attribute job_id by a bar 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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... |
SELECT notes FROM table_name_86 WHERE capacity__mw_ = 343 | What special notes are included for the windfarm with a capacity (MW) of 343? | CREATE TABLE table_name_86 (notes VARCHAR, capacity__mw_ VARCHAR) |
SELECT MIN(national_rank) FROM table_21926985_2 WHERE company_name = "Windstream" | What is the national rank of Windstream? | CREATE TABLE table_21926985_2 (national_rank INTEGER, company_name VARCHAR) |
SELECT All_Games, School_ID FROM basketball_match ORDER BY All_Games | Return a bar chart about the distribution of All_Games and School_ID , and show in ascending by the bar. | 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_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... |
SELECT SUM(capacity__mw_) FROM table_name_72 WHERE state_province = "gansu" | What is the total capacity (MW) of the windfarm located in the state/province of Gansu? | CREATE TABLE table_name_72 (capacity__mw_ INTEGER, state_province VARCHAR) |
SELECT state_rank_by_revenue FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = "6.8" | What is the state rank of the company with 6.8 billion in revenue? | CREATE TABLE table_21926985_2 (state_rank_by_revenue VARCHAR, revenue__$billions__2012_estimate VARCHAR) |
SELECT MIN(attendance) FROM table_name_21 WHERE points > 14 AND arena = "staples center" | What was the lowest Attendance for the Staples Center Arena when the Points were over 14? | CREATE TABLE table_name_21 (
attendance INTEGER,
points VARCHAR,
arena VARCHAR
) |
SELECT home_team AS score FROM table_name_23 WHERE venue = "arden street oval" | In the game held at Arden Street Oval, what was the score of the home team? | CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR) |
SELECT entrant FROM table_21977704_1 WHERE driver = "Benedicto Campos" | Name the entrant for benedicto campos | CREATE TABLE table_21977704_1 (entrant VARCHAR, driver VARCHAR) |
SELECT COUNT(*) FROM table_203_230 WHERE "place" = 't4' | how many placed in the t4 category ? | CREATE TABLE table_203_230 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number
) |
SELECT SUM(crowd) FROM table_name_93 WHERE venue = "kardinia park" | How many people in total have attended games at Kardinia Park? | CREATE TABLE table_name_93 (crowd INTEGER, venue VARCHAR) |
SELECT no FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Juan Manuel Fangio" | Name the number for automóvil club argentino for juan manuel fangio | CREATE TABLE table_21977704_1 (no VARCHAR, entrant VARCHAR, driver VARCHAR) |
SELECT SUM(rank) FROM table_name_4 WHERE canton = "schaffhausen" | Wich rank is given to the Canton of Schaffhausen? | CREATE TABLE table_name_4 (
rank INTEGER,
canton VARCHAR
) |
SELECT MIN(crowd) FROM table_name_96 WHERE venue = "arden street oval" | Which game at Arden Street Oval had the lowest attendance? | CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR) |
SELECT MAX(no) FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Benedicto Campos" | Name the most number for automóvil club argentino for benedicto campos | CREATE TABLE table_21977704_1 (no INTEGER, entrant VARCHAR, driver VARCHAR) |
SELECT tournament FROM table_name_34 WHERE 2007 = "lq" | In which tournament did Pauline Parmentier finish LQ in 2007? | CREATE TABLE table_name_34 (
tournament VARCHAR
) |
SELECT venue FROM table_name_49 WHERE away_team = "footscray" | Where was the game against the away team Footscray held? | CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR) |
SELECT driver FROM table_21977704_1 WHERE engine = "Talbot L6" | Name the driver for talbot l6 | CREATE TABLE table_21977704_1 (driver VARCHAR, engine VARCHAR) |
SELECT "Womens Singles" FROM table_74230 WHERE "Mens Singles" = 'Ma Lin' | Who won Womens Singles in the year that Ma Lin won Mens Singles? | CREATE TABLE table_74230 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
) |
SELECT AVG(points) FROM table_name_96 WHERE played > 42 | What is the average number of points for clubs that have played more than 42 times? | CREATE TABLE table_name_96 (points INTEGER, played INTEGER) |
SELECT constructor FROM table_21977704_1 WHERE driver = "Alberto Ascari" | Name the constructor for alberto ascari | CREATE TABLE table_21977704_1 (constructor VARCHAR, driver VARCHAR) |
SELECT "type of hospital" FROM table_203_216 WHERE "hospital" = 'grossmont hospital' | which type of hospitals are the same as grossmont hospital ? | CREATE TABLE table_203_216 (
id number,
"rank" number,
"hospital" text,
"city" text,
"county" text,
"# beds" number,
"type of hospital" text
) |
SELECT COUNT(goals_against) FROM table_name_68 WHERE played > 42 | What is the total number of goals scored against clubs that have played more than 42 times? | CREATE TABLE table_name_68 (goals_against VARCHAR, played INTEGER) |
SELECT chassis FROM table_21977704_1 WHERE constructor = "Alta" | Name the chassis for alta | CREATE TABLE table_21977704_1 (chassis VARCHAR, constructor VARCHAR) |
SELECT MAX("Tries") FROM table_56579 WHERE "Player" = 'paul sykes' AND "Points" > '0' | How many tries did the player Paul Sykes take when he earned 0 points? | CREATE TABLE table_56579 (
"Player" text,
"Position" text,
"Tries" real,
"Goals" real,
"Points" real
) |
SELECT date FROM table_name_74 WHERE home_team = "geelong" | On which date did Geelong play at home? | CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR) |
SELECT MIN(no) FROM table_21977627_1 WHERE chassis = "Maserati 4CL" | The Maserati 4cl's minimum no was? | CREATE TABLE table_21977627_1 (no INTEGER, chassis VARCHAR) |
SELECT "Laid down" FROM table_66986 WHERE "Launched" = '16 february 1934' | Name the laid down for launched being 16 february 1934 | CREATE TABLE table_66986 (
"Ship" text,
"Pennant number" text,
"Laid down" text,
"Launched" text,
"Completed" text
) |
SELECT home_team FROM table_name_32 WHERE venue = "windy hill" | Which home team has a venue of windy hill? | CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR) |
SELECT COUNT(entrant) FROM table_21977627_1 WHERE driver = "Yves Giraud-Cabantous" | How many entrants was yves giraud-cabantous? | CREATE TABLE table_21977627_1 (entrant VARCHAR, driver VARCHAR) |
SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID ORDER BY T1.Project_ID DESC | Show me a bar chart for what is the project id and detail for the project with at least two documents?, and order by the y axis from high to low. | CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(25... |
SELECT venue FROM table_name_87 WHERE home_team = "essendon" | If essendon is the home team, what venue did they play at? | CREATE TABLE table_name_87 (venue VARCHAR, home_team VARCHAR) |
SELECT chassis FROM table_21977627_1 WHERE engine = "Maserati L6s" | What chasis did the maserati l6s have? | CREATE TABLE table_21977627_1 (chassis VARCHAR, engine VARCHAR) |
SELECT place FROM table_name_94 WHERE player = "tim simpson" | What was Tim Simpson's place? | CREATE TABLE table_name_94 (
place VARCHAR,
player VARCHAR
) |
SELECT away_team FROM table_name_3 WHERE home_team = "richmond" | When the home team is richmond, what was the away team playing? | CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR) |
SELECT COUNT(driver) FROM table_21977627_1 WHERE entrant = "Bob Gerard Racing" | How many drivers did Bob Gerard Racing have? | CREATE TABLE table_21977627_1 (driver VARCHAR, entrant VARCHAR) |
SELECT COUNT(verbal_noun) FROM table_12784134_1 WHERE basic_stem__root_ = "-bil-" | What's the number of verbal nouns with the basic stem (root) -bil-? | CREATE TABLE table_12784134_1 (
verbal_noun VARCHAR,
basic_stem__root_ VARCHAR
) |
SELECT date_of_birth__age_ FROM table_name_20 WHERE position = "lock" AND caps = 10 | When was the lock with 10 caps born? | CREATE TABLE table_name_20 (date_of_birth__age_ VARCHAR, position VARCHAR, caps VARCHAR) |
SELECT COUNT(pts_agst) FROM table_21991074_1 WHERE points = 7 | For the team with 7 points, how many points were scored against this season? | CREATE TABLE table_21991074_1 (pts_agst VARCHAR, points VARCHAR) |
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 1 | Find the name of customers who have more than one loan. | CREATE TABLE loan (
cust_id VARCHAR
)
CREATE TABLE customer (
cust_name VARCHAR,
cust_id VARCHAR
) |
SELECT laps FROM table_name_41 WHERE driver = "jean-christophe boullion" | What were the laps of driver Jean-Christophe Boullion? | CREATE TABLE table_name_41 (laps VARCHAR, driver VARCHAR) |
SELECT MAX(pts_agst) FROM table_21991074_1 | What is the maximum number of points scored against? | CREATE TABLE table_21991074_1 (pts_agst INTEGER) |
SELECT "Result" FROM table_28918 WHERE "District" = 'Kentucky 1' | What was the result in the election in the Kentucky 1 district? | CREATE TABLE table_28918 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) |
SELECT playoffs FROM table_name_70 WHERE year = "2007-08" | What Playoffs were held during the years of 2007-08? | CREATE TABLE table_name_70 (playoffs VARCHAR, year VARCHAR) |
SELECT average FROM table_21991074_1 WHERE club = "Chesterfield Spires" | What is Chesterfield Spires average? | CREATE TABLE table_21991074_1 (average VARCHAR, club VARCHAR) |
SELECT "Score" FROM table_50158 WHERE "Tournament" = 'spain f32, gran canaria' | What was the Score of the Spain F32, Gran Canaria Tournament? | CREATE TABLE table_50158 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) |
SELECT date FROM table_name_4 WHERE away_team = "richmond" | On which date did Richmond play as an away team? | CREATE TABLE table_name_4 (date VARCHAR, away_team VARCHAR) |
SELECT COUNT(january__) AS °c_ FROM table_21980_1 WHERE july__°c_ = "22/13" | What is the total number of January (°C) temperatures when the July (°C) temperatures were 22/13? | CREATE TABLE table_21980_1 (january__ VARCHAR, july__°c_ VARCHAR) |
SELECT power FROM table_name_48 WHERE callsign = "dxll" | What is the Power of the Frequency with a Callsign of DXLL? | CREATE TABLE table_name_48 (
power VARCHAR,
callsign VARCHAR
) |
SELECT away_team FROM table_name_61 WHERE home_team = "melbourne" | What away team did Melbourne play as the home team? | CREATE TABLE table_name_61 (away_team VARCHAR, home_team VARCHAR) |
SELECT COUNT(january__) AS °c_ FROM table_21980_1 WHERE july__°c_ = "23/15" | What is the total number of January (°C) temperatures when the July (°C) temperatures were 23/15? | CREATE TABLE table_21980_1 (january__ VARCHAR, july__°c_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Fetal/neonatal jaund NOS" AND lab.flag = "abnormal" | how many patients whose diagnoses short title is fetal/neonatal jaund nos and lab test abnormal status is abnormal? | 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 text,
route text,
drug_dose text
)
... |
SELECT chapter FROM table_name_14 WHERE founding_date > 2012 | Which chapter was founded later than 2012? | CREATE TABLE table_name_14 (chapter VARCHAR, founding_date INTEGER) |
SELECT location FROM table_21980_1 WHERE january__°f_ = "30/17" | In what location were the January (°F) temperatures 30/17? | CREATE TABLE table_21980_1 (location VARCHAR, january__°f_ VARCHAR) |
SELECT "Date of vacancy" FROM table_47900 WHERE "Outgoing manager" = 'ralf santelli' | What was the date of vacancy after the outgoing manager, ralf santelli departed? | CREATE TABLE table_47900 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) |
SELECT chapter FROM table_name_65 WHERE city = "lubbock" | What is the chapter in Lubbock? | CREATE TABLE table_name_65 (chapter VARCHAR, city VARCHAR) |
SELECT july__°c_ FROM table_21980_1 WHERE july__°f_ = "71/55" | What were the July (°C) temperatures when the July (°F) temperatures were 71/55? | CREATE TABLE table_21980_1 (july__°c_ VARCHAR, july__°f_ VARCHAR) |
SELECT Users.Id AS "user_link", Users.Id AS UserId, Users.Reputation, Badges.Name AS "tag_link" FROM Badges, Users WHERE Badges.Class = '1' AND Badges.TagBased = '1' AND Badges.UserId = Users.Id ORDER BY Users.Reputation, Users.Id, Badges.Name, Badges.Id | Golden tag badges by owner reputation. | CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDa... |
SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097 | What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097? | CREATE TABLE table_name_66 (interview INTEGER, swimsuit VARCHAR, average VARCHAR) |
SELECT january__°f_ FROM table_21980_1 WHERE location = "Corner Brook" | What were the January (°F) temperatures in the Corner Brook location? | CREATE TABLE table_21980_1 (january__°f_ VARCHAR, location VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.