answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT silver FROM table_name_48 WHERE nation = "finland" | How many silvers for finland? | CREATE TABLE table_name_48 (silver VARCHAR, nation VARCHAR) |
SELECT COUNT(results) FROM table_1805191_10 WHERE incumbent = "Dave Weldon" | What are the results of incumbent dave weldon? | CREATE TABLE table_1805191_10 (results VARCHAR, incumbent VARCHAR) |
SELECT "Coach" FROM table_44564 WHERE "Win %" = '.352' | What is Coach, when Win % is .352? | CREATE TABLE table_44564 (
"Coach" text,
"Years" text,
"Win-Loss" text,
"Win %" text,
"Conference Titles" text
) |
SELECT COUNT(total) FROM table_name_62 WHERE silver = "1" AND bronze = "1" AND nation = "spain" | How many medals for spain that has 1 silver and 1 bronze? | CREATE TABLE table_name_62 (total VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR) |
SELECT COUNT(district) FROM table_1805191_33 WHERE incumbent = "Charles Rangel" | How many districts have the incumbent, Charles Rangel? | CREATE TABLE table_1805191_33 (district VARCHAR, incumbent VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%pakistan%' OR UPPER(Location) LIKE '%PK' ORDER BY Reputation DESC LIMIT 5 | Top 5 Users from Pakistan by Reputation. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
... |
SELECT record FROM table_name_61 WHERE points < 98 AND opponent = "canucks" | What is the record when they play the canucks and have under 98 points? | CREATE TABLE table_name_61 (record VARCHAR, points VARCHAR, opponent VARCHAR) |
SELECT party FROM table_1805191_33 WHERE district = "New York 26" | What is the party affiliation of New York 26? | CREATE TABLE table_1805191_33 (party VARCHAR, district VARCHAR) |
SELECT COUNT(derivatives) FROM table_11869952_1 WHERE rocket_launch = "Rehbar-5" | Which authority has a rocket launch called rehbar-5? | CREATE TABLE table_11869952_1 (
derivatives VARCHAR,
rocket_launch VARCHAR
) |
SELECT AVG(attendance) FROM table_name_99 WHERE points > 86 AND opponent = "sharks" | How many attended the game against the sharks with over 86 points? | CREATE TABLE table_name_99 (attendance INTEGER, points VARCHAR, opponent VARCHAR) |
SELECT COUNT(party) FROM table_1805191_39 WHERE district = "Pennsylvania 1" | In the district of Pennsylvania 1, what is the total number of political parties? | CREATE TABLE table_1805191_39 (party VARCHAR, district VARCHAR) |
SELECT COUNT("Money list rank") FROM table_4211 WHERE "Best finish" = '2' | Which money list ranks had a best finish of 2? | CREATE TABLE table_4211 (
"Player" text,
"Starts" real,
"Cuts made" real,
"Best finish" text,
"Money list rank" text,
"Earnings ($)" real
) |
SELECT recorded FROM table_name_83 WHERE track > 7 AND translation = "death" | Name the song that has a track larger than 7 and means death. | CREATE TABLE table_name_83 (recorded VARCHAR, track VARCHAR, translation VARCHAR) |
SELECT MIN(first_elected) FROM table_1805191_39 WHERE incumbent = "Tim Holden" | What year was Tim Holden first elected? | CREATE TABLE table_1805191_39 (first_elected INTEGER, incumbent VARCHAR) |
SELECT "Driver" FROM table_51462 WHERE "Laps" = '29' | Who was the driver with 29 laps? | CREATE TABLE table_51462 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
) |
SELECT title FROM table_name_23 WHERE recorded = "1959-09-15" AND track = 7 | Which track 7 title was recorded in 1959-09-15? | CREATE TABLE table_name_23 (title VARCHAR, recorded VARCHAR, track VARCHAR) |
SELECT COUNT(party) FROM table_1805191_39 WHERE first_elected = 1994 | How many parties were first elected in 1994? | CREATE TABLE table_1805191_39 (party VARCHAR, first_elected VARCHAR) |
SELECT "Japanese Title" FROM table_73025 WHERE "TV Station" = 'TV Asahi' | What are the japanese title(s) for tv asahi? | CREATE TABLE table_73025 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Time Frame" text,
"Starring Actors" text,
"Theme Song(s)" text,
"Episodes" real,
"Average Ratings" text
) |
SELECT track FROM table_name_96 WHERE translation = "flemish women" | Which track translates to Flemish Women? | CREATE TABLE table_name_96 (track VARCHAR, translation VARCHAR) |
SELECT COUNT(results) FROM table_1805191_39 WHERE district = "Pennsylvania 11" | In district Pennsylvania 11, what was the total numbers of results? | CREATE TABLE table_1805191_39 (results VARCHAR, district VARCHAR) |
SELECT "Televote" FROM table_7711 WHERE "Draw" > '11' AND "Place" < '4' | With a draw greater than 11 and the place smaller than 4 what was the televote? | CREATE TABLE table_7711 (
"Draw" real,
"Artist" text,
"Song" text,
"Televote" real,
"Place" real
) |
SELECT MAX(capacity) FROM table_name_90 WHERE average < 489 AND highest > 778 | What is the high capacity that has an average under 489 and a highest over 778? | CREATE TABLE table_name_90 (capacity INTEGER, average VARCHAR, highest VARCHAR) |
SELECT COUNT(first_elected) FROM table_1805191_2 WHERE incumbent = "Spencer Bachus" | During what year was Representative Spencer Bachus first elected? | CREATE TABLE table_1805191_2 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT "representative" FROM table_203_778 ORDER BY "termination\nof mission" - "presentation\nof credentials" DESC LIMIT 1 | which ambassador to honduras served the longest term ? | CREATE TABLE table_203_778 (
id number,
"representative" text,
"title" text,
"presentation\nof credentials" text,
"termination\nof mission" text,
"appointed by" text
) |
SELECT other_performer_s_ FROM table_name_4 WHERE director_s_ = "melina matsoukas" AND album = "loud" | On the album titled “Loud” who was the other performer on the song directed by Melina Matsoukas? | CREATE TABLE table_name_4 (other_performer_s_ VARCHAR, director_s_ VARCHAR, album VARCHAR) |
SELECT party FROM table_1805191_2 WHERE incumbent = "Robert Cramer" | What is the party affiliation of the incumbent Robert Cramer? | CREATE TABLE table_1805191_2 (party VARCHAR, incumbent VARCHAR) |
SELECT AVG("Fylde") FROM table_65030 WHERE "Burnley" < '0' | What is the average rating for a Flyde that has a Burnley less than 0? | CREATE TABLE table_65030 (
"Party" text,
"Burnley" real,
"Chorley" real,
"Fylde" real,
"Hyndburn" real,
"Lancaster" real,
"Pendle" real,
"Preston" real,
"Ribble Valley" real,
"Rossendale" real,
"South Ribble" real,
"West Lancashire" real,
"Wyre" real,
"Total" real... |
SELECT decision FROM table_name_44 WHERE home = "vancouver" AND visitor = "winnipeg" | What is the decision when vancouver is at home and winnipeg is away? | CREATE TABLE table_name_44 (decision VARCHAR, home VARCHAR, visitor VARCHAR) |
SELECT incumbent FROM table_1805191_48 WHERE district = "Washington 1" | Who is the incumbent in the Washington 1 district? | CREATE TABLE table_1805191_48 (incumbent VARCHAR, district VARCHAR) |
SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY SUM(SALARY) | For those employees whose first name does not containing the letter M, display their total salary by binning the hire date into Month interval for visualizing a bar chart, and sort in asc by the total number please. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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,
JO... |
SELECT record FROM table_name_6 WHERE home = "chicago" | What is the record of the team from chicago? | CREATE TABLE table_name_6 (record VARCHAR, home VARCHAR) |
SELECT COUNT(first_elected) FROM table_1805191_48 WHERE district = "Washington 4" | How many categories of first elected are in Washington 4 district? | CREATE TABLE table_1805191_48 (first_elected VARCHAR, district VARCHAR) |
SELECT SUM(laps) FROM table_name_13 WHERE driver = "denny hulme" AND grid < 4 | How many laps for denny hulme with under 4 on the grid? | CREATE TABLE table_name_13 (
laps INTEGER,
driver VARCHAR,
grid VARCHAR
) |
SELECT venue FROM table_name_52 WHERE away_team = "st kilda" | Where was the away team st kilda? | CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR) |
SELECT results FROM table_1805191_48 WHERE first_elected = 2000 | What was the result in the election where the date of first elected was 2000? | CREATE TABLE table_1805191_48 (results VARCHAR, first_elected VARCHAR) |
SELECT lot_details, COUNT(lot_details) FROM Lots GROUP BY lot_details ORDER BY lot_details DESC | Return the lot details, group the lot details, and compute the number of each lot details, and could you show x-axis in descending order? | CREATE TABLE Transactions_Lots (
transaction_id INTEGER,
lot_id INTEGER
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DECIMAL(19,4),
share_count VARCHAR(40),
other_det... |
SELECT club_province FROM table_name_90 WHERE caps = 1 | Which club has 1 cap? | CREATE TABLE table_name_90 (club_province VARCHAR, caps VARCHAR) |
SELECT title FROM table_18054886_1 WHERE viewers__millions_ = "3.7" AND directed_by = "David Kendall" | Which title, directed by David Kendall, had 3.7 million viewers? | CREATE TABLE table_18054886_1 (title VARCHAR, viewers__millions_ VARCHAR, directed_by VARCHAR) |
SELECT p.Id AS "post_link" FROM Posts AS p JOIN Comments AS c ON c.PostId = p.Id WHERE DATEDIFF(day, p.LastEditDate, CreationDate) >= 0 AND c.Text LIKE '%##KeywordsInComment##%' AND NOT EXISTS(SELECT ph.PostId FROM PostHistory AS ph WHERE ph.PostHistoryTypeId = 10 AND ph.PostId = p.Id) GROUP BY p.Id ORDER BY p.Id DESC | Find comments that might be no longer needed. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Descrip... |
SELECT position FROM table_name_59 WHERE club_province = "meralomas" AND player = "david biddle" | Which position has a club of Meralomas and a player named David Biddle? | CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR) |
SELECT COUNT(first_elected) FROM table_1805191_6 WHERE incumbent = "Diane Watson" | How many people were first elected with an incument of diane watson? | CREATE TABLE table_1805191_6 (first_elected VARCHAR, incumbent VARCHAR) |
SELECT "Second" FROM table_75264 WHERE "Third" = 'caroline reed' | What is the name of the second who has Caroline Reed as third? | CREATE TABLE table_75264 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) |
SELECT AVG(caps) FROM table_name_75 WHERE club_province = "meralomas" AND position = "centre" | What is the average number of caps for Meralomas with positions of centre? | CREATE TABLE table_name_75 (caps INTEGER, club_province VARCHAR, position VARCHAR) |
SELECT party FROM table_1805191_6 WHERE incumbent = "Hilda Solis" | What party did hilda solis represent? | CREATE TABLE table_1805191_6 (party VARCHAR, incumbent VARCHAR) |
SELECT "Winner" FROM table_23436 WHERE "Marcus guest" = 'Jason Byrne' | Name the winner for jason byrne | CREATE TABLE table_23436 (
"Episode" text,
"First broadcast" text,
"Rufus guest" text,
"Marcus guest" text,
"Winner" text
) |
SELECT scorers FROM table_name_4 WHERE score = "9-2" | Who are the scorers when the score is 9-2? | CREATE TABLE table_name_4 (scorers VARCHAR, score VARCHAR) |
SELECT results FROM table_1805191_6 WHERE incumbent = "Grace Napolitano" | What were the result(s) of the election featuring grace napolitano as the incumbent? | CREATE TABLE table_1805191_6 (results VARCHAR, incumbent VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Primary apnea of newborn" AND prescriptions.route = "DWELL" | give me the number of patients on dwell route of drug administration who have primary apnea of newborn. | 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 MIN(population) FROM table_name_94 WHERE region > 9 | What is the smallest population in a region greater than 9? | CREATE TABLE table_name_94 (population INTEGER, region INTEGER) |
SELECT MIN(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = "She Jiang" | Which place in the order is the Pinyin transcription She Jiang? | CREATE TABLE table_1805919_1 (standard_order INTEGER, transcription__based_on_pinyin_ VARCHAR) |
SELECT "District" FROM table_63718 WHERE "Constituency number" = '60' | What district has a constituency of 60? | CREATE TABLE table_63718 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
) |
SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312 | What is the average area for code 98030 with population over 312? | CREATE TABLE table_name_80 (area__km_2__ INTEGER, code VARCHAR, population VARCHAR) |
SELECT MAX(standard_order) FROM table_1805919_1 WHERE english_translation = "A Lament for Ying" | What is the place of "A Lament for Ying"? | CREATE TABLE table_1805919_1 (standard_order INTEGER, english_translation VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "WHITE" AND prescriptions.route = "NEB" | count the number of patients whose ethnicity is white and drug route is neb? | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... |
SELECT attendance FROM table_name_62 WHERE date = "may 28" | What is the attendance on may 28? | CREATE TABLE table_name_62 (attendance VARCHAR, date VARCHAR) |
SELECT COUNT(traditional_chinese) FROM table_1805919_1 WHERE english_translation = "Crossing the River" | How many traditional Chinese for the translation of "Crossing the River"? | CREATE TABLE table_1805919_1 (traditional_chinese VARCHAR, english_translation VARCHAR) |
SELECT virtue FROM table_name_13 WHERE (latin) = acedia | Which virtue is acedia(Latin)? | CREATE TABLE table_name_13 (
virtue VARCHAR,
acedia VARCHAR,
latin VARCHAR
) |
SELECT runner_s__up FROM table_name_83 WHERE date = "4 oct 2009" | On the Date of 4 Oct 2009, who was the Runner(s)-up? | CREATE TABLE table_name_83 (runner_s__up VARCHAR, date VARCHAR) |
SELECT MAX(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = "Xi Wangri" | What is the place of the Pinyin transcription Xi Wangri? | CREATE TABLE table_1805919_1 (standard_order INTEGER, transcription__based_on_pinyin_ VARCHAR) |
SELECT SUM("Lane") FROM table_14270 WHERE "Time" = '1:59.42' | In what lane did the swimmer get a time of 1:59.42? | CREATE TABLE table_14270 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) |
SELECT runner_s__up FROM table_name_52 WHERE date = "2 aug 2009" | On the Date of 2 Aug 2009, who was the Runner(s)-up? | CREATE TABLE table_name_52 (runner_s__up VARCHAR, date VARCHAR) |
SELECT english_translation FROM table_1805919_1 WHERE traditional_chinese = "哀郢" | What is the English translation of 哀郢? | CREATE TABLE table_1805919_1 (english_translation VARCHAR, traditional_chinese VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51457" | how many patients whose item id is 51457? | 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 tournament FROM table_name_23 WHERE date = "6 sep 2009" | Which Tournament was on the Date 6 Sep 2009? | CREATE TABLE table_name_23 (tournament VARCHAR, date VARCHAR) |
SELECT transcription__based_on_pinyin_ FROM table_1805919_1 WHERE english_translation = "Alas for the Days Gone By" | What is the Pinyin transcription for "Alas for the Days Gone By"? | CREATE TABLE table_1805919_1 (transcription__based_on_pinyin_ VARCHAR, english_translation VARCHAR) |
SELECT COUNT("Directed by") FROM table_31183 WHERE "No." = '2' | How many people directed episode 2? | CREATE TABLE table_31183 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Featured character(s)" text,
"U.S. viewers (millions)" text,
"Original air date" text
) |
SELECT winning_score FROM table_name_55 WHERE tournament = "mynavi abc championship" | What was the Winning score for the Mynavi ABC Championship Tournament? | CREATE TABLE table_name_55 (winning_score VARCHAR, tournament VARCHAR) |
SELECT english_name FROM table_180802_2 WHERE abbr = "พ.ย." | What's the English name for the month with พ.ย. abbreviation? | CREATE TABLE table_180802_2 (english_name VARCHAR, abbr VARCHAR) |
SELECT "Original air date" FROM table_3019 WHERE "U.S. viewers (in millions)" = '1.023' | What date did the episode that had 1.023 million u.s. viewers originally air? | CREATE TABLE table_3019 (
"Overall" real,
"No. in series" real,
"Title" text,
"Directed by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
) |
SELECT winning_score FROM table_name_29 WHERE margin_of_victory = "5 strokes" AND date = "6 sep 2009" | What was the Winning score when the Margin of victory is 5 strokes and the Date was 6 Sep 2009? | CREATE TABLE table_name_29 (winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR) |
SELECT zodiac_sign FROM table_180802_2 WHERE abbr = "มี.ค." | What's the zodiac sing for the month abbreviated as มี.ค.? | CREATE TABLE table_180802_2 (zodiac_sign VARCHAR, abbr VARCHAR) |
SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester = 'Fall' AND year = 2003) | What are the names of students who took a course in the Fall of 2003? | CREATE TABLE takes (
id text,
course_id text,
sec_id text,
semester text,
year number,
grade text
)
CREATE TABLE teaches (
id text,
course_id text,
sec_id text,
semester text,
year number
)
CREATE TABLE section (
course_id text,
sec_id text,
semester text,
y... |
SELECT runner_s__up FROM table_name_66 WHERE date = "4 oct 2009" | Who was the Runner(s)-up on the Date 4 Oct 2009? | CREATE TABLE table_name_66 (runner_s__up VARCHAR, date VARCHAR) |
SELECT transcription FROM table_180802_2 WHERE thai_name = "พฤษภาคม" | What's the transcription of the thai name of the month พฤษภาคม? | CREATE TABLE table_180802_2 (transcription VARCHAR, thai_name VARCHAR) |
SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-101426')) AND intakeoutput.cellpath LIKE '%output%' AND ... | what was patient 017-101426's last output until 06/15/2104? | 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 score FROM table_name_33 WHERE third_place = "stefan edberg" | What is the score with third place of stefan edberg? | CREATE TABLE table_name_33 (score VARCHAR, third_place VARCHAR) |
SELECT COUNT(zodiac_sign) FROM table_180802_2 WHERE thai_name = "กันยายน" | How many zodiac signs does the month by the Thai name of กันยายน belong to? | CREATE TABLE table_180802_2 (zodiac_sign VARCHAR, thai_name VARCHAR) |
SELECT "Location" FROM table_58772 WHERE "Opponent" = 'mario rinaldi' | What is Location, when Opponent is 'Mario Rinaldi'? | CREATE TABLE table_58772 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
) |
SELECT runner_up FROM table_name_40 WHERE tournament = "algarve" | Name the runner-up for algarve tournament | CREATE TABLE table_name_40 (runner_up VARCHAR, tournament VARCHAR) |
SELECT english_name FROM table_180802_2 WHERE abbr = "มิ.ย." | What's the English name of the month abbreviated as มิ.ย.? | CREATE TABLE table_180802_2 (english_name VARCHAR, abbr VARCHAR) |
SELECT "Surface" FROM table_45927 WHERE "Opponent in the final" = 'don mcneill' AND "Year" = '1940' | Which Surface has an Opponent in the final of don mcneill, and a Year of 1940? | CREATE TABLE table_45927 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) |
SELECT tournament FROM table_name_25 WHERE third_place = "magnus gustafsson" | I want to know the tournament that has a third place of magnus gustafsson | CREATE TABLE table_name_25 (tournament VARCHAR, third_place VARCHAR) |
SELECT abbr FROM table_180802_2 WHERE zodiac_sign = "Scorpio" | What's the abbreviation of the month in the zodiac sign scorpio? | CREATE TABLE table_180802_2 (abbr VARCHAR, zodiac_sign 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.icd9_code = "481" AND lab.fluid = "Blood" | count the number of patients whose diagnoses icd9 code is 481 and lab test fluid is blood? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... |
SELECT winner FROM table_name_11 WHERE third_place = "fernando meligeni" | Who was the winner when the third place was fernando meligeni? | CREATE TABLE table_name_11 (winner VARCHAR, third_place VARCHAR) |
SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE original_title = "გაღმა ნაპირი" | which year was the original title გაღმა ნაპირი | CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, original_title VARCHAR) |
SELECT "film" FROM table_203_79 WHERE "year" < 1966 | which live action american superhero movie was released before the 1966 batman movie ? | CREATE TABLE table_203_79 (
id number,
"year" number,
"film" text,
"publisher" text,
"director" text,
"distributor" text,
"worldwide gross" text,
"notes" text
) |
SELECT tournament FROM table_name_3 WHERE winner = "patrick rafter" | Name the tournament for patrick rafter winning | CREATE TABLE table_name_3 (tournament VARCHAR, winner VARCHAR) |
SELECT COUNT(year_)[e_] AS __ceremony_ FROM table_18069789_1 WHERE film_title_used_in_nomination = "27 Missing Kisses" | how many times was 27 missing kisses used in nomination | CREATE TABLE table_18069789_1 (e_ VARCHAR, film_title_used_in_nomination VARCHAR, year_ VARCHAR) |
SELECT "High rebounds" FROM table_74166 WHERE "Date" = 'December 12' | Who had the high rebounds record on December 12? | CREATE TABLE table_74166 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT owner FROM table_name_10 WHERE trainer = "nick zito" AND year = "1996" | Who was the owner in 1996 of trainer Nick Zito? | CREATE TABLE table_name_10 (owner VARCHAR, trainer VARCHAR, year VARCHAR) |
SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE director = "Otar Iosseliani" | when was otar iosseliani's film selected | CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, director VARCHAR) |
SELECT "Power" FROM table_27286 WHERE "Model" = 'Spirit R (Type B)' | What is the power for the Spirit R (Type B)? | CREATE TABLE table_27286 (
"Model" text,
"Power" text,
"Torque" text,
"Gearbox" text,
"Weight" text,
"Seating" text,
"Brakes" text,
"Wheels" text,
"Tyres" text
) |
SELECT year FROM table_name_40 WHERE distance = "1-1/16" AND jockey = "ramon dominguez" | What year did jockey Ramon Dominguez have a distance of 1-1/16? | CREATE TABLE table_name_40 (year VARCHAR, distance VARCHAR, jockey VARCHAR) |
SELECT thai_name FROM table_180802_3 WHERE transcription = "wan chan" | What is the thai name of the transcription wan chan? | CREATE TABLE table_180802_3 (thai_name VARCHAR, transcription 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 = "Pseudomonas infect NOS" | provide the number of patients whose death status is 1 and diagnoses short title is pseudomonas infect nos? | 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 owner FROM table_name_80 WHERE trainer = "steve klesaris" | Who was the owner of the trainer Steve Klesaris? | CREATE TABLE table_name_80 (owner VARCHAR, trainer VARCHAR) |
SELECT sanskrit_word FROM table_180802_3 WHERE color = "red" | What is the sanskrit word for the color red? | CREATE TABLE table_180802_3 (sanskrit_word VARCHAR, color VARCHAR) |
SELECT tonnage FROM table_name_91 WHERE date = "12 september 1942" | What was the tonnage on 12 september 1942? | CREATE TABLE table_name_91 (
tonnage VARCHAR,
date VARCHAR
) |
SELECT owner FROM table_name_43 WHERE winner = "raglan road" | Who is the owner of the Raglan Road winner? | CREATE TABLE table_name_43 (owner VARCHAR, winner VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.