answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT median_family_income FROM table_name_12 WHERE median_household_income = "$43,125"
Which Median family income has a Median household income of $43,125?
CREATE TABLE table_name_12 (median_family_income VARCHAR, median_household_income 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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.departure_time > 1800 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
what are the flights available after 1800 between SAN FRANCISCO and BOSTON
CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note 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 date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int, time_elapsed int, to_airport varchar ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) 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 state ( state_code text, state_name text, country_name text ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed int, range_miles int, pressurized varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description 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 compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE code_description ( code varchar, description text ) 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 )
SELECT production FROM table_26686908_2 WHERE championship = "David Wall" AND challenge = "Jordan Ormsby"
Who handled production for the race when the championship went to david wall and challenge was jordan ormsby?
CREATE TABLE table_26686908_2 (production VARCHAR, championship VARCHAR, challenge VARCHAR)
SELECT SUM(population) FROM table_name_66 WHERE median_household_income = "$37,759"
How many people have a Median household income of $37,759?
CREATE TABLE table_name_66 (population INTEGER, median_household_income VARCHAR)
SELECT "Main presenter" FROM table_26678 WHERE "Year premiered" = '2011'
Who is every main presenter for the year 2011?
CREATE TABLE table_26678 ( "Region/Country" text, "Local name" text, "Main presenter" text, "Network" text, "Year premiered" real )
SELECT city___state FROM table_26686908_2 WHERE circuit = "Adelaide Street circuit"
Which city and state hosted the adelaide street circuit?
CREATE TABLE table_26686908_2 (city___state VARCHAR, circuit VARCHAR)
SELECT COUNT(week) FROM table_name_46 WHERE attendance < 21 OFFSET 097
What week had an Attendance smaller than 21,097?
CREATE TABLE table_name_46 (week VARCHAR, attendance INTEGER)
SELECT opponent_in_the_final FROM table_name_26 WHERE surface = "hard (i)" AND date = "october 9, 2005"
Which final opponent's surface was hard (i) and participated on October 9, 2005?
CREATE TABLE table_name_26 ( opponent_in_the_final VARCHAR, surface VARCHAR, date VARCHAR )
SELECT circuit FROM table_26686908_2 WHERE date = "25–28 March"
Which circuit was held on 25–28 march?
CREATE TABLE table_26686908_2 (circuit VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_name_12 WHERE attendance < 22 OFFSET 333
What Week had an Attendance smaller than 22,333?
CREATE TABLE table_name_12 (week VARCHAR, attendance INTEGER)
SELECT "Venue" FROM table_58151 WHERE "Runs" = '332'
During runs 332, what was the venue?
CREATE TABLE table_58151 ( "Runs" text, "Player" text, "Opponent" text, "Venue" text, "Season" text )
SELECT COUNT(production) FROM table_26686908_2 WHERE rd = "Rd 2"
How many productions are shown for rd 2?
CREATE TABLE table_26686908_2 (production VARCHAR, rd VARCHAR)
SELECT party FROM table_name_1 WHERE municipality = "tampere"
Municipality of tampere involves which party?
CREATE TABLE table_name_1 (party VARCHAR, municipality VARCHAR)
SELECT engine FROM table_28190534_1 WHERE entrant = "Ecurie Lutetia"
Name the engine for ecurie lutetia
CREATE TABLE table_28190534_1 ( engine VARCHAR, entrant VARCHAR )
SELECT writer_s_ FROM table_26702078_1 WHERE no_in_series = 46
Name the writers for 46 in series
CREATE TABLE table_26702078_1 (writer_s_ VARCHAR, no_in_series VARCHAR)
SELECT votes FROM table_name_45 WHERE quotient = "97 350,333"
Quotient of 97 350,333 has how many votes?
CREATE TABLE table_name_45 (votes VARCHAR, quotient VARCHAR)
SELECT "Away team score" FROM table_33591 WHERE "Home team" = 'essendon'
What was home team Essendon's opponents score?
CREATE TABLE table_33591 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT production_code FROM table_26702078_1 WHERE no_in_series = 60
Name the production code for 60 number in series
CREATE TABLE table_26702078_1 (production_code VARCHAR, no_in_series VARCHAR)
SELECT municipality FROM table_name_88 WHERE candidate = "kimmo kiljunen"
Candidate of kimmo kiljunen belongs to which municipality?
CREATE TABLE table_name_88 (municipality VARCHAR, candidate VARCHAR)
SELECT transfers.wardid FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11914 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND NOT transfers.wardid IS NULL ORDER BY transfers.intime DESC LIMIT 1
what is the last ward id patient 11914 got in their first hospital visit.
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text )
SELECT title FROM table_26701861_1 WHERE director = "Pamela Fryman" AND production_code = "2ALH07"
what is the title of the episode with the director pamela fryman and the production code 2alh07?
CREATE TABLE table_26701861_1 (title VARCHAR, director VARCHAR, production_code VARCHAR)
SELECT quotient FROM table_name_10 WHERE votes = "27,391"
Votes of 27,391 has which quotient?
CREATE TABLE table_name_10 (quotient VARCHAR, votes VARCHAR)
SELECT location_attendance FROM table_name_4 WHERE record = "35-28"
What is the location/ attendance for a 35-28 record?
CREATE TABLE table_name_4 ( location_attendance VARCHAR, record VARCHAR )
SELECT occurrence FROM table_26708105_2 WHERE matrix_sim = "0.925"
Which occurence has the matrix sim marked as 0.925?
CREATE TABLE table_26708105_2 (occurrence VARCHAR, matrix_sim VARCHAR)
SELECT votes FROM table_name_41 WHERE candidate = "riikka manner"
Candidate of riikka manner has how many votes?
CREATE TABLE table_name_41 (votes VARCHAR, candidate VARCHAR)
SELECT "James E. Holmes" FROM table_3255 WHERE "Reidsville" = 'Erselle Young'
Name the james e. holmes for erselle young
CREATE TABLE table_3255 ( "Information" text, "James E. Holmes" text, "Reidsville" text, "Rockingham County" text, "Western Rockingham Middle School" text )
SELECT COUNT(detailed_family_information) FROM table_26708105_2 WHERE sequence = "aAGTAct"
What is the detailed family information where the sequence is aagtact?
CREATE TABLE table_26708105_2 (detailed_family_information VARCHAR, sequence VARCHAR)
SELECT opposition FROM table_name_51 WHERE year < 1911 AND venue = "old trafford"
Which Opposition has a Year smaller than 1911, and a Venue of old trafford?
CREATE TABLE table_name_51 (opposition VARCHAR, year 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
i would like to fly from BOSTON to BALTIMORE
CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE days ( days_code varchar, day_name 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 state ( state_code text, state_name text, country_name text ) CREATE TABLE month ( month_number int, month_name text ) 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 airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_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 flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int, time_elapsed int, to_airport varchar ) CREATE TABLE 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 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 compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text )
SELECT MAX(occurrence) FROM table_26708105_2 WHERE matrix_sim = "0.925"
What occurence has 0.925 listed as the matrix sim?
CREATE TABLE table_26708105_2 (occurrence INTEGER, matrix_sim VARCHAR)
SELECT venue FROM table_name_60 WHERE year = 1911
Which Venue has a Year of 1911?
CREATE TABLE table_name_60 (venue VARCHAR, year VARCHAR)
SELECT document_name, document_id FROM Documents WHERE document_type_code = "BK"
Find names and ids of all documents with document type code BK.
CREATE TABLE Documents ( document_name VARCHAR, document_id VARCHAR, document_type_code VARCHAR )
SELECT conserved_in_mus_musculus FROM table_26708105_2 WHERE sequence = "aAGTAct"
What is the conserved in mus musculus listing for sequence aagtact?
CREATE TABLE table_26708105_2 (conserved_in_mus_musculus VARCHAR, sequence VARCHAR)
SELECT opposition FROM table_name_17 WHERE city = "taunton"
Which Opposition has a City of taunton?
CREATE TABLE table_name_17 (opposition VARCHAR, city VARCHAR)
SELECT DISTINCT advisory_requirement, enforced_requirement, name FROM course WHERE department = 'EECS' AND number = 443
Is 443 available for undergrads ?
CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) 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 program_requirement ( program_id int, category varchar, min_credit int, additional_req 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 requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE 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 gsi ( course_offering_id int, student_id int ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text 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 ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) 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_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 jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int )
SELECT nt_identity FROM table_26708105_5 WHERE species = "Drosophilia melanogaster"
What is the nt identity when the species is drosophilia melanogaster?
CREATE TABLE table_26708105_5 (nt_identity VARCHAR, species VARCHAR)
SELECT COUNT(year) FROM table_name_30 WHERE venue = "old trafford" AND opposition = "yorkshire"
Which number of Years has a Venue of old trafford, and an Opposition of yorkshire?
CREATE TABLE table_name_30 (year VARCHAR, venue VARCHAR, opposition VARCHAR)
SELECT "State" FROM table_56376 WHERE "Average" < '8.67' AND "Swimsuit" = '8.27' AND "Evening gown" = '8.78' AND "Interview" = '8.52'
Which state had an average of less than 8.67, a swimsuit score of 8.27, an evening gown score of 8.78, and an interview number of 8.52?
CREATE TABLE table_56376 ( "State" text, "Swimsuit" real, "Evening gown" real, "Interview" real, "Average" real )
SELECT protein_name FROM table_26708105_5 WHERE aa_length = "202 aa"
What is the protein name when aa length is 202 aa?
CREATE TABLE table_26708105_5 (protein_name VARCHAR, aa_length VARCHAR)
SELECT result FROM table_name_69 WHERE time = "6:00 pm" AND attendance = "79,419"
What was the score of the match that took place at 6:00 PM with 79,419 in attendance?
CREATE TABLE table_name_69 (result VARCHAR, time VARCHAR, attendance VARCHAR)
SELECT "Date" FROM table_63979 WHERE "Competition" = '1996 tiger cup' AND "Result" = 'drew'
what is the date when the competition is 1996 tiger cup and the result is drew?
CREATE TABLE table_63979 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT protein_name FROM table_26708105_5 WHERE e_value = "2.50E-41"
What is the protein name when the e-value is 2.50e-41?
CREATE TABLE table_26708105_5 (protein_name VARCHAR, e_value VARCHAR)
SELECT time FROM table_name_99 WHERE attendance = "22,329"
What time was the match that had an attendance of 22,329?
CREATE TABLE table_name_99 (time VARCHAR, attendance VARCHAR)
SELECT order_item_id FROM order_items WHERE product_id = 11
Find the ids of all the order items whose product id is 11.
CREATE TABLE orders ( order_id number, customer_id number, order_status text, date_order_placed time, order_details text ) CREATE TABLE shipment_items ( shipment_id number, order_item_id number ) CREATE TABLE customers ( customer_id number, customer_name text, customer_details text ) CREATE TABLE products ( product_id number, product_name text, product_details text ) CREATE TABLE shipments ( shipment_id number, order_id number, invoice_number number, shipment_tracking_number text, shipment_date time, other_shipment_details text ) CREATE TABLE invoices ( invoice_number number, invoice_date time, invoice_details text ) CREATE TABLE order_items ( order_item_id number, product_id number, order_id number, order_item_status text, order_item_details text )
SELECT aa_length FROM table_26708105_5 WHERE protein_name = "C11orf73"
What is the aa length when the protein name is c11orf73?
CREATE TABLE table_26708105_5 (aa_length VARCHAR, protein_name VARCHAR)
SELECT opponent FROM table_name_50 WHERE attendance = "103,158"
What two teams were competing in the match with 103,158 in attendance?
CREATE TABLE table_name_50 (opponent VARCHAR, attendance VARCHAR)
SELECT class FROM table_name_52 WHERE rank = "2nd"
Which class had a rank of 2nd?
CREATE TABLE table_name_52 ( class VARCHAR, rank VARCHAR )
SELECT COUNT(common_name) FROM table_26708105_5 WHERE accession_number = "XP_001843282"
How many times is the accession number xp_001843282?
CREATE TABLE table_26708105_5 (common_name VARCHAR, accession_number VARCHAR)
SELECT AVG(january) FROM table_name_92 WHERE opponent = "chicago black hawks"
What is the average date in January that the Rangers played against Chicago Black Hawks?
CREATE TABLE table_name_92 (january INTEGER, opponent VARCHAR)
SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the average of price , and group by attribute name, and order X-axis in asc order.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT COUNT(title) FROM table_26736040_1 WHERE us_viewers__millions_ = "1.66"
How many titles have U.S. viewers 1.66 million.
CREATE TABLE table_26736040_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT score FROM table_name_81 WHERE record = "16-8-4"
What is the score of the game where the Rangers record was 16-8-4?
CREATE TABLE table_name_81 (score VARCHAR, record VARCHAR)
SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'character recognition' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year < 2010
papers about character recognition from before 2010
CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE field ( fieldid int ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar ) CREATE TABLE writes ( paperid int, authorid int )
SELECT title FROM table_26736040_1 WHERE us_viewers__millions_ = "1.04"
What is every title when U.S. viewers is 1.04 million.
CREATE TABLE table_26736040_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT oxford_united_career_[b_] FROM table_name_40 WHERE position_[a_] = "forward" AND appearances = 56
Which OU career [b] had Position [A] as a forward when there were 56 appearances?
CREATE TABLE table_name_40 (oxford_united_career_ VARCHAR, b_ VARCHAR, appearances VARCHAR, position_ VARCHAR, a_ VARCHAR)
SELECT Sex, MAX(Age) FROM Student GROUP BY Sex ORDER BY Sex DESC
Bar graph to show maximal age from different sex, and could you list Sex from high to low order?
CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) 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 Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) )
SELECT MAX(no_in_series) FROM table_26736040_1 WHERE directed_by = "Phil Abraham"
What is the highest number in series with director as Phil Abraham?
CREATE TABLE table_26736040_1 (no_in_series INTEGER, directed_by VARCHAR)
SELECT score_in_the_final FROM table_name_31 WHERE outcome = "winner" AND date = "3 august 2013"
Which Score in the final has an Outcome of winner, and a Date of 3 august 2013?
CREATE TABLE table_name_31 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT game FROM table_name_44 WHERE opponent = "@ atlanta flames"
Opponent of @ atlanta flames had what game?
CREATE TABLE table_name_44 ( game VARCHAR, opponent VARCHAR )
SELECT COUNT(no_in_series) FROM table_26736040_1 WHERE directed_by = "Bryan Cranston"
How many entries for number in series when director is Bryan Cranston?
CREATE TABLE table_26736040_1 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT partner FROM table_name_57 WHERE date = "8 february 2009"
Which Partner has a Date of 8 february 2009?
CREATE TABLE table_name_57 (partner VARCHAR, date VARCHAR)
SELECT "Country" FROM table_36896 WHERE "Catalogue #" = 'asw 50248 (724385024825)'
What Country is Catalogue # ASW 50248 (724385024825) from?
CREATE TABLE table_36896 ( "Country" text, "Date" text, "Label" text, "Format" text, "Catalogue #" text )
SELECT MIN(no_in_series) FROM table_26736342_1 WHERE us_viewers__millions_ = "1.32"
What is the earliest episode that was watched by 1.32 million viewers?
CREATE TABLE table_26736342_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)
SELECT opponent_in_the_final FROM table_name_38 WHERE partner = "dustin brown"
Which Opponent in the final has a Partner of dustin brown?
CREATE TABLE table_name_38 (opponent_in_the_final VARCHAR, partner VARCHAR)
SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22204) AND NOT transfers.careunit IS NULL AND DATETIME(transfers.intime) <= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY transfers.intime LIMIT 1
what was the first care unit of patient 22204's ward until 2 years ago?
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) 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 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 labevents ( row_id number, subject_id number, hadm_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_labitems ( row_id number, itemid number, label text ) 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 inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) 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 )
SELECT MAX(no_in_series) FROM table_26736342_1 WHERE written_by = "John Shiban & Thomas Schnauz"
What is the latest episode written by John Shiban & Thomas Schnauz?
CREATE TABLE table_26736342_1 (no_in_series INTEGER, written_by VARCHAR)
SELECT score_in_the_final FROM table_name_62 WHERE surface = "clay" AND partner = "martin emmrich"
Which Score in the final has a Surface of clay, and a Partner of martin emmrich?
CREATE TABLE table_name_62 (score_in_the_final VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_84 WHERE score = 69 - 72 - 67 - 71 = 279 AND player = "loren roberts"
Can you tell me the sum of Money ($) that has the Score of 69-72-67-71=279, and the Player of loren roberts?
CREATE TABLE table_name_84 ( money___ INTEGER, player VARCHAR, score VARCHAR )
SELECT directed_by FROM table_26736342_1 WHERE us_viewers__millions_ = "1.95"
Who directed the eposide that was watched by 1.95 million US viewers?
CREATE TABLE table_26736342_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT surface FROM table_name_82 WHERE partner = "oliver marach"
Which Surface has a Partner of oliver marach?
CREATE TABLE table_name_82 (surface VARCHAR, partner VARCHAR)
SELECT MAX(elected) FROM table_26336739_1 WHERE incumbent = "Saxby Chambliss"
What date was the district incumbent Saxby Chambliss elected?
CREATE TABLE table_26336739_1 ( elected INTEGER, incumbent VARCHAR )
SELECT MAX(episode_number) FROM table_26733129_1 WHERE three_darts_challenge = "Sharon Osbourne"
How many episodes are there for the three darts challenge with Sharon Osbourne?
CREATE TABLE table_26733129_1 (episode_number INTEGER, three_darts_challenge VARCHAR)
SELECT call_sign FROM table_name_67 WHERE frequency = "0 105.7 fm"
What is the call sign for the frequency of 0 105.7 fm?
CREATE TABLE table_name_67 (call_sign VARCHAR, frequency VARCHAR)
SELECT address_line_1, address_line_2 FROM customers WHERE email_address = "vbogisich@example.org"
Find the address line 1 and 2 of the customer with email 'vbogisich@example.org'.
CREATE TABLE staff ( staff_id number, gender text, first_name text, last_name text, email_address text, phone_number text ) CREATE TABLE complaints ( complaint_id number, product_id number, customer_id number, complaint_outcome_code text, complaint_status_code text, complaint_type_code text, date_complaint_raised time, date_complaint_closed time, staff_id number ) CREATE TABLE products ( product_id number, parent_product_id number, product_category_code text, date_product_first_available time, date_product_discontinued time, product_name text, product_description text, product_price number ) CREATE TABLE customers ( customer_id number, customer_type_code text, address_line_1 text, address_line_2 text, town_city text, state text, email_address text, phone_number text )
SELECT musical_performance FROM table_26733129_1 WHERE air_date = "5 April 2010"
What musical performances aired on 5 April 2010?
CREATE TABLE table_26733129_1 (musical_performance VARCHAR, air_date VARCHAR)
SELECT owner FROM table_name_58 WHERE frequency = "0 101.1 fm"
Who is the owner with a frequency of 0 101.1 fm?
CREATE TABLE table_name_58 (owner VARCHAR, frequency VARCHAR)
SELECT district FROM table_2668416_7 WHERE party = "Federalist" AND candidates = "William Craik (F) 51.0% Benjamin Edwards 49.0%"
What is the district for the party federalist and the candidates are william craik (f) 51.0% benjamin edwards 49.0%?
CREATE TABLE table_2668416_7 ( district VARCHAR, party VARCHAR, candidates VARCHAR )
SELECT guests FROM table_26733129_1 WHERE air_date = "7 June 2010"
What were the guests that aired on 7 June 2010?
CREATE TABLE table_26733129_1 (guests VARCHAR, air_date VARCHAR)
SELECT city_of_license FROM table_name_98 WHERE call_sign = "kyli"
Which city of license has the Kyli call sign?
CREATE TABLE table_name_98 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT "surface" FROM table_204_127 GROUP BY "surface" ORDER BY COUNT(*) LIMIT 1
which surface was played on the least ?
CREATE TABLE table_204_127 ( id number, "outcome" text, "no." number, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text )
SELECT three_darts_challenge FROM table_26733129_1 WHERE air_date = "10 May 2010"
Who was in the three darts challenge that aired on 10 may 2010?
CREATE TABLE table_26733129_1 (three_darts_challenge VARCHAR, air_date VARCHAR)
SELECT format FROM table_name_11 WHERE owner = "cherry creek radio" AND frequency = "0 92.1 fm"
What is the format for Cherry Creek Radio with frequency of 0 92.1 fm?
CREATE TABLE table_name_11 (format VARCHAR, owner VARCHAR, frequency VARCHAR)
SELECT MIN("Area (km 2 )") FROM table_68903 WHERE "Population" < '22,955,395' AND "Country/Region" = 'bangladesh' AND "Density (Pop. per km 2 )" < '1034'
What is the lowest area of the region with a population less than 22,955,395 in Bangladesh with a density less than 1034?
CREATE TABLE table_68903 ( "Rank" real, "Country/Region" text, "Population" real, "Area (km 2 )" real, "Density (Pop. per km 2 )" real )
SELECT Ends AS lost FROM table_26745426_2 WHERE country = Canada
Name the ends lost for canada
CREATE TABLE table_26745426_2 (Ends VARCHAR, country VARCHAR, Canada VARCHAR)
SELECT format FROM table_name_31 WHERE city_of_license = "st. george" AND frequency = "0 107.3 fm"
Which format is in St. George with a frequency of 0 107.3 fm?
CREATE TABLE table_name_31 (format VARCHAR, city_of_license VARCHAR, frequency VARCHAR)
SELECT "Tickets Sold / Available" FROM table_68530 WHERE "Gross Revenue (1979)" = '$665,232'
Which venue has Tickets Sold/ Available with a Gross Revenue (1979) of $665,232?
CREATE TABLE table_68530 ( "Venue" text, "City" text, "Tickets Sold / Available" text, "Gross Revenue (1979)" text, "Gross Revenue (2012)" text )
SELECT COUNT(Ends) AS lost FROM table_26745426_2 WHERE stolen_ends = 6
Name the number of ends lost for 6 stolen ends
CREATE TABLE table_26745426_2 (Ends VARCHAR, stolen_ends VARCHAR)
SELECT city_of_license FROM table_name_20 WHERE call_sign = "kyli"
Which city of license has the Kyli call sign?
CREATE TABLE table_name_20 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT "Total" FROM table_2523 WHERE "School" = 'University of the Cordilleras UC Dance Squad'
What is every total for the University of the Cordilleras UC Dance Squad?
CREATE TABLE table_2523 ( "Rank" real, "School" text, "Basic Elements" real, "Tumbling" real, "Stunts" text, "Pyramids" text, "Tosses" text, "Deductions" text, "Total" text )
SELECT proto_slavic FROM table_26757_4 WHERE polish = "gniazdo"
When gniazdo is polish what is proto-slavic?
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, polish VARCHAR)
SELECT elected FROM table_name_81 WHERE party = "republican" AND district = "7th"
Party of republican, and a District of 7th is what elected?
CREATE TABLE table_name_81 (elected VARCHAR, party VARCHAR, district VARCHAR)
SELECT "Date" FROM table_77191 WHERE "Round" = 'sf'
what is the date when the round is sf?
CREATE TABLE table_77191 ( "Date" text, "Round" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real )
SELECT macedonian FROM table_26757_4 WHERE serbo_croatian = "рука / ruka"
When рука / ruka is the serbo-croatian what is the macedonian?
CREATE TABLE table_26757_4 (macedonian VARCHAR, serbo_croatian VARCHAR)
SELECT MAX(elected) FROM table_name_39 WHERE party = "republican" AND district = "5th"
Party of republican, and a District of 5th is what highest elected?
CREATE TABLE table_name_39 (elected INTEGER, party VARCHAR, district VARCHAR)
SELECT total__number FROM table_13625792_1 WHERE bush__percentage = "77.76%"
In the county where Bush won 77.76%, how many total votes were cast?
CREATE TABLE table_13625792_1 ( total__number VARCHAR, bush__percentage VARCHAR )
SELECT proto_slavic FROM table_26757_4 WHERE macedonian = "риба (ríba)"
When риба (ríba) is the macedonian what is the proto-slavic?
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, macedonian VARCHAR)
SELECT status FROM table_name_77 WHERE elected < 2001 AND district = "83rd"
Elected smaller than 2001, and a District of 83rd has what status?
CREATE TABLE table_name_77 (status VARCHAR, elected VARCHAR, district VARCHAR)
SELECT COUNT("Record") FROM table_18824 WHERE "Date" = 'April 12'
How many pairs of numbers are under record on April 12?
CREATE TABLE table_18824 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT COUNT(proto_slavic) FROM table_26757_4 WHERE serbo_croatian = "гн(иј)ездо / gn(ij)ezdo"
When гн(иј)ездо / gn(ij)ezdo is the serbo-croatian how many proto-slavics are there?
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, serbo_croatian VARCHAR)
SELECT MAX(elected) FROM table_name_75 WHERE status = "reelected" AND incumbent = "danny marshall iii"
Status of reelected, and a Incumbent of danny marshall iii is what highest elected?
CREATE TABLE table_name_75 (elected INTEGER, status VARCHAR, incumbent VARCHAR)