answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT style FROM table_name_17 WHERE choreographer_s_ = "dave scott"
What is Style, when Choreographer(s) is Dave Scott?
CREATE TABLE table_name_17 ( style VARCHAR, choreographer_s_ VARCHAR )
SELECT cyrillic_name_other_names FROM table_2562572_9 WHERE population__2011_ = 5414
What is the cyrillic name for the settlement with the population of 5414?
CREATE TABLE table_2562572_9 (cyrillic_name_other_names VARCHAR, population__2011_ VARCHAR)
SELECT city FROM table_name_20 WHERE region = "east" AND state = "north carolina" AND host = "university of richmond"
What city in the east region in North Carolina was the round where the University of Richmond was the host?
CREATE TABLE table_name_20 (city VARCHAR, host VARCHAR, region VARCHAR, state VARCHAR)
SELECT "Incumbent" FROM table_18141 WHERE "District" = 'Florida 6'
Who's the incumbent in Florida 6?
CREATE TABLE table_18141 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text )
SELECT cyrillic_name_other_names FROM table_2562572_9 WHERE settlement = "Budisava"
What is the cyrillic name for Budisava?
CREATE TABLE table_2562572_9 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)
SELECT host FROM table_name_62 WHERE state = "texas" AND venue = "montagne center"
What was the host of the round in the Montagne Center in Texas?
CREATE TABLE table_name_62 (host VARCHAR, state VARCHAR, venue VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEW YORK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MIAMI' AND flight.to_airport = AIRPORT_SERVICE_0.airport_code AND flight.from_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'FF'
give me the flights from MIAMI to NEW YORK using FF
CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code 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 flight_fare ( flight_id int, fare_id 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 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 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 ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code 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 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 class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) 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 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 )
SELECT dominant_religion__2002_ FROM table_2562572_9 WHERE cyrillic_name_other_names = "Нови Сад"
What is the dominant religion for нови сад in 2002?
CREATE TABLE table_2562572_9 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT venue FROM table_name_90 WHERE date = "august 16, 2006"
Which venue had a match played on August 16, 2006?
CREATE TABLE table_name_90 (venue VARCHAR, date VARCHAR)
SELECT date_of_appointment FROM table_27114708_2 WHERE team = "Ascoli"
For team ascoli please mention all the appointment date.
CREATE TABLE table_27114708_2 ( date_of_appointment VARCHAR, team VARCHAR )
SELECT MAX(yes_votes) FROM table_256286_19 WHERE no_votes = 61307
What is the largest number of yest votes for the measure with 61307 no votes?
CREATE TABLE table_256286_19 (yes_votes INTEGER, no_votes VARCHAR)
SELECT competition FROM table_name_78 WHERE date = "april 2, 2006"
Which match was played on April 2, 2006?
CREATE TABLE table_name_78 (competition VARCHAR, date VARCHAR)
SELECT COUNT("Notes") FROM table_17715 WHERE "Date (From)" = '14 March 1910'
how many notes are form the date (from) 14 march 1910?
CREATE TABLE table_17715 ( "Name of System" text, "Location" text, "Traction Type" text, "Date (From)" text, "Date (To)" text, "Notes" text )
SELECT meas_num FROM table_256286_19 WHERE _percentage_yes = "58.29%"
What numbered measure had a 58.29% yes%?
CREATE TABLE table_256286_19 (meas_num VARCHAR, _percentage_yes VARCHAR)
SELECT constructor FROM table_name_58 WHERE rounds = "5"
Who is the Constructor for round 5?
CREATE TABLE table_name_58 (constructor VARCHAR, rounds VARCHAR)
SELECT COUNT("Match no.") FROM table_1987 WHERE "Team Europe" = 'Osku Palermaa'
How many match numbers have team europe listed as osku palermaa?
CREATE TABLE table_1987 ( "Match no." real, "Match Type" text, "Team Europe" text, "Score" text, "Team USA" text, "Progressive Total" text )
SELECT passed FROM table_256286_19 WHERE no_votes = 61307
What was the passing result for the measure with 61307 no votes?
CREATE TABLE table_256286_19 (passed VARCHAR, no_votes VARCHAR)
SELECT rounds FROM table_name_75 WHERE motorcycle = "mv agusta f4 1000 mt"
Which round has the mv agusta f4 1000 mt?
CREATE TABLE table_name_75 (rounds VARCHAR, motorcycle VARCHAR)
SELECT COUNT(*) AS Users FROM Users WHERE Reputation < 15 AND Id > 0
How many users with rep less than 15.
CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE PostHistoryTypes ( 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 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 ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE 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 VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE 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 FlagTypes ( 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 PostTags ( PostId number, TagId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) 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 SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange 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 )
SELECT MIN(meas_num) FROM table_256286_19 WHERE _percentage_yes = "33.57%"
What is the lowest measure number for the measure with a 33.57% yes percentage?
CREATE TABLE table_256286_19 (meas_num INTEGER, _percentage_yes VARCHAR)
SELECT team FROM table_name_46 WHERE constructor = "yamaha"
Who does Yamaha Construct for?
CREATE TABLE table_name_46 (team VARCHAR, constructor VARCHAR)
SELECT MIN("League championships") FROM table_46856 WHERE "Venue" = 'penn state ice pavilion' AND "Club" = 'penn state nittany lions men''s ice hockey'
Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lions men's ice hockey?
CREATE TABLE table_46856 ( "Sport" text, "League" text, "Club" text, "Founded" real, "Venue" text, "League championships" real, "Championship years" text )
SELECT passed FROM table_256286_19 WHERE description = "Bus and Truck Operating License Bill"
What was the passing result for the measure with a description of bus and truck operating license bill?
CREATE TABLE table_256286_19 (passed VARCHAR, description VARCHAR)
SELECT rider FROM table_name_31 WHERE rounds = "7" AND motorcycle = "ducati 999 rs"
Who is riding the Ducati 999 RS in Round 7?
CREATE TABLE table_name_31 (rider VARCHAR, rounds VARCHAR, motorcycle VARCHAR)
SELECT * FROM table_test_4 WHERE estimated_glomerular_filtration_rate_egfr < 30
estimated glomerular filtration rate ( egfr ) < 30 ml / min / 1.73 m2 using the mdrd formula at visit 1.
CREATE TABLE table_test_4 ( "id" int, "ejection_fraction_ef" int, "systolic_blood_pressure_sbp" int, "active_infection" bool, "heart_disease" bool, "renal_disease" bool, "estimated_glomerular_filtration_rate_egfr" int, "cardiogenic_shock" bool, "diastolic_blood_pressure_dbp" int, "symptomatic_hypotension" bool, "severe_refractory_hypertension" bool, "severe_left_ventricular_dysfunction" bool, "NOUSE" float )
SELECT passed FROM table_256286_22 WHERE _percentage_yes = "52.49%"
What was the result of the ballot that had a 52.49% yes vote percentage?
CREATE TABLE table_256286_22 (passed VARCHAR, _percentage_yes VARCHAR)
SELECT constructor FROM table_name_56 WHERE team = "trac racing team"
Who is the Constructor for the Trac Racing Team?
CREATE TABLE table_name_56 (constructor VARCHAR, team VARCHAR)
SELECT years_in_orlando FROM table_name_74 WHERE school_club_team = "texas tech"
Which Years in Orlando has a School/Club Team of texas tech?
CREATE TABLE table_name_74 ( years_in_orlando VARCHAR, school_club_team VARCHAR )
SELECT type FROM table_256286_21 WHERE meas_num = 3
What type of proposal is measure number 3?
CREATE TABLE table_256286_21 (type VARCHAR, meas_num VARCHAR)
SELECT away_team AS score FROM table_name_80 WHERE home_team = "richmond"
What was the away team score when Richmond was the home team?
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT("Rank") FROM table_68047 WHERE "Municipality" = 'kujalleq' AND "Former Name" = 'brattahlíð' AND "Population" < '47'
Name the total number of ranks for kujalleq with former name of brattahl and population less than 47
CREATE TABLE table_68047 ( "Rank" real, "Population" real, "Name" text, "Former Name" text, "Municipality" text )
SELECT yes_votes FROM table_256286_23 WHERE _percentage_yes = "60.39%"
How many yes votes did the measure that got 60.39% yes votes get?
CREATE TABLE table_256286_23 (yes_votes VARCHAR, _percentage_yes VARCHAR)
SELECT away_team AS score FROM table_name_15 WHERE venue = "brunswick street oval"
What was the away team score for the game played at the Brunswick Street Oval?
CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR)
SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING COUNT(*) >= 2
List categories that have at least two books after year 1989.
CREATE TABLE book_club ( category VARCHAR, YEAR INTEGER )
SELECT description FROM table_256286_23 WHERE _percentage_yes = "39.57%"
What is the description of the measure that got 39.57% yes votes?
CREATE TABLE table_256286_23 (description VARCHAR, _percentage_yes VARCHAR)
SELECT venue FROM table_name_89 WHERE away_team = "hawthorn"
Where did Hawthorn play as the away team?
CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR)
SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'BIOLOGY' AND course.number = 281 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id
By whom is BIOLOGY 281 taught ?
CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE area ( course_id int, area 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 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 offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar )
SELECT MIN(meas_num) FROM table_256286_23 WHERE description = "Tax Supervising and Conservation Bill"
What is the number of the tax supervising and conservation bill?
CREATE TABLE table_256286_23 (meas_num INTEGER, description VARCHAR)
SELECT rank FROM table_name_43 WHERE nationality = "poland" AND time = "1:50.12"
What rank did Poland receive with a time of 1:50.12?
CREATE TABLE table_name_43 (rank VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT date FROM table_2896329_1 WHERE handicap = "8 st 12 lb"
On what date was the handicap 8 st 12 lb?
CREATE TABLE table_2896329_1 ( date VARCHAR, handicap VARCHAR )
SELECT COUNT(passed) FROM table_256286_39 WHERE _percentage_yes = "52.11%"
How many ballot measures had a percentage yes of 52.11%?
CREATE TABLE table_256286_39 (passed VARCHAR, _percentage_yes VARCHAR)
SELECT MIN(overall) FROM table_name_58 WHERE school_club_team = "arizona state"
What is arizona state overall lowest?
CREATE TABLE table_name_58 (overall INTEGER, school_club_team VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Alcohol cirrhosis liver" AND lab."CATEGORY" = "Hematology"
count the number of patients whose diagnoses short title is alcohol cirrhosis liver and lab test category is hematology?
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 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 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 description FROM table_256286_39 WHERE _percentage_yes = "44.06%"
What is the measure where the yes% is 44.06%?
CREATE TABLE table_256286_39 (description VARCHAR, _percentage_yes VARCHAR)
SELECT MIN(lost) FROM table_name_76 WHERE played > 3 AND _percentage_won < 75 AND drawn = 0 AND points = 56
What are the fewest losses for a player lower than 3, with wins fewer than 75%, 0 draws and 56 points?
CREATE TABLE table_name_76 (lost INTEGER, points VARCHAR, drawn VARCHAR, played VARCHAR, _percentage_won VARCHAR)
SELECT AVG(pick__number) FROM table_name_8 WHERE overall = 296
What Average Pick # has an Overall of 296?
CREATE TABLE table_name_8 ( pick__number INTEGER, overall VARCHAR )
SELECT COUNT(passed) FROM table_256286_39 WHERE yes_votes = 216545
How many measures had a yes vote of 216545?
CREATE TABLE table_256286_39 (passed VARCHAR, yes_votes VARCHAR)
SELECT COUNT(tries) FROM table_name_73 WHERE played > 2 AND lost < 0
How many tries for the player whose number is greater than 2 and losses are smaller than 0?
CREATE TABLE table_name_73 (tries VARCHAR, played VARCHAR, lost VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.dob_year < "2078"
how many patients whose ethnicity is black/cape verdean and year of birth is less than 2078?
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 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT MAX(meas_num) FROM table_256286_39
What is the highest measure number?
CREATE TABLE table_256286_39 (meas_num INTEGER)
SELECT SUM(tries) FROM table_name_81 WHERE played > 16
What is the number of tries for the player who is larger than 16?
CREATE TABLE table_name_81 (tries INTEGER, played INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Open reduction of fracture with internal fixation, femur" AND lab."CATEGORY" = "Blood Gas"
what is the number of patients whose procedure long title is open reduction of fracture with internal fixation, femur and lab test category is blood gas?
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 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 )
SELECT _percentage_yes FROM table_256286_45 WHERE no_votes = 199174
What was the percentage of yes votes for the measure where the no votes number 199174?
CREATE TABLE table_256286_45 (_percentage_yes VARCHAR, no_votes VARCHAR)
SELECT MIN(drawn) FROM table_name_83 WHERE played > 2 AND _percentage_won > 100
What is the smallest draws for a player larger than 2 with a 100% wins?
CREATE TABLE table_name_83 (drawn INTEGER, played VARCHAR, _percentage_won VARCHAR)
SELECT SUM("new points") FROM table_204_651
what is the total of new points that have been given ?
CREATE TABLE table_204_651 ( id number, "date" text, "championship" text, "location" text, "category" text, "surface" text, "prev. result" text, "prev. points" number, "new points" number, "outcome" text )
SELECT COUNT(type) FROM table_256286_45 WHERE yes_votes = 312680
How many types are there for the measure where there were 312680 yes votes?
CREATE TABLE table_256286_45 (type VARCHAR, yes_votes VARCHAR)
SELECT AVG(drawn) FROM table_name_86 WHERE tries > 1 AND _percentage_won < 56.15 AND played > 16
What is the average draws for a player larger than 16 with more than 1 tries and a win percentage smaller than 56.15%?
CREATE TABLE table_name_86 (drawn INTEGER, played VARCHAR, tries VARCHAR, _percentage_won VARCHAR)
SELECT "Player" FROM table_9992 WHERE "Round" < '6' AND "Pick" = '69'
What is Player, when Round is less than 6, and when Pick is '69'?
CREATE TABLE table_9992 ( "Round" real, "Pick" real, "Player" text, "Nationality" text, "College" text )
SELECT COUNT(no_votes) FROM table_256286_45 WHERE description = "Forest Rehabilitation Debt Limit Amendment"
How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?
CREATE TABLE table_256286_45 (no_votes VARCHAR, description VARCHAR)
SELECT 2011 FROM table_name_22 WHERE tournament = "wimbledon"
What was the 2011 Wimbledon result?
CREATE TABLE table_name_22 (tournament VARCHAR)
SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 32755 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'bmi 33.0-33.9,adult') AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 32755 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 day')
what was the name of the drug patient 32755 got prescription for within 2 days after being diagnosed with bmi 33.0-33.9,adult in the last hospital visit?
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE d_icd_diagnoses ( 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 ) 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_labitems ( row_id number, itemid number, label text ) 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 d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto 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 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time )
SELECT type FROM table_256286_45 WHERE description = "Power Development Debt Limit Amendment"
What is the type of measure that voted on the Power Development Debt Limit Amendment?
CREATE TABLE table_256286_45 (type VARCHAR, description VARCHAR)
SELECT 2011 FROM table_name_59 WHERE 2007 = "f" AND tournament = "us open"
What was the result of the 2011 US Open when the 2007 was F?
CREATE TABLE table_name_59 (tournament VARCHAR)
SELECT director_s_ FROM table_name_54 WHERE recipient = "redbag pictures ltd"
Who was the director that had a recipient of Redbag Pictures Ltd?
CREATE TABLE table_name_54 ( director_s_ VARCHAR, recipient VARCHAR )
SELECT passed FROM table_256286_40 WHERE description = "Authorizing State Acceptance of Certain Gifts"
What vote passed for the measure with the description, authorizing state acceptance of certain gifts?
CREATE TABLE table_256286_40 (passed VARCHAR, description VARCHAR)
SELECT 2007 FROM table_name_16 WHERE 2011 = "f" AND 2009 = "w"
What was the result in 2007 when the 2011 was F and 2009 was W?
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT "Record" FROM table_39013 WHERE "Points" < '62' AND "February" > '16' AND "Score" = '8–7'
Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 8 7?
CREATE TABLE table_39013 ( "Game" real, "February" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT COUNT(passed) FROM table_256286_40 WHERE yes_votes = 390338
How many votes passed are listed on the measure that had 390338 yes votes?
CREATE TABLE table_256286_40 (passed VARCHAR, yes_votes VARCHAR)
SELECT tournament FROM table_name_67 WHERE 2009 = "w"
Which tournament had the result of a W in 2009?
CREATE TABLE table_name_67 (tournament VARCHAR)
SELECT COUNT(*) FROM artist
How many artists do we have?
CREATE TABLE exhibition ( exhibition_id number, year number, theme text, artist_id number, ticket_price number ) CREATE TABLE artist ( artist_id number, name text, country text, year_join number, age number ) CREATE TABLE exhibition_record ( exhibition_id number, date text, attendance number )
SELECT type FROM table_256286_40 WHERE yes_votes = 175932
What was the type when there were 175932 yes votes?
CREATE TABLE table_256286_40 (type VARCHAR, yes_votes VARCHAR)
SELECT tournament FROM table_name_58 WHERE 2009 = "grand slams"
Which 2009 tournament had Grand Slams?
CREATE TABLE table_name_58 (tournament VARCHAR)
SELECT "Athlete" FROM table_66216 WHERE "Rank" < '17' AND "Total" = '119'
Who had a rank under 17 with a total of 119?
CREATE TABLE table_66216 ( "Rank" real, "Athlete" text, "Country" text, "Day 1" real, "Total" text )
SELECT COUNT(yes_votes) FROM table_256286_41 WHERE no_votes < 299939.1619948521 AND _percentage_yes = "66.49%"
What is the aggregate number of yes votes where no votes is littler than 299939.1619948521 and % yes is 66.49%
CREATE TABLE table_256286_41 (yes_votes VARCHAR, no_votes VARCHAR, _percentage_yes VARCHAR)
SELECT tournament FROM table_name_61 WHERE 2009 = "f" AND 2010 = "f"
Which tournament had the result with 2009 was F and 2010 was F?
CREATE TABLE table_name_61 (tournament VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "S/P HANGING" AND demographic.dob_year < "2123"
Provide the number of patients born before 2123 who have s/p hanging as their primary disease.
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 ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT description FROM table_256286_55 WHERE _percentage_yes = "78.27%"
What is the description of the measure that got 78.27% yes votes?
CREATE TABLE table_256286_55 (description VARCHAR, _percentage_yes VARCHAR)
SELECT date FROM table_name_54 WHERE home_team = "hawthorn"
What was the date of the game when Hawthorn was the home team?
CREATE TABLE table_name_54 (date VARCHAR, home_team VARCHAR)
SELECT "Pick #" FROM table_29020 WHERE "College/junior/club team" = 'HIFK Helsinki (Finland)'
What number pick was the player from HIFK Helsinki (Finland)?
CREATE TABLE table_29020 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text )
SELECT MAX(meas_num) FROM table_256286_55
What is the highest measure number?
CREATE TABLE table_256286_55 (meas_num INTEGER)
SELECT season FROM table_name_48 WHERE margin = 10
Which season had a margin of 10?
CREATE TABLE table_name_48 (season VARCHAR, margin VARCHAR)
SELECT MIN(year) FROM table_name_24 WHERE notes = "5.19km, 18controls"
What is the lowest Year, when Notes is '5.19km, 18controls'?
CREATE TABLE table_name_24 ( year INTEGER, notes VARCHAR )
SELECT COUNT(type) FROM table_256286_5 WHERE description = "Calling Convention to revise State Constitution"
How many type classifications are given to the measure with the description, calling convention to revise state constitution?
CREATE TABLE table_256286_5 (type VARCHAR, description VARCHAR)
SELECT 1954 FROM table_name_28 WHERE 1969 = "a" AND tournament = "australian championships"
What did the Tournament of Australian Championships, with an A in 1969, get in 1954?
CREATE TABLE table_name_28 (tournament VARCHAR)
SELECT MIN(diameter__km_) FROM table_name_50 WHERE year_named = 1997 AND longitude = "212.0e" AND latitude = "47.0n"
What is the diameter for 1997 when longitude is 212.0e and latitude is 47.0n?
CREATE TABLE table_name_50 ( diameter__km_ INTEGER, latitude VARCHAR, year_named VARCHAR, longitude VARCHAR )
SELECT _percentage_yes FROM table_256286_5 WHERE yes_votes = 35270
What is the yes percentage in the measure that had 35270 yes votes?
CREATE TABLE table_256286_5 (_percentage_yes VARCHAR, yes_votes VARCHAR)
SELECT 1951 FROM table_name_25 WHERE tournament = "sr"
What did the Tournament of SR get in 1951?
CREATE TABLE table_name_25 (tournament VARCHAR)
SELECT MAX("ministries") FROM table_2453
What is the most amount of ministries?
CREATE TABLE table_2453 ( "N\u00ba" real, "Cabinet (Nickname)" text, "Took office" text, "Left office" text, "Duration" text, "Coalition parties" text, "ministers" text, "ministries" real, "King" text )
SELECT MAX(meas_num) FROM table_256286_54 WHERE no_votes = 322682
When the no votes was 322682, what was the max meas. number?
CREATE TABLE table_256286_54 (meas_num INTEGER, no_votes VARCHAR)
SELECT 1956 AS _1968 FROM table_name_31 WHERE 1969 = "qf"
What did the tournament with a QF in 1969 get in 1956-1968?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT Id AS "post_link", upvotes, downvotes, Score, (upvotes + (AVG(upvotes) OVER ())) / (upvotes + downvotes + (AVG(upvotes + downvotes) OVER ())) AS br FROM (SELECT p.Id, COUNT(CASE v.VoteTypeId WHEN 2 THEN 1 ELSE NULL END) AS upvotes, COUNT(CASE v.VoteTypeId WHEN 3 THEN 1 ELSE NULL END) AS downvotes, MAX(p.Score) AS Score FROM Posts AS p INNER JOIN Votes AS v ON p.Id = v.PostId WHERE p.PostTypeId = 1 GROUP BY p.Id) AS innerQuery ORDER BY br DESC LIMIT 50
Top questions by Bayesian rating.
CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) 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 Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE 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 FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE 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 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 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 ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number )
SELECT MAX(yes_votes) FROM table_256286_60 WHERE meas_num = 4
How yes votes were there for measure 4?
CREATE TABLE table_256286_60 (yes_votes INTEGER, meas_num VARCHAR)
SELECT 1949 FROM table_name_22 WHERE 1945 = "a"
What did the tournament that got an A in 1945 get in 1949?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT "Code" FROM table_30888 WHERE "Subdivision name ( be ) (BGN/PCGN)" = 'Homyel''skaya voblasts'
Which codes have subdivision names (BE) (BGN) of Homyel'skaya Voblasts'?
CREATE TABLE table_30888 ( "Code" text, "Subdivision name ( be ) (BGN/PCGN)" text, "Subdivision name ( be ) (GOST)" text, "Subdivision name ( ru ) (BGN/PCGN)" text, "Subdivision name ( ru ) (GOST)" text, "Subdivision category" text )
SELECT MIN(meas_num) FROM table_256286_60
What was the lowest measure number?
CREATE TABLE table_256286_60 (meas_num INTEGER)
SELECT date FROM table_name_65 WHERE home_team = "geelong"
When did Geelong play as the home team?
CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR)
SELECT last_name, COUNT(last_name) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id GROUP BY last_name ORDER BY COUNT(last_name) DESC
How many staffs have contacted with each engineer? Give me a bar chart grouping by each engineer's last name, order the number of last name in descending order.
CREATE TABLE Skills_Required_To_Fix ( part_fault_id INTEGER, skill_id INTEGER ) CREATE TABLE Skills ( skill_id INTEGER, skill_code VARCHAR(20), skill_description VARCHAR(255) ) CREATE TABLE Part_Faults ( part_fault_id INTEGER, part_id INTEGER, fault_short_name VARCHAR(20), fault_description VARCHAR(255), other_fault_details VARCHAR(255) ) CREATE TABLE Engineer_Skills ( engineer_id INTEGER, skill_id INTEGER ) CREATE TABLE Fault_Log_Parts ( fault_log_entry_id INTEGER, part_fault_id INTEGER, fault_status VARCHAR(10) ) CREATE TABLE Assets ( asset_id INTEGER, maintenance_contract_id INTEGER, supplier_company_id INTEGER, asset_details VARCHAR(255), asset_make VARCHAR(20), asset_model VARCHAR(20), asset_acquired_date DATETIME, asset_disposed_date DATETIME, other_asset_details VARCHAR(255) ) CREATE TABLE Maintenance_Contracts ( maintenance_contract_id INTEGER, maintenance_contract_company_id INTEGER, contract_start_date DATETIME, contract_end_date DATETIME, other_contract_details VARCHAR(255) ) CREATE TABLE Maintenance_Engineers ( engineer_id INTEGER, company_id INTEGER, first_name VARCHAR(50), last_name VARCHAR(50), other_details VARCHAR(255) ) CREATE TABLE Fault_Log ( fault_log_entry_id INTEGER, asset_id INTEGER, recorded_by_staff_id INTEGER, fault_log_entry_datetime DATETIME, fault_description VARCHAR(255), other_fault_details VARCHAR(255) ) CREATE TABLE Parts ( part_id INTEGER, part_name VARCHAR(255), chargeable_yn VARCHAR(1), chargeable_amount VARCHAR(20), other_part_details VARCHAR(255) ) CREATE TABLE Engineer_Visits ( engineer_visit_id INTEGER, contact_staff_id INTEGER, engineer_id INTEGER, fault_log_entry_id INTEGER, fault_status VARCHAR(10), visit_start_datetime DATETIME, visit_end_datetime DATETIME, other_visit_details VARCHAR(255) ) CREATE TABLE Third_Party_Companies ( company_id INTEGER, company_type VARCHAR(5), company_name VARCHAR(255), company_address VARCHAR(255), other_company_details VARCHAR(255) ) CREATE TABLE Staff ( staff_id INTEGER, staff_name VARCHAR(255), gender VARCHAR(1), other_staff_details VARCHAR(255) ) CREATE TABLE Asset_Parts ( asset_id INTEGER, part_id INTEGER )
SELECT type FROM table_256286_8 WHERE _percentage_yes = "32.47%"
What was the type of ballot measures if the % of yes vote is 32.47%?
CREATE TABLE table_256286_8 (type VARCHAR, _percentage_yes VARCHAR)
SELECT crowd FROM table_name_56 WHERE away_team = "north melbourne"
When North Melbourne played as the away team, what was the crowd numbers?
CREATE TABLE table_name_56 (crowd VARCHAR, away_team VARCHAR)
SELECT tv_time FROM table_name_23 WHERE date = "january 2, 2005"
Which TV Time has a Date of january 2, 2005?
CREATE TABLE table_name_23 ( tv_time VARCHAR, date VARCHAR )