answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT(uk_co_presenter) FROM table_14345690_15 WHERE co_presenter = "Joe Swash" AND comedian = "Russell Kane" | Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian? | CREATE TABLE table_14345690_15 (uk_co_presenter VARCHAR, co_presenter VARCHAR, comedian VARCHAR) |
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-20205') AND NOT patient.unitdischargetime IS NU... | when was first time patient 010-20205 had the maximum sao2 value on the first intensive care unit visit? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugst... |
SELECT player FROM table_name_35 WHERE place = "t9" AND country = "australia" | Which player is from Australia, and has a place of t9? | CREATE TABLE table_name_35 (player VARCHAR, place VARCHAR, country VARCHAR) |
SELECT series FROM table_14345690_15 WHERE main_presenter = "Caroline Flack" | What series have Caroline Flack as a main presenter? | CREATE TABLE table_14345690_15 (series VARCHAR, main_presenter VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.admityear < "2145" | what is the number of patients whose discharge location is disch-tran to psych hosp and admission year is less than 2145? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT place FROM table_name_52 WHERE player = "john merrick" | What was the place for player John Merrick? | CREATE TABLE table_name_52 (place VARCHAR, player VARCHAR) |
SELECT co_presenter FROM table_14345690_15 WHERE series = "Seven (2007)" | Who is the co-presenter of the series Seven (2007)? | CREATE TABLE table_14345690_15 (co_presenter VARCHAR, series VARCHAR) |
SELECT home FROM table_name_67 WHERE attendance < 529 AND away = "platense" | Who was the home team for the game with Platense as the away team and attendance under 529? | CREATE TABLE table_name_67 (
home VARCHAR,
attendance VARCHAR,
away VARCHAR
) |
SELECT country FROM table_name_38 WHERE place = "t1" AND score = 72 - 68 - 70 - 73 = 283 | Which country had a place of t1, as well as a score of 72-68-70-73=283? | CREATE TABLE table_name_38 (country VARCHAR, place VARCHAR, score VARCHAR) |
SELECT main_presenter FROM table_14345690_15 WHERE series = "Twelve (2012)" | Who is the main presenter of the series Twelve (2012)? | CREATE TABLE table_14345690_15 (main_presenter VARCHAR, series VARCHAR) |
SELECT AVG("birth date/age at start of campaign") FROM table_204_26 WHERE "club" = 'grasshoppers' | what was the average age of the grasshoppers ? | CREATE TABLE table_204_26 (
id number,
"name" text,
"position" text,
"birth date/age at start of campaign" text,
"games in campaign" text,
"club" text
) |
SELECT place FROM table_name_48 WHERE player = "jack renner" | What place has jack renner as the player? | CREATE TABLE table_name_48 (place VARCHAR, player VARCHAR) |
SELECT uk_co_presenter FROM table_14345690_15 WHERE co_presenter = "Joe Swash" AND series = "Eleven (2011)" | Who is the UK co-presenters that have Joe Swash as a co-presenter of the series Eleven (2011)? | CREATE TABLE table_14345690_15 (uk_co_presenter VARCHAR, co_presenter VARCHAR, series VARCHAR) |
SELECT (SELECT COUNT(*) FROM table_204_299 WHERE "principal county" = 'pulaski county') > (SELECT COUNT(*) FROM table_204_299 WHERE "principal county" = 'montgomery county') | does pulaski county have more cities beginning with the letter a than montgomery county ? | CREATE TABLE table_204_299 (
id number,
"name of place" text,
"number of counties" number,
"principal county" text,
"lower zip code" number
) |
SELECT to_par FROM table_name_77 WHERE country = "united states" AND place = "t8" AND player = "tommy valentine" | What to par has The United States as the country, t8 as the place, and tommy valentine as the player? | CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) |
SELECT finished FROM table_14345690_2 WHERE celebrity = "Nell McAndrew" | What position did Nell McAndrew finish? | CREATE TABLE table_14345690_2 (finished VARCHAR, celebrity VARCHAR) |
SELECT "Capital" FROM table_42222 WHERE "Hangul" = '양주' | What is the capital of the province with in Hangul? | CREATE TABLE table_42222 (
"Former kingdom" text,
"Province" text,
"Hangul" text,
"Hanja" text,
"Capital" text,
"Modern equivalent" text
) |
SELECT to_par FROM table_name_56 WHERE score = 66 | What to par has 66 as the score? | CREATE TABLE table_name_56 (to_par VARCHAR, score VARCHAR) |
SELECT celebrity FROM table_14345690_2 WHERE famous_for = "Champion boxer" | Who was the champion boxer? | CREATE TABLE table_14345690_2 (celebrity VARCHAR, famous_for VARCHAR) |
SELECT COUNT("Total") FROM table_13133 WHERE "Player" = 'todd hamilton' AND "To par" < '15' | How much Total has a Player of todd hamilton, and a To par smaller than 15? | CREATE TABLE table_13133 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) |
SELECT AVG(played) FROM table_name_62 WHERE conceded < 7 | Mean of played with smaller than 7 conceded? | CREATE TABLE table_name_62 (played INTEGER, conceded INTEGER) |
SELECT entered FROM table_14345690_2 WHERE celebrity = "Darren Day" | When did Darren Day enter? | CREATE TABLE table_14345690_2 (entered VARCHAR, celebrity VARCHAR) |
SELECT "Result" FROM table_69109 WHERE "Location" = 'london 2012 women''s olympic football tournament' | What is the result of the London 2012 Women's Olympic Football Tournament? | CREATE TABLE table_69109 (
"Match" text,
"Date" text,
"Location" text,
"Lineup" text,
"Result" text,
"Competition" text
) |
SELECT MAX(position) FROM table_name_40 WHERE points > 16 AND conceded < 7 | The highest position with more than 16 points and less than 7 concedes? | CREATE TABLE table_name_40 (position INTEGER, points VARCHAR, conceded VARCHAR) |
SELECT finished FROM table_14345690_2 WHERE celebrity = "Tara Palmer-Tomkinson" | What position did Tara Palmer-Tomkinson finish? | CREATE TABLE table_14345690_2 (finished VARCHAR, celebrity VARCHAR) |
SELECT location FROM table_1245148_1 WHERE year_opened = 1950 | What is the location of the track that opened in 1950? | CREATE TABLE table_1245148_1 (
location VARCHAR,
year_opened VARCHAR
) |
SELECT MAX(draws) FROM table_name_32 WHERE played < 9 | The highest draws with smaller than 9 played? | CREATE TABLE table_name_32 (draws INTEGER, played INTEGER) |
SELECT entered FROM table_14345690_2 WHERE finished = "4th" | When did the 4th finisher enter? | CREATE TABLE table_14345690_2 (entered VARCHAR, finished VARCHAR) |
SELECT venue FROM table_name_24 WHERE away_team = "carlton" | what was the venue that hosted Carlton as the away team? | CREATE TABLE table_name_24 (
venue VARCHAR,
away_team VARCHAR
) |
SELECT home_town FROM table_name_60 WHERE took_office = 1983 AND district > 15 | Which Home Town has a Took Office of 1983, and a District larger than 15? | CREATE TABLE table_name_60 (home_town VARCHAR, took_office VARCHAR, district VARCHAR) |
SELECT COUNT(exited) FROM table_14345690_3 WHERE finished = "9th" | How many people finished 9th? | CREATE TABLE table_14345690_3 (exited VARCHAR, finished VARCHAR) |
SELECT MAX(_number) FROM table_2985714_2 | What is the maximum overall number? | CREATE TABLE table_2985714_2 (
_number INTEGER
) |
SELECT senator FROM table_name_82 WHERE party = "republican" AND home_town = "houston" AND district = 7 | Which Senator has a Party of republican, a Home Town of houston, and a District of 7? | CREATE TABLE table_name_82 (senator VARCHAR, district VARCHAR, party VARCHAR, home_town VARCHAR) |
SELECT MIN(camp_mates) FROM table_14345690_1 | What was the least amount of camp mates? | CREATE TABLE table_14345690_1 (camp_mates INTEGER) |
SELECT "Date" FROM table_57584 WHERE "Decision" = 'ellis' AND "Visitor" = 'st. louis' | What is the date with Ellis as the decision and St. Louis as the visitor? | CREATE TABLE table_57584 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Record" text
) |
SELECT home_town FROM table_name_78 WHERE senator = "dan shelley" | Which Home Town has a Senator of dan shelley? | CREATE TABLE table_name_78 (home_town VARCHAR, senator VARCHAR) |
SELECT COUNT(directed_by) FROM table_14346353_1 WHERE teleplay_by = "David Simon" AND series__number = 4 | Who directed series #4 that was teleplayed by David Simon? | CREATE TABLE table_14346353_1 (directed_by VARCHAR, teleplay_by VARCHAR, series__number VARCHAR) |
SELECT Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY Amount_Payment DESC | Which Payments were processed with Visa? List the date and the amount using a bar chart, order by the y axis in desc. | CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amo... |
SELECT COUNT(took_office) FROM table_name_81 WHERE party = "democratic" AND home_town = "victoria" AND district < 18 | Which Took Office has a Party of democratic, a Home Town of victoria, and a District smaller than 18? | CREATE TABLE table_name_81 (took_office VARCHAR, district VARCHAR, party VARCHAR, home_town VARCHAR) |
SELECT title FROM table_14346353_1 WHERE series__number = 1 | What is the title of series #1? | CREATE TABLE table_14346353_1 (title VARCHAR, series__number VARCHAR) |
SELECT OwnerUserId AS "user_link", OwnerUserId, SUM(LENGTH(Body)) AS totalLen, SUM(LENGTH(Body) - LENGTH(REPLACE(LOWER(Body), '1', ''))) AS "1", SUM(LENGTH(Body) - LENGTH(REPLACE(LOWER(Body), '2', ''))) AS "2", SUM(LENGTH(Body) - LENGTH(REPLACE(LOWER(Body), '3', ''))) AS "3", SUM(LENGTH(Body) - LENGTH(REPLACE(LOWER(Bod... | Numbers most used in posts. totally useless. more of an experiment. | CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
... |
SELECT AVG(took_office) FROM table_name_8 WHERE district = 29 | Which Took Office has a District of 29? | CREATE TABLE table_name_8 (took_office INTEGER, district VARCHAR) |
SELECT finished FROM table_14345690_5 WHERE exited = "Day 11" | What is the finished place where exited is day 11? | CREATE TABLE table_14345690_5 (finished VARCHAR, exited VARCHAR) |
SELECT league FROM table_1046454_1 WHERE regular_season = "2nd, Northwest" | what's the league where regular season is 2nd, northwest | CREATE TABLE table_1046454_1 (
league VARCHAR,
regular_season VARCHAR
) |
SELECT AVG(laps) FROM table_name_88 WHERE grid = 15 | What are the average Laps on Grid 15? | CREATE TABLE table_name_88 (laps INTEGER, grid VARCHAR) |
SELECT famous_for FROM table_14345690_5 WHERE finished = "2nd" | Who is the famous for that finished 2nd? | CREATE TABLE table_14345690_5 (famous_for VARCHAR, finished VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.short_title = "Dermatitis NOS" | count the number of patients whose death status is 1 and diagnoses short title is dermatitis nos? | 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,
... |
SELECT MIN(laps) FROM table_name_39 WHERE time = "+24.440" AND grid > 18 | What is the lowest number of Laps that have a Time of +24.440, and a Grid higher than 18? | CREATE TABLE table_name_39 (laps INTEGER, time VARCHAR, grid VARCHAR) |
SELECT famous_for FROM table_14345690_5 WHERE finished = "5th" | What is the famous for where the finished is 5th? | CREATE TABLE table_14345690_5 (famous_for VARCHAR, finished VARCHAR) |
SELECT "Rank" FROM table_64875 WHERE "Silver" < '3' AND "Bronze" > '1' AND "Nation" = 'bulgaria' | What rank is Bulgaria with less than 3 silver and more than 1 bronze? | CREATE TABLE table_64875 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT MAX(laps) FROM table_name_93 WHERE grid < 13 AND time = "+18.366" | What is the highest number of Laps that have a Time of +18.366, and a Grid lower than 13? | CREATE TABLE table_name_93 (laps INTEGER, grid VARCHAR, time VARCHAR) |
SELECT exited FROM table_14345690_5 WHERE celebrity = "Vic Reeves" | What is the exited day where the celebrity is vic reeves? | CREATE TABLE table_14345690_5 (exited VARCHAR, celebrity VARCHAR) |
SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE | For those employees who do not work in departments with managers that have ids between 100 and 200, a line chart shows the change of commission_pct over hire_date, and sort X in asc order. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS va... |
SELECT MIN(wins) FROM table_name_37 WHERE season = "2011" AND podiums = 1 AND poles < 0 | What is the lowest Wins, when Season is 2011, when Podiums is 1, and when Poles is less than 0? | CREATE TABLE table_name_37 (wins INTEGER, poles VARCHAR, season VARCHAR, podiums VARCHAR) |
SELECT celebrity FROM table_14345690_5 WHERE finished = "5th" | what is the celebrity where the finished is 5th? | CREATE TABLE table_14345690_5 (celebrity VARCHAR, finished VARCHAR) |
SELECT away_team FROM table_name_27 WHERE tie_no = "19" | In Tie #19, what was the name of the away team? | CREATE TABLE table_name_27 (
away_team VARCHAR,
tie_no VARCHAR
) |
SELECT position FROM table_name_3 WHERE points > 7 AND series = "toyota racing series" | What is Position, when Points is greater than 7, and when Series is Toyota Racing Series? | CREATE TABLE table_name_3 (position VARCHAR, points VARCHAR, series VARCHAR) |
SELECT first_elected FROM table_1434788_5 WHERE incumbent = "John Thomas Wilson" | When was incumbent John Thomas Wilson first elected? | CREATE TABLE table_1434788_5 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hx of bladder mali... | how many patients were diagnosed with hx of bladder malignancy in this year after being diagnosed with fx condyl proc mandib-cl within 2 months? | 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 icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
fi... |
SELECT SUM(races) FROM table_name_9 WHERE series = "toyota racing series" AND podiums > 3 | What is the sum of Races, when Series is Toyota Racing Series, and when Podiums is greater than 3? | CREATE TABLE table_name_9 (races INTEGER, series VARCHAR, podiums VARCHAR) |
SELECT candidates FROM table_1434788_5 WHERE incumbent = "John Beatty" | Who were the candidates in the election where John Beatty was the incumbent? | CREATE TABLE table_1434788_5 (candidates VARCHAR, incumbent VARCHAR) |
SELECT "College" FROM table_19788 WHERE "Player" = 'Steve Justice' | What college did steve justice attend? | CREATE TABLE table_19788 (
"Round" real,
"Choice" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" text,
"College" text
) |
SELECT AVG(podiums) FROM table_name_47 WHERE wins > 1 AND races = 2 AND points > 150 | What is the average Podiums, when Wins is greater than 1, when Races is 2, and when Points is greater than 150? | CREATE TABLE table_name_47 (podiums INTEGER, points VARCHAR, wins VARCHAR, races VARCHAR) |
SELECT incumbent FROM table_1434788_5 WHERE district = "Ohio 16" | Who was the incumbent in the Ohio 16 district? | CREATE TABLE table_1434788_5 (incumbent VARCHAR, district VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.itemid = "51259" | how many emergency hospital admission patients have lab test item id 51259? | 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,... |
SELECT COUNT(poles) FROM table_name_27 WHERE position = "6th" AND points < 164 | What is the total number of Poles, when Position is 6th, and when Points is less than 164? | CREATE TABLE table_name_27 (poles VARCHAR, position VARCHAR, points VARCHAR) |
SELECT 1991 AS _92 FROM table_14368332_1 WHERE average = "1.053" | What is the result in 91-92 for the team with a 1.053 average? | CREATE TABLE table_14368332_1 (average VARCHAR) |
SELECT COUNT("title") FROM table_203_353 WHERE "producer(s)" = 'chaos' | how many songs were produced by chaos ? | CREATE TABLE table_203_353 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"featured guest(s)" text,
"time" text
) |
SELECT MIN(founded) FROM table_name_64 WHERE day_boarding = "day" AND year_entered_competition > 1958 | Which is the earliest founded day school to have entered the competition after 1958? | CREATE TABLE table_name_64 (founded INTEGER, day_boarding VARCHAR, year_entered_competition VARCHAR) |
SELECT birth_date FROM table_14363116_1 WHERE shirt_no = 7 | Name the birth date for shirt number 7 | CREATE TABLE table_14363116_1 (birth_date VARCHAR, shirt_no VARCHAR) |
SELECT demographic.diagnosis FROM demographic WHERE demographic.subject_id = "92796" | what is the primary disease for the patient id 92796? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... |
SELECT to_par FROM table_name_93 WHERE country = "england" | How many to par in England? | CREATE TABLE table_name_93 (to_par VARCHAR, country VARCHAR) |
SELECT MAX(height) FROM table_14363116_1 WHERE player = "Yury Berezhko" | Name the maximum height for yury berezhko | CREATE TABLE table_14363116_1 (height INTEGER, player VARCHAR) |
SELECT "Club" FROM table_79809 WHERE "Captain" = 'ledley king' | In which club is Ledley King a captain? | CREATE TABLE table_79809 (
"Club" text,
"Manager" text,
"Captain" text,
"Manufacturer" text,
"Sponsor" text
) |
SELECT place FROM table_name_38 WHERE player = "david frost" | Where is David Frost from? | CREATE TABLE table_name_38 (place VARCHAR, player VARCHAR) |
SELECT 1991 AS _1992 FROM table_14390413_1 WHERE team = "River Plate" | Name the 1991-1992 for river plate | CREATE TABLE table_14390413_1 (team VARCHAR) |
SELECT Memory_in_G, Carrier FROM phone | What are the memories and carriers of phones? | CREATE TABLE phone (
Memory_in_G VARCHAR,
Carrier VARCHAR
) |
SELECT country FROM table_name_18 WHERE place = "t3" AND score = 70 - 68 = 138 | Which country earned place T3 with a score of 70-68=138? | CREATE TABLE table_name_18 (country VARCHAR, place VARCHAR, score VARCHAR) |
SELECT opengl AS ES FROM table_1439045_5 WHERE model = "SGX520" | Which version of opengl is used by model sgx520? | CREATE TABLE table_1439045_5 (opengl VARCHAR, model VARCHAR) |
SELECT MIN(demographic.age) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.diagnosis = "RUQ PAIN" | What is the minimum age of patients whose admission location is trsf within this facility and primary disease is ruq pain? | 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 demographic (
subject_id text,
hadm_id t... |
SELECT country FROM table_name_5 WHERE score = 69 - 67 = 136 | Which country had a score of 69-67=136? | CREATE TABLE table_name_5 (country VARCHAR, score VARCHAR) |
SELECT die_size__mm_2___[1] FROM table_1439045_5 WHERE model = "SGX531" | What is the die size(mm 2) for model sgx531? | CREATE TABLE table_1439045_5 (die_size__mm_2___ VARCHAR, model VARCHAR) |
SELECT first_class_team FROM table_name_51 WHERE player = "sanath jayasuriya" | What first class team does sanath jayasuriya play for? | CREATE TABLE table_name_51 (
first_class_team VARCHAR,
player VARCHAR
) |
SELECT to_par FROM table_name_1 WHERE player = "greg norman" | How many to par for Greg Norman? | CREATE TABLE table_name_1 (to_par VARCHAR, player VARCHAR) |
SELECT COUNT(nationality) FROM table_14407512_23 WHERE name = "Tom Hilde" | Name the number of nationality is tom hilde | CREATE TABLE table_14407512_23 (nationality VARCHAR, name VARCHAR) |
SELECT election FROM table_286271_1 WHERE _percentage_of_popular_vote = "4.48%" | Name the election for the percent of popular vote being 4.48% | CREATE TABLE table_286271_1 (
election VARCHAR,
_percentage_of_popular_vote VARCHAR
) |
SELECT high_rebounds FROM table_name_74 WHERE game > 14 AND team = "denver" | What was the high rebounds after game 14 for Denver? | CREATE TABLE table_name_74 (high_rebounds VARCHAR, game VARCHAR, team VARCHAR) |
SELECT director FROM table_1439096_1 WHERE original_air_date__atv_ = "26 October 1969" | Who was the director of the episode originally aired on 26 October 1969? | CREATE TABLE table_1439096_1 (director VARCHAR, original_air_date__atv_ VARCHAR) |
SELECT "Location/Attendance" FROM table_66090 WHERE "Game" = '4' | Where is the location of Game 4? | CREATE TABLE table_66090 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) |
SELECT MAX(game) FROM table_name_26 WHERE team = "sacramento" | What was the latest game that Sacramento played? | CREATE TABLE table_name_26 (game INTEGER, team VARCHAR) |
SELECT MIN(production_no) FROM table_1439096_1 | What is the lowest production number? | CREATE TABLE table_1439096_1 (production_no INTEGER) |
SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'acute respiratory distress' AND STRFTIME('%y', diagnosis.diagnosistime) = '2105') AS t1) - (SELECT C... | count the numbers of patients who were diagnosed with acute respiratory distress and did not come back to the hospital within 2 months in 2105. | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wa... |
SELECT record FROM table_name_65 WHERE team = "utah" | What was the record of Utah? | CREATE TABLE table_name_65 (record VARCHAR, team VARCHAR) |
SELECT title FROM table_1439096_1 WHERE original_air_date__atv_ = "28 September 1969" | What is the title of the episode with the original air date of 28 September 1969? | CREATE TABLE table_1439096_1 (title VARCHAR, original_air_date__atv_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2123" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | find the number of patients who were born before the year 2123 and their lab test fluid is cerebrospinal fluid (csf). | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT parent_magazine FROM table_name_78 WHERE title = "dengeki g's festival! deluxe" | What is the parent magazine of Dengeki g's festival! deluxe? | CREATE TABLE table_name_78 (parent_magazine VARCHAR, title VARCHAR) |
SELECT original_air_date__atv_ FROM table_1439096_1 WHERE episode_no = 1 | What was the original air date (atv) of episode 1? | CREATE TABLE table_1439096_1 (original_air_date__atv_ VARCHAR, episode_no VARCHAR) |
SELECT Participant_Type_Code, COUNT(Participant_Type_Code) FROM Participants GROUP BY Participant_Type_Code | How many items in each participant type code? Show me a pie chart! | CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREA... |
SELECT frequency FROM table_name_5 WHERE parent_magazine = "dengeki girl's style" | How often does Dengeki girl's style come out? | CREATE TABLE table_name_5 (frequency VARCHAR, parent_magazine VARCHAR) |
SELECT 1 AS st__m_ FROM table_14407512_4 WHERE nationality = "FIN" | What was the length of the jumper representing FIN, in meters? | CREATE TABLE table_14407512_4 (nationality VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.