answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "Team" FROM table_5814 WHERE "High points" = 'tracy mcgrady (24)' | What team has a high score with tracy mcgrady (24)? | CREATE TABLE table_5814 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Record" text
) |
SELECT june_10_11 FROM table_25355392_2 WHERE august_21_22 = "August 21, 2017" | What is the june 10-11 when august 21-22 is august 21, 2017? | CREATE TABLE table_25355392_2 (june_10_11 VARCHAR, august_21_22 VARCHAR) |
SELECT score_in_the_final FROM table_name_57 WHERE location = "moscow, ussr" AND date = "15 february 1971" | Name the score for moscow, ussr 15 february 1971 | CREATE TABLE table_name_57 (score_in_the_final VARCHAR, location VARCHAR, date VARCHAR) |
SELECT COUNT(*) FROM table_204_637 WHERE "year" = 1911 | what is the total number of garratts produced in 1911 ? | CREATE TABLE table_204_637 (
id number,
"type" text,
"gauge" text,
"railway" text,
"works no." text,
"year" text,
"builder" text
) |
SELECT COUNT(november_3) FROM table_25355392_2 WHERE march_27_29 = "129" | how many times is march 27-29 is 129? | CREATE TABLE table_25355392_2 (november_3 VARCHAR, march_27_29 VARCHAR) |
SELECT MIN(year) FROM table_name_4 WHERE position = "12th" | Name the lowest year for 12th position | CREATE TABLE table_name_4 (year INTEGER, position VARCHAR) |
SELECT written_by FROM table_21313327_1 WHERE no_in_season = 3 | In season number 3, who were the writers? | CREATE TABLE table_21313327_1 (
written_by VARCHAR,
no_in_season VARCHAR
) |
SELECT june_10_11 FROM table_25355392_2 WHERE march_27_29 = "149" | what is june 10-11 when march 27-29 is 149? | CREATE TABLE table_25355392_2 (june_10_11 VARCHAR, march_27_29 VARCHAR) |
SELECT competition FROM table_name_70 WHERE notes = "half marathon" | Tell me the competition for half marathon | CREATE TABLE table_name_70 (competition VARCHAR, notes VARCHAR) |
SELECT score FROM table_name_15 WHERE game > 4 AND time = "2:26" | Game larger than 4, and a Time of 2:26 resulted in what score? | CREATE TABLE table_name_15 (
score VARCHAR,
game VARCHAR,
time VARCHAR
) |
SELECT november_3 FROM table_25355392_2 WHERE june_10_11 = "June 10, 1964" | what is november 3 when june 10-11 is june 10, 1964? | CREATE TABLE table_25355392_2 (november_3 VARCHAR, june_10_11 VARCHAR) |
SELECT category FROM table_name_75 WHERE director = "na" | Tell me the category of na director | CREATE TABLE table_name_75 (category VARCHAR, director VARCHAR) |
SELECT result FROM table_1342149_43 WHERE district = "Texas 4" | What was the result of the election in the Texas 4 district? | CREATE TABLE table_1342149_43 (
result VARCHAR,
district VARCHAR
) |
SELECT march_27_29 FROM table_25355392_2 WHERE november_3 = "133" | what is march 27-29 when november 3 is 133? | CREATE TABLE table_25355392_2 (march_27_29 VARCHAR, november_3 VARCHAR) |
SELECT MAX(heat_rank) FROM table_name_88 WHERE overall_rank = "t63" AND time < 25.47 | I want to know the highest heat rank for overall rank of t63 and time less than 25.47 | CREATE TABLE table_name_88 (heat_rank INTEGER, overall_rank VARCHAR, time 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, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'TORONTO' AND flight.arrival_time <= 1200 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ST. PETERSBURG' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | show me the flights from ST. PETERSBURG to TORONTO that arrive before 1200 | 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 state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
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 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 dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_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 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 compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt 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 airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
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 equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
) |
SELECT january_15_16 FROM table_25355392_2 WHERE november_3 = "153" | What is january 15-16 when november 3 is 153? | CREATE TABLE table_25355392_2 (january_15_16 VARCHAR, november_3 VARCHAR) |
SELECT country FROM table_name_66 WHERE lane = 6 | Tell me the country for lane of 6 | CREATE TABLE table_name_66 (country VARCHAR, lane VARCHAR) |
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name | For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and code , and group by attribute headquarter. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
SELECT january_15_16 FROM table_25355501_2 WHERE august_21_22 = "August 22, 1979" | january 15-16 when august 21-22 is august 22, 1979? | CREATE TABLE table_25355501_2 (january_15_16 VARCHAR, august_21_22 VARCHAR) |
SELECT overall_rank FROM table_name_60 WHERE heat_rank = 8 | Tell me the overall rank for heat rank of 8 | CREATE TABLE table_name_60 (overall_rank VARCHAR, heat_rank VARCHAR) |
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ACABS' AND course.number = 470 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | Will ACABS 470 be offered next semester ? | CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
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 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 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 comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction 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 instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
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 requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
) |
SELECT COUNT(november_3) FROM table_25355501_2 WHERE january_15_16 = "141" | How many entries are shown for november 3 when january 15-16 is 141? | CREATE TABLE table_25355501_2 (november_3 VARCHAR, january_15_16 VARCHAR) |
SELECT position FROM table_name_8 WHERE player = "chris clark" | Tell me the position of chris clark | CREATE TABLE table_name_8 (position VARCHAR, player VARCHAR) |
SELECT score FROM table_name_10 WHERE set_2 = "17β25" AND total = "48β75" | Which score has a Set 2 of 17 25, and a Total of 48 75? | CREATE TABLE table_name_10 (
score VARCHAR,
set_2 VARCHAR,
total VARCHAR
) |
SELECT march_27_29 FROM table_25355501_2 WHERE june_10_11 = "127" | march 27-29 where june 10-11 is 127? | CREATE TABLE table_25355501_2 (march_27_29 VARCHAR, june_10_11 VARCHAR) |
SELECT nhl_team FROM table_name_75 WHERE pick = "74" | Tell me the nhl team for 74 | CREATE TABLE table_name_75 (nhl_team VARCHAR, pick VARCHAR) |
SELECT MIN(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 'increased intracranial pressure - from cerebral edema' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY STRFTIME('%y-%m', diagnosis.diagnosistime)) AS t1 | what are the minimum monthly number of patients diagnosed with increased intracranial pressure - from cerebral edema the last year? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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 intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
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 (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) |
SELECT june_10_11 FROM table_25355501_2 WHERE november_3 = "133" | june 10-11 when november 3 is 133? | CREATE TABLE table_25355501_2 (june_10_11 VARCHAR, november_3 VARCHAR) |
SELECT pick FROM table_name_74 WHERE position = "centre" AND nationality = "canada" | Tell me the pick for canada centre | CREATE TABLE table_name_74 (pick VARCHAR, position VARCHAR, nationality VARCHAR) |
SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY All_Home | Stack bar chart of school_id vs ACC_Home based on all home, list by the names in ascending. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) |
SELECT june_10_11 FROM table_25355501_2 WHERE january_15_16 = "January 15, 1991" | june 10-11 when january 15-16 is january 15, 1991? | CREATE TABLE table_25355501_2 (june_10_11 VARCHAR, january_15_16 VARCHAR) |
SELECT format FROM table_name_3 WHERE label = "geffen" AND region = "united states" | Tell me the format for geffen of the united states | CREATE TABLE table_name_3 (format VARCHAR, label VARCHAR, region VARCHAR) |
SELECT "Elector" FROM table_14248 WHERE "Cardinalatial title" = 'priest of s. marco' | What is listed for the Elector that also has the Cardinalatial title of Priest of S. Marco? | CREATE TABLE table_14248 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
) |
SELECT november_3 FROM table_25355501_2 WHERE august_21_22 = "August 22, 1998" | What is shown for november 3 when august 21-22 is august 22, 1998? | CREATE TABLE table_25355501_2 (november_3 VARCHAR, august_21_22 VARCHAR) |
SELECT format FROM table_name_67 WHERE region = "worldwide" AND date = "july 22, 2008" | Tell me the format for worldwide region july 22, 2008 | CREATE TABLE table_name_67 (format VARCHAR, region VARCHAR, date VARCHAR) |
SELECT school, nickname FROM university ORDER BY founded | List all schools and their nicknames in the order of founded year. | CREATE TABLE university (
school VARCHAR,
nickname VARCHAR,
founded VARCHAR
) |
SELECT COUNT(team) FROM table_25361570_2 WHERE position_in_table = "11th" AND date_of_appointment = "September 10" | Name the number of teams for 11th position september 10 | CREATE TABLE table_25361570_2 (team VARCHAR, position_in_table VARCHAR, date_of_appointment VARCHAR) |
SELECT label FROM table_name_39 WHERE format = "digital download" AND edition_s_ = "bonus tracks version" | Tell me the label for digital download for bonus tracks version | CREATE TABLE table_name_39 (label VARCHAR, format VARCHAR, edition_s_ VARCHAR) |
SELECT "Record" FROM table_66070 WHERE "Opponent" = 'st. louis cardinals' | What is the record for the opponent St. Louis Cardinals? | CREATE TABLE table_66070 (
"Game" text,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text
) |
SELECT replaced_by FROM table_25361570_2 WHERE date_of_vacancy = "August 9" AND date_of_appointment = "August 9" | Name the replaced by for august 9 | CREATE TABLE table_25361570_2 (replaced_by VARCHAR, date_of_vacancy VARCHAR, date_of_appointment VARCHAR) |
SELECT team FROM table_name_43 WHERE rank = 6 | Which team has a rank of 6? | CREATE TABLE table_name_43 (team VARCHAR, rank VARCHAR) |
SELECT "Score" FROM table_46329 WHERE "Record" = '40β36' | What is the score when the record was 40 36? | CREATE TABLE table_46329 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT MAX(_number) FROM table_25360865_1 WHERE name = "Charvez Davis" | Name the most number for charvez davis | CREATE TABLE table_25360865_1 (_number INTEGER, name VARCHAR) |
SELECT horsepower FROM table_name_94 WHERE vin_code = "h" AND engine = "351-2v cleveland v8" | Name the horsepower for VIN code of h and engine for 351-2v cleveland v8 | CREATE TABLE table_name_94 (horsepower VARCHAR, vin_code VARCHAR, engine VARCHAR) |
SELECT AVG("Attendance") FROM table_36526 WHERE "Record" = '11β12' | Record of 11 12 involved what average attendance figures? | CREATE TABLE table_36526 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) |
SELECT MAX(weight) FROM table_25360865_1 | Name the most height | CREATE TABLE table_25360865_1 (weight INTEGER) |
SELECT horsepower FROM table_name_19 WHERE compression_ratio = "9.00:1" AND carburetor = "2-barrel" AND engine = "302-2v windsor v8" | Name the horsepwer for compression ratio of 9.00:1 and carburetor of 2-barrel and engine 302-2v windsor v8 | CREATE TABLE table_name_19 (horsepower VARCHAR, engine VARCHAR, compression_ratio VARCHAR, carburetor VARCHAR) |
SELECT "Points" FROM table_59255 WHERE "Games" = '363' | How many points were scored by the player who played 363 games? | CREATE TABLE table_59255 (
"Player" text,
"Seasons" text,
"Games" text,
"Goals" text,
"Assists" text,
"Points" text
) |
SELECT COUNT(home_town) FROM table_25360865_1 WHERE _number = 32 | Name the number of home town for number being 32 | CREATE TABLE table_25360865_1 (home_town VARCHAR, _number VARCHAR) |
SELECT vin_code FROM table_name_7 WHERE compression_ratio = "10.50:1" | Tell me the VIN code for compression ratio of 10.50:1 | CREATE TABLE table_name_7 (vin_code VARCHAR, compression_ratio VARCHAR) |
SELECT 2009 FROM table_name_45 WHERE 2011 = "39th" | What 2009 has 39th as the 2011? | CREATE TABLE table_name_45 (
Id VARCHAR
) |
SELECT COUNT(height) FROM table_25360865_1 WHERE _number = 32 | Name the total number of height for number 32 | CREATE TABLE table_25360865_1 (height VARCHAR, _number VARCHAR) |
SELECT network FROM table_name_80 WHERE premiere = "13 january 2009" | Tell me the network for 13 january 2009 | CREATE TABLE table_name_80 (network VARCHAR, premiere VARCHAR) |
SELECT "Date" FROM table_35763 WHERE "Opponents" = 'police' AND "Venue" = 'selayang municipal council stadium' | Opponents of police, and a Venue of selayang municipal council stadium had what date? | CREATE TABLE table_35763 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Competition" text
) |
SELECT _number FROM table_25360865_1 WHERE last_school = "Florida Air Academy" | Name the number for florida air academy | CREATE TABLE table_25360865_1 (_number VARCHAR, last_school VARCHAR) |
SELECT prize FROM table_name_53 WHERE country_region = "belgium" | Tell me the prize for belgium | CREATE TABLE table_name_53 (prize VARCHAR, country_region VARCHAR) |
SELECT class_code FROM CLASS WHERE class_room = 'KLR209' | List the codes of all courses that take place in room KLR209. | CREATE TABLE CLASS (
class_code VARCHAR,
class_room VARCHAR
) |
SELECT height FROM table_25360865_1 WHERE name = "Demetrius Jemison" | Name the height for demetrius jemison | CREATE TABLE table_25360865_1 (height VARCHAR, name VARCHAR) |
SELECT host FROM table_name_19 WHERE premiere = "13 january 2009" | Tell me the 13 january 2009 host | CREATE TABLE table_name_19 (host VARCHAR, premiere VARCHAR) |
SELECT COUNT(*) FROM table_204_958 WHERE "original broadcast date" = 5 | how many aired in may ? | CREATE TABLE table_204_958 (
id number,
"episode" number,
"original broadcast date" text,
"average" number,
"rank" number,
"remarks" text
) |
SELECT MAX(won) FROM table_25368177_1 WHERE team = "Canterbury Wizards" | How many wins did Canterbury Wizards have? | CREATE TABLE table_25368177_1 (won INTEGER, team VARCHAR) |
SELECT host FROM table_name_6 WHERE network = "rtl-tvi" | Tell me the host for rtl-tvi | CREATE TABLE table_name_6 (host VARCHAR, network VARCHAR) |
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 61527) AND prescriptions.drug IN ('docusate sodium', 'potassium chloride', 'spironolactone') AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | did patient 61527 get a prescription for docusate sodium, potassium chloride, or spironolactone in a year before? | CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod 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 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name 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 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 d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
) |
SELECT team FROM table_25368177_1 WHERE net_run_rate = "0.134" | What team had a net run rate of 0.134? | CREATE TABLE table_25368177_1 (team VARCHAR, net_run_rate VARCHAR) |
SELECT meet FROM table_name_92 WHERE time = "2:15.93" | I want to meet that has a time 2:15.93 | CREATE TABLE table_name_92 (meet VARCHAR, time VARCHAR) |
SELECT COMMISSION_PCT, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a scatter chart about the correlation between commission_pct and department_id . | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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 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 MAX(abandoned) FROM table_25368177_1 | What's the largest number of abandoned games by any of the teams? | CREATE TABLE table_25368177_1 (abandoned INTEGER) |
SELECT location FROM table_name_86 WHERE nationality = "lithuania" AND date = "12 october 2013" | Tell me the location of lithuania 12 october 2013 | CREATE TABLE table_name_86 (location VARCHAR, nationality VARCHAR, date VARCHAR) |
SELECT driver FROM table_name_22 WHERE laps > 9 AND grid = 7 | What driver raced for more than 9 laps on grid 7? | CREATE TABLE table_name_22 (
driver VARCHAR,
laps VARCHAR,
grid VARCHAR
) |
SELECT COUNT(net_run_rate) FROM table_25368177_1 WHERE total_points = 19 | How many different net run rates did the team with 19 total points have? | CREATE TABLE table_25368177_1 (net_run_rate VARCHAR, total_points VARCHAR) |
SELECT title_of_work FROM table_name_17 WHERE year > 2009 | Tell me the title of work for year more than 2009 | CREATE TABLE table_name_17 (title_of_work VARCHAR, year INTEGER) |
SELECT MAX(league_cup) FROM table_name_99 WHERE championship < 3 AND total < 2 AND fa_cup > 0 | What is the highest league up with less than 3 championships, a total less than 2, and a FA cup larger than 0? | CREATE TABLE table_name_99 (
league_cup INTEGER,
fa_cup VARCHAR,
championship VARCHAR,
total VARCHAR
) |
SELECT team FROM table_25369796_1 WHERE points = "56" | What was the team that scored 56 points?Qh | CREATE TABLE table_25369796_1 (team VARCHAR, points VARCHAR) |
SELECT date FROM table_name_48 WHERE result = "8β0" AND score = "1β0" | When was there a Result of 8β0 and a Score of 1β0? | CREATE TABLE table_name_48 (date VARCHAR, result VARCHAR, score VARCHAR) |
SELECT power FROM table_name_22 WHERE model = "1500" AND displacement = "1490cc" | How much power does the 1500 model have with a displacement of 1490cc? | CREATE TABLE table_name_22 (
power VARCHAR,
model VARCHAR,
displacement VARCHAR
) |
SELECT MIN(season) FROM table_25369796_1 WHERE position = "29th" | What was the earliest season where a team got a 29th position? | CREATE TABLE table_25369796_1 (season INTEGER, position VARCHAR) |
SELECT result FROM table_name_33 WHERE venue = "bridgeview, illinois" | What was the result of Bridgeview, Illinois? | CREATE TABLE table_name_33 (result VARCHAR, venue VARCHAR) |
SELECT "venue" FROM table_203_208 WHERE "capacity" < (SELECT "capacity" FROM table_203_208 WHERE "venue" = 'spartak, bobruisk') | the spartak , bobruisk venue is has a larger capacity than which other venues ? | CREATE TABLE table_203_208 (
id number,
"team" text,
"location" text,
"venue" text,
"capacity" number,
"position in 1993-94" number
) |
SELECT f_laps FROM table_25369796_1 WHERE team = "HBR Motorsport" | What was the recorded flaps of HBR Motorsport team? | CREATE TABLE table_25369796_1 (f_laps VARCHAR, team VARCHAR) |
SELECT date FROM table_name_4 WHERE competition = "friendly" AND score = "2β1" AND venue = "philadelphia , pennsylvania" | When did a Competition of friendly, and a Score of 2β1, and a Venue of philadelphia , pennsylvania occur? | CREATE TABLE table_name_4 (date VARCHAR, venue VARCHAR, competition VARCHAR, score VARCHAR) |
SELECT "Winner" FROM table_38179 WHERE "Date" = '28 december 2007' | Who was the winner on 28 December 2007? | CREATE TABLE table_38179 (
"Round" text,
"Venue" text,
"Discipline" text,
"Date" text,
"Winner" text,
"Second" text,
"Third" text
) |
SELECT series FROM table_25369796_1 WHERE points = "56" | What was the series where a team scored 56 points? | CREATE TABLE table_25369796_1 (series VARCHAR, points VARCHAR) |
SELECT score FROM table_name_56 WHERE date = "june 28, 2009" | What was the score on June 28, 2009? | CREATE TABLE table_name_56 (score VARCHAR, date VARCHAR) |
SELECT engine FROM table_name_24 WHERE chassis = "lotus 44 f2" | Which engine has a Chassis of lotus 44 f2? | CREATE TABLE table_name_24 (
engine VARCHAR,
chassis VARCHAR
) |
SELECT COUNT(position) FROM table_25369796_1 WHERE points = "56" | How many team position scored 56 points? | CREATE TABLE table_25369796_1 (position VARCHAR, points VARCHAR) |
SELECT nationality FROM table_name_67 WHERE pick = "140" | Tell me the nationality of pick 140 | CREATE TABLE table_name_67 (nationality VARCHAR, pick VARCHAR) |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'antibacterials - monobactam' AND STRFTIME('%y', treatment.treatmenttime) >= '2105') GROUP BY patient.uniquepid) AS t1 WHERE t1.c1 = 2 | count the number of patients who have been given the procedure for a antibacterials - monobactam two times since 2105. | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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 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 intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) |
SELECT date FROM table_25380472_2 WHERE final_score = "L 14β24" | On what dates was the final score of the game L 14β24? | CREATE TABLE table_25380472_2 (date VARCHAR, final_score VARCHAR) |
SELECT position FROM table_name_7 WHERE pick = "146" | Tell me the position for pick of 146 | CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR) |
SELECT "Stage" FROM table_58274 WHERE "Venue" = 'romania' | Which stage was being played in Romania? | CREATE TABLE table_58274 (
"Competition" text,
"Stage" text,
"Venue" text,
"Date" text,
"Result" text
) |
SELECT COUNT(game_site) FROM table_25380472_2 WHERE team_record = "1β7" | How many game sites are there where the team record is 1β7? | CREATE TABLE table_25380472_2 (game_site VARCHAR, team_record VARCHAR) |
SELECT nhl_team FROM table_name_53 WHERE player = "mike gaffney" | Tell me the NHL team for mike gaffney | CREATE TABLE table_name_53 (nhl_team VARCHAR, player VARCHAR) |
SELECT score FROM table_name_6 WHERE home = "montreal canadiens" AND date = "april 11" | What is the Score that has a Home of montreal canadiens on april 11? | CREATE TABLE table_name_6 (
score VARCHAR,
home VARCHAR,
date VARCHAR
) |
SELECT opponent FROM table_25380472_2 WHERE week = 7 | On week 7, what were the opponents? | CREATE TABLE table_25380472_2 (opponent VARCHAR, week VARCHAR) |
SELECT nationality FROM table_name_85 WHERE pick = "153" | Tell me the nationality of pick of 153 | CREATE TABLE table_name_85 (nationality VARCHAR, pick 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 = 'cv cath plcmt w guidance') AND STRFTIME('%y', procedures_icd.charttime) = '2103' | what number of cv cath plcmt w guidance procedures have been completed in 2103? | 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 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 labevents (
row_id number,
subject_id number,
hadm_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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value 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 d_labitems (
row_id number,
itemid number,
label text
)
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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod 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 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 d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
) |
SELECT game_site FROM table_25380472_2 WHERE team_record = "0β5" | On what game sites are there where the team record is 0β5? | CREATE TABLE table_25380472_2 (game_site VARCHAR, team_record VARCHAR) |
SELECT player FROM table_name_9 WHERE pick = "145" | Tell me the player for pick of 145 | CREATE TABLE table_name_9 (player VARCHAR, pick VARCHAR) |
SELECT drawn FROM table_name_5 WHERE club = "senghenydd rfc" | How many draws are for the club senghenydd rfc? | CREATE TABLE table_name_5 (
drawn VARCHAR,
club VARCHAR
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.