answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT years_produced FROM table_26352332_4 WHERE engine_family = "MaxxForce 11"
For the engine family MaxxForce 11, what is the years produced?
CREATE TABLE table_26352332_4 (years_produced VARCHAR, engine_family VARCHAR)
SELECT position FROM table_name_31 WHERE name = "alexander wronski"
What is Alexander Wronski's Position?
CREATE TABLE table_name_31 (position VARCHAR, name VARCHAR)
SELECT "Name" FROM table_32524 WHERE "Date" = 'cancelled'
What tour was cancelled?
CREATE TABLE table_32524 ( "Year" real, "Name" text, "Date" text, "Stages" text, "Distance" text, "Winner" text, "Time" text )
SELECT years_produced FROM table_26352332_4 WHERE cylinder_layout = "V8"
The cylinder layout v8 is produced in what years?
CREATE TABLE table_26352332_4 (years_produced VARCHAR, cylinder_layout VARCHAR)
SELECT position FROM table_name_35 WHERE name = "senyi n'diaye"
What is Senyi N'Diaye's Position?
CREATE TABLE table_name_35 (position VARCHAR, name VARCHAR)
SELECT T1.Name, AVG(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name ORDER BY T1.Name DESC
Show the names of countries and the average speed of roller coasters from each country Plot them as bar chart, sort from high to low by the Name please.
CREATE TABLE roller_coaster ( Roller_Coaster_ID int, Name text, Park text, Country_ID int, Length real, Height real, Speed text, Opened text, Status text ) CREATE TABLE country ( Country_ID int, Name text, Population int, Area int, Languages text )
SELECT cylinder_layout FROM table_26352332_4 WHERE years_produced = "2007-current" AND engine_family = "MaxxForce 5"
The engine family MaxxForce 5 in the years produced 2007-current, have what cylinder layout?
CREATE TABLE table_26352332_4 (cylinder_layout VARCHAR, years_produced VARCHAR, engine_family VARCHAR)
SELECT date FROM table_name_31 WHERE competition = "friendly" AND score = "4-0"
What was the date of the friendly competition with a score of 4-0?
CREATE TABLE table_name_31 (date VARCHAR, competition VARCHAR, score VARCHAR)
SELECT start__reg_season_ FROM table_22383603_1 WHERE top_record = "Lindenwood (20–0–0)"
When did the season start that ended with the top record of Lindenwood (20 0 0)?
CREATE TABLE table_22383603_1 ( start__reg_season_ VARCHAR, top_record VARCHAR )
SELECT engine_family FROM table_26352332_4 WHERE displacement_s_ = "10.5L"
Where the displacement(s) is 10.5L is, what is the engine family?
CREATE TABLE table_26352332_4 (engine_family VARCHAR, displacement_s_ VARCHAR)
SELECT venue FROM table_name_21 WHERE score = "5-0" AND date = "august 3, 2005"
Where did the competition take place at on August 3, 2005 with a score of 5-0?
CREATE TABLE table_name_21 (venue VARCHAR, score VARCHAR, date VARCHAR)
SELECT "city/location" FROM table_203_742 WHERE "date" > (SELECT "date" FROM table_203_742 WHERE "date" = 'march 5') ORDER BY "date" LIMIT 1
the race on march 5 took place in miami , florida . where did the next race take place ?
CREATE TABLE table_203_742 ( id number, "rnd" number, "date" text, "race name" text, "circuit" text, "city/location" text, "pole position" text, "fastest lap" text, "winning driver" text, "winning team" text, "report" text )
SELECT engine_family FROM table_26352332_4 WHERE displacement_s_ = "466 cubic inches (7.6L)"
The displacement(s) 466 cubic inches (7.6L), has what engine family?
CREATE TABLE table_26352332_4 (engine_family VARCHAR, displacement_s_ VARCHAR)
SELECT result FROM table_name_39 WHERE competition = "2007 gulf cup of nations"
What was the result of the 2007 gulf cup of nations?
CREATE TABLE table_name_39 (result VARCHAR, competition VARCHAR)
SELECT "Arkansas" FROM table_80223 WHERE "Alabama" = 'ken stabler'
Who is the Arkansas player associated with Ken Stabler?
CREATE TABLE table_80223 ( "Year" real, "Alabama" text, "Arkansas" text, "Auburn" text, "Ole Miss" text, "Mississippi St." text )
SELECT coinage_metal FROM table_26336060_19 WHERE km_number = "S75"
What is the coinage metal for a KM number of S75?
CREATE TABLE table_26336060_19 (coinage_metal VARCHAR, km_number VARCHAR)
SELECT result FROM table_name_95 WHERE score = "4-0"
What was the result of the competition that had a score of 4-0?
CREATE TABLE table_name_95 (result VARCHAR, score VARCHAR)
SELECT "Front Side Bus" FROM table_46635 WHERE "Model Number" = 'c3 850'
What is the Front Side Bus for Model Number c3 850?
CREATE TABLE table_46635 ( "Model Number" text, "Frequency" text, "L2-Cache" text, "Front Side Bus" text, "Multiplier" text, "Voltage" text, "Socket" text )
SELECT MAX(date) FROM table_26336060_19 WHERE mintage = 150 AND km_number = "S66"
What is the maximum date for a mintage of 150 and a KM number of S66?
CREATE TABLE table_26336060_19 (date INTEGER, mintage VARCHAR, km_number VARCHAR)
SELECT title__english_ FROM table_name_91 WHERE number_of_season = 6
What is the English title for season 6?
CREATE TABLE table_name_91 (title__english_ VARCHAR, number_of_season VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "SDH" AND lab.fluid = "Pleural"
count the number of patients whose primary disease is sdh and lab test fluid is pleural?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 mintage FROM table_26336060_19 WHERE location = "Sion" AND denomination = "00500 500 francs"
What is the mintage for a location of Sion and a denomination of 00500 500 Francs?
CREATE TABLE table_26336060_19 (mintage VARCHAR, location VARCHAR, denomination VARCHAR)
SELECT MAX(season) FROM table_name_3 WHERE wins = 1 AND position = "8th"
What is the highest season wth a Win of 1 and a Position that is 8th?
CREATE TABLE table_name_3 (season INTEGER, wins VARCHAR, position VARCHAR)
SELECT DISTINCT airline.airline_code FROM airline, 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.airline_code = airline.airline_code AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
what airlines fly between BOSTON and SAN FRANCISCO
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 time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) 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 equipment_sequence ( aircraft_code_sequence varchar, aircraft_code 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 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 flight_fare ( flight_id int, fare_id int ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) 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 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 airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant 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 ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int )
SELECT coinage_metal FROM table_26336060_19 WHERE km_number = "S45"
What is the coinage metal for KM numbers of S45?
CREATE TABLE table_26336060_19 (coinage_metal VARCHAR, km_number VARCHAR)
SELECT COUNT(races) FROM table_name_70 WHERE poles > 0
What is the total number of Races with a Pole that is larger than 0?
CREATE TABLE table_name_70 (races VARCHAR, poles INTEGER)
SELECT COUNT(*), T1.fault_log_entry_id FROM fault_log AS T1 JOIN engineer_visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1
How many engineer visits are required at most for a single fault log? List the number and the log entry id.
CREATE TABLE asset_parts ( asset_id number, part_id number ) CREATE TABLE maintenance_engineers ( engineer_id number, company_id number, first_name text, last_name text, other_details text ) CREATE TABLE fault_log_parts ( fault_log_entry_id number, part_fault_id number, fault_status text ) CREATE TABLE parts ( part_id number, part_name text, chargeable_yn text, chargeable_amount text, other_part_details text ) CREATE TABLE assets ( asset_id number, maintenance_contract_id number, supplier_company_id number, asset_details text, asset_make text, asset_model text, asset_acquired_date time, asset_disposed_date time, other_asset_details text ) CREATE TABLE third_party_companies ( company_id number, company_type text, company_name text, company_address text, other_company_details text ) CREATE TABLE engineer_visits ( engineer_visit_id number, contact_staff_id number, engineer_id number, fault_log_entry_id number, fault_status text, visit_start_datetime time, visit_end_datetime time, other_visit_details text ) CREATE TABLE staff ( staff_id number, staff_name text, gender text, other_staff_details text ) CREATE TABLE engineer_skills ( engineer_id number, skill_id number ) CREATE TABLE skills ( skill_id number, skill_code text, skill_description text ) CREATE TABLE skills_required_to_fix ( part_fault_id number, skill_id number ) CREATE TABLE fault_log ( fault_log_entry_id number, asset_id number, recorded_by_staff_id number, fault_log_entry_datetime time, fault_description text, other_fault_details text ) CREATE TABLE part_faults ( part_fault_id number, part_id number, fault_short_name text, fault_description text, other_fault_details text ) CREATE TABLE maintenance_contracts ( maintenance_contract_id number, maintenance_contract_company_id number, contract_start_date time, contract_end_date time, other_contract_details text )
SELECT coinage_metal FROM table_26336060_19 WHERE location = "Fribourg" AND denomination = "00005 5 francs"
What is the coinage metal for a location of Fribourg and denomination of 00005 5 Francs?
CREATE TABLE table_26336060_19 (coinage_metal VARCHAR, location VARCHAR, denomination VARCHAR)
SELECT MIN(poles) FROM table_name_60 WHERE season > 2009
What is the lowest Poles with a Season that is larger than 2009?
CREATE TABLE table_name_60 (poles INTEGER, season INTEGER)
SELECT date_of_vacancy FROM table_name_75 WHERE team = "dundee"
What is the vacancy date of Dundee?
CREATE TABLE table_name_75 ( date_of_vacancy VARCHAR, team VARCHAR )
SELECT under_13 FROM table_26368963_1 WHERE under_17 = "Antonio Glez"
When the under-17 was Antonio Glez, who was the under-13?
CREATE TABLE table_26368963_1 (under_13 VARCHAR, under_17 VARCHAR)
SELECT team FROM table_name_53 WHERE location_attendance = "air canada centre 19,800" AND record = "41–33"
Which team has a location attendance of Air Canada Centre 19,800 with a record of 41–33?
CREATE TABLE table_name_53 (team VARCHAR, location_attendance VARCHAR, record VARCHAR)
SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes ORDER BY date_of_notes
I want to see trend of the number of date of notes by date of notes, and show x-axis from low to high order.
CREATE TABLE Students ( student_id INTEGER, address_id INTEGER, first_name VARCHAR(80), middle_name VARCHAR(40), last_name VARCHAR(40), cell_mobile_number VARCHAR(40), email_address VARCHAR(40), date_first_rental DATETIME, date_left_university DATETIME, other_student_details VARCHAR(255) ) CREATE TABLE Behavior_Incident ( incident_id INTEGER, incident_type_code VARCHAR(10), student_id INTEGER, date_incident_start DATETIME, date_incident_end DATETIME, incident_summary VARCHAR(255), recommendations VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE Detention ( detention_id INTEGER, detention_type_code VARCHAR(10), teacher_id INTEGER, datetime_detention_start DATETIME, datetime_detention_end DATETIME, detention_summary VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE Ref_Address_Types ( address_type_code VARCHAR(15), address_type_description VARCHAR(80) ) CREATE TABLE Assessment_Notes ( notes_id INTEGER, student_id INTEGER, teacher_id INTEGER, date_of_notes DATETIME, text_of_notes VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE Ref_Detention_Type ( detention_type_code VARCHAR(10), detention_type_description VARCHAR(80) ) CREATE TABLE Addresses ( address_id INTEGER, line_1 VARCHAR(120), line_2 VARCHAR(120), line_3 VARCHAR(120), city VARCHAR(80), zip_postcode VARCHAR(20), state_province_county VARCHAR(50), country VARCHAR(50), other_address_details VARCHAR(255) ) CREATE TABLE Student_Addresses ( student_id INTEGER, address_id INTEGER, date_address_from DATETIME, date_address_to DATETIME, monthly_rental DECIMAL(19,4), other_details VARCHAR(255) ) CREATE TABLE Students_in_Detention ( student_id INTEGER, detention_id INTEGER, incident_id INTEGER ) CREATE TABLE Teachers ( teacher_id INTEGER, address_id INTEGER, first_name VARCHAR(80), middle_name VARCHAR(80), last_name VARCHAR(80), gender VARCHAR(1), cell_mobile_number VARCHAR(40), email_address VARCHAR(40), other_details VARCHAR(255) ) CREATE TABLE Ref_Incident_Type ( incident_type_code VARCHAR(10), incident_type_description VARCHAR(80) )
SELECT under_13 FROM table_26368963_1 WHERE year = 2009
In the year 2009 who was the under-13?
CREATE TABLE table_26368963_1 (under_13 VARCHAR, year VARCHAR)
SELECT AVG(december) FROM table_name_38 WHERE record = "21–8–4" AND game > 33
Which December has a Record of 21–8–4, and a Game larger than 33?
CREATE TABLE table_name_38 (december INTEGER, record VARCHAR, game VARCHAR)
SELECT "2006\u201307 Season" FROM table_60886 WHERE "Team" = 'kf fushë kosova'
What is 2006-07 Season, when Team is 'KF Fush Kosova'?
CREATE TABLE table_60886 ( "Team" text, "Club home city" text, "2006\u201307 Season" text, "Stadium" text, "Stadium capacity" text )
SELECT under_15 FROM table_26368963_1 WHERE under_19 = "Julian Illingworth"
When Julian Illingworth was the under-19, who was the under-15?
CREATE TABLE table_26368963_1 (under_15 VARCHAR, under_19 VARCHAR)
SELECT opponent FROM table_name_96 WHERE score = "4–5 ot"
Which Opponent has a Score of 4–5 ot?
CREATE TABLE table_name_96 (opponent VARCHAR, score VARCHAR)
SELECT "Rnd" FROM table_72114 WHERE "Circuit" = 'Phoenix International Raceway'
What rnds were there for the phoenix international raceway?
CREATE TABLE table_72114 ( "Rnd" text, "Race Name" text, "Circuit" text, "City/Location" text, "Date" text, "Pole position" text, "Winning driver" text, "Winning team" text, "Report" text )
SELECT under_15 FROM table_26368963_1 WHERE under_17 = "Moises Galvez"
Who was the under-15 when Moises Galvez was the under-17?
CREATE TABLE table_26368963_1 (under_15 VARCHAR, under_17 VARCHAR)
SELECT MAX(game) FROM table_name_35 WHERE opponent = "new york islanders" AND december > 10
Which Game is the highest one that has an Opponent of new york islanders, and a December larger than 10?
CREATE TABLE table_name_35 (game INTEGER, opponent VARCHAR, december VARCHAR)
SELECT * FROM Users WHERE AboutMe LIKE '%Valued Associate%' OR AboutMe LIKE '%Stack Exchange%' OR WebsiteUrl LIKE '%//stackexchange.com' OR WebsiteUrl LIKE '%//stackexchange.com/'
Moderator History (SO en espa ol).
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 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 PostTypes ( Id number, Name text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId 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 ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostHistoryTypes ( 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 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 PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) 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 PostTags ( PostId number, TagId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount 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 ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange 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 )
SELECT COUNT(year) FROM table_26368963_1 WHERE under_15 = "Arturo Salazar Martinez" AND under_19 = "Moises Galvez"
How many years are there where the the under-15 is Arturo Salazar Martinez and the under-19 is Moises Galvez?
CREATE TABLE table_26368963_1 (year VARCHAR, under_15 VARCHAR, under_19 VARCHAR)
SELECT tournament FROM table_name_5 WHERE location = "colorado"
What tournament was located in Colorado?
CREATE TABLE table_name_5 (tournament VARCHAR, location VARCHAR)
SELECT "College" FROM table_76747 WHERE "Position" = 'nose tackle'
Which college has a nose tackle position?
CREATE TABLE table_76747 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text )
SELECT under_13 FROM table_26368963_1 WHERE under_11 = "Aly Abou El Einen"
When the under-11 was Aly Abou El Einen, who was the under-13?
CREATE TABLE table_26368963_1 (under_13 VARCHAR, under_11 VARCHAR)
SELECT date FROM table_name_70 WHERE week = 9
On what date was the game in Week 9 played?
CREATE TABLE table_name_70 (date VARCHAR, week VARCHAR)
SELECT MIN(up_for_reelection) FROM table_name_80 WHERE took_office > 2011 AND position = "chairman"
What is the earliest year a Chairman who took office after 2011 is up for reelection?
CREATE TABLE table_name_80 ( up_for_reelection INTEGER, took_office VARCHAR, position VARCHAR )
SELECT COUNT(election_date) FROM table_26362472_1 WHERE left_office = "1850-11-15"
What is the election date for those politicians who left office on 1850-11-15?
CREATE TABLE table_26362472_1 (election_date VARCHAR, left_office VARCHAR)
SELECT record FROM table_name_21 WHERE week > 6 AND attendance > 52 OFFSET 560
What was the record of the game after Week 6 with an attendance larger than 52,560?
CREATE TABLE table_name_21 (record VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT COUNT(*) FROM Votes
Average age of SO User.
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) 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 SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense 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 CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId 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 VoteTypes ( Id number, Name text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text )
SELECT election_date FROM table_26362472_1 WHERE province = "Albacete"
What are the election date for elections held in the province of Albacete?
CREATE TABLE table_26362472_1 (election_date VARCHAR, province VARCHAR)
SELECT MAX(attendance) FROM table_name_61 WHERE game_site = "milwaukee county stadium"
What is the highest attendance rate at Milwaukee County Stadium?
CREATE TABLE table_name_61 (attendance INTEGER, game_site VARCHAR)
SELECT "team" FROM table_204_642 WHERE "appearance" > (SELECT "appearance" FROM table_204_642 WHERE "team" = 'titans' AND "domestic tournament" = '2011-12 miway t20 challenge') AND "domestic tournament" = '2011-12 miway t20 challenge' ORDER BY "appearance" LIMIT 1
which team came in after the titans in the miway t20 challenge ?
CREATE TABLE table_204_642 ( id number, "team" text, "domestic tournament" text, "position" text, "appearance" text, "qualified" text )
SELECT left_office FROM table_26362472_1 WHERE election_number = 11
What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11?
CREATE TABLE table_26362472_1 (left_office VARCHAR, election_number VARCHAR)
SELECT MAX(ends_lost) FROM table_name_11 WHERE locale = "ontario"
What's Ontario's highest Ends Lost?
CREATE TABLE table_name_11 (ends_lost INTEGER, locale VARCHAR)
SELECT date FROM table_name_80 WHERE round = "qf"
what is the date when the round is qf?
CREATE TABLE table_name_80 ( date VARCHAR, round VARCHAR )
SELECT district FROM table_26362472_1 WHERE took_office = "1844-10-14"
In how many district has a politician took office on 1844-10-14?
CREATE TABLE table_26362472_1 (district VARCHAR, took_office VARCHAR)
SELECT MAX(shot_pct) FROM table_name_36 WHERE ends_lost > 44 AND skip = "cathy king" AND blank_ends < 13
What is the shot % with a 44+ Ends Lost, skip Cathy King, and smaller than 13 Black Ends?
CREATE TABLE table_name_36 (shot_pct INTEGER, blank_ends VARCHAR, ends_lost VARCHAR, skip VARCHAR)
WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id = p.OwnerUserId WHERE LOWER(Location) LIKE '%malaysia%' AND TagName = 'android' GROUP BY u.Id, TagName) SELECT * FROM USER_BY_TAG WHERE rank <= 1000 ORDER BY UpVotes DESC
Top Android Dev in Malaysia Based on UpVote.
CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) 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 SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTaskStates ( 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 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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostTags ( PostId number, TagId 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 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 PostHistoryTypes ( Id number, Name 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 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 PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number )
SELECT left_office FROM table_26362472_1 WHERE province = "Seville"
What are the dates of leaving office for politician from the province of Seville?
CREATE TABLE table_26362472_1 (left_office VARCHAR, province VARCHAR)
SELECT MAX(ends_lost) FROM table_name_2 WHERE shot_pct > 77 AND blank_ends = 11 AND stolen_ends = 7 AND ends_won > 44
What's the highest Ends Lost with a shot % greater than 77, 11 blank ends, 7 stolen ends, and more than 44 ends one?
CREATE TABLE table_name_2 (ends_lost INTEGER, ends_won VARCHAR, stolen_ends VARCHAR, shot_pct VARCHAR, blank_ends VARCHAR)
SELECT "Location Attendance" FROM table_47368 WHERE "High assists" = 'ramon sessions (8)' AND "Date" = 'march 30'
what is the location attendance when the high assists is by ramon sessions (8) on march 30?
CREATE TABLE table_47368 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT COUNT(fastest_qualifying) FROM table_26358264_2 WHERE country = "United Arab Emirates"
When united arab emirates is the country how many fastest qualifying are there?
CREATE TABLE table_26358264_2 (fastest_qualifying VARCHAR, country VARCHAR)
SELECT segment_c FROM table_name_79 WHERE episode < 230 AND segment_a = "wax figures"
Which Segment C that has an Episode lower than 230, and a Segment A consisting of wax figures?
CREATE TABLE table_name_79 (segment_c VARCHAR, episode VARCHAR, segment_a VARCHAR)
SELECT MIN(league) AS Cup FROM table_22683369_8
What was the lowest number of points scored in the league cup?
CREATE TABLE table_22683369_8 ( league INTEGER )
SELECT location FROM table_26358264_2 WHERE fastest_qualifying = "Cancelled"
When cancelled is the fastest qualifying where is the location?
CREATE TABLE table_26358264_2 (location VARCHAR, fastest_qualifying VARCHAR)
SELECT segment_a FROM table_name_61 WHERE segment_b = "s awning"
Which Segment A has a Segment B of s awning?
CREATE TABLE table_name_61 (segment_a VARCHAR, segment_b VARCHAR)
SELECT country FROM table_name_23 WHERE rank = 5
Which Country has a Rank of 5?
CREATE TABLE table_name_23 ( country VARCHAR, rank VARCHAR )
SELECT winning_aircraft FROM table_26358264_2 WHERE country = "United Arab Emirates"
When united arab emirates is the country what is the winning aircraft?
CREATE TABLE table_26358264_2 (winning_aircraft VARCHAR, country VARCHAR)
SELECT split_off___continuation_of FROM table_name_40 WHERE date = "1836"
Which church had a Split off/Continuation in 1836?
CREATE TABLE table_name_40 (split_off___continuation_of VARCHAR, date VARCHAR)
SELECT "Tennis" FROM table_49024 WHERE "School Year" = '2004-05'
What is Tennis, when School Year is 2004-05?
CREATE TABLE table_49024 ( "School Year" text, "Volleyball" text, "Cross Country" text, "Soccer" text, "Tennis" text, "Golf" text )
SELECT assists FROM table_26360571_2 WHERE opponent = "Illinois-Chicago"
List the number of assists against illinois-chicago.
CREATE TABLE table_26360571_2 (assists VARCHAR, opponent VARCHAR)
SELECT church_name FROM table_name_50 WHERE organized_by = "george m. hinkle"
Which church was organized by George M. Hinkle?
CREATE TABLE table_name_50 (church_name VARCHAR, organized_by VARCHAR)
SELECT COUNT("Round") FROM table_36614 WHERE "Position" = 'defensive tackle' AND "Pick #" < '19'
In what Round was a Defensive Tackle Pick # less than 19?
CREATE TABLE table_36614 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT opponent FROM table_26360571_2 WHERE date = "February 15, 2003"
List the opposing team on february 15, 2003.
CREATE TABLE table_26360571_2 (opponent VARCHAR, date VARCHAR)
SELECT split_off___continuation_of FROM table_name_40 WHERE church_name = "pure church of christ"
What was the Pure Church of Christ's Split off/ Continuation?
CREATE TABLE table_name_40 (split_off___continuation_of VARCHAR, church_name VARCHAR)
SELECT Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY Amount_Payment DESC
Give me a histogram to show the date and the amount for all the payments processed with Visa, order y axis in descending order.
CREATE TABLE Claims ( Claim_ID INTEGER, Policy_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amount_Settled INTEGER ) CREATE TABLE Settlements ( Settlement_ID INTEGER, Claim_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amount_Settled INTEGER, Customer_Policy_ID INTEGER ) CREATE TABLE Payments ( Payment_ID INTEGER, Settlement_ID INTEGER, Payment_Method_Code VARCHAR(255), Date_Payment_Made DATE, Amount_Payment INTEGER ) CREATE TABLE Customer_Policies ( Policy_ID INTEGER, Customer_ID INTEGER, Policy_Type_Code CHAR(15), Start_Date DATE, End_Date DATE ) CREATE TABLE Customers ( Customer_ID INTEGER, Customer_Details VARCHAR(255) )
SELECT rebounds FROM table_26360571_2 WHERE _number = 2
List the number of recovers for player #2.
CREATE TABLE table_26360571_2 (rebounds VARCHAR, _number VARCHAR)
SELECT split_off___continuation_of FROM table_name_44 WHERE church_name = "independent church"
What was the Independent Church's Split off/ Continuation?
CREATE TABLE table_name_44 (split_off___continuation_of VARCHAR, church_name VARCHAR)
SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19412) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'base excess') AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month')
what is the maximum base excess value of patient 19412 during this month?
CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 patients ( row_id number, subject_id number, gender text, dob time, dod 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 microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time )
SELECT opponent FROM table_26360571_2 WHERE date = "February 22, 1983"
List the opposing team from february 22, 1983.
CREATE TABLE table_26360571_2 (opponent VARCHAR, date VARCHAR)
SELECT organized_by FROM table_name_68 WHERE church_name = "alston church"
Who organized Alston Church?
CREATE TABLE table_name_68 (organized_by VARCHAR, church_name VARCHAR)
SELECT "Event" FROM table_45361 WHERE "Method" = 'submission (armbar)' AND "Opponent" = 'jason st. louis'
What is Event, when Method is 'Submission (Armbar)', and when Opponent is 'Jason St. Louis'?
CREATE TABLE table_45361 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Location" text )
SELECT MIN(assists) FROM table_26360571_2
List the lowest number of assists.
CREATE TABLE table_26360571_2 (assists INTEGER)
SELECT name FROM table_name_68 WHERE headquarters = "the netherlands"
what is the name of the netherlands head quarters
CREATE TABLE table_name_68 (name VARCHAR, headquarters 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 = 'NASHVILLE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHOENIX' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
what flights leave from NASHVILLE to PHOENIX
CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE state ( state_code text, state_name text, country_name 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 compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name 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 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 airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant 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 airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed int, range_miles int, pressurized varchar ) CREATE TABLE flight ( 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 city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight 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 month ( month_number int, month_name text )
SELECT under_11 FROM table_26368963_2 WHERE under_17 = "Salma Nassar"
What is every value for Under-11 when value of under-17 is Salma Nassar?
CREATE TABLE table_26368963_2 (under_11 VARCHAR, under_17 VARCHAR)
SELECT rider FROM table_name_10 WHERE rank = 10
what person was in rank 10
CREATE TABLE table_name_10 (rider VARCHAR, rank VARCHAR)
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 21454) AND STRFTIME('%y', labevents.charttime) >= '2102'
have any laboratory tests been performed since 2102 on patient 21454?
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 under_13 FROM table_26368963_2 WHERE under_15 = "Maria Elena Ubina"
What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?
CREATE TABLE table_26368963_2 (under_13 VARCHAR, under_15 VARCHAR)
SELECT driver FROM table_name_40 WHERE entries = 210
Which driver has 210 as entries?
CREATE TABLE table_name_40 (driver VARCHAR, entries VARCHAR)
SELECT country FROM table_name_25 WHERE player = "jack nicklaus"
WHAT COUNTRY HAS A PLAYER NAMED JACK NICKLAUS?
CREATE TABLE table_name_25 ( country VARCHAR, player VARCHAR )
SELECT under_17 FROM table_26368963_2 WHERE under_15 = "Maria Elena Ubina"
What is every value for Under-17 if Under-15 is Maria Elena Ubina?
CREATE TABLE table_26368963_2 (under_17 VARCHAR, under_15 VARCHAR)
SELECT seasons FROM table_name_24 WHERE driver = "fernando alonso"
Which seasons have fernando alonso as the driver?
CREATE TABLE table_name_24 (seasons VARCHAR, driver VARCHAR)
SELECT nationality FROM table_name_73 WHERE school_club_team = "purdue"
What is the nationality of the Team Purdue?
CREATE TABLE table_name_73 ( nationality VARCHAR, school_club_team VARCHAR )
SELECT under_11 FROM table_26368963_2 WHERE under_19 = "Leong Siu Lynn"
What is every value for Under-11 if Under-19 is Leong Siu Lynn?
CREATE TABLE table_26368963_2 (under_11 VARCHAR, under_19 VARCHAR)
SELECT club FROM table_name_4 WHERE goals = 0
What club had 0 goals?
CREATE TABLE table_name_4 (club VARCHAR, goals VARCHAR)
SELECT procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Stephanie Suchan"
what is procedure short title of subject name stephanie suchan?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT under_15 FROM table_26368963_2 WHERE under_11 = "Reeham Sedky"
Who is every Under-15 if Under-11 is Reeham Sedky?
CREATE TABLE table_26368963_2 (under_15 VARCHAR, under_11 VARCHAR)