answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT other FROM table_27003186_3 WHERE registered_voters = "50.7%"
What is other when registered voters is 50.7%?
CREATE TABLE table_27003186_3 (other VARCHAR, registered_voters VARCHAR)
SELECT AVG(year) FROM table_name_92 WHERE result = "nominated" AND film_series = "thirst" AND award = "best actress" AND group = "baeksang arts awards"
What is the average year in which Kim was nominated for Thirst as Best Actress at the Baeksang Arts Awards?
CREATE TABLE table_name_92 (year INTEGER, group VARCHAR, award VARCHAR, result VARCHAR, film_series VARCHAR)
SELECT DISTINCT course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday, semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 353 AND semester.semester_id = course_offering.semester ORDER BY semester.semester_id DESC LIMIT 10
Which 2 or 3 lectures a week usually are there in 353 ?
CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) 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 gsi ( course_offering_id int, student_id int ) 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 semester ( semester_id int, semester varchar, year int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname 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_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college 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 comment_instructor ( instructor_id int, student_id int, score int, comment_text 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 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 jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar )
SELECT district FROM table_27021001_1 WHERE incumbent = "Charlie Norwood"
What is the district with the incumbent Charlie Norwood?
CREATE TABLE table_27021001_1 (district VARCHAR, incumbent VARCHAR)
SELECT group FROM table_name_66 WHERE year < 2010 AND film_series = "thirst"
Which group nominated Kim in years before 2010 for Thirst?
CREATE TABLE table_name_66 (group VARCHAR, year VARCHAR, film_series VARCHAR)
SELECT "Last title" FROM table_73674 WHERE "Home city" = 'Cuenca'
Name the last title for cuenca
CREATE TABLE table_73674 ( "Club" text, "Home city" text, "Stadium" text, "First season in the Serie A" real, "First season in current spell" real, "Last title" text )
SELECT elected FROM table_27021001_1 WHERE incumbent = "Cynthia McKinney"
What is the year elected for incumbent Cynthia Mckinney?
CREATE TABLE table_27021001_1 (elected VARCHAR, incumbent VARCHAR)
SELECT MAX(year) FROM table_name_92 WHERE film_series = "over the rainbow"
What is the highest year that Kim was nominated for Over the Rainbow?
CREATE TABLE table_name_92 (year INTEGER, film_series VARCHAR)
SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'
Find the name of dorms which have both TV Lounge and Study Room as amenities.
CREATE TABLE has_amenity ( dormid VARCHAR, amenid VARCHAR ) CREATE TABLE dorm_amenity ( amenid VARCHAR, amenity_name VARCHAR ) CREATE TABLE dorm ( dorm_name VARCHAR, dormid VARCHAR )
SELECT COUNT(incumbent) FROM table_27021001_1 WHERE result = "Sanford Bishop (D) 57% Joseph McCormick (R) 43%"
How many incumbents were the result of sanford bishop (d) 57% joseph mccormick (r) 43%?
CREATE TABLE table_27021001_1 (incumbent VARCHAR, result VARCHAR)
SELECT city FROM table_name_59 WHERE state = "massachusetts" AND school = "northeastern university"
Which City has a State of massachusetts, and a School of northeastern university?
CREATE TABLE table_name_59 (city VARCHAR, state VARCHAR, school VARCHAR)
SELECT MIN("Height (m)") FROM table_78228 WHERE "Parent" = 'grasmoor' AND "Prom. (m)" > '117'
What is the lowest height for Parent grasmoor when it has a Prom larger than 117?
CREATE TABLE table_78228 ( "Peak" text, "Height (m)" real, "Prom. (m)" real, "Class" text, "Parent" text )
SELECT status FROM table_27021001_1 WHERE district = "Georgia's 10th"
What is the status for district georgia's 10th?
CREATE TABLE table_27021001_1 (status VARCHAR, district VARCHAR)
SELECT city FROM table_name_52 WHERE colony_name = "northeastern crescent colony"
Which City has a Colony Name of northeastern crescent colony?
CREATE TABLE table_name_52 (city VARCHAR, colony_name VARCHAR)
SELECT away_team FROM table_name_52 WHERE home_team = "collingwood"
When Collingwood was the home team who was the opposing away team?
CREATE TABLE table_name_52 ( away_team VARCHAR, home_team VARCHAR )
SELECT result FROM table_27021001_1 WHERE district = "Georgia's 1st"
What is the result of districk georgia's 1st?
CREATE TABLE table_27021001_1 (result VARCHAR, district VARCHAR)
SELECT colony_name FROM table_name_82 WHERE state = "west virginia"
Which Colony Name is in west virginia?
CREATE TABLE table_name_82 (colony_name VARCHAR, state VARCHAR)
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'dmii neuro nt st uncntrl') AND STRFTIME('%y', diagnoses_icd.charttime) = '2104') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', prescriptions.startdate) = '2104') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 5
what are the five most frequently prescribed drugs for patients who have a previous diagnosis of dmii neuro nt st uncntrl during the same hospital encounter, in 2104?
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_icd_diagnoses ( 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 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 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 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE diagnoses_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 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time )
SELECT district FROM table_27021001_1 WHERE result = "Mac Collins (R) unopposed"
What is the district with the result mac collins (r) unopposed?
CREATE TABLE table_27021001_1 (district VARCHAR, result VARCHAR)
SELECT colony_name FROM table_name_1 WHERE date_founded = "january 19, 2012"
Which Colony Name was Founded on january 19, 2012?
CREATE TABLE table_name_1 (colony_name VARCHAR, date_founded VARCHAR)
SELECT COUNT("Attendance") FROM table_38815 WHERE "Date" = 'july 18'
What was the attendance for july 18?
CREATE TABLE table_38815 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT COUNT(title) FROM table_2701851_3 WHERE production_code = "201a"
how many times is the production code is 201a?
CREATE TABLE table_2701851_3 (title VARCHAR, production_code VARCHAR)
SELECT position FROM table_name_35 WHERE mls_team = "new england revolution"
What position does the player from the MLS New England Revolution team hold?
CREATE TABLE table_name_35 (position VARCHAR, mls_team VARCHAR)
SELECT original_title FROM table_name_73 WHERE director = "ting shan-si" AND film_title_used_in_nomination = "the 800 heroes"
What is the Original Title, when Director is 'Ting Shan-Si', and when Film Title Used In Nomination is 'The 800 Heroes'?
CREATE TABLE table_name_73 ( original_title VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR )
SELECT MAX(overall_rank) FROM table_2701625_1 WHERE country = "Czech Republic"
Name the most overall rank for czech republic
CREATE TABLE table_2701625_1 (overall_rank INTEGER, country VARCHAR)
SELECT mls_team FROM table_name_3 WHERE pick__number = 32
Which MLS team had a pick number of 32?
CREATE TABLE table_name_3 (mls_team VARCHAR, pick__number VARCHAR)
SELECT MAX("Maidens") FROM table_20400 WHERE "Best Bowling" = '1/13'
What is the highest number of maidens when the bowling best was 1/13?
CREATE TABLE table_20400 ( "Player" text, "Matches" real, "Overs" text, "Maidens" real, "Runs" real, "Wickets" real, "Average" text, "Economy" text, "5w" real, "10w" real, "Best Bowling" text )
SELECT COUNT(male_rank) FROM table_2701625_1 WHERE country = "Fiji"
Name the total number of male rank for fiji
CREATE TABLE table_2701625_1 (male_rank VARCHAR, country VARCHAR)
SELECT SUM(pick__number) FROM table_name_75 WHERE player = "chris gomez"
What is the pick number for the player Chris Gomez?
CREATE TABLE table_name_75 (pick__number INTEGER, player VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "M" AND prescriptions.formulary_drug_cd = "BAG"
what is the number of male patients with drug code bag?
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 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 )
SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE country = "Djibouti"
Name the most female life expectancy for djibouti
CREATE TABLE table_2701625_1 (female_life_expectancy INTEGER, country VARCHAR)
SELECT position FROM table_name_90 WHERE mls_team = "los angeles galaxy"
Which position is the MLS team, Los Angeles Galaxy in?
CREATE TABLE table_name_90 (position VARCHAR, mls_team VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program, program_course, semester WHERE course.course_id = course_offering.course_id AND program_course.category LIKE '%Other%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016
Which of these classes can be taken as Other next semester ?
CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id 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 program_requirement ( program_id int, category varchar, min_credit int, additional_req 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_course ( program_id int, course_id int, workload int, category 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 comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) 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 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 )
SELECT MAX(female_life_expectancy) FROM table_2701625_1 WHERE overall_rank = 61
Name the most female life expectancy for overall rank of 61
CREATE TABLE table_2701625_1 (female_life_expectancy INTEGER, overall_rank VARCHAR)
SELECT rookie FROM table_name_5 WHERE goalkeeper = "rob scherr" AND week < 6
Who is the rookie goalkeeper Rob Scherr who played before week 6?
CREATE TABLE table_name_5 (rookie VARCHAR, goalkeeper VARCHAR, week VARCHAR)
SELECT "Award" FROM table_40305 WHERE "Year" > '1947' AND "Category" = 'best actor in a leading role'
Who was awarded after 1947 in the category of, the best actor in a leading role?
CREATE TABLE table_40305 ( "Year" real, "Award" text, "Result" text, "Category" text, "Film" text )
SELECT MAX(male_life_expectancy) FROM table_2701625_1 WHERE country = "Pakistan"
Name the most male life expectancy for pakistan
CREATE TABLE table_2701625_1 (male_life_expectancy INTEGER, country VARCHAR)
SELECT rookie FROM table_name_70 WHERE goalkeeper = "mike gabel"
Who is the rookie goalkeeper Mike Gabel?
CREATE TABLE table_name_70 (rookie VARCHAR, goalkeeper VARCHAR)
SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID)
For all employees who have the letters D or S in their first name, give me the comparison about the sum of department_id over the job_id , and group by attribute job_id, show total number in ascending order.
CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT title FROM table_2701851_2 WHERE no_in_series = "10a"
What is the name of episode # 10a?
CREATE TABLE table_2701851_2 (title VARCHAR, no_in_series VARCHAR)
SELECT MIN(week) FROM table_name_60 WHERE month = "august" AND offensive = "andrew combs"
What was the lowest week in the month of August against Andrew Combs?
CREATE TABLE table_name_60 (week INTEGER, month VARCHAR, offensive VARCHAR)
SELECT incumbent FROM table_2668374_18 WHERE district = "Virginia 3"
Who was the incumbent in Virginia 3?
CREATE TABLE table_2668374_18 ( incumbent VARCHAR, district VARCHAR )
SELECT title FROM table_2701851_2 WHERE written_by = "Michael Price"
What is the name of the episode written by Michael Price?
CREATE TABLE table_2701851_2 (title VARCHAR, written_by VARCHAR)
SELECT rookie FROM table_name_59 WHERE week = 6
Who was the rookie that played week 6?
CREATE TABLE table_name_59 (rookie VARCHAR, week VARCHAR)
SELECT T2.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name
For those records from the products and each product's manufacturer, find name and the average of manufacturer , and group by attribute name, and visualize them by a bar chart.
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 title FROM table_2701851_5 WHERE production_code = "404a"
What was the title for the episode with the production code 404a?
CREATE TABLE table_2701851_5 (title VARCHAR, production_code VARCHAR)
SELECT opponent FROM table_name_6 WHERE date = "april 13"
What were the opponents from the April 13?
CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR)
SELECT date FROM table_name_25 WHERE game_site = "candlestick park"
When did they play at Candlestick Park?
CREATE TABLE table_name_25 ( date VARCHAR, game_site VARCHAR )
SELECT production_code FROM table_2701851_5 WHERE written_by = "Kat Likkel & Denise Downer"
What is the production code for the episode written by Kat Likkel & Denise Downer?
CREATE TABLE table_2701851_5 (production_code VARCHAR, written_by VARCHAR)
SELECT opponent FROM table_name_35 WHERE date = "april 19"
What is the opponent from April 19?
CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR)
SELECT MIN(viewers__millions_) FROM table_name_74 WHERE rating / SHARE(18 AS –49) = 1.1 / 3 AND episode__number < 5
What is the lowest number of million viewers for an episode before episode 5 with a rating/share of 1.1/3?
CREATE TABLE table_name_74 ( viewers__millions_ INTEGER, episode__number VARCHAR, rating VARCHAR )
SELECT directed_by FROM table_2701851_5 WHERE no_in_season = "10a"
Who was the director for the Episode number in season 10a?
CREATE TABLE table_2701851_5 (directed_by VARCHAR, no_in_season VARCHAR)
SELECT series FROM table_name_5 WHERE game = 1
What was the series standing after game 1?
CREATE TABLE table_name_5 (series VARCHAR, game 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 = 'TORONTO' AND date_day.day_number = 24 AND date_day.month_number = 5 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 = 'INDIANAPOLIS' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.departure_time BETWEEN 0 AND 1200) AND flight.stops = 0
i want a nonstop flight from INDIANAPOLIS to TORONTO that leaves thursday morning
CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) 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 city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description 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 state ( state_code text, state_name text, country_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 equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE code_description ( code varchar, description 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_fare ( flight_id int, fare_id int ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE compartment_class ( compartment varchar, class_type 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 days ( days_code varchar, day_name varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar )
SELECT written_by FROM table_2701851_5 WHERE no_in_series = "46b"
Who wrote the episode in the series 46b?
CREATE TABLE table_2701851_5 (written_by VARCHAR, no_in_series VARCHAR)
SELECT example_meaning_in_english FROM table_name_1 WHERE tone = "mid rising-falling"
What is the example in English for a tone of mid rising-falling?
CREATE TABLE table_name_1 (example_meaning_in_english VARCHAR, tone VARCHAR)
SELECT "Date" FROM table_49340 WHERE "Week" < '13' AND "Opponent" = 'green bay packers'
Can you tell me the Date that has the Week smaller than 13, and the Opponent of green bay packers?
CREATE TABLE table_49340 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT COUNT(production_code) FROM table_2701851_5 WHERE no_in_series = "46b"
How many production codes did the episode number in series 46b have?
CREATE TABLE table_2701851_5 (production_code VARCHAR, no_in_series VARCHAR)
SELECT example_meaning_in_english FROM table_name_49 WHERE standard_thai = "ผ่า"
What example in English has a Standard Thai of ผ่า?
CREATE TABLE table_name_49 (example_meaning_in_english VARCHAR, standard_thai VARCHAR)
SELECT score FROM table_name_55 WHERE date = "october 24, 2005"
What was the score on October 24, 2005?
CREATE TABLE table_name_55 ( score VARCHAR, date VARCHAR )
SELECT COUNT(directed_by) FROM table_27047554_1 WHERE us_viewers__in_millions_ = "2.48"
How many directors directed an episode that reached 2.48 million viewers?
CREATE TABLE table_27047554_1 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT tone FROM table_name_65 WHERE standard_thai = "ปลา"
Which tone has a Standard Thai at ปลา?
CREATE TABLE table_name_65 (tone VARCHAR, standard_thai VARCHAR)
SELECT COUNT("Play-by-play") FROM table_21830 WHERE "Pregame analysts" = 'Darren Flutie, Eric Tillman and Greg Frers'
How many different play-by-play announcers also had pregame analysis by Darren Flutie, Eric Tillman and Greg Frers?
CREATE TABLE table_21830 ( "Year" real, "Network" text, "Play-by-play" text, "Colour commentator(s)" text, "Sideline reporters" text, "Pregame host" text, "Pregame analysts" text )
SELECT delegate FROM table_27050732_7 WHERE district = "41"
Who represents district 41?
CREATE TABLE table_27050732_7 (delegate VARCHAR, district VARCHAR)
SELECT tone FROM table_name_32 WHERE phonetic = "[pʰaː˥˥]"
Which tone goes with Phonetic of [pʰaː˥˥]?
CREATE TABLE table_name_32 (tone VARCHAR, phonetic VARCHAR)
SELECT MIN("Qualifying Rank") FROM table_17994
what is the lowest qualifying rank?
CREATE TABLE table_17994 ( "Year" real, "Competition" text, "Location" text, "Event" text, "Final-Rank" text, "Final-Score" text, "Qualifying Rank" real, "Qualifying Score" text )
SELECT district FROM table_27050336_7 WHERE delegate = "McDonough, Patrick L. Pat McDonough"
For delegate is mcdonough, patrick l. pat mcdonough, specify all the district.
CREATE TABLE table_27050336_7 (district VARCHAR, delegate VARCHAR)
SELECT phonetic FROM table_name_88 WHERE standard_thai = "ผ่า"
What is the phonetic when the standard thai is ผ่า?
CREATE TABLE table_name_88 (phonetic VARCHAR, standard_thai VARCHAR)
SELECT COUNT("Early Chalcolithic") FROM table_26150 WHERE "Ubaid period in Mesopotamia" = 'Hittite Middle Kingdom , New Kingdom of Egypt'
When hittite middle kingdom , new kingdom of egypt is the ubaid period in mesopotamia how many early chalcolithics are there?
CREATE TABLE table_26150 ( "Copper Age" text, "Chalcolithic (4500 BC - 3300 BC)" text, "Early Chalcolithic" text, "4500 BC - 4000 BC" text, "Ubaid period in Mesopotamia" text )
SELECT delegate FROM table_27050336_7 WHERE committee = "Environmental Matters" AND district = "36"
where committee is environmental matters and district is 36 please specify all the delegate name
CREATE TABLE table_27050336_7 (delegate VARCHAR, committee VARCHAR, district VARCHAR)
SELECT phonemic FROM table_name_42 WHERE phonetic = "[pʰaː˥˥]"
What is the phonemic when the phonetic is [pʰaː˥˥]?
CREATE TABLE table_name_42 (phonemic VARCHAR, phonetic VARCHAR)
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '010-16627' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '010-16627' AND patient.hospitaldischargetime IS NULL)) AND treatment.treatmentname = 'antibiotics - quinolone' AND STRFTIME('%y', treatment.treatmenttime) >= '2105'
since 2105, did patient 010-16627 get antibiotics - quinolone in other hospitals?
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE 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 patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text )
SELECT delegate FROM table_27050336_7 WHERE committee = "Judiciary" AND party = "Democratic" AND counties_represented = "Montgomery"
For democratic party, countries represented is montgomery and where committee is judiciary mention all the delegate name.
CREATE TABLE table_27050336_7 (delegate VARCHAR, counties_represented VARCHAR, committee VARCHAR, party VARCHAR)
SELECT s_default_argument FROM table_name_37 WHERE pseudorandom_number_generation = "no" AND eval_function = "no"
What is the s default argument without a pseudorandom number generation and no eval function?
CREATE TABLE table_name_37 (s_default_argument VARCHAR, pseudorandom_number_generation VARCHAR, eval_function VARCHAR)
SELECT COUNT("Goals Conceded") FROM table_79832 WHERE "Played" > '18'
What are the number of goals conceded that has a played greater than 18?
CREATE TABLE table_79832 ( "Place" real, "Team" text, "Played" real, "Draw" real, "Lost" real, "Goals Scored" real, "Goals Conceded" real, "Points" real )
SELECT party FROM table_27050336_7 WHERE delegate = "Feldman, Brian J. Brian J. Feldman"
Where delegate is feldman, brian j. brian j. feldman, please specify all the party
CREATE TABLE table_27050336_7 (party VARCHAR, delegate VARCHAR)
SELECT lambda_functions FROM table_name_10 WHERE pseudorandom_number_generation = "no" AND s_default_argument = "no" AND functions = "no" AND eval_function = "no"
What is the lambda function without a pseudorandom number generation, no s default argument, no functions, and no eval function?
CREATE TABLE table_name_10 (lambda_functions VARCHAR, eval_function VARCHAR, functions VARCHAR, pseudorandom_number_generation VARCHAR, s_default_argument VARCHAR)
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(DEPARTMENT_ID) DESC
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of hire_date and the average of department_id bin hire_date by time, and rank mean department id in descending order.
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) )
SELECT party FROM table_27050336_7 WHERE delegate = "Gaines, Tawanna P. Tawanna Gaines"
For delegate is gaines, tawanna p. tawanna gaines, please specify all the party.
CREATE TABLE table_27050336_7 (party VARCHAR, delegate VARCHAR)
SELECT venue FROM table_name_45 WHERE opposition = "surrey" AND wicket = "2nd"
In what Venue was Surrey the Opposition in the 2nd Wicket?
CREATE TABLE table_name_45 (venue VARCHAR, opposition VARCHAR, wicket VARCHAR)
SELECT losses FROM table_name_34 WHERE awards = "mike miller (smoy)"
What are the losses where the award is Mike Miller (Smoy)?
CREATE TABLE table_name_34 ( losses VARCHAR, awards VARCHAR )
SELECT height FROM table_27067379_1 WHERE number_of_floors = 70
If the number of floors is 70, what is the height?
CREATE TABLE table_27067379_1 (height VARCHAR, number_of_floors VARCHAR)
SELECT wicket FROM table_name_60 WHERE score < 368 AND city = "eastbourne"
In what Wicket in the City of Eastbourne with a Score of less than 368?
CREATE TABLE table_name_60 (wicket VARCHAR, score VARCHAR, city VARCHAR)
SELECT * FROM table_train_258 WHERE renal_disease = 1
renal failure
CREATE TABLE table_train_258 ( "id" int, "gender" string, "autoimmune_disease" bool, "renal_disease" bool, "hepatic_disease" bool, "immune_deficiency_disorder" bool, "active_hepatitis" bool, "body_mass_index_bmi" float, "NOUSE" float )
SELECT MIN(number_of_floors) FROM table_27067379_1 WHERE completion = 2010
if the completed is 2010, what is the number of floors?
CREATE TABLE table_27067379_1 (number_of_floors INTEGER, completion VARCHAR)
SELECT game FROM table_name_87 WHERE april = 6
Which game took place April 6?
CREATE TABLE table_name_87 (game VARCHAR, april VARCHAR)
SELECT COUNT("Public network") FROM table_27330 WHERE "Solar panel" = '0.5%'
How many regions have 0.5% solar panels?
CREATE TABLE table_27330 ( "Region" text, "Public network" text, "Own/community generator" text, "Solar panel" text, "Other source" text, "None" text )
SELECT height FROM table_27067379_1 WHERE building = "Costanera Center Torre 1"
If the building is Costanera Center Torre 1, what is the height?
CREATE TABLE table_27067379_1 (height VARCHAR, building VARCHAR)
SELECT AVG(attendance) FROM table_name_98 WHERE score = "0:0 - 4:1 (pen)"
How many Attendance in a match which scores 0:0 - 4:1 (pen)
CREATE TABLE table_name_98 (attendance INTEGER, score VARCHAR)
SELECT rank FROM table_name_19 WHERE location = "fortaleza"
What rank is the airport in Fortaleza?
CREATE TABLE table_name_19 ( rank VARCHAR, location VARCHAR )
SELECT COUNT(position) FROM table_27067379_1 WHERE building = "Costanera Center Torre 1"
How many positions does building Costanera Center Torre 1 have?
CREATE TABLE table_27067379_1 (position VARCHAR, building VARCHAR)
SELECT league FROM table_name_17 WHERE play_off = "–" AND year = "2008–09"
Which League that has no playoffs in the Year of 2008–09?
CREATE TABLE table_name_17 (league VARCHAR, play_off VARCHAR, year VARCHAR)
SELECT race FROM table_name_17 WHERE athlete = "lineth chepkurui"
What is the name of the race when Lineth Chepkurui is the athlete?
CREATE TABLE table_name_17 ( race VARCHAR, athlete VARCHAR )
SELECT outgoing_manager FROM table_27057070_3 WHERE team = "Simurq PFC"
Who is the outgoing manager when the team is simurq pfc?
CREATE TABLE table_27057070_3 (outgoing_manager VARCHAR, team VARCHAR)
SELECT play_off FROM table_name_84 WHERE events = "–" AND season = "a-6"
Which Play-Off has Events of –, and a Season of a-6?
CREATE TABLE table_name_84 (play_off VARCHAR, events VARCHAR, season VARCHAR)
SELECT "Socket" FROM table_64272 WHERE "Release price ( USD )" = '$378' AND "Turbo" = '6/6/8/9'
Which socket goes with the item with release price of $378 and turbo of 6/6/8/9?
CREATE TABLE table_64272 ( "Model number" text, "sSpec number" text, "Cores" text, "Frequency" text, "Turbo" text, "L2 cache" text, "L3 cache" text, "GPU model" text, "GPU frequency" text, "Socket" text, "I/O bus" text, "Release date" text, "Part number(s)" text, "Release price ( USD )" text )
SELECT COUNT(date_of_appointment) FROM table_27057070_3 WHERE team = "Khazar Lankaran"
How many date of appointment entries are there when the team is khazar lankaran?
CREATE TABLE table_27057070_3 (date_of_appointment VARCHAR, team VARCHAR)
SELECT season FROM table_name_63 WHERE year = "2005–06"
Which Season has a Year of 2005–06?
CREATE TABLE table_name_63 (season VARCHAR, year VARCHAR)
SELECT MAX("Round") FROM table_37749 WHERE "Player" = 'dan connor'
What is the largest round number for Dan Connor, the player?
CREATE TABLE table_37749 ( "Round" real, "Pick" real, "Player" text, "Position" text, "School/Club Team" text )
SELECT manner_of_departure FROM table_27057070_3 WHERE replaced_by = "Bahman Hasanov"
What is the manner of departure when the replaced by is bahman hasanov?
CREATE TABLE table_27057070_3 (manner_of_departure VARCHAR, replaced_by VARCHAR)