answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT car_numbers FROM table_name_37 WHERE first_used = "currently on order"
Which Car numbers have a First used of currently on order?
CREATE TABLE table_name_37 (car_numbers VARCHAR, first_used VARCHAR)
SELECT COUNT(Id) FROM Posts WHERE Tags LIKE '%<php>%' AND CreationDate > '2012-06-01' AND CreationDate < '2012-06-03'
Questions per month in specific tags. How many questions per month does each tag in group has
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 PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) 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 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) 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 PostTypes ( Id number, Name text ) CREATE TABLE FlagTypes ( 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 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 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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense 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 VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE CloseReasonTypes ( 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 Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTaskResultTypes ( 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 Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId 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 PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text )
SELECT site FROM table_26842217_4 WHERE visiting_team = "Louisiana-Lafayette"
Where's the louisiana-lafayette as a visiting team?
CREATE TABLE table_26842217_4 (site VARCHAR, visiting_team VARCHAR)
SELECT MIN(elected) FROM table_name_87 WHERE district = 17
What was the year elected in District 17?
CREATE TABLE table_name_87 (elected INTEGER, district VARCHAR)
SELECT MIN(total) FROM table_name_40 WHERE gold = 8 AND silver < 4
Who scored the lowest with 8 gold medals and less than 4 silver medals?
CREATE TABLE table_name_40 ( total INTEGER, gold VARCHAR, silver VARCHAR )
SELECT result FROM table_26842217_4 WHERE visiting_team = "Tennessee Tech"
What were the results of the tennessee tech as a visiting team?
CREATE TABLE table_26842217_4 (result VARCHAR, visiting_team VARCHAR)
SELECT elected FROM table_name_56 WHERE district = 15
What was the year elected in District 15?
CREATE TABLE table_name_56 (elected VARCHAR, district VARCHAR)
SELECT score FROM table_name_41 WHERE visitor = "philadelphia" AND date = "december 1"
What's the score on December 1 when Philadelphia visited?
CREATE TABLE table_name_41 ( score VARCHAR, visitor VARCHAR, date VARCHAR )
SELECT home_team FROM table_26842217_4 WHERE visiting_team = "San Jose State"
What is the home team where the San Jose state is the visiting team?
CREATE TABLE table_26842217_4 (home_team VARCHAR, visiting_team VARCHAR)
SELECT AVG(elected) FROM table_name_19 WHERE incumbent = "ed towns" AND district < 10
What year was Incumbent Ed Towns elected with a district smaller than 10?
CREATE TABLE table_name_19 (elected INTEGER, incumbent VARCHAR, district VARCHAR)
SELECT COUNT(attendance) FROM table_name_14 WHERE date = "december 11, 1954"
How many were in Attendance on December 11, 1954?
CREATE TABLE table_name_14 ( attendance VARCHAR, date VARCHAR )
SELECT result FROM table_26842217_4 WHERE site = "Bryant-Denny Stadium • Tuscaloosa, AL"
What were the results in the bryant-denny stadium • tuscaloosa, al?
CREATE TABLE table_26842217_4 (result VARCHAR, site VARCHAR)
SELECT party FROM table_name_98 WHERE elected > 1983 AND district = 28
What party has a district of 28 and was elected after 1983?
CREATE TABLE table_name_98 (party VARCHAR, elected VARCHAR, district VARCHAR)
SELECT broadcast_date FROM table_name_46 WHERE viewers__in_millions_ = "7.0"
What is the broadcast date with 7.0 million viewers?
CREATE TABLE table_name_46 ( broadcast_date VARCHAR, viewers__in_millions_ VARCHAR )
SELECT home_team FROM table_26842217_4 WHERE time = "7:30pm" AND broadcast = "ESPN"
What home team is at 7:30pm in ESPN?
CREATE TABLE table_26842217_4 (home_team VARCHAR, time VARCHAR, broadcast VARCHAR)
SELECT AVG(elected) FROM table_name_69 WHERE party = "democrat" AND district > 2 AND incumbent = "nydia velazquez"
What's the elected year of Nydia Velazquez in a district bigger than 2 and a democrat?
CREATE TABLE table_name_69 (elected INTEGER, incumbent VARCHAR, party VARCHAR, district VARCHAR)
SELECT annual_interchanges__millions__2011_12 FROM table_18118221_1 WHERE annual_entry_exit__millions__2011_12 = "36.609"
How many annual interchanges in the millions occurred in 2011-12 when the number of annual entry/exits was 36.609 million?
CREATE TABLE table_18118221_1 ( annual_interchanges__millions__2011_12 VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR )
SELECT time FROM table_26842217_8 WHERE visiting_team = "Clemson"
If the visiting team is Clemson, when was the time?
CREATE TABLE table_26842217_8 (time VARCHAR, visiting_team VARCHAR)
SELECT MIN(year) FROM table_name_81 WHERE top_goalscorer = "ortiz" AND goals > 25
Name the least year for goalscore of ortiz and goals more than 25
CREATE TABLE table_name_81 (year INTEGER, top_goalscorer VARCHAR, goals VARCHAR)
SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '004-7984' AND STRFTIME('%y', patient.hospitaladmittime) <= '2102'
has patient 004-7984 actually visited the hospital until 2102?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE 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 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 )
SELECT COUNT(attendance) FROM table_26842217_8 WHERE site = "Wallace Wade Stadium • Durham, NC"
How many times was the site wallace wade stadium • durham, nc?
CREATE TABLE table_26842217_8 (attendance VARCHAR, site VARCHAR)
SELECT date FROM table_name_17 WHERE visitor = "st. louis"
What was the date of the game when St. Louis was the visiting team?
CREATE TABLE table_name_17 (date VARCHAR, visitor VARCHAR)
SELECT "year" FROM table_204_445 WHERE "year" IN (1989, 1991) ORDER BY "position" LIMIT 1
at which world indoor championships did peter widen achieve a higher position : 1989 or 1991 ?
CREATE TABLE table_204_445 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text )
SELECT result FROM table_26842217_8 WHERE site = "Wallace Wade Stadium • Durham, NC"
If the site was wallace wade stadium • durham, nc, what was the result?
CREATE TABLE table_26842217_8 (result VARCHAR, site VARCHAR)
SELECT record FROM table_name_42 WHERE score = "7–5"
What was the record at the game with a score of 7–5?
CREATE TABLE table_name_42 (record VARCHAR, score VARCHAR)
SELECT last_name FROM staff WHERE email_address LIKE "%wrau%"
What are the last names of staff with email addressed containing the substring 'wrau'?
CREATE TABLE staff ( staff_id number, gender text, first_name text, last_name text, email_address text, phone_number text ) CREATE TABLE products ( product_id number, parent_product_id number, product_category_code text, date_product_first_available time, date_product_discontinued time, product_name text, product_description text, product_price number ) CREATE TABLE complaints ( complaint_id number, product_id number, customer_id number, complaint_outcome_code text, complaint_status_code text, complaint_type_code text, date_complaint_raised time, date_complaint_closed time, staff_id number ) CREATE TABLE customers ( customer_id number, customer_type_code text, address_line_1 text, address_line_2 text, town_city text, state text, email_address text, phone_number text )
SELECT date FROM table_26842217_8 WHERE site = "Sanford Stadium • Athens, GA"
If the site is sanford stadium • athens, ga, what is the date?
CREATE TABLE table_26842217_8 (date VARCHAR, site VARCHAR)
SELECT position FROM table_name_29 WHERE nationality = "canada" AND nhl_team = "new york islanders" AND pick__number = "113"
What position shows for canada, and an NHL team of new york islanders, and a Pick # of 113?
CREATE TABLE table_name_29 (position VARCHAR, pick__number VARCHAR, nationality VARCHAR, nhl_team VARCHAR)
SELECT "Away team score" FROM table_55950 WHERE "Venue" = 'brunswick street oval'
What was the away score when they played at Brunswick Street Oval?
CREATE TABLE table_55950 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT production_code FROM table_26845668_1 WHERE us_viewers__millions_ = "4.32"
What is the production code for the movie with 4.32 million U.S. viewers?
CREATE TABLE table_26845668_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT position FROM table_name_92 WHERE college_junior_club_team = "brandon wheat kings (wchl)"
What is the Position for the brandon wheat kings (wchl)?
CREATE TABLE table_name_92 (position VARCHAR, college_junior_club_team VARCHAR)
SELECT years_for_jazz FROM table_11545282_6 WHERE player = "Jim Farmer"
During which years did Jim Farmer play for Jazz?
CREATE TABLE table_11545282_6 ( years_for_jazz VARCHAR, player VARCHAR )
SELECT COUNT(time) FROM table_26842217_6 WHERE visiting_team = "Louisiana-Monroe"
How many times was Louisiana-Monroe a visiting team?
CREATE TABLE table_26842217_6 (time VARCHAR, visiting_team VARCHAR)
SELECT nationality FROM table_name_30 WHERE college_junior_club_team = "university of wisconsin (wcha)" AND player = "bob lundeen"
What is the Nationality for the university of wisconsin (wcha), and a Player of bob lundeen?
CREATE TABLE table_name_30 (nationality VARCHAR, college_junior_club_team VARCHAR, player VARCHAR)
SELECT AVG(damage_millions_usd), MAX(damage_millions_usd) FROM storm WHERE max_speed > 1000
What is the average and maximum damage in millions for storms that had a max speed over 1000?
CREATE TABLE storm ( storm_id number, name text, dates_active text, max_speed number, damage_millions_usd number, number_deaths number ) CREATE TABLE region ( region_id number, region_code text, region_name text ) CREATE TABLE affected_region ( region_id number, storm_id number, number_city_affected number )
SELECT date FROM table_26842217_6 WHERE visiting_team = "South Florida"
List all dates where South Florida was a visiting team.
CREATE TABLE table_26842217_6 (date VARCHAR, visiting_team VARCHAR)
SELECT pick__number FROM table_name_45 WHERE player = "brent meeke"
What is the Pick # for brent meeke?
CREATE TABLE table_name_45 (pick__number VARCHAR, player VARCHAR)
SELECT COUNT("Purse( $ )") FROM table_39859 WHERE "Location" = 'iowa'
What was the Purse ($) total for Iowa?
CREATE TABLE table_39859 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" text )
SELECT time FROM table_26842217_6 WHERE visiting_team = "#7 Oregon"
How many times was #7 Oregon a visiting team?
CREATE TABLE table_26842217_6 (time VARCHAR, visiting_team VARCHAR)
SELECT nhl_team FROM table_name_29 WHERE player = "dave murphy"
What is the NHL team of dave murphy?
CREATE TABLE table_name_29 (nhl_team VARCHAR, player VARCHAR)
SELECT date_of_appointment FROM table_name_38 WHERE team = "aek" AND replaced_by = "christos kassianos"
What was the date of appointment for Christos Kassianos who belonged to AEK?
CREATE TABLE table_name_38 ( date_of_appointment VARCHAR, team VARCHAR, replaced_by VARCHAR )
SELECT home_team FROM table_26842217_6 WHERE visiting_team = "Western Kentucky"
List all home teams when Western Kentucky was the visiting team.
CREATE TABLE table_26842217_6 (home_team VARCHAR, visiting_team VARCHAR)
SELECT nationality FROM table_name_91 WHERE pick__number = "117"
What Nationality had a Pick # of 117?
CREATE TABLE table_name_91 (nationality VARCHAR, pick__number 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, fare, flight, flight_fare, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'DENVER' 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 = 'PITTSBURGH' AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
show flights and fare information from PITTSBURGH connecting through DENVER to OAKLAND
CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE code_description ( code varchar, description 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 month ( month_number int, month_name text ) 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 state ( state_code text, state_name text, country_name text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) 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 class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE days ( days_code varchar, day_name varchar ) 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 time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt 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 ) 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 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 )
SELECT time FROM table_26842217_6 WHERE home_team = "Kentucky"
List all times with Kentucky as the home team.
CREATE TABLE table_26842217_6 (time VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_46 WHERE athlete = "nesta carter"
On what Date of the race was Nesta Carter the Athlete?
CREATE TABLE table_name_46 (date VARCHAR, athlete VARCHAR)
SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-19271')) AND microlab.culturesite = 'urine, voided specimen' AND STRFTIME('%y', microlab.culturetakentime) >= '2104'
since 2104, has any urine, voided specimen microbiology test been carried out on patient 025-19271?
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE 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 )
SELECT score FROM table_26847237_3 WHERE opposition = "Mid Canterbury"
What is the score when the opposition is mid canterbury?
CREATE TABLE table_26847237_3 (score VARCHAR, opposition VARCHAR)
SELECT athlete FROM table_name_14 WHERE time = 9.78
What is the Athlete of the race with a Time of 9.78?
CREATE TABLE table_name_14 (athlete VARCHAR, time VARCHAR)
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY COUNT(*) DESC
Return a bar chart on what are the countries of perpetrators? Show each country and the corresponding number of perpetrators there, and list in descending by the y axis please.
CREATE TABLE perpetrator ( Perpetrator_ID int, People_ID int, Date text, Year real, Location text, Country text, Killed int, Injured int ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, "Home Town" text )
SELECT home_team FROM table_26847237_3 WHERE opposition = "East Coast"
what is the home team when the opposition is east coast?
CREATE TABLE table_26847237_3 (home_team VARCHAR, opposition VARCHAR)
SELECT MAX(area_2006_km²) FROM table_name_38 WHERE area_1996_km² < 17.31
Which area 2006 km² has an area 1996 km² smaller than 17.31?
CREATE TABLE table_name_38 (area_2006_km² INTEGER, area_1996_km² INTEGER)
SELECT home FROM table_name_24 WHERE score = "116–105"
Who was the home team at the Nuggets game that had a score of 116 105?
CREATE TABLE table_name_24 ( home VARCHAR, score VARCHAR )
SELECT home_team FROM table_26847237_3 WHERE opposition = "Wairarapa Bush"
What is the home team when the opposition is wairarapa bush?
CREATE TABLE table_26847237_3 (home_team VARCHAR, opposition VARCHAR)
SELECT MIN(area_2006_km²) FROM table_name_94 WHERE area_1996_km² = 26.39 AND pop_2006 < 18 OFFSET 610
Which area 2006 km² has an area 1996 km² of 26.39, and a pop 2006 smaller than 18,610?
CREATE TABLE table_name_94 (area_2006_km² INTEGER, area_1996_km² VARCHAR, pop_2006 VARCHAR)
SELECT MAX("Losses") FROM table_12691 WHERE "Wins" = '1' AND "Matches" < '2'
What is the highest Losses, when Wins is '1', and when Matches is less than 2?
CREATE TABLE table_12691 ( "Matches" real, "Wins" real, "Draw" real, "Losses" real, "Against" real )
SELECT home_team FROM table_26847237_3 WHERE round__number = "Round 1"
what is the home team when the round # is round 1?
CREATE TABLE table_26847237_3 (home_team VARCHAR, round__number VARCHAR)
SELECT MAX(area_2006_km²) FROM table_name_22 WHERE city = "sopot" AND area_1996_km² < 17.31
Which area 2006 km² has a city of sopot, and an area 1996 km² smaller than 17.31?
CREATE TABLE table_name_22 (area_2006_km² INTEGER, city VARCHAR, area_1996_km² VARCHAR)
SELECT SUM("1984") FROM table_79049 WHERE "Total points" = '100' AND "Seasons" > '3'
What is the total for 1984 for the team with 100 points total and more than 3 seasons?
CREATE TABLE table_79049 ( "Team" text, "1982" text, "1983" text, "1984" real, "Total points" real, "Seasons" real, "Points average" real )
SELECT opposition FROM table_26847237_3 WHERE score = "37 - 28"
Who is the opposition when the score is 37 - 28?
CREATE TABLE table_26847237_3 (opposition VARCHAR, score VARCHAR)
SELECT MAX(area_1996_km²) FROM table_name_91 WHERE pop_1999 = "17,510" AND area_2006_km² > 30
Which area 1996 km² has a pop 1999 of 17,510, and an area 2006 km² larger than 30?
CREATE TABLE table_name_91 (area_1996_km² INTEGER, pop_1999 VARCHAR, area_2006_km² VARCHAR)
SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND microlab.culturesite = 'other' AND STRFTIME('%y-%m', microlab.culturetakentime) >= '2105-10'
since 10/2105, was there any microbiology test result for the other of patient 031-3355?
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime 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 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 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 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 treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time )
SELECT location FROM table_26847237_3 WHERE opposition = "Mid Canterbury"
What is the location when the opposition is mid canterbury?
CREATE TABLE table_26847237_3 (location VARCHAR, opposition VARCHAR)
SELECT MAX(playoffs) FROM table_name_79 WHERE teams = "tampa bay"
What is the highest playoffs that has tampa bay as the team?
CREATE TABLE table_name_79 (playoffs INTEGER, teams VARCHAR)
SELECT "Constellation" FROM table_11440 WHERE "Right ascension ( J2000 )" = '20h56m40s'
What Constellation has a 20h56m40s Right Ascension (J2000)?
CREATE TABLE table_11440 ( "NGC number" real, "Object type" text, "Constellation" text, "Right ascension ( J2000 )" text, "Declination ( J2000 )" text )
SELECT score FROM table_26847237_1 WHERE round__number = "Round 7"
What was the score in round 7?
CREATE TABLE table_26847237_1 (score VARCHAR, round__number VARCHAR)
SELECT rank FROM table_name_96 WHERE total = 123
What rank has 123 as the total?
CREATE TABLE table_name_96 (rank VARCHAR, total VARCHAR)
SELECT "Opponent" FROM table_75246 WHERE "Record" = '38–20–12–2'
Which Opponent has a Record of 38 20 12 2?
CREATE TABLE table_75246 ( "Game" real, "March" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT home_team FROM table_26847237_1 WHERE opposition = "Buller"
Who was the home team when the opposition was Buller?
CREATE TABLE table_26847237_1 (home_team VARCHAR, opposition VARCHAR)
SELECT teams FROM table_name_35 WHERE streak_end = "1/2/2011"
What teams have 1/2/2011 as the streak end?
CREATE TABLE table_name_35 (teams VARCHAR, streak_end VARCHAR)
SELECT english_translation FROM table_name_10 WHERE artist = "ann christine"
what is the english translation when the artist is ann christine?
CREATE TABLE table_name_10 ( english_translation VARCHAR, artist VARCHAR )
SELECT win_loss FROM table_26847237_1 WHERE round__number = "Round 3"
Was it a win or loss for Wanganui in round 3?
CREATE TABLE table_26847237_1 (win_loss VARCHAR, round__number VARCHAR)
SELECT streak_start FROM table_name_28 WHERE total < 79 AND rank = "22t" AND teams = "tampa bay"
What streak start has a total less than 79, 22t as the rank, and tampa bay as the teams?
CREATE TABLE table_name_28 (streak_start VARCHAR, teams VARCHAR, total VARCHAR, rank VARCHAR)
SELECT molecular_target FROM table_12715053_1 WHERE compound_name = "Hemiasterlin (E7974)"
What is the molecular target listed under the compounded name of hemiasterlin (e7974)
CREATE TABLE table_12715053_1 ( molecular_target VARCHAR, compound_name VARCHAR )
SELECT location FROM table_26847237_1 WHERE opposition = "East Coast"
What was the location when the opposition was East Coast?
CREATE TABLE table_26847237_1 (location VARCHAR, opposition VARCHAR)
SELECT method FROM table_name_11 WHERE event = "ufc fight night 10"
What was the method for the UFC Fight Night 10 event?
CREATE TABLE table_name_11 (method VARCHAR, event VARCHAR)
SELECT productions FROM table_name_96 WHERE herbie = "rex robbins"
Which production had Rex Robbins as Herbie?
CREATE TABLE table_name_96 ( productions VARCHAR, herbie VARCHAR )
SELECT score FROM table_26847237_1 WHERE opposition = "West Coast" AND location = "Wanganui"
What was the score when the opposition was West Coast in Wanganui?
CREATE TABLE table_26847237_1 (score VARCHAR, opposition VARCHAR, location VARCHAR)
SELECT res FROM table_name_60 WHERE event = "m-1 selection europe"
What was the result for the M-1 Selection Europe event?
CREATE TABLE table_name_60 (res VARCHAR, event VARCHAR)
SELECT "Recurring cast seasons" FROM table_17675 WHERE "Character" = 'Kevin Lucas'
Kevin lucas appears in which seasons?
CREATE TABLE table_17675 ( "Character" text, "Portrayed by" text, "Main cast seasons" text, "Recurring cast seasons" text, "# of episodes" real )
SELECT win_loss FROM table_26847237_1 WHERE location = "Paeroa"
Was it a win or a loss for Wanganui in Paeroa?
CREATE TABLE table_26847237_1 (win_loss VARCHAR, location VARCHAR)
SELECT opponent FROM table_name_55 WHERE record = "23-5"
Who was the opponent that led to a record of 23-5?
CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR)
SELECT MIN(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'pressure ulcer,stage nos') AND DATETIME(diagnoses_icd.charttime) >= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY STRFTIME('%y-%m', diagnoses_icd.charttime)) AS t1
since 1 year ago, what was the minimum monthly number of patients diagnosed with pressure ulcer,stage nos?
CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost 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 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 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 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text )
SELECT original_airdate FROM table_26866205_1 WHERE series__number = 26
What is every original air date for series# of 26?
CREATE TABLE table_26866205_1 (original_airdate VARCHAR, series__number VARCHAR)
SELECT COUNT(silver) FROM table_name_78 WHERE bronze = 2 AND gold < 0
What is the number of Silver medals with 2 Bronze and 0 Gold?
CREATE TABLE table_name_78 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "31" AND diagnoses.icd9_code = "2809"
provide me the number of patients with a diagnoses icd9 code 2809 who are younger than 31 years of age.
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 ) 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 )
SELECT director FROM table_26866233_1 WHERE series__number = 54
Who are the directors of the episode in series # 54?
CREATE TABLE table_26866233_1 (director VARCHAR, series__number VARCHAR)
SELECT 1 AS st_leg FROM table_name_98 WHERE champion = "sakalai"
what team was the 1st leg champion of sakalai
CREATE TABLE table_name_98 (champion VARCHAR)
SELECT COUNT(total) FROM table_name_99 WHERE fa_trophy = 0 AND player = "charlie butler"
How many Total that has a FA Trophy of 0 and a Player of charlie butler?
CREATE TABLE table_name_99 ( total VARCHAR, fa_trophy VARCHAR, player VARCHAR )
SELECT writer FROM table_26866233_1 WHERE director = "Gene Reynolds"
The episode where the director is Gene Reynolds has who as the writer?
CREATE TABLE table_26866233_1 (writer VARCHAR, director VARCHAR)
SELECT season FROM table_name_54 WHERE champion = "juventus"
what season did the juventus win
CREATE TABLE table_name_54 (season VARCHAR, champion VARCHAR)
SELECT "Crowd" FROM table_48035 WHERE "Ground" = 'colonial stadium' AND "Home team" = 'hawthorn'
How much is the crowd attending at colonial stadium where Hawthorn plays?
CREATE TABLE table_48035 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Ground" text, "Crowd" real, "Date" text )
SELECT title FROM table_26866233_1 WHERE original_airdate = "December22,1996"
The episode with the original airdate December22,1996 has what title?
CREATE TABLE table_26866233_1 (title VARCHAR, original_airdate VARCHAR)
SELECT AVG(year) FROM table_name_71 WHERE points < 9 AND rank = "24th"
What's the average Year that has Points that's smaller than 9 with a Rank of 24th?
CREATE TABLE table_name_71 (year INTEGER, points VARCHAR, rank VARCHAR)
SELECT away_team AS score FROM table_name_78 WHERE venue = "vfl park"
What was the away score at VFL Park?
CREATE TABLE table_name_78 ( away_team VARCHAR, venue VARCHAR )
SELECT original_airdate FROM table_26866299_1 WHERE writer = "Michael Glassberg"
What was the original air date of the episode written by michael glassberg?
CREATE TABLE table_26866299_1 (original_airdate VARCHAR, writer VARCHAR)
SELECT rider FROM table_name_12 WHERE rank > 3 AND speed = "119.838mph"
Who has a Rank larger than 3 with a speed of 119.838mph?
CREATE TABLE table_name_12 (rider VARCHAR, rank VARCHAR, speed VARCHAR)
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3273)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' AND d_items.linksto = 'chartevents') AND chartevents.valuenum > 76.0 AND DATETIME(chartevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m-%d', chartevents.charttime) = '10-11' ORDER BY chartevents.charttime DESC LIMIT 1
when was last time patient 3273 was measured with a greater arterial bp mean than 76.0 on 10/11/last year?
CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE 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 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text )
SELECT original_airdate FROM table_26866299_1 WHERE series__number = 96
What was the original air date for episode number 96 in the series?
CREATE TABLE table_26866299_1 (original_airdate VARCHAR, series__number VARCHAR)
SELECT team FROM table_name_31 WHERE time = "1:14.51.73"
Which Team has a Time of 1:14.51.73?
CREATE TABLE table_name_31 (team VARCHAR, time VARCHAR)