answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT title FROM table_2701851_2 WHERE no_in_series = "10a" | What is the name of episode # 10a? | CREATE TABLE table_2701851_2 (title VARCHAR, no_in_series VARCHAR) |
SELECT "Nationality" FROM table_41757 WHERE "School/Club Team" = 'louisville' | What is the nationality of the School/Club team of Louisville? | CREATE TABLE table_41757 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) |
SELECT MAX(game) FROM table_name_32 WHERE record = "1-0" AND hornets_score > 100 | What is the highest game with a 1-0 record, and the Hornets scored more than 100? | CREATE TABLE table_name_32 (game INTEGER, record VARCHAR, hornets_score VARCHAR) |
SELECT title FROM table_2701851_2 WHERE written_by = "Michael Price" | What is the name of the episode written by Michael Price? | CREATE TABLE table_2701851_2 (title VARCHAR, written_by VARCHAR) |
SELECT "U.S. viewers (millions)" FROM table_24969 WHERE "Title" = 'Now You Lift Your Eyes to the Sun' | How many u.s. views were there for the epidosde titled, 'now you lift your eyes to the sun'? | CREATE TABLE table_24969 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) |
SELECT date_of_birth FROM table_name_63 WHERE name = "daniel moro" | When was Daniel Moro born? | CREATE TABLE table_name_63 (date_of_birth VARCHAR, name VARCHAR) |
SELECT title FROM table_2701851_5 WHERE production_code = "404a" | What was the title for the episode with the production code 404a? | CREATE TABLE table_2701851_5 (title VARCHAR, production_code VARCHAR) |
SELECT EMPLOYEE_ID, SALARY FROM employees WHERE HIRE_DATE < '2002-06-21' | For those employees who was hired before 2002-06-21, a scatter chart shows the correlation between employee_id and salary . | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal... |
SELECT score FROM table_name_64 WHERE money___$__ = 450 | What was the score for the player than won $450? | CREATE TABLE table_name_64 (score VARCHAR, money___$__ VARCHAR) |
SELECT production_code FROM table_2701851_5 WHERE written_by = "Kat Likkel & Denise Downer" | What is the production code for the episode written by Kat Likkel & Denise Downer? | CREATE TABLE table_2701851_5 (production_code VARCHAR, written_by VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "MORBID OBESITY/SDA" AND lab.fluid = "Pleural" | give me the number of patients diagnosed with morbid obesity/sda and the lab test fluid is pleural. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... |
SELECT place FROM table_name_21 WHERE money___$__ = 350 | What place did the player that took won $350 finish in? | CREATE TABLE table_name_21 (place VARCHAR, money___$__ VARCHAR) |
SELECT directed_by FROM table_2701851_5 WHERE no_in_season = "10a" | Who was the director for the Episode number in season 10a? | CREATE TABLE table_2701851_5 (directed_by VARCHAR, no_in_season VARCHAR) |
SELECT party FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)" | What is the party for the candidates edwin gray (dr)? | CREATE TABLE table_2668393_18 (
party VARCHAR,
candidates VARCHAR
) |
SELECT player FROM table_name_53 WHERE score = 71 - 73 - 68 - 75 = 287 | Which player had a score of 71-73-68-75=287? | CREATE TABLE table_name_53 (player VARCHAR, score VARCHAR) |
SELECT written_by FROM table_2701851_5 WHERE no_in_series = "46b" | Who wrote the episode in the series 46b? | CREATE TABLE table_2701851_5 (written_by VARCHAR, no_in_series VARCHAR) |
SELECT "Record" FROM table_68045 WHERE "Date" = 'january 18' | What was the record after the January 18 game? | CREATE TABLE table_68045 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) |
SELECT year FROM table_name_93 WHERE name = "dong shihou, 29 (董世侯)" | What is Year, when Name is "Dong Shihou, 29 (董世侯)"? | CREATE TABLE table_name_93 (year VARCHAR, name VARCHAR) |
SELECT COUNT(production_code) FROM table_2701851_5 WHERE no_in_series = "46b" | How many production codes did the episode number in series 46b have? | CREATE TABLE table_2701851_5 (production_code VARCHAR, no_in_series VARCHAR) |
SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY Hometown | Count the hometown by hometown, I want to sort by the X-axis in asc. | CREATE TABLE membership_register_branch (
Member_ID int,
Branch_ID text,
Register_Year text
)
CREATE TABLE branch (
Branch_ID int,
Name text,
Open_year text,
Address_road text,
City text,
membership_amount text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,
Ye... |
SELECT name FROM table_name_23 WHERE location = "dz" | What is Name, when Location is "DZ"? | CREATE TABLE table_name_23 (name VARCHAR, location VARCHAR) |
SELECT COUNT(directed_by) FROM table_27047554_1 WHERE us_viewers__in_millions_ = "2.48" | How many directors directed an episode that reached 2.48 million viewers? | CREATE TABLE table_27047554_1 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR) |
SELECT finish FROM table_name_41 WHERE rank = "19" AND start = "14" | With a Rank of 19, and a Start of 14, what was the finish? | CREATE TABLE table_name_41 (
finish VARCHAR,
rank VARCHAR,
start VARCHAR
) |
SELECT injured FROM table_name_98 WHERE date = "09.15 sep. 15" | What is Injured, when Date is "09.15 Sep. 15"? | CREATE TABLE table_name_98 (injured VARCHAR, date VARCHAR) |
SELECT delegate FROM table_27050732_7 WHERE district = "41" | Who represents district 41? | CREATE TABLE table_27050732_7 (delegate VARCHAR, district VARCHAR) |
SELECT MIN("Year") FROM table_6430 WHERE "College" = 'alabama' AND "Pick" < '26' | What is the earliest year for Alabama with a pick under 26? | CREATE TABLE table_6430 (
"Year" real,
"Pick" real,
"Player" text,
"Position" text,
"College" text
) |
SELECT date FROM table_name_48 WHERE name = "guay, albert , 32" | What is Date, when Name is "Guay, Albert , 32"? | CREATE TABLE table_name_48 (date VARCHAR, name VARCHAR) |
SELECT district FROM table_27050336_7 WHERE delegate = "McDonough, Patrick L. Pat McDonough" | For delegate is mcdonough, patrick l. pat mcdonough, specify all the district. | CREATE TABLE table_27050336_7 (district VARCHAR, delegate VARCHAR) |
SELECT DISTINCT student_record.grade FROM student_record INNER JOIN offering_instructor ON student_record.offering_id = offering_instructor.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE LOWER(instructor.name) LIKE '%Fraker%' AND student_record.student_id = 1 | In courses taught by Prof. Fraker , what grades have I gotten ? | CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_seme... |
SELECT MAX(grid) FROM table_name_7 WHERE rider = "fonsi nieto" | What is the highest grid for rider Fonsi Nieto? | CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR) |
SELECT delegate FROM table_27050336_7 WHERE committee = "Environmental Matters" AND district = "36" | where committee is environmental matters and district is 36 please specify all the delegate name | CREATE TABLE table_27050336_7 (delegate VARCHAR, committee VARCHAR, district VARCHAR) |
SELECT EMAIL, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT DESC | For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of email and commission_pct , could you display from high to low by the total number? | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
... |
SELECT COUNT(laps) FROM table_name_2 WHERE time = "+7.951" | What was the total number of Laps for the rider whose time was +7.951? | CREATE TABLE table_name_2 (laps VARCHAR, time VARCHAR) |
SELECT delegate FROM table_27050336_7 WHERE committee = "Judiciary" AND party = "Democratic" AND counties_represented = "Montgomery" | For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name. | CREATE TABLE table_27050336_7 (delegate VARCHAR, counties_represented VARCHAR, committee VARCHAR, party VARCHAR) |
SELECT MAX(gold) FROM table_name_72 WHERE total > 13 AND silver > 9 AND bronze = 7 | What is the highest amount of gold medals awarded to a team with more than 9 silver, 7 bronze and more than 13 medals total? | CREATE TABLE table_name_72 (
gold INTEGER,
bronze VARCHAR,
total VARCHAR,
silver VARCHAR
) |
SELECT MAX(laps) FROM table_name_37 WHERE rider = "shuhei aoyama" AND grid > 24 | What was the highest number of laps for rider Shuhei Aoyama in a grid higher than 24? | CREATE TABLE table_name_37 (laps INTEGER, rider VARCHAR, grid VARCHAR) |
SELECT party FROM table_27050336_7 WHERE delegate = "Feldman, Brian J. Brian J. Feldman" | Where delegate is feldman, brian j. brian j. feldman, please specify all the party | CREATE TABLE table_27050336_7 (party VARCHAR, delegate VARCHAR) |
SELECT T1.name, T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3 | Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order. | CREATE TABLE accounts (
name VARCHAR,
custid VARCHAR
)
CREATE TABLE savings (
balance VARCHAR,
custid VARCHAR
) |
SELECT grid FROM table_name_75 WHERE bike = "honda cbr1000rr" AND rider = "russell holland" | What was the grid for rider Russell Holland, riding a Honda CBR1000rr? | CREATE TABLE table_name_75 (grid VARCHAR, bike VARCHAR, rider VARCHAR) |
SELECT party FROM table_27050336_7 WHERE delegate = "Gaines, Tawanna P. Tawanna Gaines" | For delegate is gaines, tawanna p. tawanna gaines, please specify all the party. | CREATE TABLE table_27050336_7 (party VARCHAR, delegate VARCHAR) |
SELECT "Theme" FROM table_29672 WHERE "Original Artist" = 'Rosana' | What was the theme when original artist Rosana's song was performed? | CREATE TABLE table_29672 (
"Week #" text,
"Theme" text,
"Song Choice" text,
"Original Artist" text,
"Order #" text,
"Result" text
) |
SELECT rider FROM table_name_46 WHERE laps = 14 AND grid > 23 AND bike = "honda cbr1000rr" AND time = "+1'04.877" | Who was the rider who went 14 laps on a Honda CBR1000rr, with a time of +1'04.877 on a grid larger than 23? | CREATE TABLE table_name_46 (rider VARCHAR, time VARCHAR, bike VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT height FROM table_27067379_1 WHERE number_of_floors = 70 | If the number of floors is 70, what is the height? | CREATE TABLE table_27067379_1 (height VARCHAR, number_of_floors VARCHAR) |
SELECT "Chassis" FROM table_74646 WHERE "Constructor" = 'shadow' | What chassis does the shadow built car use? | CREATE TABLE table_74646 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Driver" text
) |
SELECT MIN(year) FROM table_name_90 WHERE award = "drama desk award" AND nominated_work = "the mineola twins" | What is the earliest year with a Drama Desk award when the Mineola Twins was a nominated work? | CREATE TABLE table_name_90 (year INTEGER, award VARCHAR, nominated_work VARCHAR) |
SELECT MIN(number_of_floors) FROM table_27067379_1 WHERE completion = 2010 | if the completed is 2010, what is the number of floors? | CREATE TABLE table_27067379_1 (number_of_floors INTEGER, completion VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND procedures.icd9_code = "5101" | Get me the number of american indian or alaska native patients who have procedure icd9 code 5101. | 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 t... |
SELECT nominated_work FROM table_name_67 WHERE category = "best performance by a leading actress in a play" AND year < 2007 | Which nominated work is in the category of best performance by a leading actress in a play earlier than 2007? | CREATE TABLE table_name_67 (nominated_work VARCHAR, category VARCHAR, year VARCHAR) |
SELECT height FROM table_27067379_1 WHERE building = "Costanera Center Torre 1" | If the building is Costanera Center Torre 1, what is the height? | CREATE TABLE table_27067379_1 (height VARCHAR, building VARCHAR) |
SELECT "Version" FROM table_30589 WHERE "Release" = '1.0.4' | What's the version in the 1.0.4 release? | CREATE TABLE table_30589 (
"Version" text,
"Release" text,
"Release date" text,
"End of maintenance" text,
"Requirement" text
) |
SELECT MAX(year) FROM table_name_54 WHERE nominated_work = "the mineola twins" AND category = "outstanding actress in a play" AND award = "drama desk award" | What is the most recent year that the Mineola Twins was nominated for outstanding actress in a play and a Drama Desk award? | CREATE TABLE table_name_54 (year INTEGER, award VARCHAR, nominated_work VARCHAR, category VARCHAR) |
SELECT COUNT(position) FROM table_27067379_1 WHERE building = "Costanera Center Torre 1" | How many positions does building Costanera Center Torre 1 have? | CREATE TABLE table_27067379_1 (position VARCHAR, building VARCHAR) |
SELECT "date" FROM table_203_24 WHERE "score" = 0 | on what date did the home team score zero points against their opponent ? | CREATE TABLE table_203_24 (
id number,
"date" text,
"home team" text,
"score" text,
"away team" text,
"notes" text
) |
SELECT result FROM table_name_6 WHERE award = "outer critics circle award" AND year < 2004 | What is the result for the Outer Critics Circle award earlier than 2004? | CREATE TABLE table_name_6 (result VARCHAR, award VARCHAR, year VARCHAR) |
SELECT outgoing_manager FROM table_27057070_3 WHERE team = "Simurq PFC" | Who is the outgoing manager when the team is simurq pfc? | CREATE TABLE table_27057070_3 (outgoing_manager VARCHAR, team VARCHAR) |
SELECT Name, Weight FROM people ORDER BY Weight | A bar chart shows the distribution of Name and Weight , rank by the y-axis in asc. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... |
SELECT SUM(year) FROM table_name_62 WHERE nominated_work = "the house of blue leaves" AND category = "outstanding actress in a play" | In what year was The House of Blue Leaves nominated for outstanding actress in a play? | CREATE TABLE table_name_62 (year INTEGER, nominated_work VARCHAR, category VARCHAR) |
SELECT COUNT(date_of_appointment) FROM table_27057070_3 WHERE team = "Khazar Lankaran" | How many date of appointment entries are there when the team is khazar lankaran? | CREATE TABLE table_27057070_3 (date_of_appointment VARCHAR, team VARCHAR) |
SELECT Id AS "post_link", OwnerUserId AS "user_link", Score, CreationDate, CAST((JULIANDAY(LEAD(Posts.CreationDate, 1, CURRENT_TIMESTAMP()) OVER (PARTITION BY ParentId, PostTypeId ORDER BY CreationDate)) - JULIANDAY(Posts.CreationDate)) * 24.0 AS INT) AS SurvivalTime FROM Posts WHERE PostTypeId = @answerType AND Parent... | Find the longest-living answer on the Overlapping Polyglots challenge. | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
Rejecti... |
SELECT country FROM table_name_75 WHERE total < 284 | Which Country has a Total smaller than 284? | CREATE TABLE table_name_75 (country VARCHAR, total INTEGER) |
SELECT manner_of_departure FROM table_27057070_3 WHERE replaced_by = "Bahman Hasanov" | What is the manner of departure when the replaced by is bahman hasanov? | CREATE TABLE table_27057070_3 (manner_of_departure VARCHAR, replaced_by VARCHAR) |
SELECT "Record" FROM table_61842 WHERE "Date" = 'dec 16' | What was the record for Dec 16? | CREATE TABLE table_61842 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Streak" text
) |
SELECT to_par FROM table_name_15 WHERE year_s__won = "1983" | Which To par has a Year(s) won of 1983? | CREATE TABLE table_name_15 (to_par VARCHAR, year_s__won VARCHAR) |
SELECT overall FROM table_27069503_2 WHERE season = "2003-04" | What was the overall record for the Pandas in the 2003-04 season? | CREATE TABLE table_27069503_2 (overall VARCHAR, season VARCHAR) |
SELECT "Nation" FROM table_76081 WHERE "Total" < '27' AND "Gold" < '1' AND "Bronze" > '1' | What is the Nation when there is a total less than 27, gold is less than 1, and bronze is more than 1? | CREATE TABLE table_76081 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT COUNT(total) FROM table_name_53 WHERE player = "dave stockton" | How many Total has a Player of dave stockton? | CREATE TABLE table_name_53 (total VARCHAR, player VARCHAR) |
SELECT conf_record FROM table_27069503_2 WHERE overall = "33-4-1" | What was the conference record in the season where the Pandas had an overall record of 33-4-1? | CREATE TABLE table_27069503_2 (conf_record VARCHAR, overall VARCHAR) |
SELECT MAX(wins) FROM table_name_92 WHERE season < 2007 AND team = "silverstone motorsport academy" | What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy? | CREATE TABLE table_name_92 (
wins INTEGER,
season VARCHAR,
team VARCHAR
) |
SELECT outcome FROM table_name_73 WHERE year = 1973 AND surface = "clay" | What was the result in 1973 when the surface was clay? | CREATE TABLE table_name_73 (outcome VARCHAR, year VARCHAR, surface VARCHAR) |
SELECT coach FROM table_27069503_2 WHERE overall = "20-6-2" | Who was the coach of the Pandas when their overall record was 20-6-2? | CREATE TABLE table_27069503_2 (coach VARCHAR, overall VARCHAR) |
SELECT SUM(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 = 20801)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'ost... | tell me the amount of ostomy (output) that patient 20801 had on 04/02/last year? | 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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,... |
SELECT outcome FROM table_name_25 WHERE year = 1975 | What was the outcome in 1975? | CREATE TABLE table_name_25 (outcome VARCHAR, year VARCHAR) |
SELECT conf_record FROM table_27069503_2 WHERE standings = "First" AND season = "2003-04" | What was the conference record for the Pandas when they were first in the standings in the 2003-04 season? | CREATE TABLE table_27069503_2 (conf_record VARCHAR, standings VARCHAR, season VARCHAR) |
SELECT MIN(f_laps) FROM table_25375093_1 | Name the least f/laps | CREATE TABLE table_25375093_1 (
f_laps INTEGER
) |
SELECT opponents FROM table_name_84 WHERE surface = "clay" AND partner = "margaret court" AND year = 1975 | Who was Margaret Court's opponent on clay in 1975? | CREATE TABLE table_name_84 (opponents VARCHAR, year VARCHAR, surface VARCHAR, partner VARCHAR) |
SELECT overall FROM table_27069503_2 WHERE conf_record = "4-1-1" | What was the overall record for the Pandas when their conference record was 4-1-1? | CREATE TABLE table_27069503_2 (overall VARCHAR, conf_record VARCHAR) |
SELECT away_team AS score FROM table_name_17 WHERE home_team = "collingwood" | What was the away team's score when Collingwood was the home team? | CREATE TABLE table_name_17 (
away_team VARCHAR,
home_team VARCHAR
) |
SELECT MAX(against) FROM table_name_90 WHERE central_murray = "tooleybuc manangatang" AND wins < 13 | What is the number of against when Central Murray is Tooleybuc Manangatang and there are fewer than 13 wins? | CREATE TABLE table_name_90 (against INTEGER, central_murray VARCHAR, wins VARCHAR) |
SELECT season FROM table_27069503_2 WHERE conf_record = "15-1-1" | In what season was the conference record for the Pandas 15-1-1? | CREATE TABLE table_27069503_2 (season VARCHAR, conf_record VARCHAR) |
SELECT SUM(best) FROM table_name_32 WHERE name = "bruno junqueira" | What is the total best for Bruno junqueira | CREATE TABLE table_name_32 (
best INTEGER,
name VARCHAR
) |
SELECT AVG(byes) FROM table_name_84 WHERE draws < 0 | How many byes when the draws are fewer than 0? | CREATE TABLE table_name_84 (byes INTEGER, draws INTEGER) |
SELECT COUNT(original_artist) FROM table_27075510_1 WHERE week__number = "Audition" | how many times is the week # is audition? | CREATE TABLE table_27075510_1 (original_artist VARCHAR, week__number VARCHAR) |
SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-18025') AND NOT patient.admissionheight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) >= '2104-07' ORDER BY patient.unitadmittime LIMIT 1 | whats the first height of patient 012-18025 since 07/2104? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodici... |
SELECT SUM(byes) FROM table_name_27 WHERE central_murray = "woorineen" AND losses > 13 | What is the byes for Woorineen when losses are more than 13? | CREATE TABLE table_name_27 (byes INTEGER, central_murray VARCHAR, losses VARCHAR) |
SELECT COUNT(episode) FROM table_27081956_1 WHERE series_no = 14 | How many episodes are numbered 14 in the series? | CREATE TABLE table_27081956_1 (episode VARCHAR, series_no VARCHAR) |
SELECT "Finished" FROM table_19287 WHERE "Celebrity" = 'Nell McAndrew' | What position did Nell McAndrew finish? | CREATE TABLE table_19287 (
"Celebrity" text,
"Famous for" text,
"Entered" text,
"Exited" text,
"Finished" text
) |
SELECT AVG(wins) FROM table_name_7 WHERE losses = 4 AND against < 1281 | How many wins when there are 4 losses and against are fewer than 1281? | CREATE TABLE table_name_7 (wins INTEGER, losses VARCHAR, against VARCHAR) |
SELECT format FROM table_2709_4 WHERE frequency = "105.5 FM" | What is the format of 105.5 fm? | CREATE TABLE table_2709_4 (format VARCHAR, frequency VARCHAR) |
SELECT p.Id AS "post_link", COUNT(v.Id) AS TotalVotes FROM Posts AS p INNER JOIN Votes AS v ON p.Id = v.PostId WHERE v.VoteTypeId = 6 AND p.ClosedDate IS NULL AND YEAR(p.CreationDate) = @year AND p.ViewCount < 100 GROUP BY p.Id ORDER BY totalvotes DESC | Open posts with closed votes by year. | CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
... |
SELECT AVG(against) FROM table_name_24 WHERE losses = 11 AND wins < 5 | How many against when losses are 11 and wins are fewer than 5? | CREATE TABLE table_name_24 (against INTEGER, losses VARCHAR, wins VARCHAR) |
SELECT target_city__market FROM table_2709_4 WHERE call_sign = "KLRJ" | What is the market for KLRJ? | CREATE TABLE table_2709_4 (target_city__market VARCHAR, call_sign VARCHAR) |
SELECT t.TagName, ROUND(AVG(CASE WHEN p.ClosedDate IS NULL THEN 0.0 ELSE 100.0 END), 2) AS "Close %", COUNT(*) AS "# of questions" FROM Posts AS p INNER JOIN PostTags AS pt ON p.Id = pt.PostId INNER JOIN Tags AS t ON t.Id = pt.TagId GROUP BY t.TagName HAVING COUNT(*) >= 20 ORDER BY 2 DESC LIMIT 100 | Tags by % of closed questions. | CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTask... |
SELECT player FROM table_name_67 WHERE to_par = "–7" AND country = "spain" | which Player has a To par of –7, and a Country of spain? | CREATE TABLE table_name_67 (player VARCHAR, to_par VARCHAR, country VARCHAR) |
SELECT format FROM table_2709_4 WHERE owner = "Dakota Broadcasting" | What is the format for the station owned by Dakota Broadcasting? | CREATE TABLE table_2709_4 (format VARCHAR, owner VARCHAR) |
SELECT home_team AS score FROM table_name_3 WHERE venue = "princes park" | What was the home team score for the game played at Princes Park? | CREATE TABLE table_name_3 (
home_team VARCHAR,
venue VARCHAR
) |
SELECT doctor FROM table_name_40 WHERE published = "june 2003" | What doctor published on June 2003? | CREATE TABLE table_name_40 (doctor VARCHAR, published VARCHAR) |
SELECT team FROM table_27091128_2 WHERE replaced_by = "Ercan Ertemçöz" | What team's manager was replaced by Ercan Ertemçöz? | CREATE TABLE table_27091128_2 (team VARCHAR, replaced_by VARCHAR) |
SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-17834')) AND DATETIME(microlab.culturetakentime, 'start of year') ... | what's the name of the specimen test that was first given to patient 031-17834 in 10/this year? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
... |
SELECT title FROM table_name_99 WHERE doctor = "1st" AND published = "november 2001" | What title was published on November 2001 and has a 1st Doctor? | CREATE TABLE table_name_99 (title VARCHAR, doctor VARCHAR, published VARCHAR) |
SELECT date_of_appointment FROM table_27091128_2 WHERE outgoing_manager = "Kadir Özcan" | What was the date of appointment for the manager replacing Kadir Özcan? | CREATE TABLE table_27091128_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.