answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT distance FROM table_name_26 WHERE type = "team time trial" | What is the distance for the team time trial? | CREATE TABLE table_name_26 (distance VARCHAR, type VARCHAR) |
SELECT version FROM table_2263152_1 WHERE security_issues = "98-004" AND distribution_mechanism = "Microsoft website" | With the distribution mechanism of Microsoft website and the security issues of 98-004, what is the version? | CREATE TABLE table_2263152_1 (version VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR) |
SELECT "Episodes" FROM table_64496 WHERE "TV Station" = 'ntv' AND "Japanese Title" = 'たったひとつの恋' | How many episodes when the tv station is ntv and the japanese title is ? | CREATE TABLE table_64496 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" real,
"Average Ratings" text
) |
SELECT course FROM table_name_99 WHERE date = "13 may" | What was the course on 13 may? | CREATE TABLE table_name_99 (course VARCHAR, date VARCHAR) |
SELECT COUNT(release_date) FROM table_2263152_1 WHERE security_issues = "99-025" AND distribution_mechanism = "Microsoft website" | If the security issues is 99-025 and the distribution mechanism is the Microsoft website, what is the release date total number? | CREATE TABLE table_2263152_1 (release_date VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR) |
SELECT MAX(bronze) FROM table_name_49 WHERE total > 1 AND rank > 1 AND gold > 1 | What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1? | CREATE TABLE table_name_49 (
bronze INTEGER,
gold VARCHAR,
total VARCHAR,
rank VARCHAR
) |
SELECT type FROM table_name_83 WHERE course = "rest day" AND date = "21 may" | What type has rest day as a course and was on 21 may? | CREATE TABLE table_name_83 (type VARCHAR, course VARCHAR, date VARCHAR) |
SELECT release_date FROM table_2263152_1 WHERE version = "1.5a" | With the version of 1.5a, what is the release date? | CREATE TABLE table_2263152_1 (release_date VARCHAR, version VARCHAR) |
SELECT place FROM table_name_2 WHERE event = "4000 m individual pursuit" | what is the place when the event is 4000 m individual pursuit? | CREATE TABLE table_name_2 (
place VARCHAR,
event VARCHAR
) |
SELECT race_name FROM table_name_3 WHERE winning_driver = "innes ireland" | What's the race name that the driver Innes Ireland won? | CREATE TABLE table_name_3 (race_name VARCHAR, winning_driver VARCHAR) |
SELECT version FROM table_2263152_1 WHERE features = "Service release" AND distribution_mechanism = "Windows NT 4.0 Option Pack Microsoft Office 97" | If the distribution mechanism is windows nt 4.0 option pack Microsoft office 97 and the features is service release, what is the version? | CREATE TABLE table_2263152_1 (version VARCHAR, features VARCHAR, distribution_mechanism VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "ABDOMINAL PAIN" | how many patients whose discharge location is snf and primary disease is abdominal pain? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob 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 score FROM table_name_48 WHERE visitor = "charlotte bobcats" | What's the score in the home game against the Charlotte Bobcats? | CREATE TABLE table_name_48 (score VARCHAR, visitor VARCHAR) |
SELECT distribution_mechanism FROM table_2263152_1 WHERE version = "1.5b" | If the version is 1.5b, what is the distribution mechanism? | CREATE TABLE table_2263152_1 (distribution_mechanism VARCHAR, version VARCHAR) |
SELECT event FROM table_name_37 WHERE res = "loss" AND opponent = "josh diekman" | Which event led to a loss against Josh Diekman? | CREATE TABLE table_name_37 (
event VARCHAR,
res VARCHAR,
opponent VARCHAR
) |
SELECT date FROM table_name_80 WHERE venue = "victoria park" | What was the date of the game played at Victoria Park? | CREATE TABLE table_name_80 (date VARCHAR, venue VARCHAR) |
SELECT COUNT(tournament_venue__city_) FROM table_22645714_5 WHERE tournament_winner = "Temple" | How many locations are listed for the winner Temple? | CREATE TABLE table_22645714_5 (tournament_venue__city_ VARCHAR, tournament_winner VARCHAR) |
SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN area ON course_offering.course_id = area.course_id WHERE area.area LIKE '%hardware%' | Who are the instructors for the hardware courses ? | CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location 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_course (
program_id int,
course_id int,
workload int,
category varchar
)
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 jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
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 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 offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE area (
course_id int,
area varchar
)
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 requirement (
requirement_id int,
requirement varchar,
college varchar
)
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
) |
SELECT home_team FROM table_name_71 WHERE crowd > 13 OFFSET 557 | Who was the home team when the crowd was larger than 13,557? | CREATE TABLE table_name_71 (home_team VARCHAR, crowd INTEGER) |
SELECT COUNT(tournament_venue__city_) FROM table_22645714_5 WHERE conference = "Big 12 conference" | How many locations are listed for the Big 12 Conference? | CREATE TABLE table_22645714_5 (tournament_venue__city_ VARCHAR, conference VARCHAR) |
SELECT AVG(total_population__2005_estimate_) FROM table_name_78 WHERE province = "west kalimantan (kalimantan barat)" AND area__km_2__ < 147 OFFSET 307.00 | Which Total population (2005 estimate) has a Province of west kalimantan (kalimantan barat), and an Area (km 2) smaller than 147,307.00? | CREATE TABLE table_name_78 (
total_population__2005_estimate_ INTEGER,
province VARCHAR,
area__km_2__ VARCHAR
) |
SELECT venue FROM table_name_57 WHERE away_team = "richmond" | Where did Richmond play as the away team? | CREATE TABLE table_name_57 (venue VARCHAR, away_team VARCHAR) |
SELECT regular_season_winner FROM table_22645714_5 WHERE tournament_winner = "Arkansas-Pine Bluff" | Who had the best regular season in the contest won by Arkansas-Pine Bluff? | CREATE TABLE table_22645714_5 (regular_season_winner VARCHAR, tournament_winner VARCHAR) |
SELECT "Date" FROM table_9277 WHERE "Attendance" > '342' AND "Opponent" = 'inverurie loco works' | What date was the game against inverurie loco works when more than 342 attend? | CREATE TABLE table_9277 (
"Date" text,
"Opponent" text,
"Score" text,
"Attendance" real,
"Report" text
) |
SELECT years_competed FROM table_name_97 WHERE nickname = "panthers" | Tell me the years competed for panthers | CREATE TABLE table_name_97 (years_competed VARCHAR, nickname VARCHAR) |
SELECT age_at_appointment FROM table_2263674_1 WHERE chinese_name = "孫明揚" | How old was the official with Chinese name 孫明揚? | CREATE TABLE table_2263674_1 (age_at_appointment VARCHAR, chinese_name VARCHAR) |
SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS MayRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsIn2013, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND Posts.CreationDate > '2013-01-01' GROUP BY TagName) AS rate INNER JOIN (SELECT COUNT(PostId) AS Num, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId GROUP BY TagName HAVING COUNT(PostId) < 2000) AS num ON rate.TagName = num.TagName ORDER BY num.Num DESC | most popular tags in 2013. | 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 VoteTypes (
Id number,
Name text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment 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 Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name 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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE CloseReasonTypes (
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 PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
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 ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description 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 ReviewTaskTypes (
Id number,
Name text,
Description 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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
) |
SELECT SUM(release_date) FROM table_name_32 WHERE media = "cd" AND country = "uk" AND music_label = "eg records" | What is the release date of the CD by EG Records in the UK? | CREATE TABLE table_name_32 (release_date INTEGER, music_label VARCHAR, media VARCHAR, country VARCHAR) |
SELECT romanised_name FROM table_2263674_1 WHERE chinese_name = "梁愛詩" | What's 梁愛詩's romanised name? | CREATE TABLE table_2263674_1 (romanised_name VARCHAR, chinese_name VARCHAR) |
SELECT region_4_release FROM table_name_99 WHERE region_2_release = "july 20, 2009" | What is the region 4 release that has july 20, 2009 as the region 2? | CREATE TABLE table_name_99 (
region_4_release VARCHAR,
region_2_release VARCHAR
) |
SELECT AVG(release_date) FROM table_name_46 WHERE music_label = "editions eg" AND country = "netherlands" | What is the release date by Editions EG in the Netherlands? | CREATE TABLE table_name_46 (release_date INTEGER, music_label VARCHAR, country VARCHAR) |
SELECT romanised_name FROM table_2263674_1 WHERE portfolio = "Secretary for Health, Welfare and Food" | What's the romanised name of the official who was Secretary for health, welfare and food? | CREATE TABLE table_2263674_1 (romanised_name VARCHAR, portfolio VARCHAR) |
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'normal saline administration - fluid bolus (250-1000mls)' AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-3 year')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-3 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.drugstarttime AND DATETIME(t2.drugstarttime) BETWEEN DATETIME(t1.treatmenttime) AND DATETIME(t1.treatmenttime, '+2 month') GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 5 | what were the five most frequently prescribed drugs to patients who previously received normal saline administration - fluid bolus (250-1000mls) within 2 months until 3 years ago? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 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 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
) |
SELECT music_label FROM table_name_36 WHERE catalogue_number = "enocd 10" | What is the music label with the catalogue number enocd 10? | CREATE TABLE table_name_36 (music_label VARCHAR, catalogue_number VARCHAR) |
SELECT portfolio FROM table_2263674_1 WHERE romanised_name = "Anthony Leung Kam-chung" | What was Anthony Leung Kam-Chung previous position? | CREATE TABLE table_2263674_1 (portfolio VARCHAR, romanised_name VARCHAR) |
SELECT "Country" FROM table_62319 WHERE "Class / type" = 'three masted full rigged ship' | What is Country, when Class / Type is 'Three masted full rigged ship'? | CREATE TABLE table_62319 (
"Country" text,
"Builder" text,
"Location" text,
"Ship" text,
"Class / type" text
) |
SELECT AVG(release_date) FROM table_name_86 WHERE music_label = "virgin" | What is the release date by Virgin? | CREATE TABLE table_name_86 (release_date INTEGER, music_label VARCHAR) |
SELECT high_rebounds FROM table_22654073_13 WHERE date = "May 11" | List all high rebound entries from May 11. | CREATE TABLE table_22654073_13 (high_rebounds VARCHAR, date VARCHAR) |
SELECT "Regiment" FROM table_31158 WHERE "County" = 'Arkansas' | which regimen was in the arkansas county | CREATE TABLE table_31158 (
"Division" text,
"Brigade" text,
"Regiment" text,
"Colonel" text,
"County" text
) |
SELECT team FROM table_name_49 WHERE coach = "yuriy hruznov" | Which team has Yuriy Hruznov as coach? | CREATE TABLE table_name_49 (team VARCHAR, coach VARCHAR) |
SELECT COUNT(game) FROM table_22654073_13 WHERE date = "May 1" | How many games were there on May 1? | CREATE TABLE table_22654073_13 (game VARCHAR, date VARCHAR) |
SELECT cname FROM college ORDER BY enr DESC LIMIT 3 | What are the names of schools with the top 3 largest size? | CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
) |
SELECT location FROM table_name_38 WHERE team = "dynamo-2" | Where is Dynamo-2 located? | CREATE TABLE table_name_38 (location VARCHAR, team VARCHAR) |
SELECT high_assists FROM table_22654073_13 WHERE series = "2-3" | List all high assists in series 2-3. | CREATE TABLE table_22654073_13 (high_assists VARCHAR, series VARCHAR) |
SELECT AVG("Games") FROM table_45863 WHERE "Player" = 'robert hock' AND "Goals" < '24' | What is the average Games, when Player is Robert Hock, and when Goals is less than 24? | CREATE TABLE table_45863 (
"Player" text,
"Club" text,
"Games" real,
"Goals" real,
"Assists" real,
"Points" real
) |
SELECT location FROM table_name_81 WHERE team = "shakhtar-2" | Where is Shakhtar-2 located? | CREATE TABLE table_name_81 (location VARCHAR, team VARCHAR) |
SELECT COUNT(game) FROM table_22654073_13 WHERE date = "May 11" | How many games were played on May 11? | CREATE TABLE table_22654073_13 (game VARCHAR, date VARCHAR) |
SELECT height FROM table_20871703_1 WHERE position = "OT" | What is the height if ot is the position? | CREATE TABLE table_20871703_1 (
height VARCHAR,
position VARCHAR
) |
SELECT AVG(1 AS st_prize__) AS $__ FROM table_name_71 WHERE score = "207 (-9)" AND tournament = "gte northwest classic" | For the gte northwest classic with the score of 207 (-9), what is the average 1st prize ($) | CREATE TABLE table_name_71 (score VARCHAR, tournament VARCHAR) |
SELECT score FROM table_22654073_7 WHERE team = "Chicago Bulls" | Name the score for chicago bulls | CREATE TABLE table_22654073_7 (score VARCHAR, team 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_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEW YORK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LAS VEGAS' AND flight.to_airport = AIRPORT_SERVICE_0.airport_code AND flight.from_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'TW' | is there a TW flight from LAS VEGAS to NEW YORK | 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 dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE compartment_class (
compartment varchar,
class_type 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 code_description (
code varchar,
description text
)
CREATE TABLE state (
state_code text,
state_name text,
country_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 airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
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 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 food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
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
) |
SELECT COUNT(1 AS st_prize__) AS $__ FROM table_name_56 WHERE date = "sep 18" | For sep 18 what is the total number of 1 prize ($) | CREATE TABLE table_name_56 (date VARCHAR) |
SELECT location_attendance FROM table_22654073_7 WHERE record = "22-8" | Name the location attendance for 22-8 | CREATE TABLE table_22654073_7 (location_attendance VARCHAR, record VARCHAR) |
SELECT release_date FROM table_name_59 WHERE required_os = "windows" AND type = "2d" AND developer_s_ = "zeonix" | Which Release date has a Required OS of windows, a Type of 2d, and a Developer(s) of zeonix? | CREATE TABLE table_name_59 (
release_date VARCHAR,
developer_s_ VARCHAR,
required_os VARCHAR,
type VARCHAR
) |
SELECT winner FROM table_name_99 WHERE location = "virginia" | What is the winner for Virginia? | CREATE TABLE table_name_99 (winner VARCHAR, location VARCHAR) |
SELECT COUNT(high_points) FROM table_22654073_7 WHERE high_rebounds = "Mo Williams , LeBron James , J.J. Hickson (6)" | Name the high points for mo williams , lebron james , j.j. hickson (6) | CREATE TABLE table_22654073_7 (high_points VARCHAR, high_rebounds VARCHAR) |
SELECT * FROM Posts | All the distinct days on which I created posts. | CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description 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 PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
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 PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
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 CloseReasonTypes (
Id number,
Name text,
Description 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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense 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 ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId 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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
) |
SELECT date FROM table_name_81 WHERE tournament = "gte north classic" | On what date was the gte north classic tournament? | CREATE TABLE table_name_81 (date VARCHAR, tournament VARCHAR) |
SELECT high_assists FROM table_22654073_7 WHERE date = "December 13" | Name the high assists for december 13 | CREATE TABLE table_22654073_7 (high_assists VARCHAR, date VARCHAR) |
SELECT College_Location, COUNT(College_Location) FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID GROUP BY College_Location ORDER BY COUNT(College_Location) DESC | Return a bar chart showing how many members have visited for each college location, show from high to low by the y axis. | CREATE TABLE member (
Member_ID int,
Name text,
Country text,
College_ID int
)
CREATE TABLE round (
Round_ID int,
Member_ID int,
Decoration_Theme text,
Rank_in_Round int
)
CREATE TABLE college (
College_ID int,
Name text,
Leader_Name text,
College_Location text
) |
SELECT home_team FROM table_name_81 WHERE venue = "princes park" | What home team plays at princes park? | CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR) |
SELECT august_21_22 FROM table_22651355_3 WHERE june_10_11 = "June 11, 1983" | What value can you find under the column "august 21-22" and the row of June 11, 1983? | CREATE TABLE table_22651355_3 (august_21_22 VARCHAR, june_10_11 VARCHAR) |
SELECT score FROM table_name_38 WHERE to_par > 7 AND place = "t4" AND player = "bob rosburg" | What is Score, when To Par is greater than 7, when Place is 'T4', and when Player is 'Bob Rosburg'? | CREATE TABLE table_name_38 (
score VARCHAR,
player VARCHAR,
to_par VARCHAR,
place VARCHAR
) |
SELECT venue FROM table_name_78 WHERE home_team = "fitzroy" | Where does the home team fitzroy play? | CREATE TABLE table_name_78 (venue VARCHAR, home_team VARCHAR) |
SELECT location_attendance FROM table_22654073_10 WHERE record = "51-15" | What was the location and attendance for the game against the team with a 51-15 record with the Cavaliers? | CREATE TABLE table_22654073_10 (location_attendance VARCHAR, record VARCHAR) |
SELECT votedby FROM hall_of_fame WHERE yearid = "2000" GROUP BY votedby ORDER BY COUNT(*) DESC LIMIT 1 | Which is the most popular voting method for Hall of Fame in 2000? | CREATE TABLE player (
player_id text,
birth_year text,
birth_month text,
birth_day text,
birth_country text,
birth_state text,
birth_city text,
death_year text,
death_month text,
death_day text,
death_country text,
death_state text,
death_city text,
name_first text,
name_last text,
name_given text,
weight text
)
CREATE TABLE player_award_vote (
award_id text,
year number,
league_id text,
player_id text,
points_won number,
points_max number,
votes_first text
)
CREATE TABLE salary (
year number,
team_id text,
league_id text,
player_id text,
salary number
)
CREATE TABLE hall_of_fame (
player_id text,
yearid number,
votedby text,
ballots text,
needed text,
votes text,
inducted text,
category text,
needed_note text
)
CREATE TABLE player_award (
player_id text,
award_id text,
year number,
league_id text,
tie text,
notes text
) |
SELECT extra FROM table_name_30 WHERE result = "2nd" AND year < 2005 | Which extra resulted in 2nd before 2005? | CREATE TABLE table_name_30 (extra VARCHAR, result VARCHAR, year VARCHAR) |
SELECT COUNT(score) FROM table_22654073_8 WHERE record = "27-9" | How many scores are associated with a record of 27-9? | CREATE TABLE table_22654073_8 (score VARCHAR, record VARCHAR) |
SELECT partner FROM table_26309085_1 WHERE year = 1989 | Who was his partner in 1989? | CREATE TABLE table_26309085_1 (
partner VARCHAR,
year VARCHAR
) |
SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005 | Which venue resulted in 2nd before 2005? | CREATE TABLE table_name_27 (venue VARCHAR, result VARCHAR, year VARCHAR) |
SELECT COUNT(game) FROM table_22654073_8 WHERE record = "29-10" | How many games are associated with a record of 29-10? | CREATE TABLE table_22654073_8 (game VARCHAR, record VARCHAR) |
SELECT 100 AS _yr FROM table_21350772_2 WHERE gas_name = "Carbon dioxide" | What is the 100 year for Carbon Dioxide? | CREATE TABLE table_21350772_2 (
gas_name VARCHAR
) |
SELECT attendance FROM table_name_22 WHERE loss = "wakefield (7–10)" | What was the attendance at the Red Sox game that had a loss of Wakefield (7–10)? | CREATE TABLE table_name_22 (attendance VARCHAR, loss VARCHAR) |
SELECT team FROM table_22654073_6 WHERE record = "3-2" | Name the team for record 3-2 | CREATE TABLE table_22654073_6 (team VARCHAR, record VARCHAR) |
SELECT investor_id, AVG(amount_of_transaction) FROM transactions GROUP BY investor_id | Show the average amount of transactions for different investors. | CREATE TABLE transactions (
transaction_id number,
investor_id number,
transaction_type_code text,
date_of_transaction time,
amount_of_transaction number,
share_count text,
other_details text
)
CREATE TABLE lots (
lot_id number,
investor_id number,
lot_details text
)
CREATE TABLE transactions_lots (
transaction_id number,
lot_id number
)
CREATE TABLE purchases (
purchase_transaction_id number,
purchase_details text
)
CREATE TABLE sales (
sales_transaction_id number,
sales_details text
)
CREATE TABLE investors (
investor_id number,
investor_details text
)
CREATE TABLE ref_transaction_types (
transaction_type_code text,
transaction_type_description text
) |
SELECT loss FROM table_name_74 WHERE record = "77–67" | What was the loss of the Red Sox game when they had a record of 77–67? | CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR) |
SELECT date FROM table_22654073_6 WHERE high_points = "LeBron James , Mo Williams (21)" | Name the date for lebron james , mo williams (21) | CREATE TABLE table_22654073_6 (date VARCHAR, high_points VARCHAR) |
SELECT 1997 FROM table_name_99 WHERE 1999 = "1r" AND 1995 = "3r" AND 1993 = "1r" | What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R? | CREATE TABLE table_name_99 (
Id VARCHAR
) |
SELECT tournament FROM table_name_36 WHERE runner_up = "pat cash" | Which Tournament has Pat Cash as a runner-up? | CREATE TABLE table_name_36 (tournament VARCHAR, runner_up VARCHAR) |
SELECT high_points FROM table_22654073_6 WHERE record = "9-4" | Name the high points for record 9-4 | CREATE TABLE table_22654073_6 (high_points VARCHAR, record VARCHAR) |
SELECT COUNT(decile) FROM table_name_90 WHERE roll = 251 | tell me the total number of decile with a roll showing 251. | CREATE TABLE table_name_90 (
decile VARCHAR,
roll VARCHAR
) |
SELECT winner FROM table_name_32 WHERE third_place = "mikael pernfors" AND tournament = "hong kong" | Who is the winner for the Tournament in Hong Kong with a third place winner named Mikael Pernfors? | CREATE TABLE table_name_32 (winner VARCHAR, third_place VARCHAR, tournament VARCHAR) |
SELECT COUNT(date) FROM table_22654073_6 WHERE score = "L 85–86 (OT)" | Name the total number of date for l 85–86 (ot) | CREATE TABLE table_22654073_6 (date VARCHAR, score VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND prescriptions.drug = "Clindamycin" | provide the number of patients whose admission location is clinic referral/premature and drug name is clindamycin? | CREATE TABLE procedures (
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 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
) |
SELECT nationality FROM table_name_75 WHERE event = "10000 m" | What was the nationality of the athlete that ran the 10000 m event? | CREATE TABLE table_name_75 (nationality VARCHAR, event VARCHAR) |
SELECT COUNT(network) FROM table_22654139_2 WHERE year = 2007 | Name the network for 2007 total | CREATE TABLE table_22654139_2 (network VARCHAR, year VARCHAR) |
SELECT COUNT(lost) FROM table_15319684_1 WHERE against = 46 | Name the number of lost for against being 46 | CREATE TABLE table_15319684_1 (
lost VARCHAR,
against VARCHAR
) |
SELECT COUNT(points) FROM table_name_60 WHERE wins < 21 AND club = "palamós cf" AND goals_for < 40 | What is the number of points of palamós cf, which has less than 21 wins and less than 40 goals? | CREATE TABLE table_name_60 (points VARCHAR, goals_for VARCHAR, wins VARCHAR, club VARCHAR) |
SELECT s_analyst FROM table_22654139_2 | Name the analysts | CREATE TABLE table_22654139_2 (s_analyst VARCHAR) |
SELECT representative FROM table_29486189_4 WHERE residence = "Willowick" | which representative is from willowick | CREATE TABLE table_29486189_4 (
representative VARCHAR,
residence VARCHAR
) |
SELECT club FROM table_name_25 WHERE goals_against > 46 AND wins = 10 AND goal_difference = -24 | Which club has more than 46 goals, 10 wins, and a goal difference of -24? | CREATE TABLE table_name_25 (club VARCHAR, goal_difference VARCHAR, goals_against VARCHAR, wins VARCHAR) |
SELECT result FROM table_22656187_9 WHERE partnering = "Frederica Piedade" | What was the result for a partnering of Frederica Piedade? | CREATE TABLE table_22656187_9 (result VARCHAR, partnering VARCHAR) |
SELECT _number___county FROM table_name_8 WHERE location = "fountain city" | What county is Fountain City? | CREATE TABLE table_name_8 (
_number___county VARCHAR,
location VARCHAR
) |
SELECT away_team AS score FROM table_name_11 WHERE away_team = "richmond" | What is Richmond score as the away team? | CREATE TABLE table_name_11 (away_team VARCHAR) |
SELECT round FROM table_22656187_9 WHERE w_l = "Loss" AND edition = "2012 Fed Cup Europe/Africa Group I" | Which round has a win-loss result of loss and an edition of 2012 Fed Cup Europe/Africa Group I? | CREATE TABLE table_22656187_9 (round VARCHAR, w_l VARCHAR, edition VARCHAR) |
SELECT to_par FROM table_name_92 WHERE player = "tom kite" | What to par has tom kite as the player? | CREATE TABLE table_name_92 (
to_par VARCHAR,
player VARCHAR
) |
SELECT pole_position FROM table_name_97 WHERE round < 2 | Tell me the pole position with round less than 2 | CREATE TABLE table_name_97 (pole_position VARCHAR, round INTEGER) |
SELECT manufacturer FROM table_2266230_1 WHERE driver = "Cale Yarborough" AND year = "1984" | Name the manufacturer for cale yarborough for 1984 | CREATE TABLE table_2266230_1 (manufacturer VARCHAR, driver VARCHAR, year VARCHAR) |
SELECT AVG("Bronze") FROM table_63534 WHERE "Silver" = '0' AND "Rank" = '17' AND "Gold" < '1' | What average bronze has 0 as the silver, 17 as the rank, and a gold less than 1? | CREATE TABLE table_63534 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT fastest_lap FROM table_name_18 WHERE round = 16 | I want the fastest lap for round of 16 | CREATE TABLE table_name_18 (fastest_lap VARCHAR, round VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.