answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT championship FROM table_22839669_1 WHERE score_in_the_final = "6–4, 6–2, 6–2" | What championship had a final score of 6–4, 6–2, 6–2? | CREATE TABLE table_22839669_1 (championship VARCHAR, score_in_the_final VARCHAR) |
SELECT "Home team" FROM table_44389 WHERE "Time" = '8:00 pm' AND "Home team score" = '11.18 (84)' | Who was the home team at 8:00 pm when the score was 11.18 (84)? | CREATE TABLE table_44389 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Time" text
) |
SELECT COUNT(points) FROM table_name_67 WHERE team = "discovery channel" | Cumulative point total for all teams playing on the Discovery Channel? | CREATE TABLE table_name_67 (points VARCHAR, team VARCHAR) |
SELECT top_10s FROM table_22838521_3 WHERE year = 2007 | If the year is 2007, what is the top ten? | CREATE TABLE table_22838521_3 (top_10s VARCHAR, year VARCHAR) |
SELECT date FROM table_name_62 WHERE opponent_in_the_final = "gwinyai tongoona" | On what date was the opponent in the final Gwinyai Tongoona? | CREATE TABLE table_name_62 (
date VARCHAR,
opponent_in_the_final VARCHAR
) |
SELECT name FROM table_name_44 WHERE nationality = "belgium" | Which player is from Belgium? | CREATE TABLE table_name_44 (name VARCHAR, nationality VARCHAR) |
SELECT MAX(money_list_rank) FROM table_22838521_3 | What is the possible maximum money list rank? | CREATE TABLE table_22838521_3 (money_list_rank INTEGER) |
SELECT COUNT("Year") FROM table_24988 WHERE "Date" = 'February 27' | In how many different years did the race happen on February 27? | CREATE TABLE table_24988 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) |
SELECT visitor FROM table_name_42 WHERE home = "kings" | Who was the visiting team that played against the Kings? | CREATE TABLE table_name_42 (visitor VARCHAR, home VARCHAR) |
SELECT best_finish FROM table_22838521_3 WHERE scoring_average = "72.46" | If the scoring average is 72.46, what is the best finish? | CREATE TABLE table_22838521_3 (best_finish VARCHAR, scoring_average VARCHAR) |
SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg" | Name the name that has moving of 1. fc n rnberg. | CREATE TABLE table_name_9 (
name VARCHAR,
moving_from VARCHAR
) |
SELECT player FROM table_name_25 WHERE round > 5 AND position = "c" | Tell me the player for round more than 5 and position of c | CREATE TABLE table_name_25 (player VARCHAR, round VARCHAR, position VARCHAR) |
SELECT result FROM table_22853654_9 WHERE opponent = "Wesley Moodie" | Name the result for wesley moodie | CREATE TABLE table_22853654_9 (result VARCHAR, opponent VARCHAR) |
SELECT series__number FROM table_25800134_12 WHERE airdate = "February 26, 1968" | What episode number of the series aired on February 26, 1968? | CREATE TABLE table_25800134_12 (
series__number VARCHAR,
airdate VARCHAR
) |
SELECT college_junior_club_team__league_ FROM table_name_70 WHERE player = "carl hagelin" | Tell me the college for carl hagelin | CREATE TABLE table_name_70 (college_junior_club_team__league_ VARCHAR, player VARCHAR) |
SELECT surface FROM table_22853654_9 WHERE against = "Monaco" | Name the surface against monaco | CREATE TABLE table_22853654_9 (surface VARCHAR, against VARCHAR) |
SELECT "Player" FROM table_61953 WHERE "Money ( $ )" = '137' AND "Score" = '73-70-73-74=290' | Which Player has a Money ($) of 137, and a Score of 73-70-73-74=290? | CREATE TABLE table_61953 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To Par" text,
"Money ( $ )" real
) |
SELECT AVG(year) FROM table_name_88 WHERE points = 0 AND chassis = "toleman tg181" | Which year has a total of 0 points and a chassis of Toleman tg181? | CREATE TABLE table_name_88 (year INTEGER, points VARCHAR, chassis VARCHAR) |
SELECT result FROM table_22853654_9 WHERE opponent = "Alexander Shvec" | Name the result for alexander shvec | CREATE TABLE table_22853654_9 (result VARCHAR, opponent VARCHAR) |
SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'headache' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2102') AS t1 JOIN (SELECT patient.uniquepid, diagnosis.diagnosisname, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE STRFTIME('%y', diagnosis.diagnosistime) >= '2102') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.diagnosistime AND DATETIME(t1.diagnosistime, 'start of month') = DATETIME(t2.diagnosistime, 'start of month') GROUP BY t2.diagnosisname) AS t3 WHERE t3.c1 <= 3 | what are the three most common diagnoses since 2102 in which patients are diagnosed in the same month after being diagnosed with headache? | 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 cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) |
SELECT MAX(year) FROM table_name_20 WHERE engine = "renault ef15 1.5 v6 t" AND points > 5 | What is the latest year that has more than 5 points and a renault ef15 1.5 v6 t engine? | CREATE TABLE table_name_20 (year INTEGER, engine VARCHAR, points VARCHAR) |
SELECT opponent FROM table_22853654_9 WHERE result = "3–6, 4–6, 6–1, 6–7 (7–9)" | Name the opponent for 3–6, 4–6, 6–1, 6–7 (7–9) | CREATE TABLE table_22853654_9 (opponent VARCHAR, result VARCHAR) |
SELECT AVG(Reputation) AS AVG_REP, COUNT(Id) AS "total_users" FROM Users WHERE LOWER(Location) LIKE '%manchester, united kingdom' AND Reputation > 15 | Average Reputation Of SO Users where reputation > 15. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
) |
SELECT COUNT(year) FROM table_name_36 WHERE chassis = "toleman tg183" | Which year had a toleman tg183 chassis? | CREATE TABLE table_name_36 (year VARCHAR, chassis VARCHAR) |
SELECT average_annual_rainfall__mm_ FROM table_22854436_1 WHERE population__2002_census_data_ = 493984 | Name the annual rainfail for 2002 population being 493984 | CREATE TABLE table_22854436_1 (average_annual_rainfall__mm_ VARCHAR, population__2002_census_data_ VARCHAR) |
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'int insert dual-cham dev')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 5 | what was the top five most commonly prescribed medication that patients were prescribed during the same hospital encounter after having received a int insert dual-cham dev procedure? | 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE 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
)
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 d_labitems (
row_id number,
itemid number,
label 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 d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name 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 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
) |
SELECT time FROM table_name_13 WHERE rider = "tony myres" | What is the time for tony myres? | CREATE TABLE table_name_13 (time VARCHAR, rider VARCHAR) |
SELECT MAX(population__2002_census_data_) FROM table_22854436_1 | Name the most population 2002 | CREATE TABLE table_22854436_1 (population__2002_census_data_ INTEGER) |
SELECT frequency FROM table_11602313_4 WHERE part_number_s_ = "LF80537GF0411M" | What is the frequency of the model with part number lf80537gf0411m? | CREATE TABLE table_11602313_4 (
frequency VARCHAR,
part_number_s_ VARCHAR
) |
SELECT speed FROM table_name_41 WHERE rider = "andy reynolds" | Name the speed for andy reynolds | CREATE TABLE table_name_41 (speed VARCHAR, rider VARCHAR) |
SELECT COUNT(per_capita_average_annual_renewable_water_resources_m_3) FROM table_22854436_1 WHERE average_annual_rainfall__mm_ = "650" | Name the total water resources m3 for rainfall being 650 | CREATE TABLE table_22854436_1 (per_capita_average_annual_renewable_water_resources_m_3 VARCHAR, average_annual_rainfall__mm_ VARCHAR) |
SELECT "High rebounds" FROM table_2686 WHERE "Team" = 'New York' | Name the high rebounds for new york | CREATE TABLE table_2686 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT COUNT(rank) FROM table_name_54 WHERE team = "348cc petty manx" | Name the total number of rank for 348cc petty manx | CREATE TABLE table_name_54 (rank VARCHAR, team VARCHAR) |
SELECT carpet_w_l FROM table_22860698_8 WHERE year = 1993 | What were the carpet w-l in 1993? | CREATE TABLE table_22860698_8 (carpet_w_l VARCHAR, year VARCHAR) |
SELECT "Position" FROM table_29221 WHERE "CFL Team" = 'Edmonton (2)' | where cfl team is edmonton (2) what are all the position | CREATE TABLE table_29221 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) |
SELECT speed FROM table_name_13 WHERE time = "1:36.46.93" | Name the speed for 1:36.46.93 | CREATE TABLE table_name_13 (speed VARCHAR, time VARCHAR) |
SELECT COUNT(score_in_final) FROM table_22858557_1 WHERE championship = "US Open" AND outcome = "Runner-up" | What is the amount of US open runner-up score? | CREATE TABLE table_22858557_1 (score_in_final VARCHAR, championship VARCHAR, outcome 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 = 'WASHINGTON' AND date_day.day_number = 21 AND date_day.month_number = 7 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 = 'BOSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.departure_time BETWEEN 1800 AND 2200) AND flight.departure_time = (SELECT MAX(FLIGHTalias1.departure_time) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, date_day AS DATE_DAYalias1, days AS DAYSalias1, flight AS FLIGHTalias1 WHERE ((CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'WASHINGTON' AND DATE_DAYalias1.day_number = 21 AND DATE_DAYalias1.month_number = 7 AND DATE_DAYalias1.year = 1991 AND DAYSalias1.day_name = DATE_DAYalias1.day_name AND FLIGHTalias1.flight_days = DAYSalias1.days_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'BOSTON' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code) AND FLIGHTalias1.departure_time BETWEEN 1800 AND 2200) | show me the last flight available in the evening from BOSTON to WASHINGTON on 7 21 | 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 equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code 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 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 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 airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_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 dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE month (
month_number int,
month_name 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 days (
days_code varchar,
day_name varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare 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 flight_fare (
flight_id int,
fare_id int
)
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
) |
SELECT away_team AS score FROM table_name_54 WHERE away_team = "melbourne" | What is the away team score of Melbourne? | CREATE TABLE table_name_54 (away_team VARCHAR) |
SELECT MIN(year) FROM table_22858557_1 WHERE outcome = "Runner-up" | What is the year where the runner-up outcome was at its basic minimum? | CREATE TABLE table_22858557_1 (year INTEGER, outcome VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'ATLANTA' AND flight_stop.stop_airport = AIRPORT_SERVICE_2.airport_code AND flight.flight_id = flight_stop.flight_id AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | are there any flights from DENVER to ATLANTA to PITTSBURGH | CREATE TABLE airline (
airline_code varchar,
airline_name text,
note 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 flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name 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 compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description 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 flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
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 code_description (
code varchar,
description text
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare 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 class_of_service (
booking_class varchar,
rank int,
class_description text
)
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 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 month (
month_number int,
month_name text
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
) |
SELECT away_team AS score FROM table_name_86 WHERE away_team = "south melbourne" | What is the away team score for South Melbourne? | CREATE TABLE table_name_86 (away_team VARCHAR) |
SELECT championship FROM table_22858557_1 WHERE opponent_in_final = "Steffi Graf" | How many championships have there been with Steffi Graf? | CREATE TABLE table_22858557_1 (championship VARCHAR, opponent_in_final VARCHAR) |
SELECT a.TagName AS "Tagname", a.upvotes AS "Upvotes", b.downvotes AS "Downvotes" FROM (SELECT TagName, COUNT(*) AS upvotes FROM Tags JOIN PostTags ON PostTags.TagId = Tags.Id JOIN Posts ON Posts.ParentId = PostTags.PostId OR Posts.Id = PostTags.PostId JOIN Votes ON Votes.PostId = Posts.Id AND Votes.VoteTypeId = 2 WHERE Posts.OwnerUserId = @userid GROUP BY TagName) AS a JOIN (SELECT TagName, COUNT(*) AS downvotes FROM Tags JOIN PostTags ON PostTags.TagId = Tags.Id JOIN Posts ON Posts.ParentId = PostTags.PostId OR Posts.Id = PostTags.PostId JOIN Votes ON Votes.PostId = Posts.Id AND Votes.VoteTypeId = 3 WHERE Posts.OwnerUserId = @userid GROUP BY TagName) AS b ON a.TagName = b.TagName ORDER BY Upvotes DESC | Getting number of upvotes and downvotes for each tag for a user, along with ratio. number of upvotes and downvotes i have for each tag, questions and answers combined | CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
) |
SELECT prime_mover FROM table_name_87 WHERE model = "fm cfa-16-4" | What is Prime Mover of Model FM CFA-16-4? | CREATE TABLE table_name_87 (prime_mover VARCHAR, model VARCHAR) |
SELECT COUNT(opponents) FROM table_22860698_2 WHERE championship = "Wimbledon (2)" | How many opponents have wimbledon (2) as the championship? | CREATE TABLE table_22860698_2 (opponents VARCHAR, championship VARCHAR) |
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'hypothermia') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t1 JOIN (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'aortocor bypas-2 cor art') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t2.charttime) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') | how many patients in this year have undergone aortocor bypas-2 cor art within 2 months following the first hypothermia? | CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount 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 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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_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 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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime 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 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 d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
) |
SELECT MAX(purse__) AS $__ FROM table_name_80 WHERE location = "illinois" | what was the purse ($) in illinois? | CREATE TABLE table_name_80 (purse__ INTEGER, location VARCHAR) |
SELECT surface FROM table_22860698_2 WHERE championship = "US Open" AND year = 1979 | What is the surface when the us open is the championship in the year 1979? | CREATE TABLE table_22860698_2 (surface VARCHAR, championship VARCHAR, year VARCHAR) |
SELECT "Result(s)" FROM table_66859 WHERE "Format(s)" = 'single' AND "Date" = 'march 21' | What are the results of Format single on March 21? | CREATE TABLE table_66859 (
"Year" real,
"Date" text,
"Title" text,
"Format(s)" text,
"Award description(s)" text,
"Result(s)" text
) |
SELECT winner FROM table_name_21 WHERE score = "199 (-14)" AND date = "oct 31" | who won with a score of 199 (-14) on oct 31? | CREATE TABLE table_name_21 (winner VARCHAR, score VARCHAR, date VARCHAR) |
SELECT _number FROM table_22871239_5 WHERE date = "November 27" | What is the game number that was on November 27? | CREATE TABLE table_22871239_5 (_number VARCHAR, date VARCHAR) |
SELECT COUNT("Position") FROM table_21638 WHERE "Points 2" = '31' | How many teams finished with a 2nd points total of 31? | CREATE TABLE table_21638 (
"Position" real,
"Team" text,
"Played" real,
"Won" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Average 1" text,
"Points 2" real
) |
SELECT SUM(year) FROM table_name_6 WHERE city = "santiago de compostela" | How many years did he play in santiago de compostela? | CREATE TABLE table_name_6 (year INTEGER, city VARCHAR) |
SELECT score FROM table_22871239_5 WHERE team = "@ New Jersey" | What was the score when the team was @ New Jersey? | CREATE TABLE table_22871239_5 (score VARCHAR, team VARCHAR) |
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.hospitaldischargetime IS NULL AND patient.age BETWEEN 50 AND 59 | how many of the current patients are 50s? | 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
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime 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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
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
) |
SELECT SUM(finale) FROM table_name_64 WHERE chinese_title = "女人唔易做" | What is the Total Finale of 女人唔易做? | CREATE TABLE table_name_64 (finale INTEGER, chinese_title VARCHAR) |
SELECT COUNT(high_rebounds) FROM table_22871239_5 WHERE _number = 5 | How many high rebound catagories are listed for game number 5? | CREATE TABLE table_22871239_5 (high_rebounds VARCHAR, _number VARCHAR) |
SELECT COUNT("Builder") FROM table_25029 WHERE "Withdrawn" = '1951' AND "Number" = '42' | List the number of builders where the withdrawn is 1951 and number is 42. | CREATE TABLE table_25029 (
"Date" text,
"Builder" text,
"Type" text,
"Operator" text,
"Number" text,
"Withdrawn" text,
"Status" text
) |
SELECT MIN(premiere) FROM table_name_25 WHERE peak > 35 AND rank = 10 AND finale > 33 | What is the lowest Premiere peaking at more than 35 with a Rank of 10 and Finale greater than 33? | CREATE TABLE table_name_25 (premiere INTEGER, finale VARCHAR, peak VARCHAR, rank VARCHAR) |
SELECT opponent FROM table_22862203_2 WHERE record = "11-2" | Who were the opponents when the record was 11-2? | CREATE TABLE table_22862203_2 (opponent VARCHAR, record VARCHAR) |
SELECT "name" FROM table_204_806 WHERE "date" = 1455 | what is the only chateau built in 1455 ? | CREATE TABLE table_204_806 (
id number,
"name" text,
"date" text,
"condition" text,
"ownership\n/ access" text,
"notes" text
) |
SELECT chinese_title FROM table_name_60 WHERE hk_viewers = "2.07 million" AND premiere = 32 | What is the Chinese Title Premiering 32 with 2.07 million HK viewers? | CREATE TABLE table_name_60 (chinese_title VARCHAR, hk_viewers VARCHAR, premiere VARCHAR) |
SELECT record FROM table_22862203_2 WHERE opp_points = 50 | What were the records when the opponents had 50 points? | CREATE TABLE table_22862203_2 (record VARCHAR, opp_points VARCHAR) |
SELECT AVG("Week") FROM table_9546 WHERE "Opponent" = 'bye' | What week was the bye week? | CREATE TABLE table_9546 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) |
SELECT AVG(average) FROM table_name_70 WHERE english_title = "men in pain" AND finale < 33 | What is the Average of Men in Pain with a Finale of less than 33? | CREATE TABLE table_name_70 (average INTEGER, english_title VARCHAR, finale VARCHAR) |
SELECT terps_points FROM table_22862203_2 WHERE date = "Nov. 25/05" | What are the terps points for the nov. 25/05 game? | CREATE TABLE table_22862203_2 (terps_points VARCHAR, date VARCHAR) |
SELECT rider FROM table_name_67 WHERE grid < 16 AND laps = 21 AND manufacturer = "honda" AND time = "+10.583" | What is Rider, when Grid is less than 16, when Laps is 21, when Manufacturer is Honda, and when Time is +10.583? | CREATE TABLE table_name_67 (
rider VARCHAR,
time VARCHAR,
manufacturer VARCHAR,
grid VARCHAR,
laps VARCHAR
) |
SELECT chinese_title FROM table_name_3 WHERE average = 32 AND peak < 38 AND rank = 7 | What Chinese Title Ranking #7 has an Average of 32 and Peak less than 38? | CREATE TABLE table_name_3 (chinese_title VARCHAR, rank VARCHAR, average VARCHAR, peak VARCHAR) |
SELECT location FROM table_22862203_2 WHERE record = "9-1" | Where were games played when the record was 9-1? | CREATE TABLE table_22862203_2 (location VARCHAR, record VARCHAR) |
SELECT away_team FROM table_name_25 WHERE venue = "mcg" | Who was the away team at mcg? | CREATE TABLE table_name_25 (
away_team VARCHAR,
venue VARCHAR
) |
SELECT AVG(crowd) FROM table_name_9 WHERE venue = "corio oval" | What is the average crowd size for corio oval? | CREATE TABLE table_name_9 (crowd INTEGER, venue VARCHAR) |
SELECT MAX(terps_points) FROM table_22862203_2 WHERE opp_points = 53 | What is the highest number of terps points in games where the opponent made 53 points? | CREATE TABLE table_22862203_2 (terps_points INTEGER, opp_points VARCHAR) |
SELECT "player" FROM table_203_507 ORDER BY "\u03c3 points" DESC LIMIT 1 | the most points were scored by which player ? | CREATE TABLE table_203_507 (
id number,
"#" text,
"player" text,
"\u03c3 points" number,
"qual." number,
"final" number
) |
SELECT AVG(crowd) FROM table_name_32 WHERE venue = "brunswick street oval" | What is the average crowd size for Brunswick street oval? | CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR) |
SELECT location FROM table_22862203_2 WHERE date = "Jan. 16/06" | Where was the game on jan. 16/06 played? | CREATE TABLE table_22862203_2 (location VARCHAR, date VARCHAR) |
SELECT "Democratic Alternative" FROM table_66680 WHERE "Polling institute" = 'malta today' | What is the value of the Democratic Alternative for the poll released by Malta Today? | CREATE TABLE table_66680 (
"Date(s) Released" text,
"Polling institute" text,
"Nationalist" text,
"Labour" text,
"Democratic Alternative" text,
"Undecided/ No answer" text,
"Lead" text
) |
SELECT date FROM table_name_15 WHERE year > 1992 AND location = "murcia" AND score = "0-3" | What day did the team play in murcia with a score of 0-3 after 1992? | CREATE TABLE table_name_15 (date VARCHAR, score VARCHAR, year VARCHAR, location VARCHAR) |
SELECT COUNT(high_points) FROM table_22871239_9 WHERE record = "21-45" | Name the high points for 21-45 record | CREATE TABLE table_22871239_9 (high_points VARCHAR, record VARCHAR) |
SELECT demographic.admission_type, demographic.admittime FROM demographic WHERE demographic.name = "Ida Cook" | tell me the type and time of admission for patient ida cook. | 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 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
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT location FROM table_name_96 WHERE competition = "europe/africa zone, group i, round robin" AND result = "win" AND year < 1998 | What location did the team win before 1998 in the europe/africa zone, group i, round robin? | CREATE TABLE table_name_96 (location VARCHAR, year VARCHAR, competition VARCHAR, result VARCHAR) |
SELECT visitor FROM table_22871239_9 WHERE date = "March 23" | Name the visitor for march 23 | CREATE TABLE table_22871239_9 (visitor VARCHAR, date VARCHAR) |
SELECT "Head Linesman" FROM table_38531 WHERE "Date" = '1 february 2009' | Who is the head linesman of the game on 1 February 2009? | CREATE TABLE table_38531 (
"Game" text,
"Date" text,
"Referee" text,
"Umpire" text,
"Head Linesman" text,
"Line Judge" text,
"Field Judge" text,
"Back Judge" text
) |
SELECT date FROM table_name_55 WHERE score = "1-2" AND year = 1994 | What day did they record a score of 1-2 in 1994? | CREATE TABLE table_name_55 (date VARCHAR, score VARCHAR, year VARCHAR) |
SELECT high_rebounds FROM table_22871239_9 WHERE arena_attendance = "TD Garden 18,624" | Name the high rebounds for td garden 18,624 | CREATE TABLE table_22871239_9 (high_rebounds VARCHAR, arena_attendance VARCHAR) |
SELECT "Away team" FROM table_77279 WHERE "Ground" = 'waverley park' AND "Home team" = 'hawthorn' | Name the Away team which has a Ground of waverley park, and a Home team of hawthorn? | CREATE TABLE table_77279 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Local Time" text,
"AEDT Time" text
) |
SELECT AVG(matches) FROM table_name_91 WHERE country = "austria germany" AND rank < 5 | When the country is austria germany and the rank is kept under 5, what's the average number of matches played? | CREATE TABLE table_name_91 (matches INTEGER, country VARCHAR, rank VARCHAR) |
SELECT record FROM table_22871239_9 WHERE date = "March 16" | Name the record for march 16 | CREATE TABLE table_22871239_9 (record VARCHAR, date VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2174.0" AND lab.fluid = "Other Body Fluid" | what is the number of patients whose year of death is less than or equal to 2174 and lab test fluid is other body fluid? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
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
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT country FROM table_name_85 WHERE name = "pele" | Which country does the player pele belong to? | CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR) |
SELECT COUNT(_number) FROM table_22871239_8 WHERE score = "L 110-112" | Name the total number for score l 110-112 | CREATE TABLE table_22871239_8 (_number VARCHAR, score VARCHAR) |
SELECT status FROM table_name_73 WHERE notes = "n coelurosauria" | What is the Status of the dinosaur, whose notes are, 'n coelurosauria'? | CREATE TABLE table_name_73 (
status VARCHAR,
notes VARCHAR
) |
SELECT MIN(game) FROM table_name_94 WHERE attendance = 42 OFFSET 707 | What is the earliest game that had 42,707 attending? | CREATE TABLE table_name_94 (game INTEGER, attendance VARCHAR) |
SELECT team FROM table_22871239_8 WHERE score = "W 125-115" | Name the team for w 125-115 score | CREATE TABLE table_22871239_8 (team VARCHAR, score VARCHAR) |
SELECT schwaben FROM table_23224961_1 WHERE oberbayern_a = "Wacker Burghausen" | When wacker burghausen is the oberbayern a what is the schwaben? | CREATE TABLE table_23224961_1 (
schwaben VARCHAR,
oberbayern_a VARCHAR
) |
SELECT SUM(figures) FROM table_name_13 WHERE total < 117.78 | What is the sum of the figure skating scores whose total is less than 117.78? | CREATE TABLE table_name_13 (figures INTEGER, total INTEGER) |
SELECT high_assists FROM table_22871239_8 WHERE location_attendance = "American Airlines Center 19,585" | Name the high assists for american airlines center 19,585 | CREATE TABLE table_22871239_8 (high_assists VARCHAR, location_attendance VARCHAR) |
SELECT "9:30" FROM table_35273 WHERE "8:30" = 'the red green show' | What is the 9:30 program airing on the station that airs The Red Green Show at 8:30? | CREATE TABLE table_35273 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text,
"10:30" text
) |
SELECT MIN(total) FROM table_name_81 WHERE nation = "west germany" AND rank = 20 AND figures < 74.85 | What is the lowest total score among skaters from West Germany with a rank of 20 and a figure skating score less than 74.85? | CREATE TABLE table_name_81 (total INTEGER, figures VARCHAR, nation VARCHAR, rank VARCHAR) |
SELECT high_points FROM table_22871316_11 WHERE series = "3-2" | Who has the high points when 3-2 is the series? | CREATE TABLE table_22871316_11 (high_points VARCHAR, series VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.