answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT score FROM table_name_54 WHERE visitor = "magic" AND home = "clippers" | What was the score when there was a visitor of Magic and at home with the Clippers? | CREATE TABLE table_name_54 (score VARCHAR, visitor VARCHAR, home VARCHAR) |
SELECT athlete FROM table_22355_20 WHERE nation = "Ethiopia (ETH)" AND rank > 7.0 | Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0? | CREATE TABLE table_22355_20 (athlete VARCHAR, nation VARCHAR, rank VARCHAR) |
SELECT MAX("Apogee (km)") FROM table_72283 WHERE "Name" = 'SAMOS F3-3' | What is the maximum apogee for samos f3-3? | CREATE TABLE table_72283 (
"Name" text,
"Alt name" text,
"Launch date" text,
"ID" text,
"Mass (kg)" real,
"Decay date" text,
"Perigee (km)" real,
"Apogee (km)" real,
"Inclination" text
) |
SELECT AVG(games) FROM table_name_28 WHERE goals < 1 AND player = "keith j. miller" AND debut_year > 1974 | How many games for keith j. miller, who debuted after 1974 with less than 1 goal? | CREATE TABLE table_name_28 (games INTEGER, debut_year VARCHAR, goals VARCHAR, player VARCHAR) |
SELECT MAX(gold) FROM table_22355_26 | What is the maximum number of golds? | CREATE TABLE table_22355_26 (gold INTEGER) |
SELECT Carrier, COUNT(Carrier) FROM phone GROUP BY Carrier ORDER BY COUNT(Carrier) | Bar chart x axis carrier y axis the number of carrier, and rank by the Y in ascending. | CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
) |
SELECT MAX(crowd) FROM table_name_62 WHERE away_team = "carlton" | What is the highest crowd when carlton is the away team? | CREATE TABLE table_name_62 (crowd INTEGER, away_team VARCHAR) |
SELECT MIN(silver) FROM table_22355_29 | What is the smallest amount of silver? | CREATE TABLE table_22355_29 (silver INTEGER) |
SELECT part_name, COUNT(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name | How many assets can each parts be used in? List the part name and the number. | CREATE TABLE Asset_Parts (
asset_id INTEGER,
part_id INTEGER
)
CREATE TABLE Fault_Log_Parts (
fault_log_entry_id INTEGER,
part_fault_id INTEGER,
fault_status VARCHAR(10)
)
CREATE TABLE Skills (
skill_id INTEGER,
skill_code VARCHAR(20),
skill_description VARCHAR(255)
)
CREATE TABLE Assets (
asset_id INTEGER,
maintenance_contract_id INTEGER,
supplier_company_id INTEGER,
asset_details VARCHAR(255),
asset_make VARCHAR(20),
asset_model VARCHAR(20),
asset_acquired_date DATETIME,
asset_disposed_date DATETIME,
other_asset_details VARCHAR(255)
)
CREATE TABLE Maintenance_Contracts (
maintenance_contract_id INTEGER,
maintenance_contract_company_id INTEGER,
contract_start_date DATETIME,
contract_end_date DATETIME,
other_contract_details VARCHAR(255)
)
CREATE TABLE Engineer_Visits (
engineer_visit_id INTEGER,
contact_staff_id INTEGER,
engineer_id INTEGER,
fault_log_entry_id INTEGER,
fault_status VARCHAR(10),
visit_start_datetime DATETIME,
visit_end_datetime DATETIME,
other_visit_details VARCHAR(255)
)
CREATE TABLE Parts (
part_id INTEGER,
part_name VARCHAR(255),
chargeable_yn VARCHAR(1),
chargeable_amount VARCHAR(20),
other_part_details VARCHAR(255)
)
CREATE TABLE Third_Party_Companies (
company_id INTEGER,
company_type VARCHAR(5),
company_name VARCHAR(255),
company_address VARCHAR(255),
other_company_details VARCHAR(255)
)
CREATE TABLE Engineer_Skills (
engineer_id INTEGER,
skill_id INTEGER
)
CREATE TABLE Fault_Log (
fault_log_entry_id INTEGER,
asset_id INTEGER,
recorded_by_staff_id INTEGER,
fault_log_entry_datetime DATETIME,
fault_description VARCHAR(255),
other_fault_details VARCHAR(255)
)
CREATE TABLE Part_Faults (
part_fault_id INTEGER,
part_id INTEGER,
fault_short_name VARCHAR(20),
fault_description VARCHAR(255),
other_fault_details VARCHAR(255)
)
CREATE TABLE Skills_Required_To_Fix (
part_fault_id INTEGER,
skill_id INTEGER
)
CREATE TABLE Maintenance_Engineers (
engineer_id INTEGER,
company_id INTEGER,
first_name VARCHAR(50),
last_name VARCHAR(50),
other_details VARCHAR(255)
)
CREATE TABLE Staff (
staff_id INTEGER,
staff_name VARCHAR(255),
gender VARCHAR(1),
other_staff_details VARCHAR(255)
) |
SELECT MAX(crowd) FROM table_name_72 WHERE venue = "mcg" | What is the highest crowd at mcg? | CREATE TABLE table_name_72 (crowd INTEGER, venue VARCHAR) |
SELECT nation FROM table_22355_44 WHERE athlete = "Abdon Pamich Category:Articles with hCards" | Name the nation for abdon pamich category:articles with hcards | CREATE TABLE table_22355_44 (nation VARCHAR, athlete VARCHAR) |
SELECT SUM(amount) FROM payment | Return the sum of all payment amounts. | CREATE TABLE country (
country_id number,
country text,
last_update time
)
CREATE TABLE film (
film_id number,
title text,
description text,
release_year time,
language_id number,
original_language_id number,
rental_duration number,
rental_rate number,
length number,
replacement_cost number,
rating text,
special_features text,
last_update time
)
CREATE TABLE film_actor (
actor_id number,
film_id number,
last_update time
)
CREATE TABLE staff (
staff_id number,
first_name text,
last_name text,
address_id number,
picture others,
email text,
store_id number,
active boolean,
username text,
password text,
last_update time
)
CREATE TABLE payment (
payment_id number,
customer_id number,
staff_id number,
rental_id number,
amount number,
payment_date time,
last_update time
)
CREATE TABLE inventory (
inventory_id number,
film_id number,
store_id number,
last_update time
)
CREATE TABLE language (
language_id number,
name text,
last_update time
)
CREATE TABLE rental (
rental_id number,
rental_date time,
inventory_id number,
customer_id number,
return_date time,
staff_id number,
last_update time
)
CREATE TABLE store (
store_id number,
manager_staff_id number,
address_id number,
last_update time
)
CREATE TABLE film_category (
film_id number,
category_id number,
last_update time
)
CREATE TABLE address (
address_id number,
address text,
address2 text,
district text,
city_id number,
postal_code text,
phone text,
last_update time
)
CREATE TABLE city (
city_id number,
city text,
country_id number,
last_update time
)
CREATE TABLE category (
category_id number,
name text,
last_update time
)
CREATE TABLE customer (
customer_id number,
store_id number,
first_name text,
last_name text,
email text,
address_id number,
active boolean,
create_date time,
last_update time
)
CREATE TABLE actor (
actor_id number,
first_name text,
last_name text,
last_update time
)
CREATE TABLE film_text (
film_id number,
title text,
description text
) |
SELECT COUNT(grid) FROM table_name_87 WHERE time_retired = "+1.837" | How many grids are associated with a Time/Retired of +1.837? | CREATE TABLE table_name_87 (grid VARCHAR, time_retired VARCHAR) |
SELECT MAX(silver) FROM table_22355_44 WHERE athlete = "Ronald Weigel Category:Articles with hCards" | Name the silver for ronald weigel category:articles with hcards | CREATE TABLE table_22355_44 (silver INTEGER, athlete VARCHAR) |
SELECT pilot_s_ FROM table_name_43 WHERE location = "lake dumbleyung" | Who was the pilot at lake dumbleyung? | CREATE TABLE table_name_43 (
pilot_s_ VARCHAR,
location VARCHAR
) |
SELECT hometown FROM table_name_99 WHERE college = "ucla" | What is the hometown of the player that attends UCLA? | CREATE TABLE table_name_99 (hometown VARCHAR, college VARCHAR) |
SELECT MIN(rank) FROM table_22355_5 | What's the minimal rank of a athlete shown in the chart? | CREATE TABLE table_22355_5 (rank INTEGER) |
SELECT language FROM table_name_8 WHERE percentage___percentage_ = "2.54" | Which language has the percentage of 2.54? | CREATE TABLE table_name_8 (
language VARCHAR,
percentage___percentage_ VARCHAR
) |
SELECT college FROM table_name_32 WHERE school = "wichita heights high school" | What college is getting a player that attends Wichita Heights High School? | CREATE TABLE table_name_32 (college VARCHAR, school VARCHAR) |
SELECT MIN(gold) FROM table_22355_35 | which is the minimun amount of gold medals? | CREATE TABLE table_22355_35 (gold INTEGER) |
SELECT "Location" FROM table_70090 WHERE "Project" = 'eren talu bidding project' | Where is the Eren Talu bidding project located? | CREATE TABLE table_70090 (
"Project" text,
"Year" text,
"Location" text,
"Capacity" real,
"Suites" text,
"Architect" text,
"Cost" text
) |
SELECT hometown FROM table_name_83 WHERE player = "cody zeller" | What is the hometown of Cody Zeller? | CREATE TABLE table_name_83 (hometown VARCHAR, player VARCHAR) |
SELECT MIN(silver) FROM table_22355_35 | which is the minimun amount of silver medals? | CREATE TABLE table_22355_35 (silver INTEGER) |
SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian' | What are the distinct types of mills that are built by American or Canadian architects? | CREATE TABLE bridge (
architect_id number,
id number,
name text,
location text,
length_meters number,
length_feet number
)
CREATE TABLE architect (
id text,
name text,
nationality text,
gender text
)
CREATE TABLE mill (
architect_id number,
id number,
location text,
name text,
type text,
built_year number,
notes text
) |
SELECT player FROM table_name_83 WHERE hometown = "washington, in" | What player's hometown is Washington, IN? | CREATE TABLE table_name_83 (player VARCHAR, hometown VARCHAR) |
SELECT MIN(total_min_2_medals_) FROM table_22355_65 | What is the lowest overall number for total(min. 2 medals)? | CREATE TABLE table_22355_65 (total_min_2_medals_ INTEGER) |
SELECT "Mark" FROM table_13119 WHERE "Athlete" = 'tatyana lebedeva' | Which Mark has an Athlete of tatyana lebedeva? | CREATE TABLE table_13119 (
"Mark" text,
"Wind*" text,
"Athlete" text,
"Nationality" text,
"Venue" text,
"Date" text
) |
SELECT _percentage_2006 FROM table_name_12 WHERE seats_2001 < 23 AND seats_2006 > 4 AND _percentage_2001 = 25.4 | What is the %2006 that has fewer seats than 23 in Seats 2001, more seats than 4 in 2006 Seats, and a % in 2001 of 25.4? | CREATE TABLE table_name_12 (_percentage_2006 VARCHAR, _percentage_2001 VARCHAR, seats_2001 VARCHAR, seats_2006 VARCHAR) |
SELECT MAX(rank) FROM table_22355_62 WHERE gold = 4 | What is the maximum rank of the nation that won 4 gold medals? | CREATE TABLE table_22355_62 (rank INTEGER, gold VARCHAR) |
SELECT grand_final_dual_television_commentator FROM table_name_52 WHERE spokesperson = "amaury vassili" | What is the grand final dual television commentator status of the year when Amaury Vassili was the spokesperson? | CREATE TABLE table_name_52 (
grand_final_dual_television_commentator VARCHAR,
spokesperson VARCHAR
) |
SELECT SUM(seats_2001) FROM table_name_30 WHERE _percentage_2001 > 61.4 AND _percentage_2006 < 54.1 | When the %2001 is more than 61.4, and the %2006 fewer than 54.1, how many Seats in 2001 were there? | CREATE TABLE table_name_30 (seats_2001 INTEGER, _percentage_2001 VARCHAR, _percentage_2006 VARCHAR) |
SELECT MAX(rank) FROM table_22355_68 | Name the most rank | CREATE TABLE table_22355_68 (rank INTEGER) |
SELECT Name, COUNT(*) FROM Medication AS T1 JOIN Prescribes AS T2 ON T1.Code = T2.Medication GROUP BY T1.Brand | Find the number of medications prescribed for each brand. | CREATE TABLE Affiliated_With (
Physician INTEGER,
Department INTEGER,
PrimaryAffiliation BOOLEAN
)
CREATE TABLE Appointment (
AppointmentID INTEGER,
Patient INTEGER,
PrepNurse INTEGER,
Physician INTEGER,
Start DATETIME,
End DATETIME,
ExaminationRoom TEXT
)
CREATE TABLE Department (
DepartmentID INTEGER,
Name VARCHAR(30),
Head INTEGER
)
CREATE TABLE Trained_In (
Physician INTEGER,
Treatment INTEGER,
CertificationDate DATETIME,
CertificationExpires DATETIME
)
CREATE TABLE Procedures (
Code INTEGER,
Name VARCHAR(30),
Cost REAL
)
CREATE TABLE Stay (
StayID INTEGER,
Patient INTEGER,
Room INTEGER,
StayStart DATETIME,
StayEnd DATETIME
)
CREATE TABLE Nurse (
EmployeeID INTEGER,
Name VARCHAR(30),
Position VARCHAR(30),
Registered BOOLEAN,
SSN INTEGER
)
CREATE TABLE Room (
RoomNumber INTEGER,
RoomType VARCHAR(30),
BlockFloor INTEGER,
BlockCode INTEGER,
Unavailable BOOLEAN
)
CREATE TABLE Patient (
SSN INTEGER,
Name VARCHAR(30),
Address VARCHAR(30),
Phone VARCHAR(30),
InsuranceID INTEGER,
PCP INTEGER
)
CREATE TABLE Medication (
Code INTEGER,
Name VARCHAR(30),
Brand VARCHAR(30),
Description VARCHAR(30)
)
CREATE TABLE Physician (
EmployeeID INTEGER,
Name VARCHAR(30),
Position VARCHAR(30),
SSN INTEGER
)
CREATE TABLE On_Call (
Nurse INTEGER,
BlockFloor INTEGER,
BlockCode INTEGER,
OnCallStart DATETIME,
OnCallEnd DATETIME
)
CREATE TABLE Block (
BlockFloor INTEGER,
BlockCode INTEGER
)
CREATE TABLE Prescribes (
Physician INTEGER,
Patient INTEGER,
Medication INTEGER,
Date DATETIME,
Appointment INTEGER,
Dose VARCHAR(30)
)
CREATE TABLE Undergoes (
Patient INTEGER,
Procedures INTEGER,
Stay INTEGER,
DateUndergoes DATETIME,
Physician INTEGER,
AssistingNurse INTEGER
) |
SELECT MAX(seats_2006) FROM table_name_79 WHERE parties_and_voter_communities = "christian democratic union of germany" AND _percentage_2006 > 24.6 | What is the highest number of Seats 2006 held by the Christian Democratic Union of Germany Party/Voter Community, with a %2006 higher than 24.6? | CREATE TABLE table_name_79 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR) |
SELECT MIN(rank) FROM table_22355_68 WHERE gold = 2 | Name the most rank for 2 gold | CREATE TABLE table_22355_68 (rank INTEGER, gold VARCHAR) |
SELECT preferred_foot, COUNT(*) FROM Player_Attributes WHERE overall_rating > 80 GROUP BY preferred_foot ORDER BY COUNT(*) DESC | , and show in descending by the Y. | CREATE TABLE Team (
id INTEGER,
team_api_id INTEGER,
team_fifa_api_id INTEGER,
team_long_name TEXT,
team_short_name TEXT
)
CREATE TABLE sqlite_sequence (
name any,
seq any
)
CREATE TABLE Player (
id INTEGER,
player_api_id INTEGER,
player_name TEXT,
player_fifa_api_id INTEGER,
birthday TEXT,
height INTEGER,
weight INTEGER
)
CREATE TABLE Team_Attributes (
id INTEGER,
team_fifa_api_id INTEGER,
team_api_id INTEGER,
date TEXT,
buildUpPlaySpeed INTEGER,
buildUpPlaySpeedClass TEXT,
buildUpPlayDribbling INTEGER,
buildUpPlayDribblingClass TEXT,
buildUpPlayPassing INTEGER,
buildUpPlayPassingClass TEXT,
buildUpPlayPositioningClass TEXT,
chanceCreationPassing INTEGER,
chanceCreationPassingClass TEXT,
chanceCreationCrossing INTEGER,
chanceCreationCrossingClass TEXT,
chanceCreationShooting INTEGER,
chanceCreationShootingClass TEXT,
chanceCreationPositioningClass TEXT,
defencePressure INTEGER,
defencePressureClass TEXT,
defenceAggression INTEGER,
defenceAggressionClass TEXT,
defenceTeamWidth INTEGER,
defenceTeamWidthClass TEXT,
defenceDefenderLineClass TEXT
)
CREATE TABLE Player_Attributes (
id INTEGER,
player_fifa_api_id INTEGER,
player_api_id INTEGER,
date TEXT,
overall_rating INTEGER,
potential INTEGER,
preferred_foot TEXT,
attacking_work_rate TEXT,
defensive_work_rate TEXT,
crossing INTEGER,
finishing INTEGER,
heading_accuracy INTEGER,
short_passing INTEGER,
volleys INTEGER,
dribbling INTEGER,
curve INTEGER,
free_kick_accuracy INTEGER,
long_passing INTEGER,
ball_control INTEGER,
acceleration INTEGER,
sprint_speed INTEGER,
agility INTEGER,
reactions INTEGER,
balance INTEGER,
shot_power INTEGER,
jumping INTEGER,
stamina INTEGER,
strength INTEGER,
long_shots INTEGER,
aggression INTEGER,
interceptions INTEGER,
positioning INTEGER,
vision INTEGER,
penalties INTEGER,
marking INTEGER,
standing_tackle INTEGER,
sliding_tackle INTEGER,
gk_diving INTEGER,
gk_handling INTEGER,
gk_kicking INTEGER,
gk_positioning INTEGER,
gk_reflexes INTEGER
)
CREATE TABLE Country (
id INTEGER,
name TEXT
)
CREATE TABLE League (
id INTEGER,
country_id INTEGER,
name TEXT
) |
SELECT MAX(seats_2006) FROM table_name_5 WHERE parties_and_voter_communities = "bürger für groß-rohrheim" AND _percentage_2006 < 21.3 | What is the highest number of Seats 2006 held by the communities of Bürger Für Groß-Rohrheim Party/Voter Community, with a %2006 less than 21.3? | CREATE TABLE table_name_5 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR) |
SELECT MAX(total) FROM table_22360_3 | Name the most total | CREATE TABLE table_22360_3 (total INTEGER) |
SELECT finish FROM table_name_54 WHERE year_s__won = "2000" | What was the finish of the winner of the 2000 Masters? | CREATE TABLE table_name_54 (
finish VARCHAR,
year_s__won VARCHAR
) |
SELECT AVG(_percentage_2006) FROM table_name_52 WHERE _percentage_2001 > 62.5 | What is the %2006 when the %2001 was more than 62.5? | CREATE TABLE table_name_52 (_percentage_2006 INTEGER, _percentage_2001 INTEGER) |
SELECT MIN(silver) FROM table_22360_3 WHERE discipline = "Baseball" | Name the silver for baseball | CREATE TABLE table_22360_3 (silver INTEGER, discipline VARCHAR) |
SELECT Author, COUNT(Author) FROM submission GROUP BY Author | Visualize a bar chart for how many authors submit to the workshop. | CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
) |
SELECT SUM(losses) FROM table_name_56 WHERE team = "montreal hockey club" AND goals_against > 15 | What is the sum of the losses by the Montreal Hockey Club, who have more than 15 Goals Against? | CREATE TABLE table_name_56 (losses INTEGER, team VARCHAR, goals_against VARCHAR) |
SELECT discipline FROM table_22360_3 WHERE bronze = 0 | Name the discipline for bronze being 0 | CREATE TABLE table_22360_3 (discipline VARCHAR, bronze VARCHAR) |
SELECT "Broadcast date" FROM table_20305 WHERE "Run time" = '24:30' | What date was an episode with a run time of 24:30 broadcasted? | CREATE TABLE table_20305 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
) |
SELECT MAX(goals_for) FROM table_name_18 WHERE ties > 0 | What is the largest Goals For by a team that has more than 0 ties? | CREATE TABLE table_name_18 (goals_for INTEGER, ties INTEGER) |
SELECT MAX(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Irish Nationwide" | Name the most tier 1 capital for irish nationwide | CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital INTEGER, institution VARCHAR) |
SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID DESC | For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of job_id and commission_pct , and order by the X-axis in desc. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,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),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) |
SELECT SUM(ties) FROM table_name_40 WHERE goals_for = 25 AND wins > 5 | How many ties do teams with 25 Goals For and more than 5 wins have? | CREATE TABLE table_name_40 (ties INTEGER, goals_for VARCHAR, wins VARCHAR) |
SELECT tier_1_ratio FROM table_22368322_2 WHERE institution = "Irish Life and Permanent" | Name the tier 1 ratio for irish life and permanent | CREATE TABLE table_22368322_2 (tier_1_ratio VARCHAR, institution VARCHAR) |
SELECT "Holmenkollen" FROM table_45909 WHERE "Country" = 'norway' AND "Winner" = 'tom sandberg' | Which Holmenkollen has a Country of norway, and a Winner of tom sandberg? | CREATE TABLE table_45909 (
"Winner" text,
"Country" text,
"Winter Olympics" text,
"FIS Nordic World Ski Championships" text,
"Holmenkollen" text
) |
SELECT MIN(goals_against) FROM table_name_18 WHERE wins > 5 | What is the lowest Goals Against by a team with more than 5 wins? | CREATE TABLE table_name_18 (goals_against INTEGER, wins INTEGER) |
SELECT COUNT(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Allied Irish Banks" | Name the total number of tier 1 capital for allied irish banks | CREATE TABLE table_22368322_2 (_€_million VARCHAR, tier_1_capital VARCHAR, institution VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.insurance = "Medicaid" | Out of the total number of patients admitted to emergency, calculate the number of those on Medicaid insurance. | 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 (
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
)
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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) |
SELECT COUNT(ties) FROM table_name_98 WHERE losses < 3 | What is the total number of ties a team with less than 3 losses have? | CREATE TABLE table_name_98 (ties VARCHAR, losses INTEGER) |
SELECT date_of_report FROM table_22368322_2 WHERE tier_1_ratio = "3.9%" | Name the date of report for tier 1 ratio being 3.9% | CREATE TABLE table_22368322_2 (date_of_report VARCHAR, tier_1_ratio VARCHAR) |
SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN characteristics AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "fast" | What are the names of the products that have a color description of 'red' and the 'fast' characteristic? | CREATE TABLE product_characteristics (
product_id number,
characteristic_id number,
product_characteristic_value text
)
CREATE TABLE ref_colors (
color_code text,
color_description text
)
CREATE TABLE products (
product_id number,
color_code text,
product_category_code text,
product_name text,
typical_buying_price text,
typical_selling_price text,
product_description text,
other_product_details text
)
CREATE TABLE characteristics (
characteristic_id number,
characteristic_type_code text,
characteristic_data_type text,
characteristic_name text,
other_characteristic_details text
)
CREATE TABLE ref_characteristic_types (
characteristic_type_code text,
characteristic_type_description text
)
CREATE TABLE ref_product_categories (
product_category_code text,
product_category_description text,
unit_of_measure text
) |
SELECT race_name FROM table_name_61 WHERE winning_driver = "stirling moss" AND date = "16 april" | Tell me the race name where stirling moss won on 16 april | CREATE TABLE table_name_61 (race_name VARCHAR, winning_driver VARCHAR, date VARCHAR) |
SELECT season FROM table_22383603_1 WHERE finish__incl_championship_ = "April 18" | What season ended on April 18? | CREATE TABLE table_22383603_1 (season VARCHAR, finish__incl_championship_ VARCHAR) |
SELECT SUM("Weeks on chart") FROM table_54037 WHERE "Position" < '1' | What is the sum of the weeks on a chart a song with a position less than 1 haas? | CREATE TABLE table_54037 (
"Year" real,
"Single" text,
"Chart" text,
"Position" real,
"Weeks on chart" real
) |
SELECT report FROM table_name_25 WHERE circuit = "modena" | Tell me the report for circuit of modena | CREATE TABLE table_name_25 (report VARCHAR, circuit VARCHAR) |
SELECT start__reg_season_ FROM table_22383603_1 WHERE top_record = "Lindenwood (20–0–0)" | When did the season start that ended with the top record of Lindenwood (20–0–0)? | CREATE TABLE table_22383603_1 (start__reg_season_ VARCHAR, top_record VARCHAR) |
SELECT MIN("Bike No") FROM table_48571 WHERE "Driver / Passenger" = 'joris hendrickx / kaspars liepins' AND "Position" < '4' | What is the lowest Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is less than 4? | CREATE TABLE table_48571 (
"Position" real,
"Driver / Passenger" text,
"Equipment" text,
"Bike No" real,
"Points" real
) |
SELECT race_name FROM table_name_17 WHERE constructor = "ferrari" AND date = "25 april" | Tell me the race name for ferrari on 25 april | CREATE TABLE table_name_17 (race_name VARCHAR, constructor VARCHAR, date VARCHAR) |
SELECT season FROM table_22383603_1 WHERE no = 4 | What is the year range of season 4? | CREATE TABLE table_22383603_1 (season VARCHAR, no VARCHAR) |
SELECT road_team FROM table_name_36 WHERE result = "74-71" | What is Road Team, when Result is '74-71'? | CREATE TABLE table_name_36 (
road_team VARCHAR,
result VARCHAR
) |
SELECT constructor FROM table_name_22 WHERE race_name = "vii kanonloppet" | Name the constructor for vii kanonloppet | CREATE TABLE table_name_22 (constructor VARCHAR, race_name VARCHAR) |
SELECT finish__incl_championship_ FROM table_22383603_1 WHERE start__reg_season_ = "September 25" | When is the finish of the season that started on September 25? | CREATE TABLE table_22383603_1 (finish__incl_championship_ VARCHAR, start__reg_season_ VARCHAR) |
SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | what were the five most frequently prescribed medications until 2 years ago? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
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 patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) |
SELECT opponent FROM table_name_55 WHERE date = "may 7" | Who is the opponent on May 7? | CREATE TABLE table_name_55 (opponent VARCHAR, date VARCHAR) |
SELECT original_air_date FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15" | On what air date were there 2.15 million u.s. viewers? | CREATE TABLE table_22380270_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT to_par_ AS "a_" FROM table_name_35 WHERE course = "st andrews" AND year < 1888 | What's the To par of St Andrews before the year 1888? | CREATE TABLE table_name_35 (
to_par_ VARCHAR,
a_ VARCHAR,
course VARCHAR,
year VARCHAR
) |
SELECT away_team AS score FROM table_name_90 WHERE home_team = "carlton" | When the Home team was Carlton, what was the Away team score? | CREATE TABLE table_name_90 (away_team VARCHAR, home_team VARCHAR) |
SELECT written_by FROM table_22380270_1 WHERE us_viewers__millions_ = "2.15" | Who was the writer for the episode with 2.15 million u.s.viewers? | CREATE TABLE table_22380270_1 (written_by VARCHAR, us_viewers__millions_ 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.long_title = "Chronic combined systolic and diastolic heart failure" AND prescriptions.route = "ED" | find the number of patients who have ed route of drug administration and diagnosed with chronic systolic and diastolic heart failure. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) |
SELECT constructor FROM table_name_37 WHERE chassis = "fw20" | Who was the constructor for a FW20 chassis? | CREATE TABLE table_name_37 (constructor VARCHAR, chassis VARCHAR) |
SELECT spacewalkers FROM table_22385461_1 WHERE spacecraft = "STS-101 EVA 1" | Who walked in space from STS-101 Eva 1? | CREATE TABLE table_22385461_1 (spacewalkers VARCHAR, spacecraft VARCHAR) |
SELECT main_use FROM table_name_75 WHERE country = "hungary" AND name = "transmitter solt" | What is the Main use of transmitter solt in Hungary? | CREATE TABLE table_name_75 (
main_use VARCHAR,
country VARCHAR,
name VARCHAR
) |
SELECT engine_† FROM table_name_86 WHERE chassis = "mp4-13" AND driver = "david coulthard" | What engine did David Coulthard have in his mp4-13 chassis? | CREATE TABLE table_name_86 (engine_† VARCHAR, chassis VARCHAR, driver VARCHAR) |
SELECT end__utc_ FROM table_22385461_8 WHERE duration = "6 hours, 55 minutes" | What is the end (UTC) if the duration is 6 hours, 55 minutes? | CREATE TABLE table_22385461_8 (end__utc_ VARCHAR, duration VARCHAR) |
SELECT "nationality" FROM table_204_174 ORDER BY id DESC LIMIT 1 | what is the last nationality on the list ? | CREATE TABLE table_204_174 (
id number,
"rank" number,
"name" text,
"nationality" text,
"result" number,
"notes" text
) |
SELECT date FROM table_name_86 WHERE outcome = "runner-up" AND opponent_in_the_final = "gilles simon" | Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon? | CREATE TABLE table_name_86 (date VARCHAR, outcome VARCHAR, opponent_in_the_final VARCHAR) |
SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "January 31, 2007 23:09" | If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers? | CREATE TABLE table_22385461_8 (spacewalkers VARCHAR, end__utc_ VARCHAR) |
SELECT "Season" FROM table_19090 WHERE "Winning Driver" = 'Tom Sneva' | In what year did Tom Sneva win a race? | CREATE TABLE table_19090 (
"Season" real,
"Race Name" text,
"Winning Driver" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Team" text
) |
SELECT opponent_in_the_final FROM table_name_33 WHERE date = "28 july 2013" | Who was the opponent on the 28 july 2013 final? | CREATE TABLE table_name_33 (opponent_in_the_final VARCHAR, date VARCHAR) |
SELECT spacewalkers FROM table_22385461_8 WHERE end__utc_ = "October 30, 2007 15:53" | What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53? | CREATE TABLE table_22385461_8 (spacewalkers VARCHAR, end__utc_ VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MILWAUKEE' AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHOENIX' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | show me all flights from PHOENIX to MILWAUKEE on wednesday | CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_miles int,
pressurized varchar
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,
time_elapsed int,
to_airport varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
) |
SELECT date FROM table_name_11 WHERE score_in_the_final = "4–6, 3–6" | Which date has a Score in the final of 4–6, 3–6? | CREATE TABLE table_name_11 (date VARCHAR, score_in_the_final VARCHAR) |
SELECT position FROM table_22402438_7 WHERE player = "Bernie Doan" | Which position is player bernie doan? | CREATE TABLE table_22402438_7 (position VARCHAR, player VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id WHERE (area.area LIKE '%Orthodontics Practice Management and Transitions%' OR course.description LIKE '%Orthodontics Practice Management and Transitions%' OR course.name LIKE '%Orthodontics Practice Management and Transitions%') AND (area.area LIKE '%Special Naval Architecture and Marine Engineering%' OR course.description LIKE '%Special Naval Architecture and Marine Engineering%' OR course.name LIKE '%Special Naval Architecture and Marine Engineering%') | What classes involve Special Naval Architecture and Marine Engineering and Orthodontics Practice Management and Transitions ? | CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
) |
SELECT prefix FROM table_name_75 WHERE formula = "rsor'" | What is the prefix for the formula of Rsor'? | CREATE TABLE table_name_75 (prefix VARCHAR, formula VARCHAR) |
SELECT MIN(pick__number) FROM table_22402438_7 WHERE position = "Goaltender" | How many pick # are there for the goaltender position? | CREATE TABLE table_22402438_7 (pick__number INTEGER, position VARCHAR) |
SELECT source FROM table_name_53 WHERE name = "delph" | What source has delph as the name? | CREATE TABLE table_name_53 (
source VARCHAR,
name VARCHAR
) |
SELECT group FROM table_name_66 WHERE formula = "rncs" | Which group has the RNCS formula? | CREATE TABLE table_name_66 (group VARCHAR, formula VARCHAR) |
SELECT COUNT(college_junior_club_team) FROM table_22402438_7 WHERE player = "John Garrett" | How many college/junior/clubteams have John garrett as the player? | CREATE TABLE table_22402438_7 (college_junior_club_team VARCHAR, player VARCHAR) |
SELECT "Venue" FROM table_9051 WHERE "Date" = 'november 14, 2007' | What was the Venue on November 14, 2007? | CREATE TABLE table_9051 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Report" text
) |
SELECT formula FROM table_name_13 WHERE chemical_class = "thial" | Which formula has a thial as a chemical class? | CREATE TABLE table_name_13 (formula VARCHAR, chemical_class VARCHAR) |
SELECT player FROM table_22402438_7 WHERE pick__number = 80 | Who is the player with the pick# 80? | CREATE TABLE table_22402438_7 (player VARCHAR, pick__number VARCHAR) |
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 71320 AND STRFTIME('%y', admissions.admittime) >= '2103' ORDER BY admissions.admittime LIMIT 1 | when was patient 71320 for the first time admitted to the hospital since 2103? | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
) |
SELECT suffix FROM table_name_17 WHERE prefix = "isothiocyanato- (-ncs)" | Which suffix has the prefix of isothiocyanato- (-ncs)? | CREATE TABLE table_name_17 (suffix VARCHAR, prefix VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.