answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT MAX(households) FROM table_21310575_2 | Name the most households | CREATE TABLE table_21310575_2 (households INTEGER) |
SELECT "Location/Attendance" FROM table_66089 WHERE "Score" = 'w 106-81' | What is the location for the game with a score of w 106-81? | CREATE TABLE table_66089 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) |
SELECT prod_code FROM table_23117208_4 WHERE viewers__millions_ = "4.92" | Name the production code for 4.92 million viewers | CREATE TABLE table_23117208_4 (prod_code VARCHAR, viewers__millions_ VARCHAR) |
SELECT COUNT(attendance) FROM table_21377473_7 WHERE score = "0 - 1 Barbiero 78'" | When 0 - 1 barbiero 78' is the score how many measurements of attendance are there? | CREATE TABLE table_21377473_7 (attendance VARCHAR, score VARCHAR) |
SELECT MIN(area__km²_) FROM table_name_55 WHERE population__2010_ = 7 OFFSET 616 | Where is the lowest area with a population of 7,616? | CREATE TABLE table_name_55 (
area__km²_ INTEGER,
population__2010_ VARCHAR
) |
SELECT MIN(no_in_season) FROM table_23117208_4 WHERE written_by = "Jessica Ball" | Name the least number in season for jessica ball | CREATE TABLE table_23117208_4 (no_in_season INTEGER, written_by VARCHAR) |
SELECT stadium FROM table_21377473_7 WHERE score = "3 - 1 Hughes 64'" | When 3 - 1 hughes 64' is the score what is the stadium? | CREATE TABLE table_21377473_7 (stadium VARCHAR, score VARCHAR) |
SELECT COUNT("Rank (#)") FROM table_16588 WHERE "Viewers (m)" = '5.96' | What is the number of rank with the viewership of 5.96 million? | CREATE TABLE table_16588 (
"#" real,
"Episode" text,
"Air Date" text,
"Timeslot (EST)" text,
"Season" text,
"Rating" text,
"Share" real,
"18\u201349" text,
"Viewers (m)" text,
"Rank (#)" text
) |
SELECT MAX(flaps) FROM table_23128286_1 WHERE points = 109 | How many flaps did he have when he had 109 points? | CREATE TABLE table_23128286_1 (flaps INTEGER, points VARCHAR) |
SELECT stadium FROM table_21377473_7 WHERE score = "1 - 1 Leckie 90+3'" | When 1 - 1 leckie 90+3' is the score what is the stadium? | CREATE TABLE table_21377473_7 (stadium VARCHAR, score VARCHAR) |
SELECT "Exited" FROM table_6104 WHERE "Finished" = '12th' | What day did the person who finished in 12th place leave on? | CREATE TABLE table_6104 (
"Celebrity" text,
"Known for" text,
"Entered" text,
"Exited" text,
"Finished" text
) |
SELECT COUNT(wins) FROM table_23128286_1 WHERE team_name = "Carlin Motorsport" | How many wins did he have with carlin motorsport? | CREATE TABLE table_23128286_1 (wins VARCHAR, team_name VARCHAR) |
SELECT date FROM table_21373283_3 WHERE pole_position = "Adriano Buzaid" | What date did Adriano Buzaid have the pole position? | CREATE TABLE table_21373283_3 (date VARCHAR, pole_position VARCHAR) |
SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989 | Show all publishers which do not have a book in 1989. | CREATE TABLE book_club (
publisher VARCHAR,
YEAR VARCHAR
) |
SELECT MAX(races) FROM table_23128286_1 | What was the most races he had in a season? | CREATE TABLE table_23128286_1 (races INTEGER) |
SELECT winning_team FROM table_21373283_3 WHERE pole_position = "Max Chilton" AND circuit = "Oulton Park" | What is the winning team at Oulton Park when Max Chilton held the pole position? | CREATE TABLE table_21373283_3 (winning_team VARCHAR, pole_position VARCHAR, circuit VARCHAR) |
SELECT AVG(overall) FROM table_name_47 WHERE position = "defensive tackle" AND round = 4 AND pick__number < 36 | Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average? | CREATE TABLE table_name_47 (
overall INTEGER,
pick__number VARCHAR,
position VARCHAR,
round VARCHAR
) |
SELECT sets_w_l FROM table_23133482_1 WHERE player = "Ken Rosewall" | What are Ken Rosewall's sets w-l? | CREATE TABLE table_23133482_1 (sets_w_l VARCHAR, player VARCHAR) |
SELECT date FROM table_21373283_3 WHERE pole_position = "Renger van der Zande" AND circuit = "Donington Park" | What date did Renger Van Der Zande have the pole position at Donington Park? | CREATE TABLE table_21373283_3 (date VARCHAR, pole_position VARCHAR, circuit VARCHAR) |
SELECT record FROM table_name_24 WHERE visitor = "trail blazers" | What was the Record of the game in which the Trail Blazers was the visiting team? | CREATE TABLE table_name_24 (
record VARCHAR,
visitor VARCHAR
) |
SELECT games_w_l FROM table_23133482_1 WHERE player = "Arthur Ashe" | What are Arthur Ashe's games w-l? | CREATE TABLE table_23133482_1 (games_w_l VARCHAR, player VARCHAR) |
SELECT regular_season FROM table_2139111_1 WHERE year = 2005 | Name the regular season for 2005 | CREATE TABLE table_2139111_1 (regular_season VARCHAR, year VARCHAR) |
SELECT date FROM table_name_99 WHERE home = "montreal canadiens" AND points > 9 AND decision = "price" | Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price? | CREATE TABLE table_name_99 (
date VARCHAR,
decision VARCHAR,
home VARCHAR,
points VARCHAR
) |
SELECT games_w_l FROM table_23145653_1 WHERE player = "Cliff Richey" | Name the games w-1 for cliff richey | CREATE TABLE table_23145653_1 (games_w_l VARCHAR, player VARCHAR) |
SELECT COUNT(ministries) FROM table_21422977_1 WHERE nº = 3 | When nº is 3, what are all the ministires? | CREATE TABLE table_21422977_1 (ministries VARCHAR, nº VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Scott Baron%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | What classes next semester are being taught by Dr. Scott Baron ? | CREATE TABLE semester (
semester_id int,
semester varchar,
year 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 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 (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id 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 requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
) |
SELECT COUNT(stage) FROM table_23157997_13 WHERE general_classification = "Rory Sutherland" | What stage number had the general classification Rory Sutherland? | CREATE TABLE table_23157997_13 (stage VARCHAR, general_classification VARCHAR) |
SELECT coalition_parties FROM table_21422977_1 WHERE nº = 3 | When nº is 3, what are all the coaliton parties? | CREATE TABLE table_21422977_1 (coalition_parties VARCHAR, nº VARCHAR) |
SELECT DISTINCT label FROM Albums | What are all the labels? | CREATE TABLE Albums (
label VARCHAR
) |
SELECT youth_classification FROM table_23157997_13 WHERE mountains_classification = "Kenneth Hanson" AND winner = "Lucas Sebastian Haedo" | Who was the Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner? | CREATE TABLE table_23157997_13 (youth_classification VARCHAR, mountains_classification VARCHAR, winner VARCHAR) |
SELECT MAX(ministries) FROM table_21422977_1 | What is the most amount of ministries? | CREATE TABLE table_21422977_1 (ministries INTEGER) |
SELECT driver FROM table_name_72 WHERE points = 26 | Which river had 26 points? | CREATE TABLE table_name_72 (
driver VARCHAR,
points VARCHAR
) |
SELECT winner FROM table_23157997_13 WHERE mountains_classification = "Tom Zirbel" AND points_classification = "Thomas Soladay" | Who won the race with Tom Zirbel as Mountains Classification and Thomas Soladay as Points Classification? | CREATE TABLE table_23157997_13 (winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR) |
SELECT ministries FROM table_21422977_2 WHERE duration = "4 years, 4 days (1,465 days)" | What is the ministries number when duration is 4 years, 4 days (1,465 days)? | CREATE TABLE table_21422977_2 (ministries VARCHAR, duration VARCHAR) |
SELECT "Issue Date" FROM table_70184 WHERE "Download" = 'no available' AND "Artist" = 'eric prydz' | What's the Issue Date for an Eric Prydz song with a no available Download information? | CREATE TABLE table_70184 (
"Week" real,
"Issue Date" text,
"Artist" text,
"Single" text,
"Download" text,
"Title" text
) |
SELECT mountains_classification FROM table_23157997_13 WHERE youth_classification = "Nick Frey" AND points_classification = "Tom Zirbel" | Who was Mountains Classification in the race with Nick Frey as Youth Classification and Tom Zirbel as Points Classification? | CREATE TABLE table_23157997_13 (mountains_classification VARCHAR, youth_classification VARCHAR, points_classification VARCHAR) |
SELECT ministers FROM table_21422977_2 WHERE cabinet__nickname_ = "Steingrímur Hermannsson III" | How many ministers are there when the cabinet (nickname) is Steingrímur Hermannsson III? | CREATE TABLE table_21422977_2 (ministers VARCHAR, cabinet__nickname_ VARCHAR) |
SELECT state_province_county, COUNT(*) FROM addresses GROUP BY state_province_county | Show each state and the number of addresses in each state. | CREATE TABLE customer_orders (
order_id number,
customer_id number,
order_date time,
order_status_code text
)
CREATE TABLE addresses (
address_id number,
line_1_number_building text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE customers (
customer_id number,
payment_method_code text,
customer_number text,
customer_name text,
customer_address text,
customer_phone text,
customer_email text
)
CREATE TABLE order_items (
order_item_id number,
order_id number,
product_id number,
order_quantity text
)
CREATE TABLE customer_address_history (
customer_id number,
address_id number,
date_from time,
date_to time
)
CREATE TABLE products (
product_id number,
product_type_code text,
product_name text,
product_price number
)
CREATE TABLE contacts (
contact_id number,
customer_id number,
gender text,
first_name text,
last_name text,
contact_phone text
) |
SELECT COUNT(mountains_classification) FROM table_23157997_13 WHERE youth_classification = "Mike Northey" | How many Mountains Classifications were in the race with Mike Northey as Youth Classification? | CREATE TABLE table_23157997_13 (mountains_classification VARCHAR, youth_classification VARCHAR) |
SELECT duration FROM table_21422977_2 WHERE nº = 33 | What is the duration for no 33? | CREATE TABLE table_21422977_2 (duration VARCHAR, nº VARCHAR) |
SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-153198')) AND DATETIME(allergy.allergytime) >= DATETIME(CURRENT_TIME(), '-119 month') | what were the allergies that patient 006-153198 has had since 119 months ago? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime 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 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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
) |
SELECT COUNT(foundation) FROM table_23143607_1 WHERE television_channels = "Canal Nou Canal Nou Dos Canal Nou 24 TVVi" | How many foundation dates were there when the television channels is canal nou canal nou dos canal nou 24 tvvi? | CREATE TABLE table_23143607_1 (foundation VARCHAR, television_channels VARCHAR) |
SELECT episodes_used FROM table_2144389_9 WHERE _number = 1 | When 1 is the number what episodes were used? | CREATE TABLE table_2144389_9 (episodes_used VARCHAR, _number VARCHAR) |
SELECT SUM(december) FROM table_name_59 WHERE opponent = "vancouver canucks" AND game < 33 | What is the sum for December against the vancouver canucks earlier than game 33? | CREATE TABLE table_name_59 (
december INTEGER,
opponent VARCHAR,
game VARCHAR
) |
SELECT COUNT(television_channels) FROM table_23143607_1 WHERE radio_stations = "Radio Nou Si Radio Radio Nou Música" | If the radio stations is radio nou si radio radio nou música; what were the total number of television channels? | CREATE TABLE table_23143607_1 (television_channels VARCHAR, radio_stations VARCHAR) |
SELECT japanese_translation FROM table_2144389_9 WHERE japanese_title = "七色アーチ" | When 七色アーチ is the japanese title what is the japanese translation? | CREATE TABLE table_2144389_9 (japanese_translation VARCHAR, japanese_title 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, state WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND date_day.day_number = 2 AND date_day.month_number = 8 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 = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND state.state_code = CITY_0.state_code AND state.state_name = 'state_name0' | list the flights arriving in BALTIMORE from DENVER on 8 3 | CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE days (
days_code varchar,
day_name 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 (
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 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 date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
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 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 ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare 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 airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant 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 month (
month_number int,
month_name text
) |
SELECT COUNT(television_channels) FROM table_23143607_1 WHERE radio_stations = "Onda Madrid" | What is the total number of television channels when one of the radio stations is onda madrid? | CREATE TABLE table_23143607_1 (television_channels VARCHAR, radio_stations VARCHAR) |
SELECT japanese_title FROM table_2144389_9 WHERE _number = 5 | When 5 is the number what is the japanese title? | CREATE TABLE table_2144389_9 (japanese_title VARCHAR, _number VARCHAR) |
SELECT AVG(cuts_made) FROM table_name_96 WHERE wins = 2 AND top_5 < 7 | How many vuts made for a player with 2 wins and under 7 top 5s? | CREATE TABLE table_name_96 (
cuts_made INTEGER,
wins VARCHAR,
top_5 VARCHAR
) |
SELECT radio_stations FROM table_23143607_1 WHERE organization = "Ente Público Radio Televisión Madrid (EPRTVM)" | Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)? | CREATE TABLE table_23143607_1 (radio_stations VARCHAR, organization VARCHAR) |
SELECT COUNT(japanese_title) FROM table_2144389_9 WHERE vocalist = "Momoiro Clover Z" | When momoiro clover z is the vocalist how many japanese titles are there? | CREATE TABLE table_2144389_9 (japanese_title VARCHAR, vocalist VARCHAR) |
SELECT result FROM table_name_47 WHERE opponent = "brechin city" AND attendance = 656 | When the opponent was Brechin City and the attendance was 656, what was the Result? | CREATE TABLE table_name_47 (
result VARCHAR,
opponent VARCHAR,
attendance VARCHAR
) |
SELECT autonomous_community FROM table_23143607_1 WHERE television_channels = "TPA TPA2 RTPA Internacional" | What is the autonomous community with television channels tpa tpa2 rtpa internacional? | CREATE TABLE table_23143607_1 (autonomous_community VARCHAR, television_channels VARCHAR) |
SELECT japanese_translation FROM table_2144389_9 WHERE vocalist = "Momoiro Clover Z" | When momoiro clover z is the vocalist what is the japanese translation? | CREATE TABLE table_2144389_9 (japanese_translation VARCHAR, vocalist VARCHAR) |
SELECT COUNT(*) AS ActivePosters5 FROM Posts AS p WHERE p.Score >= 0 AND DATEDIFF(day, p.CreationDate, GETDATE()) <= 30 GROUP BY p.OwnerUserId HAVING COUNT(p.Id) >= 5 | Monthly active users in StackOverflow / StackExchange. | CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount 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
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
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 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 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 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 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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId 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 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
) |
SELECT COUNT(villains) FROM table_23170118_2 WHERE episode_number = "3 (13)" | How many villains were in episode 3 (13)? | CREATE TABLE table_23170118_2 (villains VARCHAR, episode_number VARCHAR) |
SELECT vocalist FROM table_2144389_9 WHERE rōmaji = "Pokémon ieru kana? BW" | When pokémon ieru kana? bw is the romaji who is the vocalist? | CREATE TABLE table_2144389_9 (vocalist VARCHAR, rōmaji VARCHAR) |
SELECT AVG("Population Estimate 2005") FROM table_11224 WHERE "Area (km 2 )" = '3,034.08' | what is the population estimate 2005 for the with the area (km2) 3,034.08? | CREATE TABLE table_11224 (
"Name" text,
"Area (km 2 )" real,
"Population Estimate 2005" real,
"Population Census 2010" real,
"Capital" text
) |
SELECT title FROM table_23170118_2 WHERE villains = "Reg Lacey (AKA Mr. B)" | What was the title of the episode where reg lacey (aka mr. b) played the villain? | CREATE TABLE table_23170118_2 (title VARCHAR, villains VARCHAR) |
SELECT miles__km_ FROM table_2144863_1 WHERE driver = "Jeff Gordon" | Name the miles for jeff gordon | CREATE TABLE table_2144863_1 (miles__km_ VARCHAR, driver VARCHAR) |
SELECT name FROM table_name_75 WHERE rank < 6 AND year > 1974 | I want the name for rank less than 6 and year more than 1974 | CREATE TABLE table_name_75 (
name VARCHAR,
rank VARCHAR,
year VARCHAR
) |
SELECT MAX(three_pointers) FROM table_23183195_5 WHERE player = "DeWanna Bonner" | Name the most three pointers for dewanna bonner | CREATE TABLE table_23183195_5 (three_pointers INTEGER, player VARCHAR) |
SELECT laps FROM table_2144863_1 WHERE driver = "Ryan Newman" | Name the laps for ryan newman | CREATE TABLE table_2144863_1 (laps VARCHAR, driver VARCHAR) |
SELECT MIN("Division") FROM table_26156 | What is the lowest numbered division Cleveland played in? | CREATE TABLE table_26156 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) |
SELECT MIN(field_goals) FROM table_23183195_5 WHERE player = "Chantel Hilliard" | Name the least field goals for chantel hilliard | CREATE TABLE table_23183195_5 (field_goals INTEGER, player VARCHAR) |
SELECT theme FROM table_21501518_1 WHERE original_artist = "Soul Brothers Six" | What is the theme of the song by Soul Brothers Six | CREATE TABLE table_21501518_1 (theme VARCHAR, original_artist VARCHAR) |
SELECT MAX(attendance) FROM table_name_50 WHERE result = "w 24-21" | What is the highest Attendance with a Result that is w 24-21? | CREATE TABLE table_name_50 (
attendance INTEGER,
result VARCHAR
) |
SELECT MAX(minutes) FROM table_23183195_5 WHERE player = "Morgan Jennings" | Name the most minutes for morgan jennings | CREATE TABLE table_23183195_5 (minutes INTEGER, player VARCHAR) |
SELECT week__number FROM table_21501518_1 WHERE theme = "First Solo" | Which week is the theme First Solo | CREATE TABLE table_21501518_1 (week__number VARCHAR, theme VARCHAR) |
SELECT COUNT(DISTINCT icustays.icustay_id) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3929 AND admissions.dischtime IS NULL) | how many times did patient 3929 come to icu during their current hospital visit? | 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_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
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 diagnoses_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 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_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
) |
SELECT MAX(free_throws) FROM table_23183195_5 WHERE steals = 4 | Name the most free throws for 4 steals | CREATE TABLE table_23183195_5 (free_throws INTEGER, steals VARCHAR) |
SELECT week__number FROM table_21501518_1 WHERE theme = "N/A" | Which week is the theme n/a | CREATE TABLE table_21501518_1 (week__number VARCHAR, theme VARCHAR) |
SELECT "Frequency" FROM table_10885 WHERE "Order part number" = 'tmn550dcr23gm' | what is the frequency of part number tmn550dcr23gm? | CREATE TABLE table_10885 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"FPU width" text,
"Multiplier 1" text,
"Socket" text,
"Release date" text,
"Order part number" text
) |
SELECT road_record FROM table_23183195_2 WHERE overall_record = "22-11" | What is the road record for the team with an overall record of 22-11? | CREATE TABLE table_23183195_2 (road_record VARCHAR, overall_record VARCHAR) |
SELECT COUNT(song_choice) FROM table_21501518_1 WHERE order__number = "1" | How many total songs has the order #1 | CREATE TABLE table_21501518_1 (song_choice VARCHAR, order__number VARCHAR) |
SELECT "Speed" FROM table_57294 WHERE "Rider" = 'andy reynolds' | Name the speed for andy reynolds | CREATE TABLE table_57294 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) |
SELECT COUNT(road_record) FROM table_23183195_2 WHERE team = "Vanderbilt" | What is the road record for Vanderbilt? | CREATE TABLE table_23183195_2 (road_record VARCHAR, team VARCHAR) |
SELECT order__number FROM table_21501518_1 WHERE result = "Bottom 2" | Which order #1 has a result of bottom 2 | CREATE TABLE table_21501518_1 (order__number VARCHAR, result VARCHAR) |
SELECT no_of_barangays FROM table_2402209_1 WHERE area_coordinator = "110.95" | How many Barangays lived in the municipality with area coordinator of 110.95? | CREATE TABLE table_2402209_1 (
no_of_barangays VARCHAR,
area_coordinator VARCHAR
) |
SELECT team FROM table_23183195_2 WHERE overall_record = "22-11" | What team's overal record is 22-11? | CREATE TABLE table_23183195_2 (team VARCHAR, overall_record VARCHAR) |
SELECT song_choice FROM table_21501518_1 WHERE original_artist = "Garth Brooks" | Whats the song of name with an original artist Garth Brooks | CREATE TABLE table_21501518_1 (song_choice VARCHAR, original_artist VARCHAR) |
SELECT "Caps" FROM table_41530 WHERE "Province / Club" = 'drfc' AND "Position" = 'center' | What is Caps, when Province / Club is DRFC, and when Position is Center? | CREATE TABLE table_41530 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" text,
"Province / Club" text
) |
SELECT percentage FROM table_23183195_2 WHERE road_record = "3-4" AND home_record = "7-0" | What is the percentage for the team with a road record of 3-4 and a home record of 7-0? | CREATE TABLE table_23183195_2 (percentage VARCHAR, road_record VARCHAR, home_record VARCHAR) |
SELECT dates_administered FROM table_21535453_1 WHERE terry_mcauliffe = "19%" | What was the date when Terry McAuliffe won 19%? | CREATE TABLE table_21535453_1 (dates_administered VARCHAR, terry_mcauliffe VARCHAR) |
SELECT * FROM table_train_107 WHERE modified_hachinski_ischemia_scale <= 4 | modified hachinski less than or equal to 4 | CREATE TABLE table_train_107 (
"id" int,
"systolic_blood_pressure_sbp" int,
"body_weight" float,
"modified_hachinski_ischemia_scale" int,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"clinical_dementia_rating_cdr" float,
"NOUSE" float
) |
SELECT COUNT(three_pointers) FROM table_23184448_4 WHERE points = 67 | Name the number of three pointers for 67 | CREATE TABLE table_23184448_4 (three_pointers VARCHAR, points VARCHAR) |
SELECT source FROM table_21535453_1 WHERE terry_mcauliffe = "30%" AND dates_administered = "June 8" | What was the source of the poll that gave McAuliffe 30% on June 8? | CREATE TABLE table_21535453_1 (source VARCHAR, terry_mcauliffe VARCHAR, dates_administered VARCHAR) |
SELECT * FROM table_train_277 WHERE (creatinine_clearance_cl > 1.4 AND gender = 'female') OR (creatinine_clearance_cl > 1.5 AND gender = 'male') OR estimated_glomerular_filtration_rate_egfr < 60 | creatinine level ( a measure of kidney function is greater than 1.4 mg / dl ( for female ) or greater than 1.5 mg / dl ( for male ) or your estimated gfr is under 60 . | CREATE TABLE table_train_277 (
"id" int,
"gender" string,
"cholesterol" float,
"blood_platelet_counts" int,
"creatinine_clearance_cl" float,
"estimated_glomerular_filtration_rate_egfr" int,
"severe_dyslipidemia" bool,
"fasting_triglyceride" int,
"body_mass_index_bmi" float,
"triglyceride_tg" float,
"NOUSE" float
) |
SELECT MAX(field_goals) FROM table_23184448_4 WHERE player = "Alexis Yackley" | Name the field goals for alexis yackley | CREATE TABLE table_23184448_4 (field_goals INTEGER, player VARCHAR) |
SELECT brian_moran FROM table_21535453_1 WHERE source = "Survey USA" AND creigh_deeds = "26%" | What was Brian Moran's tally in the Survey USA poll where Creigh Deeds had 26%? | CREATE TABLE table_21535453_1 (brian_moran VARCHAR, source VARCHAR, creigh_deeds VARCHAR) |
SELECT COUNT(result) FROM table_20963074_1 WHERE original_title = "Octubre" | Name the total number of results for octubre | CREATE TABLE table_20963074_1 (
result VARCHAR,
original_title VARCHAR
) |
SELECT COUNT(assists) FROM table_23184448_4 WHERE minutes = 321 | Name the number of assists for 321 minutes | CREATE TABLE table_23184448_4 (assists VARCHAR, minutes VARCHAR) |
SELECT source FROM table_21535453_1 WHERE brian_moran = "19%" | What source showed Brian Moran at 19%? | CREATE TABLE table_21535453_1 (source VARCHAR, brian_moran VARCHAR) |
SELECT launched FROM table_name_22 WHERE commissioned = "july 1948" AND bow_number = "ps-31" | When did the ship that was commissioned July 1948 with a bow number of ps-31 launch? | CREATE TABLE table_name_22 (
launched VARCHAR,
commissioned VARCHAR,
bow_number VARCHAR
) |
SELECT COUNT(player) FROM table_23184448_4 WHERE field_goals = 25 AND blocks = 6 | Name the number of players for field goals being 25 and blocks is 6 | CREATE TABLE table_23184448_4 (player VARCHAR, field_goals VARCHAR, blocks VARCHAR) |
SELECT brian_moran FROM table_21535453_1 WHERE creigh_deeds = "30%" | What was Brian Moran's share of the votes when Creigh Deeds had 30%? | CREATE TABLE table_21535453_1 (brian_moran VARCHAR, creigh_deeds VARCHAR) |
SELECT "Streak" FROM table_44259 WHERE "Team points" > '113' AND "Game" < '12' AND "Date" = 'november 16' | Which streak before game 12 had a team points larger than 113 on November 16? | CREATE TABLE table_44259 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Team points" real,
"Opponent score" real,
"Record" text,
"Streak" text
) |
SELECT location_attendance FROM table_23186738_6 WHERE record = "5-15" | Name the location attendance of 5-15 | CREATE TABLE table_23186738_6 (location_attendance VARCHAR, record VARCHAR) |
SELECT source FROM table_21535453_1 WHERE brian_moran = "26%" | What source gave 26% of the votes to Brian Moran? | CREATE TABLE table_21535453_1 (source VARCHAR, brian_moran VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.