answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT nationality FROM table_22402438_7 WHERE player = "John Garrett" | Which nationality is player John Garrett? | CREATE TABLE table_22402438_7 (nationality VARCHAR, player VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.label = "WBC, Pleural" | Count the number of married patients who had a wbc pleural lab test done. | 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 suffix FROM table_name_77 WHERE prefix = "thiocyanato- (-scn)" | Which item has the suffix containing thiocyanato- (-scn) as a prefix? | CREATE TABLE table_name_77 (suffix VARCHAR, prefix VARCHAR) |
SELECT team_classification FROM table_22410316_17 WHERE combativity_prize = "Ricardo Serrano" | what team had ricardo serrano for combativity prize? | CREATE TABLE table_22410316_17 (team_classification VARCHAR, combativity_prize VARCHAR) |
SELECT player_name FROM table_10361625_1 WHERE position = "Linebacker" AND college = "Illinois" | What is the name of the linebacker at Illinois college? | CREATE TABLE table_10361625_1 (
player_name VARCHAR,
position VARCHAR,
college VARCHAR
) |
SELECT formula FROM table_name_7 WHERE chemical_class = "thial" | Which formula has thial as a chemical class? | CREATE TABLE table_name_7 (formula VARCHAR, chemical_class VARCHAR) |
SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE male_rep = "Gabriel Di Chiara" | How many production stage managers worked with Gabriel di Chiara as the Male Rep? | CREATE TABLE table_22410780_1 (production_stagemanager VARCHAR, male_rep VARCHAR) |
SELECT microbiologyevents.org_name FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26612) AND microbiologyevents.spec_type_desc = 'urine' AND NOT microbiologyevents.org_name IS NULL AND DATETIME(microbiologyevents.charttime) >= DATETIM... | what was the organism name found since 69 months ago in patient 26612's first urine microbiology test? | CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime ... |
SELECT date FROM table_name_97 WHERE away_team = "fitzroy" | If fitzroy is the Away team, what Date did they play? | CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR) |
SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE secretary = "Rachel Hartmann" | How many production stage managers worked with secretary Rachel Hartmann? | CREATE TABLE table_22410780_1 (production_stagemanager VARCHAR, secretary VARCHAR) |
SELECT date FROM table_name_23 WHERE score = "42-6" | What was the date of game with a score of 42-6? | CREATE TABLE table_name_23 (
date VARCHAR,
score VARCHAR
) |
SELECT home_team FROM table_name_89 WHERE date = "15 july 1967" AND away_team = "fitzroy" | When the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing? | CREATE TABLE table_name_89 (home_team VARCHAR, date VARCHAR, away_team VARCHAR) |
SELECT performance_liaison FROM table_22410780_1 WHERE dramaturge = "Chrisena Ricci" | Who were the performance liaisons for the dramaturge Chrisena Ricci? | CREATE TABLE table_22410780_1 (performance_liaison VARCHAR, dramaturge VARCHAR) |
SELECT "Year(s) won" FROM table_13142 WHERE "Total" = '289' | Which Year(s) won has a Total of 289? | CREATE TABLE table_13142 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) |
SELECT venue FROM table_name_5 WHERE away_team = "st kilda" | Which Venue has an Away team of st kilda? | CREATE TABLE table_name_5 (venue VARCHAR, away_team VARCHAR) |
SELECT male_rep FROM table_22410780_1 WHERE artistic_director = "Caroline Rhoads" | Who was the male rep. when Caroline Rhoads was the artistic director? | CREATE TABLE table_22410780_1 (male_rep VARCHAR, artistic_director VARCHAR) |
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id 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 =... | what number of patients were prescribed thiamine study drug (*ind*) in the same hospital visit after having been diagnosed with ath ext ntv art gngrene? | 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... |
SELECT AVG(place) FROM table_name_90 WHERE draw < 2 | What place has a draw smaller than 2? | CREATE TABLE table_name_90 (place INTEGER, draw INTEGER) |
SELECT COUNT(driver) FROM table_2241101_1 WHERE manufacturer = "Toyota" | How many different drivers were there for the team when the manufacturer was Toyota? | CREATE TABLE table_2241101_1 (driver VARCHAR, manufacturer VARCHAR) |
SELECT COUNT(DISTINCT instructor.instructor_id) FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ARTDES' AND course.number = 210 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.off... | ARTDES 210 is taught by how many professors during Spring-Summer 2017 ? | CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE ta (
campus_job_id int,... |
SELECT launch_date__utc_ FROM table_name_32 WHERE cospar_id_satcat_โ = "1995-022a" | What is the launch date of the satellite with a COSPAR ID of 1995-022a? | CREATE TABLE table_name_32 (launch_date__utc_ VARCHAR, cospar_id_satcat_โ VARCHAR) |
SELECT COUNT(year) FROM table_2241101_1 WHERE date = "February 27" | In how many different years did the race happen on February 27? | CREATE TABLE table_2241101_1 (year VARCHAR, date VARCHAR) |
SELECT "Sprints classification" FROM table_55587 WHERE "Points Classification" = 'mark cavendish' AND "Team Classification" = 'caisse d''epargne' | What Sprints classification has the Points classification, Mark Cavendish and Team classification, Caisse D'epargne? | CREATE TABLE table_55587 (
"Stage (Winner)" text,
"General Classification" text,
"Mountains Classification" text,
"Points Classification" text,
"Sprints classification" text,
"Team Classification" text
) |
SELECT cospar_id_satcat_โ FROM table_name_20 WHERE launch_vehicle = "titan iv(401)a" | What is the COSPAR ID of the satellite with a titan iv(401)a launch vehicle? | CREATE TABLE table_name_20 (cospar_id_satcat_โ VARCHAR, launch_vehicle VARCHAR) |
SELECT team FROM table_2241101_1 WHERE average_speed__mph_ = "107.063" | What team had average speed of 107.063 mph? | CREATE TABLE table_2241101_1 (team VARCHAR, average_speed__mph_ VARCHAR) |
SELECT 'Six months ago', COUNT(*) FROM Posts WHERE PostTypeId = 2 AND CreationDate BETWEEN DATEADD('m', -6, GETDATE()) AND DATEADD('m', -6, DATEADD('w', -1, GETDATE())) UNION ALL SELECT 'Two years ago months ago', COUNT(*) FROM Posts WHERE PostTypeId = 2 AND CreationDate BETWEEN DATEADD('y', -2, GETDATE()) AND DATEADD(... | [WIP] Number of answers in a given week over time. | CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,... |
SELECT launch_designation FROM table_name_53 WHERE cospar_id_satcat_โ = "2009-001a" | What is the launch designation of the satellite with a 2009-001a COSPAR ID? | CREATE TABLE table_name_53 (launch_designation VARCHAR, cospar_id_satcat_โ VARCHAR) |
SELECT report FROM table_2241101_1 WHERE year = 2010 | What was the report for 2010? | CREATE TABLE table_2241101_1 (report VARCHAR, year VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2107" AND lab.itemid = "51501" | how many patients with lab test item id 51501 were born before 2107? | 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 launch_site FROM table_name_71 WHERE cospar_id_satcat_โ = "2003-041a" | What is the launch site of the satellite with a 2003-041a COSPAR ID? | CREATE TABLE table_name_71 (launch_site VARCHAR, cospar_id_satcat_โ VARCHAR) |
SELECT COUNT(race_time) FROM table_2241259_1 WHERE driver = "Kevin Harvick" | Name the total number of race time for kevin harvick | CREATE TABLE table_2241259_1 (race_time VARCHAR, driver VARCHAR) |
SELECT "Aggregate" FROM table_68560 WHERE "Opponents" = 'tauras' | Name the aggregate with opponents of tauras | CREATE TABLE table_68560 (
"Season" text,
"Competition" text,
"Round" text,
"Opponents" text,
"Home leg" text,
"Away leg" text,
"Aggregate" text
) |
SELECT construction_completed FROM table_name_1 WHERE cerclis_id = "ard092916188" | What construction has a CERCLIS ID of ard092916188? | CREATE TABLE table_name_1 (construction_completed VARCHAR, cerclis_id VARCHAR) |
SELECT manufacturer FROM table_2241841_1 WHERE year = "2004" | What manufacturer made the car that won in 2004? | CREATE TABLE table_2241841_1 (manufacturer VARCHAR, year VARCHAR) |
SELECT "CPU speed" FROM table_13823 WHERE "Type" = 'new plus' | What is the CPU speed(s) of the New Plus type hardware? | CREATE TABLE table_13823 (
"Brand" text,
"Model" text,
"Type" text,
"Modem" text,
"Storage" text,
"CPU speed" text,
"CPU chip" text
) |
SELECT cerclis_id FROM table_name_16 WHERE deleted = "04/07/2008" | What CERCLIS ID is Deleted of 04/07/2008? | CREATE TABLE table_name_16 (cerclis_id VARCHAR, deleted VARCHAR) |
SELECT COUNT(miles__km_) FROM table_2241841_1 WHERE manufacturer = "Dodge" | How many wins are with Dodge vehicles? | CREATE TABLE table_2241841_1 (miles__km_ VARCHAR, manufacturer VARCHAR) |
SELECT "UK Broadcast Date" FROM table_1209 WHERE "Presenter" = 'Buck Henry' | What was the UK broadcast date for the episode presented by Buck Henry? | CREATE TABLE table_1209 (
"Episode No." text,
"Episode Title" text,
"UK Broadcast Date" text,
"Presenter" text,
"Countries Visited" text
) |
SELECT construction_completed FROM table_name_48 WHERE listed = "09/08/1983" AND deleted = "โ" AND name = "mid-south wood products" | What construction has a Listed 09/08/1983, and a Deleted of โ, and a Name of mid-south wood products? | CREATE TABLE table_name_48 (construction_completed VARCHAR, name VARCHAR, listed VARCHAR, deleted VARCHAR) |
SELECT manufacturer FROM table_2241841_1 WHERE date = "May 21" | Who made the car that won the race on May 21? | CREATE TABLE table_2241841_1 (manufacturer VARCHAR, date VARCHAR) |
SELECT "Netflix" FROM table_75286 WHERE "Series Ep." = '1-01' | What is the Netflix number having a series episode of 1-01? | CREATE TABLE table_75286 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) |
SELECT construction_completed FROM table_name_49 WHERE listed = "09/08/1983" AND name = "cecil lindsey" | What is the Construction that has a Listed 09/08/1983, and a Name of cecil lindsey? | CREATE TABLE table_name_49 (construction_completed VARCHAR, listed VARCHAR, name VARCHAR) |
SELECT laps FROM table_2241841_1 WHERE race_time = "4:17:18" | In the race with a winning time of 4:17:18, how many laps were run? | CREATE TABLE table_2241841_1 (laps VARCHAR, race_time VARCHAR) |
SELECT ground FROM table_name_83 WHERE away = "high park demons" | The Away High Park Demons was which Ground? | CREATE TABLE table_name_83 (
ground VARCHAR,
away VARCHAR
) |
SELECT AVG(crowd) FROM table_name_63 WHERE venue = "kardinia park" | What was the attendance at Kardinia Park? | CREATE TABLE table_name_63 (crowd INTEGER, venue VARCHAR) |
SELECT team FROM table_2241841_1 WHERE race_time = "3:15:43" | What team set a 3:15:43 winning time? | CREATE TABLE table_2241841_1 (team VARCHAR, race_time VARCHAR) |
SELECT Directed_by, COUNT(Directed_by) FROM film GROUP BY Directed_by | What is the number of films of each director? Return a bar chart. | CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cine... |
SELECT date FROM table_name_43 WHERE week = 16 | What was the Date of Week 16? | CREATE TABLE table_name_43 (date VARCHAR, week VARCHAR) |
SELECT COUNT(hometown) FROM table_22447251_2 WHERE height = "1.80" | How many different cities are represented by contestants whose height stands at 1.80? | CREATE TABLE table_22447251_2 (hometown VARCHAR, height VARCHAR) |
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'cholangiogram nec') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 76005) AND DATETIME(procedures_ic... | how many times did patient 76005 in the last year have a cholangiogram nec? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
h... |
SELECT date FROM table_name_85 WHERE home = "colorado" | What date was Colorado the home team? | CREATE TABLE table_name_85 (date VARCHAR, home VARCHAR) |
SELECT height FROM table_22447251_2 WHERE contestant = "Alexandra Dรญaz Bello" | How tall is contestant Alexandra Dรญaz Bello? | CREATE TABLE table_22447251_2 (height VARCHAR, contestant VARCHAR) |
SELECT "Language" FROM table_27577 WHERE "Reading" = '94.47' | What was the language score when the reading score was 94.47? | CREATE TABLE table_27577 (
"School Year" text,
"Language" text,
"Science" text,
"Reading" text,
"Mathematics" text,
"Social Studies" text
) |
SELECT record FROM table_name_69 WHERE decision = "backstrom" AND date = "november 28" | What was the record for the game on November 28 when the decision was Backstrom? | CREATE TABLE table_name_69 (record VARCHAR, decision VARCHAR, date VARCHAR) |
SELECT province, _community FROM table_22447251_2 WHERE hometown = "Villa Bisonรณ" | Which province is Villa Bisonรณ in? | CREATE TABLE table_22447251_2 (province VARCHAR, _community VARCHAR, hometown VARCHAR) |
SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-8147')) AND lab.labname = 'rbc' AND DATETIME(lab.labresulttime) >= DATETIME(CU... | tell me patient 029-8147's monthly maximum rbc since 173 months ago. | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagn... |
SELECT home FROM table_name_26 WHERE record = "11โ8โ2" | What team was the home team when the record was 11โ8โ2? | CREATE TABLE table_name_26 (home VARCHAR, record VARCHAR) |
SELECT MAX(age) FROM table_22447251_2 WHERE contestant = "Valerie Chardonnens Vargas" | How old is contestant Valerie Chardonnens Vargas? | CREATE TABLE table_22447251_2 (age INTEGER, contestant 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 = 92788) AND icustays.outtime IS NULL) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_ite... | tell me patient 92788's total foley output on the current icu visit. | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_icd_diagnoses (
... |
SELECT score FROM table_name_10 WHERE home = "edmonton" | What was the score when Edmonton was the home team? | CREATE TABLE table_name_10 (score VARCHAR, home VARCHAR) |
SELECT original_south_korean_performer FROM table_22460085_1 WHERE original_manchester_performer = "Adebayo Bolaji" | Who was the origianal south korean performer when Adebayo Bolaji performed in Manchester? | CREATE TABLE table_22460085_1 (original_south_korean_performer VARCHAR, original_manchester_performer VARCHAR) |
SELECT SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini" | What is the total amount of money spent by Lucas Mancini? | CREATE TABLE customers (
id VARCHAR,
first_name VARCHAR,
last_name VARCHAR
)
CREATE TABLE invoices (
total INTEGER,
customer_id VARCHAR
) |
SELECT MAX(pl_gp) FROM table_name_97 WHERE pick__number > 159 AND reg_gp > 0 | Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0 | CREATE TABLE table_name_97 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR) |
SELECT character FROM table_22460085_1 WHERE original_manchester_performer = "Lisa Davina Phillip" | What character did Lisa Davina Phillip portray? | CREATE TABLE table_22460085_1 (character VARCHAR, original_manchester_performer VARCHAR) |
SELECT 1 AS st_party FROM table_name_18 WHERE first_member = "peter john locke king" AND second_member = "james watney" | What is 1st Party, when First Member is 'Peter John Locke King', and when Second Member is 'James Watney'? | CREATE TABLE table_name_18 (
first_member VARCHAR,
second_member VARCHAR
) |
SELECT home_team FROM table_name_34 WHERE away_team = "south melbourne" | In the match where south melbourne was the away team, who was the home team? | CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR) |
SELECT original_broadway_performer FROM table_22460085_1 WHERE original_west_end_performer = "Sharon D. Clarke" | Who was the Broadway equivalent of Sharon D. Clarke's character? | CREATE TABLE table_22460085_1 (original_broadway_performer VARCHAR, original_west_end_performer VARCHAR) |
SELECT winning_score FROM table_name_64 WHERE tournament = "oldsmobile lpga classic" | What was the winning score for oldsmobile lpga classic? | CREATE TABLE table_name_64 (
winning_score VARCHAR,
tournament VARCHAR
) |
SELECT team_2 FROM table_name_48 WHERE team_1 = "barcelona" | Which Team 2 faced Team 1 from Barcelona? | CREATE TABLE table_name_48 (team_2 VARCHAR, team_1 VARCHAR) |
SELECT character FROM table_22460085_1 WHERE original_broadway_performer = "Moya Angela" | What character did Moya Angela portray? | CREATE TABLE table_22460085_1 (character VARCHAR, original_broadway_performer VARCHAR) |
SELECT MAX("Crowd") FROM table_55355 WHERE "Away team" = 'hawthorn' | What was the crowd number when Hawthorn was the away team? | CREATE TABLE table_55355 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT 1 AS st_leg FROM table_name_34 WHERE team_1 = "galatasaray" | Which first leg had Galatasaray as Team 1? | CREATE TABLE table_name_34 (team_1 VARCHAR) |
SELECT character FROM table_22460085_1 WHERE original_west_end_performer = "Richard Fleeshman" | What character did Richard Fleeshman portray? | CREATE TABLE table_22460085_1 (character VARCHAR, original_west_end_performer VARCHAR) |
SELECT MAX("Points") FROM table_19281 WHERE "Position" = 'Left tackle' AND "Extra points" = '5' | How many maximum points were there when the left tackle was played and there were 5 extra points? | CREATE TABLE table_19281 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) |
SELECT event FROM table_name_8 WHERE time = "2:19" | What was the name of the Event with a time of 2:19? | CREATE TABLE table_name_8 (event VARCHAR, time VARCHAR) |
SELECT original_manchester_performer FROM table_22460085_1 WHERE original_west_end_performer = "Lisa Davina Phillip" | Who was the Manchester performer of Lisa Davina Phillip's character? | CREATE TABLE table_22460085_1 (original_manchester_performer VARCHAR, original_west_end_performer VARCHAR) |
SELECT "Semifinals" FROM table_72904 WHERE "Round of 32" = 'Bye' | When there was a bye in the round of 32, what was the result in the round of 16? | CREATE TABLE table_72904 (
"Athlete" text,
"Event" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text,
"Semifinals" text
) |
SELECT location FROM table_name_76 WHERE opponent = "joe lauzon" | Where was match which had Joe Lauzon as an opponent? | CREATE TABLE table_name_76 (location VARCHAR, opponent VARCHAR) |
SELECT european_tier FROM table_22457674_1 WHERE artist = "Rick Springfield" | Name the european tier for rick springfield | CREATE TABLE table_22457674_1 (european_tier VARCHAR, artist VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50805" | count the number of patients whose item id is 50805? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... |
SELECT name FROM table_name_78 WHERE city = "frankfurt" AND years_as_tallest = "1990โ1997" | What is the name of the building that was the tallest from 1990โ1997 in Frankfurt? | CREATE TABLE table_name_78 (name VARCHAR, city VARCHAR, years_as_tallest VARCHAR) |
SELECT song_title FROM table_22457674_1 WHERE artist = "Europe" | Name the song title for europe | CREATE TABLE table_22457674_1 (song_title VARCHAR, artist VARCHAR) |
SELECT "L2 cache" FROM table_22632 WHERE "Release date" = 'September 2009' AND "Part number(s)" = 'BY80607002529AF' | When by80607002529af is the part number and september 2009 is the release date what is the l2 cache? | CREATE TABLE table_22632 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"Turbo" text,
"Cores" real,
"L2 cache" text,
"L3 cache" text,
"I/O bus" text,
"Mult." text,
"Memory" text,
"Voltage" text,
"TDP" text,
"Socket" text,
"Release date" text,
"P... |
SELECT MAX(height__ft_) FROM table_name_58 WHERE height__m_ < 122 | For a height less than 122 meters, what is the greatest height in feet? | CREATE TABLE table_name_58 (height__ft_ INTEGER, height__m_ INTEGER) |
SELECT COUNT(master_recording) FROM table_22457674_1 WHERE artist = "Doobie Brothers The Doobie Brothers" | Name the number of master recording for doobie brothers the doobie brothers | CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR) |
SELECT DISTINCT paper.venueid FROM author, paper, writes WHERE author.authorname = 'Yejin Kim' AND paper.year = 2015 AND writes.authorid = author.authorid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | What conferences did Yejin Kim submit to in 2015 ? | CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE journal (
journalid int,
jo... |
SELECT MAX(height__ft_) FROM table_name_66 WHERE city = "cologne" | How high was the highest building in feet in the city of cologne? | CREATE TABLE table_name_66 (height__ft_ INTEGER, city VARCHAR) |
SELECT master_recording FROM table_22457674_1 WHERE artist = "Europe" | Name the master recording for europe | CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR) |
SELECT COUNT(*) FROM table_204_73 WHERE "result" = 'win' | what was the total number of wins in the season ? | CREATE TABLE table_204_73 (
id number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
) |
SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 55 | What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors? | CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR) |
SELECT date FROM table_22464685_1 WHERE georgian_name = "แชแฎแแแ แแแ แแ แฃแฌแงแแแ แแแแ แแขแแแแแแแ" | what is the date for when the georgian name is แชแฎแแแ แแแ แแ แฃแฌแงแแแ แแแแ แแขแแแแแแแ? | CREATE TABLE table_22464685_1 (date VARCHAR, georgian_name VARCHAR) |
SELECT date FROM table_name_63 WHERE away_team = "st kilda" | When was a game played where the away team is St Kilda? | CREATE TABLE table_name_63 (
date VARCHAR,
away_team VARCHAR
) |
SELECT height__m_ FROM table_name_66 WHERE city = "frankfurt" AND height__ft_ = 850 | What is the height in meters for a building in Frankfurt that is 850 feet tall? | CREATE TABLE table_name_66 (height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR) |
SELECT transliteration FROM table_22464685_1 WHERE period_covered = "1125-1223" | what is the transliteration during the period covered is 1125-1223? | CREATE TABLE table_22464685_1 (transliteration VARCHAR, period_covered VARCHAR) |
SELECT t.TagName, COUNT(*) AS PostCount FROM Posts AS p LEFT JOIN Posts AS q ON p.ParentId = q.Id LEFT JOIN (PostTags AS pt INNER JOIN Tags AS t ON pt.TagId = t.Id) ON pt.PostId = p.Id OR pt.PostId = q.Id WHERE p.OwnerUserId = '##UserId##' GROUP BY t.TagName ORDER BY PostCount DESC, t.TagName | User's Tags by Post Count. | CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number... |
SELECT mintage FROM table_name_76 WHERE theme = "toronto maple leafs" AND issue_price < 24.95 | What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95? | CREATE TABLE table_name_76 (mintage VARCHAR, theme VARCHAR, issue_price VARCHAR) |
SELECT author FROM table_22464685_1 WHERE english_name = "Histories and Eulogies of the Sovereigns" | Who is the auther when the english name was histories and eulogies of the sovereigns? | CREATE TABLE table_22464685_1 (author VARCHAR, english_name VARCHAR) |
SELECT investor_id, COUNT(*) FROM TRANSACTIONS GROUP BY investor_id | Show the number of transactions for different investors. | CREATE TABLE TRANSACTIONS (
investor_id VARCHAR
) |
SELECT away_team AS score FROM table_name_39 WHERE away_team = "collingwood" | What was Collingwood's score in their away game? | CREATE TABLE table_name_39 (away_team VARCHAR) |
SELECT author FROM table_22464685_1 WHERE transliteration = "lasha-giorgis droindeli matiane" | who is the auther when the transliteration is lasha-giorgis droindeli matiane? | CREATE TABLE table_22464685_1 (author VARCHAR, transliteration VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.