answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT engine FROM table_name_28 WHERE rounds = "all" AND entrant = "scuderia ferrari"
What kind of engine is in the car for Scuderia Ferrari that went all rounds?
CREATE TABLE table_name_28 (engine VARCHAR, rounds VARCHAR, entrant VARCHAR)
SELECT party AS a FROM table_22754310_1 WHERE runner_up_a = "M. S. K. Sathiyendran"
Name the party a for m. s. k. sathiyendran runner up
CREATE TABLE table_22754310_1 (party VARCHAR, runner_up_a VARCHAR)
SELECT power_capacity__gw_ FROM table_11456251_5 WHERE number_of_generators = 781
What is the power capacity when the generators were 781?
CREATE TABLE table_11456251_5 ( power_capacity__gw_ VARCHAR, number_of_generators VARCHAR )
SELECT constructor FROM table_name_50 WHERE chassis = "196"
Who is the constructor of the 196 chassis?
CREATE TABLE table_name_50 (constructor VARCHAR, chassis VARCHAR)
SELECT party AS a FROM table_22754310_1 WHERE constituency = "Sriperumbudur"
Name the party a for sriperumbudur
CREATE TABLE table_22754310_1 (party VARCHAR, constituency VARCHAR)
SELECT T2.Name, COUNT(*) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC
How many products are there for each manufacturer Visualize by bar chart, list in desc by the X.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT home FROM table_name_81 WHERE visitor = "kings"
Name the home with visitor of kings
CREATE TABLE table_name_81 (home VARCHAR, visitor VARCHAR)
SELECT COUNT(runner_up_a) FROM table_22754310_1 WHERE constituency = "Perambalur"
Name the total number of runner up a for perambalur
CREATE TABLE table_22754310_1 (runner_up_a VARCHAR, constituency VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service, city, flight WHERE (((flight.arrival_time <= 1600 AND flight.arrival_time >= 1200) AND city.city_code = airport_service.city_code AND city.city_name = 'PITTSBURGH' AND flight.to_airport = airport_service.airport_code) OR ((flight.departure_time <= 1600 AND flight.departure_time >= 1200) AND city.city_code = airport_service.city_code AND city.city_name = 'PITTSBURGH' AND flight.from_airport = airport_service.airport_code)) AND flight.airline_code = 'DL'
show me all the DL flights leaving or arriving at PITTSBURGH between 1200 and 1600 in the afternoon
CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE month ( month_number int, month_name 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 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 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 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 ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE days ( days_code varchar, day_name 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 food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE flight_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 )
SELECT COUNT(attendance) FROM table_name_84 WHERE visitor = "cavaliers"
Name the total number of attendance when the cavaliers visited
CREATE TABLE table_name_84 (attendance VARCHAR, visitor VARCHAR)
SELECT constituency FROM table_22754310_1 WHERE margin = 175130
Name the constituency for 175130
CREATE TABLE table_22754310_1 (constituency VARCHAR, margin VARCHAR)
SELECT SUM("Lane") FROM table_69881 WHERE "Nationality" = 'iceland'
How many lanes have a Nationality of iceland?
CREATE TABLE table_69881 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" text )
SELECT mixed_doubles FROM table_name_93 WHERE year = 2006
Which mixed doubles was featured in 2006?
CREATE TABLE table_name_93 (mixed_doubles VARCHAR, year VARCHAR)
SELECT COUNT(margin) FROM table_22753439_1 WHERE winner = "S. Singaravadivel"
How many margins have a winner of S. Singaravadivel?
CREATE TABLE table_22753439_1 (margin VARCHAR, winner VARCHAR)
SELECT AVG(score) FROM table_name_35 WHERE place = "t1" AND player = "hubert green"
Which Score has a Place of t1, and a Player of hubert green?
CREATE TABLE table_name_35 ( score INTEGER, place VARCHAR, player VARCHAR )
SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval"
In the games at corio oval, what was the highest crowd?
CREATE TABLE table_name_62 (crowd INTEGER, venue VARCHAR)
SELECT COUNT(winner) FROM table_22753439_1 WHERE runner_up_a = "A. Karthikeyan"
How many winners have a runner-up of A. Karthikeyan?
CREATE TABLE table_22753439_1 (winner VARCHAR, runner_up_a VARCHAR)
SELECT MAX(games_played) FROM table_18018214_4
What is the highest number of games played?
CREATE TABLE table_18018214_4 ( games_played INTEGER )
SELECT away_team FROM table_name_29 WHERE venue = "corio oval"
In the match as corio oval, who was the away team?
CREATE TABLE table_name_29 (away_team VARCHAR, venue VARCHAR)
SELECT party AS a FROM table_22753439_1 WHERE winner = "P. Chidambaram"
What is every party with a winner of P. Chidambaram?
CREATE TABLE table_22753439_1 (party VARCHAR, winner VARCHAR)
SELECT score FROM table_name_19 WHERE visitor = "ny rangers" AND record = "19–28–15"
Which Score has a Visitor of ny rangers, and a Record of 19 28 15?
CREATE TABLE table_name_19 ( score VARCHAR, visitor VARCHAR, record VARCHAR )
SELECT AVG(communes) FROM table_name_83 WHERE cantons > 10 AND area__square_km_ = 1 OFFSET 589
How many communes associated with over 10 cantons and an area (Square km) of 1,589?
CREATE TABLE table_name_83 (communes INTEGER, cantons VARCHAR, area__square_km_ VARCHAR)
SELECT party AS a FROM table_22753439_1 WHERE constituency = "Tiruchendur"
What is every party A with a constituency of Tiruchendur?
CREATE TABLE table_22753439_1 (party VARCHAR, constituency VARCHAR)
SELECT "Venue" FROM table_1207 WHERE "Champion" = 'Lorena Ochoa'
At what venues did Lorena Ochoa win the championship?
CREATE TABLE table_1207 ( "Year" real, "Dates" text, "Venue" text, "Champion" text, "Country" text, "Score" real, "To par" text, "Margin of victory" text, "Runner(s)-up" text, "Purse ( $ )" real, "Winners share ($)" real )
SELECT decision FROM table_name_83 WHERE date = "january 12"
Which team won the game on January 12?
CREATE TABLE table_name_83 (decision VARCHAR, date VARCHAR)
SELECT constituency FROM table_22753245_1 WHERE runner_up_a = "D. Venugopal"
Who is the constituency when the runner-up was d. Venugopal?
CREATE TABLE table_22753245_1 (constituency VARCHAR, runner_up_a VARCHAR)
SELECT "Tournament Winner" FROM table_73442 WHERE "Conference" = 'Atlantic Coast Conference'
Who is the tournament winner in the Atlantic Coast Conference?
CREATE TABLE table_73442 ( "Conference" text, "Regular Season Winner" text, "Conference Player of the Year" text, "Conference Tournament" text, "Tournament Venue (City)" text, "Tournament Winner" text )
SELECT home_team AS score FROM table_name_70 WHERE away_team = "geelong"
Who was the home team against Geelong?
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
SELECT party FROM table_22753245_1 WHERE constituency = "10. Tindivanam"
What is the party where the constituency is 10. Tindivanam?
CREATE TABLE table_22753245_1 (party VARCHAR, constituency VARCHAR)
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Actuarial Math%' OR name LIKE '%Actuarial Math%') AND credits = 7
Let 's see Actuarial Math courses with 7 credits .
CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar )
SELECT COUNT(crowd) FROM table_name_70 WHERE venue = "mcg"
What was the attendance when the VFL played MCG?
CREATE TABLE table_name_70 (crowd VARCHAR, venue VARCHAR)
SELECT party FROM table_22753245_1 WHERE constituency = "1. Chennai North"
What is the party when the constituency is 1. Chennai North?
CREATE TABLE table_22753245_1 (party VARCHAR, constituency VARCHAR)
SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admission_location = "EMERGENCY ROOM ADMIT"
what is minimum age of patients whose marital status is single and admission location is emergency room admit?
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 ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT security_forces FROM table_name_15 WHERE civilians = "67"
Name the security forces with civilians of 67
CREATE TABLE table_name_15 (security_forces VARCHAR, civilians VARCHAR)
SELECT COUNT(margin) FROM table_22753245_1 WHERE party = "Indian National Congress" AND winner = "L. Adaikalaraj c"
How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress?
CREATE TABLE table_22753245_1 (margin VARCHAR, party VARCHAR, winner VARCHAR)
SELECT Id, Reputation FROM Users WHERE DisplayName = 'HyperNeutrino' LIMIT 1
Get user id and rep by name.
CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) 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 CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskStates ( 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 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 Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId 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 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 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 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 ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) 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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time )
SELECT insurgents FROM table_name_75 WHERE civilians = "49"
Name the insurgents for civilians being 49
CREATE TABLE table_name_75 (insurgents VARCHAR, civilians VARCHAR)
SELECT MAX(margin) FROM table_22754491_1 WHERE winner = "K. Balathandayutham"
What is the margin when k. balathandayutham is the winner?
CREATE TABLE table_22754491_1 (margin INTEGER, winner VARCHAR)
SELECT MAX("Round") FROM table_65059 WHERE "Away Team" = 'pohang steelers'
What is the latest round for Pohang Steelers as the away team?
CREATE TABLE table_65059 ( "Round" real, "Date" text, "Home Team" text, "Score" text, "Away Team" text, "Attendance" real, "Stadium" text )
SELECT security_forces FROM table_name_81 WHERE civilians = "67"
Name the security forces with civilians being 67
CREATE TABLE table_name_81 (security_forces VARCHAR, civilians VARCHAR)
SELECT margin FROM table_22754491_1 WHERE constituency = "Periyakulam"
What is the margin when periyakulam is the constituency?
CREATE TABLE table_22754491_1 (margin VARCHAR, constituency VARCHAR)
SELECT "Sub-Parish (Sogn)" FROM table_59789 WHERE "Year Built" < '1883' AND "Parish (Prestegjeld)" = 'jostedal parish' AND "Location of the Church" = 'gaupne'
Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?
CREATE TABLE table_59789 ( "Parish (Prestegjeld)" text, "Sub-Parish (Sogn)" text, "Church Name" text, "Year Built" real, "Location of the Church" text )
SELECT security_forces FROM table_name_82 WHERE year = "2009"
Name the security forces for 2009
CREATE TABLE table_name_82 (security_forces VARCHAR, year VARCHAR)
SELECT pole_position FROM table_22765887_1 WHERE date = "August 15, 1981"
Who had the pole position in the August 15, 1981 race?
CREATE TABLE table_22765887_1 (pole_position VARCHAR, date VARCHAR)
SELECT "parish" FROM table_203_36 WHERE NOT "closed" IS NULL
which parish is the only one to have closed ?
CREATE TABLE table_203_36 ( id number, "parish" text, "locality" text, "parish priest" text, "founded" number, "closed" number )
SELECT tyre FROM table_name_85 WHERE chassis = "p57 p61"
What tyre has a chassis of p57 p61?
CREATE TABLE table_name_85 (tyre VARCHAR, chassis VARCHAR)
SELECT track FROM table_22765887_1 WHERE date = "September 12, 1981"
Which track was used on September 12, 1981?
CREATE TABLE table_22765887_1 (track VARCHAR, date VARCHAR)
SELECT "Bike" FROM table_47540 WHERE "Grid" < '9' AND "Time" = '+7.764'
What is the name of the bike that has a grid number smaller than 9 with a time of +7.764?
CREATE TABLE table_47540 ( "Rider" text, "Bike" text, "Laps" real, "Time" text, "Grid" real )
SELECT MAX(laps) FROM table_name_94 WHERE grid = 1
what is the highest laps when the grid is 1?
CREATE TABLE table_name_94 (laps INTEGER, grid VARCHAR)
SELECT extension FROM table_22771048_3 WHERE city_neighborhood = "University of Washington"
Name the extension for university of washington
CREATE TABLE table_22771048_3 (extension VARCHAR, city_neighborhood VARCHAR)
SELECT "diagonal (mm)" FROM table_203_356 WHERE "type" = '1/10"'
how long is the diagonal size of a 1/10 sensor ?
CREATE TABLE table_203_356 ( id number, "type" text, "diagonal (mm)" text, "width (mm)" text, "height (mm)" text, "area (mm2)" text, "stops (area)" number, "crop factor" text )
SELECT COUNT(total) FROM table_name_92 WHERE swimming_time__pts_ = "2:20.93 (1232)"
How many athletes had a Swimming Time (pts) of 2:20.93 (1232)?
CREATE TABLE table_name_92 (total VARCHAR, swimming_time__pts_ VARCHAR)
SELECT MIN(projected_opening) FROM table_22771048_3
Name the least projected opening
CREATE TABLE table_22771048_3 (projected_opening INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "5" AND prescriptions.drug = "Promethazine HCl"
what is the number of patients on promethazine hcl drug prescription who stayed in hospital for more than 5 days?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT riding_penalties__pts_ FROM table_name_83 WHERE swimming_time__pts_ = "2:18.16 (1264)"
What is the riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)?
CREATE TABLE table_name_83 (riding_penalties__pts_ VARCHAR, swimming_time__pts_ VARCHAR)
SELECT transit_connections FROM table_22771048_3 WHERE station = "Capitol Hill U"
Name the transit connections for capitol hill u
CREATE TABLE table_22771048_3 (transit_connections VARCHAR, station VARCHAR)
SELECT AVG("Top-10") FROM table_41861 WHERE "Wins" < '0'
What is average Top 10 with 0 wins?
CREATE TABLE table_41861 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT owner_s_ FROM table_name_18 WHERE date = 1956 AND description = "mark 1 pos"
Which owner has a description of Mark 1 pos and is dated 1956?
CREATE TABLE table_name_18 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR)
SELECT COUNT(city_neighborhood) FROM table_22771048_4 WHERE station = "Hospital"
How many neighborhoods have a station proposed at a Hospital?
CREATE TABLE table_22771048_4 (city_neighborhood VARCHAR, station VARCHAR)
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '021-155303' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '021-155303' AND patient.hospitaldischargetime IS NULL)) AND treatment.treatmentname = 'analgesics - bolus parenteral analgesics'
had patient 021-155303 been under any analgesics - bolus parenteral analgesics procedure at other hospitals?
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) 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 treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text )
SELECT owner_s_ FROM table_name_30 WHERE date = 1953 AND description = "mark 1 ck"
Which owner has a description of Mark 1 CK and is dated 1953?
CREATE TABLE table_name_30 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR)
SELECT transit_connections FROM table_22771048_2 WHERE station = "Pioneer Square U"
What are the transit connections from Pioneer Square U?
CREATE TABLE table_22771048_2 (transit_connections VARCHAR, station VARCHAR)
SELECT "Originalairdate" FROM table_29369 WHERE "Written by" = 'Fintan Ryan'
What date did the episode that was written by Fintan Ryan originally air?
CREATE TABLE table_29369 ( "Episode #" real, "Title" text, "Directed by" text, "Written by" text, "Originalairdate" text, "Ratings" text )
SELECT name_athlete FROM table_name_97 WHERE semi = "1:43.79"
Who was the athlete who had SEMI of 1:43.79?
CREATE TABLE table_name_97 (name_athlete VARCHAR, semi VARCHAR)
SELECT transit_connections FROM table_22771048_2 WHERE city_neighborhood = "Columbia City, Seattle"
What's the transit connection in Columbia City, Seattle?
CREATE TABLE table_22771048_2 (transit_connections VARCHAR, city_neighborhood VARCHAR)
SELECT MIN("Total") FROM table_12869 WHERE "Nationality" = 'italy' AND "Latest win" = '1950'
What was the lowest total for Italy when the latest win is 1950?
CREATE TABLE table_12869 ( "Cyclist" text, "Nationality" text, "First win" real, "Latest win" real, "Total" real )
SELECT final FROM table_name_1 WHERE lane = 4
What were the final time for the swimmer on lane 4?
CREATE TABLE table_name_1 (final VARCHAR, lane VARCHAR)
SELECT pct_route_available FROM table_2279413_1 WHERE type_of_protection = "small patent"
For small patent type of protections, what type of PCT route is available?
CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, type_of_protection 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 patient.hospitaldischargetime IS NULL)) AND microlab.culturesite = 'other'
is there any results from a microbiology test in patient 031-3355's other in the current hospital encounter?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text )
SELECT final_score FROM table_name_21 WHERE stadium = "lambeau field"
What is the final score of the game at lambeau field?
CREATE TABLE table_name_21 (final_score VARCHAR, stadium VARCHAR)
SELECT conversion_from_patent_application FROM table_2279413_1 WHERE country = "Tonga"
In Tonga, what is the conversion from patent application?
CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, country VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATTLE' AND date_day.day_number = 1 AND date_day.month_number = 6 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CHICAGO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'CO'
i would like to book a flight from CHICAGO into SEATTLE on 6 1 on CO
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 dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE compartment_class ( compartment varchar, class_type 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 time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time 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 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 airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE 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 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 flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE TABLE code_description ( code varchar, description text ) 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 ground_service ( city_code text, airport_code text, transport_type text, ground_fare int )
SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = "aliyya qadi" AND votes < 1421
What rank is aliyya qadi with less than 1421 votes?
CREATE TABLE table_name_73 (rank INTEGER, candidate_name VARCHAR, votes VARCHAR)
SELECT pct_route_available FROM table_2279413_1 WHERE type_of_protection = "short patent"
For short patent type of protections, what type of PCT route is available?
CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, type_of_protection VARCHAR)
SELECT "English" FROM table_19820 WHERE "Russian" = 'loshad, kobyla (лошадь, кобыла)'
What is the English word for the Russian words loshad, kobyla ( , )?
CREATE TABLE table_19820 ( "Ido" text, "English" text, "Italian" text, "French" text, "German" text, "Russian" text, "Spanish" text )
SELECT candidate_name FROM table_name_61 WHERE votes > 279 AND rank < 50 AND gender = "♀" AND list = "al-ahd"
Which candidate has more than 279 votes, rank less than 50, is ♀ and al-ahd?
CREATE TABLE table_name_61 (candidate_name VARCHAR, list VARCHAR, gender VARCHAR, votes VARCHAR, rank VARCHAR)
SELECT pct_route_available FROM table_2279413_1 WHERE country = "Tangier Zone"
In Tangier Zone, what is the PCT route availibility?
CREATE TABLE table_2279413_1 (pct_route_available VARCHAR, country VARCHAR)
SELECT Sex, AVG(Weight) FROM people GROUP BY Sex
Give me the comparison about the average of Weight over the Sex , and group by attribute Sex by a bar chart.
CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real )
SELECT MIN(year) FROM table_name_48 WHERE category = "favorite male replacement" AND nominee = "ben vereen"
What is the first year that the Favorite Male Replacement category had Ben Vereen as a nominee?
CREATE TABLE table_name_48 (year INTEGER, category VARCHAR, nominee VARCHAR)
SELECT conversion_from_patent_application FROM table_2279413_1 WHERE maximum_term = "10 years" AND pct_route_available = "Yes"
When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications?
CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, maximum_term VARCHAR, pct_route_available VARCHAR)
SELECT affiliation FROM table_28211213_1 WHERE institution = "Davenport University"
What is the affiliation of Davenport University?
CREATE TABLE table_28211213_1 ( affiliation VARCHAR, institution VARCHAR )
SELECT award_ceremony FROM table_name_52 WHERE category = "outstanding actress in a musical" AND nominee = "kristin chenoweth"
What year was Kristin Chenoweth nominated in the category of outstanding actress in a musical?
CREATE TABLE table_name_52 (award_ceremony VARCHAR, category VARCHAR, nominee VARCHAR)
SELECT result FROM table_22801331_1 WHERE record = "6-2"
What was the result against the team which the Cowboys have a 6-2 record against?
CREATE TABLE table_22801331_1 (result VARCHAR, record VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.long_title = "Insertion of non-drug-eluting coronary artery stent(s)"
give the number of male patients who had the procedure for insertion of non-drug-eluting coronaryartery stent(s).
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE 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 )
SELECT AVG(year) FROM table_name_87 WHERE result = "nominated" AND category = "favorite male replacement" AND nominee = "aaron tveit"
What year was Aaron Tveit nominated in the Favorite Male Replacement category?
CREATE TABLE table_name_87 (year INTEGER, nominee VARCHAR, result VARCHAR, category VARCHAR)
SELECT MIN(opponents) FROM table_22801331_1 WHERE cowboys_points = 36
What is the fewest points opponents have scored when the Cowboys score 36?
CREATE TABLE table_22801331_1 (opponents INTEGER, cowboys_points VARCHAR)
SELECT model_number FROM table_name_19 WHERE frequency = "750 mhz" AND socket = "bga2μpga2"
Which model has a frequency of 750 mhz and a socket of bga2 pga2?
CREATE TABLE table_name_19 ( model_number VARCHAR, frequency VARCHAR, socket VARCHAR )
SELECT SUM(rank) FROM table_name_39 WHERE placings = 58
Tell me the sum of rank for placings of 58
CREATE TABLE table_name_39 (rank INTEGER, placings VARCHAR)
SELECT opponents FROM table_22801331_1 WHERE record = "1-0"
How many opponents have a 1-0 record against the Cowboys?
CREATE TABLE table_22801331_1 (opponents VARCHAR, record VARCHAR)
SELECT viewers__in_millions_ FROM table_1849243_1 WHERE archive = "16mm t/r"
How many viewers watched the 16mm t/r episode?
CREATE TABLE table_1849243_1 ( viewers__in_millions_ VARCHAR, archive VARCHAR )
SELECT MIN(placings) FROM table_name_30 WHERE nation = "united kingdom" AND rank < 13
Tell me the lowest placings for United Kingdom and rank less than 13
CREATE TABLE table_name_30 (placings INTEGER, nation VARCHAR, rank VARCHAR)
SELECT game FROM table_22801331_1 WHERE record = "6-3"
What game was held against a team with a 6-3 record against the Cowboys?
CREATE TABLE table_22801331_1 (game VARCHAR, record VARCHAR)
WITH data(f) AS (SELECT 'abc' UNION ALL SELECT 'def' UNION ALL SELECT 'abc') SELECT DISTINCT f, ROW_NUMBER() OVER (ORDER BY f) FROM data GROUP BY f
WITH data (f) AS ( SELECT 'abc' UNION ALL.
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 PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId 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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) 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 PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number )
SELECT MAX(rank) FROM table_name_75 WHERE placings > 123 AND points > 88.06
I want to know the highest rank with placings more than 123 and points greater than 88.06
CREATE TABLE table_name_75 (rank INTEGER, placings VARCHAR, points VARCHAR)
SELECT COUnT AS name FROM table_22810095_8 WHERE country = "CIV"
How many names have a country of civ?
CREATE TABLE table_22810095_8 (COUnT VARCHAR, country VARCHAR)
SELECT Building, COUNT(*) FROM Faculty GROUP BY Building
How many faculty members does each building have? List the result with the name of the building with a bar chart.
CREATE TABLE Faculty_Participates_in ( FacID INTEGER, actid INTEGER ) CREATE TABLE Participates_in ( stuid INTEGER, actid INTEGER ) CREATE TABLE Faculty ( FacID INTEGER, Lname VARCHAR(15), Fname VARCHAR(15), Rank VARCHAR(15), Sex VARCHAR(1), Phone INTEGER, Room VARCHAR(5), Building VARCHAR(13) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Activity ( actid INTEGER, activity_name varchar(25) )
SELECT driver FROM table_name_65 WHERE entrant = "scuderia ambrosiana"
Who is the drive for an Entrant of Scuderia Ambrosiana?
CREATE TABLE table_name_65 (driver VARCHAR, entrant VARCHAR)
SELECT name FROM table_22810095_8 WHERE moving_from = "northampton Town"
Who moved from Northampton Town?
CREATE TABLE table_22810095_8 (name VARCHAR, moving_from VARCHAR)
SELECT surface FROM table_name_34 WHERE date = "november 28, 2010"
Tell me the surface for november 28, 2010
CREATE TABLE table_name_34 ( surface VARCHAR, date VARCHAR )
SELECT rounds FROM table_name_72 WHERE entrant = "automobiles talbot-darracq" AND driver = "pierre levegh"
Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver?
CREATE TABLE table_name_72 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)