answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT position FROM table_27631002_1 WHERE series = "Austria Formel 3 Cup"
What is the position for the austria formel 3 cup series?
CREATE TABLE table_27631002_1 (position VARCHAR, series VARCHAR)
SELECT spouse FROM table_name_47 WHERE birth = "29 october 1451"
Who is the Spouse of the Duchess that has a Birth on 29 october 1451?
CREATE TABLE table_name_47 (spouse VARCHAR, birth VARCHAR)
SELECT "2013" FROM table_54887 WHERE "2006" = 'a' AND "2010" = '1r'
Which tournament in 2013 had a 2010 finish of 1R?
CREATE TABLE table_54887 ( "Tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text )
SELECT COUNT(ppi__pixels_per_inch__) FROM table_27653752_1 WHERE ppcm__pixels_per_cm__ = 87
How many different PPI does the model with ppcm of 87 have?
CREATE TABLE table_27653752_1 (ppi__pixels_per_inch__ VARCHAR, ppcm__pixels_per_cm__ VARCHAR)
SELECT spouse FROM table_name_31 WHERE became_duchess = "31 october 1733 husband's accession"
Who is The Spouse of the Duchess that has a Became Duchess on 31 october 1733 husband's accession?
CREATE TABLE table_name_31 (spouse VARCHAR, became_duchess VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_course.category LIKE '%PreMajor%' AND semester.semester = 'Winter' AND semester.year = 2017
What classes are offered next Winter for PreMajor ?
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 comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE gsi ( course_offering_id int, student_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 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 instructor ( instructor_id int, name varchar, uniqname 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 ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction 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 program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE area ( course_id int, area varchar )
SELECT resolution FROM table_27653752_1 WHERE pixels_per_degree__ppd_ = 69
What's the resolution of the model with a PPD of 69?
CREATE TABLE table_27653752_1 (resolution VARCHAR, pixels_per_degree__ppd_ VARCHAR)
SELECT became_duchess FROM table_name_84 WHERE death = "26 october 1614"
WHo Became Duchess that has a Death of 26 october 1614?
CREATE TABLE table_name_84 (became_duchess VARCHAR, death VARCHAR)
SELECT MAX(band) FROM table_name_33 WHERE power__w_ > 400
What Band's Power (W) is 400 or less?
CREATE TABLE table_name_33 ( band INTEGER, power__w_ INTEGER )
SELECT ihsa_music_class FROM table_27653955_1 WHERE mascot = "Lancers"
What is the IHSA music class for the mascot that is the lancers?
CREATE TABLE table_27653955_1 (ihsa_music_class VARCHAR, mascot VARCHAR)
SELECT spouse FROM table_name_61 WHERE death = "6 april 1780"
What is the Spouse of the Duchess that has a Death on 6 april 1780?
CREATE TABLE table_name_61 (spouse VARCHAR, death VARCHAR)
SELECT drawn FROM table_name_47 WHERE club = "furnace united rfc"
What is the drawn value for furnace united rfc?
CREATE TABLE table_name_47 ( drawn VARCHAR, club VARCHAR )
SELECT ihsa_cheerleading_class FROM table_27653955_1 WHERE enrollment = 2600
What is the IHSA cheerleading class for the enrollment of 2600?
CREATE TABLE table_27653955_1 (ihsa_cheerleading_class VARCHAR, enrollment VARCHAR)
SELECT season FROM table_name_17 WHERE points < 321 AND percentage_of_possible_points > 65.78 AND races = 16
Which season with 16 races had less than 321 points and a larger percent than 65.78 possible?
CREATE TABLE table_name_17 (season VARCHAR, races VARCHAR, points VARCHAR, percentage_of_possible_points VARCHAR)
SELECT demographic.age, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "52118"
specify age and icd9 code of patient id 52118
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 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 colors FROM table_27653955_1 WHERE enrollment = 2020
What are the colors for the enrollment of 2020?
CREATE TABLE table_27653955_1 (colors VARCHAR, enrollment VARCHAR)
SELECT season FROM table_name_28 WHERE points < 301 AND races = 17
What season had less than 301 points and 17 races?
CREATE TABLE table_name_28 (season VARCHAR, points VARCHAR, races VARCHAR)
SELECT "Date" FROM table_39299 WHERE "Opponents in the final" = 'valeria casillo lilly raffa'
Which Date has Opponents in the final of valeria casillo lilly raffa?
CREATE TABLE table_39299 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score" text )
SELECT MIN(old_membership_total) FROM table_27671835_3
What is the smallest number for old membership total?
CREATE TABLE table_27671835_3 (old_membership_total INTEGER)
SELECT time FROM table_name_88 WHERE machine = "honda 1000cc" AND rider_s_ = "bruce anstey"
What time did bruce anstey complete in a honda 1000cc?
CREATE TABLE table_name_88 (time VARCHAR, machine VARCHAR, rider_s_ VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_16 WHERE score = 75 - 74 - 72 - 67 = 288
What is the most money for the score 75-74-72-67=288?
CREATE TABLE table_name_16 ( money___ INTEGER, score VARCHAR )
SELECT MIN(members_lost) FROM table_27671835_3 WHERE net_change = "−1"
What is the lowest number of members lost when the net change is −1?
CREATE TABLE table_27671835_3 (members_lost INTEGER, net_change VARCHAR)
SELECT race FROM table_name_88 WHERE time = "17:11.572"
Who holds the time of 17:11.572?
CREATE TABLE table_name_88 (race VARCHAR, time VARCHAR)
SELECT DISTINCT flight_id FROM flight WHERE (((((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 26 AND DATE_DAYalias0.month_number = 7 AND DATE_DAYalias0.year = 1991)) AND meal_code IN (SELECT FOOD_SERVICEalias0.meal_code FROM food_service AS FOOD_SERVICEalias0)) AND to_airport IN (SELECT AIRPORT_SERVICEalias1.airport_code FROM airport_service AS AIRPORT_SERVICEalias1 WHERE AIRPORT_SERVICEalias1.city_code IN (SELECT CITYalias1.city_code FROM city AS CITYalias1 WHERE CITYalias1.city_name = 'SEATTLE'))) AND from_airport IN (SELECT AIRPORT_SERVICEalias0.airport_code FROM airport_service AS AIRPORT_SERVICEalias0 WHERE AIRPORT_SERVICEalias0.city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'CHICAGO'))) AND departure_time BETWEEN 0 AND 800) AND airline_code = 'CO')
give me a combination of CO flights from CHICAGO to SEATTLE that have meals early saturday morning
CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE flight_fare ( flight_id int, fare_id 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 airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time 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 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 flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int, time_elapsed int, to_airport varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description 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 aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed int, range_miles int, pressurized varchar ) CREATE TABLE flight_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 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 )
SELECT MAX(new_membership_total) FROM table_27671835_3 WHERE members_lost > 1.0
What is the new membership total if the members lost is bigger than 1.0?
CREATE TABLE table_27671835_3 (new_membership_total INTEGER, members_lost INTEGER)
SELECT race FROM table_name_83 WHERE time = "17:11.572"
Who holds the time of 17:11.572?
CREATE TABLE table_name_83 (race VARCHAR, time VARCHAR)
SELECT 1 AS st_leg FROM table_name_73 WHERE team__number1 = "unics kazan"
What was the team Unics Kazan's 1st leg score?
CREATE TABLE table_name_73 ( team__number1 VARCHAR )
SELECT members_added FROM table_27671835_3 WHERE conference = "NCHC (men only)"
How many members were added at the nchc (men only) conference?
CREATE TABLE table_27671835_3 (members_added VARCHAR, conference VARCHAR)
SELECT machine FROM table_name_75 WHERE trophy = "susan jenness trophy"
What machine did susan jenness trophy earn the trophy?
CREATE TABLE table_name_75 (machine VARCHAR, trophy VARCHAR)
SELECT SUM(bronze) FROM table_name_62 WHERE gold > 0 AND silver < 1 AND total < 1
What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1?
CREATE TABLE table_name_62 ( bronze INTEGER, total VARCHAR, gold VARCHAR, silver VARCHAR )
SELECT new_membership_total FROM table_27671835_3 WHERE conference = "NCHC (men only)"
What was the new membership total at the nchc (men only) conference?
CREATE TABLE table_27671835_3 (new_membership_total VARCHAR, conference VARCHAR)
SELECT MIN(vehicles__per_1000__d) FROM table_name_14 WHERE agri_culture_b > 12.6
Agri culture b larger than 12.6, what is the lowest vehicles per 1000?
CREATE TABLE table_name_14 (vehicles__per_1000__d INTEGER, agri_culture_b INTEGER)
SELECT title FROM table_15717093_1 WHERE us_viewers__millions_ = "14.39"
What was the title when there were 14.39 million viewers?
CREATE TABLE table_15717093_1 ( title VARCHAR, us_viewers__millions_ VARCHAR )
SELECT outgoing_manager FROM table_27683516_3 WHERE incoming_manager = "Štefan Tarkovič"
What is the outgoing manager when the incoming manager is štefan tarkovič?
CREATE TABLE table_27683516_3 (outgoing_manager VARCHAR, incoming_manager VARCHAR)
SELECT COUNT(agri_culture_b) FROM table_name_10 WHERE income_poverty_f < 13.6 AND mining_b = 1 AND structural_poverty_g < 7.8
Income poverty f smaller than 13.6, and a Mining b of 1, and a Structural poverty g smaller than 7.8, so what is the total number of agriculture?
CREATE TABLE table_name_10 (agri_culture_b VARCHAR, structural_poverty_g VARCHAR, income_poverty_f VARCHAR, mining_b VARCHAR)
SELECT AVG(league_cup_goals) FROM table_name_98 WHERE league_cup_apps = 4 AND league_goals < 4 AND fa_cup_apps = "1" AND total_apps = "35"
what is the average league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35?
CREATE TABLE table_name_98 ( league_cup_goals INTEGER, total_apps VARCHAR, fa_cup_apps VARCHAR, league_cup_apps VARCHAR, league_goals VARCHAR )
SELECT COUNT(team) FROM table_27683516_3 WHERE date_of_vacancy = "30 October 2010"
How many dates of vacancy were on 30 october 2010?
CREATE TABLE table_27683516_3 (team VARCHAR, date_of_vacancy VARCHAR)
SELECT bulgarian_name FROM table_name_95 WHERE english_name = "january"
What's the bulgarian word for January?
CREATE TABLE table_name_95 (bulgarian_name VARCHAR, english_name VARCHAR)
SELECT "Tournament" FROM table_69607 WHERE "2007" = '2r' AND "2011" = '2r'
Which tournament has a 2007 of 2r, and a 2011 of 2r?
CREATE TABLE table_69607 ( "Tournament" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT manner_of_departure FROM table_27683516_3 WHERE date_of_vacancy = "28 September 2010"
What is the manner of departure when the date of vacancy is 28 september 2010?
CREATE TABLE table_27683516_3 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT bulgarian_name FROM table_name_56 WHERE english_name = "september"
What's the Bulgarian word for september?
CREATE TABLE table_name_56 (bulgarian_name VARCHAR, english_name VARCHAR)
SELECT position FROM table_name_69 WHERE team_from = "aik"
What is the position of the team player from Aik?
CREATE TABLE table_name_69 ( position VARCHAR, team_from VARCHAR )
SELECT date_of_appointment FROM table_27683516_3 WHERE date_of_vacancy = "24 November 2010"
What is the date of appointment when the date of vacancy is 24 november 2010?
CREATE TABLE table_27683516_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT opponent FROM table_name_26 WHERE save = "|| 36,388 ||15-7||"
Who was the Opponent when the Save was || 36,388 ||15-7||?
CREATE TABLE table_name_26 (opponent VARCHAR, save VARCHAR)
SELECT year_born__age_ FROM table_name_93 WHERE height > 2.04 AND current_club = "los angeles clippers"
What is the Year born (Age) for the player who is taller than 2.04 and currently plays for the Los Angeles Clippers?
CREATE TABLE table_name_93 ( year_born__age_ VARCHAR, height VARCHAR, current_club VARCHAR )
SELECT outgoing_manager FROM table_27683516_3 WHERE date_of_vacancy = "10 October 2010"
What is the outgoing manager when the date of vacancy is 10 october 2010?
CREATE TABLE table_27683516_3 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT opponent FROM table_name_55 WHERE date = "may 21"
What Opponent played on the Date May 21?
CREATE TABLE table_name_55 (opponent VARCHAR, date VARCHAR)
SELECT games FROM table_name_70 WHERE name = "tsegay kebede category:articles with hcards"
Which game is named tsegay kebede category:articles with hcards?
CREATE TABLE table_name_70 ( games VARCHAR, name VARCHAR )
SELECT table FROM table_27683516_3 WHERE team = "Slovan Bratislava"
What is the table when the team is slovan bratislava?
CREATE TABLE table_27683516_3 (table VARCHAR, team VARCHAR)
SELECT score FROM table_name_68 WHERE loss = "ruthven (1-4)"
What was the Score when the Loss was ruthven (1-4)?
CREATE TABLE table_name_68 (score VARCHAR, loss VARCHAR)
SELECT card_type_code, SUM(card_number) FROM Customers_Cards GROUP BY card_type_code ORDER BY SUM(card_number) DESC
Bar graph to show sum card number from different card type code, could you rank Y from high to low order?
CREATE TABLE Customers ( customer_id INTEGER, customer_first_name VARCHAR(20), customer_last_name VARCHAR(20), customer_address VARCHAR(255), customer_phone VARCHAR(255), customer_email VARCHAR(255), other_customer_details VARCHAR(255) ) CREATE TABLE Accounts ( account_id INTEGER, customer_id INTEGER, account_name VARCHAR(50), other_account_details VARCHAR(255) ) CREATE TABLE Financial_Transactions ( transaction_id INTEGER, previous_transaction_id INTEGER, account_id INTEGER, card_id INTEGER, transaction_type VARCHAR(15), transaction_date DATETIME, transaction_amount DOUBLE, transaction_comment VARCHAR(255), other_transaction_details VARCHAR(255) ) CREATE TABLE Customers_Cards ( card_id INTEGER, customer_id INTEGER, card_type_code VARCHAR(15), card_number VARCHAR(80), date_valid_from DATETIME, date_valid_to DATETIME, other_card_details VARCHAR(255) )
SELECT COUNT(visitors__total_) FROM table_27685921_1 WHERE exhibitors__total_ = 1654
how many people come to visit when the 1654 exhibitions
CREATE TABLE table_27685921_1 (visitors__total_ VARCHAR, exhibitors__total_ VARCHAR)
SELECT MAX(pick__number) FROM table_name_57 WHERE college = "penn state"
What was the highest pick for Penn State?
CREATE TABLE table_name_57 (pick__number INTEGER, college VARCHAR)
SELECT HIRE_DATE, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE
For those employees who do not work in departments with managers that have ids between 100 and 200, a line chart shows the trend of salary over hire_date , I want to order by the X in ascending.
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) ) 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 job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) )
SELECT MAX(year) FROM table_27685921_1 WHERE exhibitors__total_ = 1701
what is the most time where exhibitions is 1701
CREATE TABLE table_27685921_1 (year INTEGER, exhibitors__total_ VARCHAR)
SELECT position FROM table_name_87 WHERE pick__number = 12
What position does pick number 12 play?
CREATE TABLE table_name_87 (position VARCHAR, pick__number VARCHAR)
SELECT fname, lname FROM student WHERE major <> (SELECT major FROM student GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1)
Find the first and last name of students who are not in the largest major.
CREATE TABLE dorm ( dormid number, dorm_name text, student_capacity number, gender text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE dorm_amenity ( amenid number, amenity_name text ) CREATE TABLE has_amenity ( dormid number, amenid number ) CREATE TABLE lives_in ( stuid number, dormid number, room_number number )
SELECT high_points FROM table_27700375_10 WHERE date = "March 14"
who had high points on march 14?
CREATE TABLE table_27700375_10 (high_points VARCHAR, date VARCHAR)
SELECT pick__number FROM table_name_45 WHERE college = "central missouri state"
What is the pick number for the College of Central Missouri State?
CREATE TABLE table_name_45 (pick__number VARCHAR, college VARCHAR)
SELECT "Directed by" FROM table_16244 WHERE "U.S. viewers (million)" = '12.90'
Who directed the episode where u.s. viewers (million) is 12.90?
CREATE TABLE table_16244 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Featured character(s)" text, "Original air date" text, "U.S. viewers (million)" text )
SELECT high_rebounds FROM table_27700375_10 WHERE game = 69
who had high rebounds at game 69?
CREATE TABLE table_27700375_10 (high_rebounds VARCHAR, game VARCHAR)
SELECT MAX(pick__number) FROM table_name_79 WHERE player = "rich voltzke"
What was Rich Voltzke's highest pick number?
CREATE TABLE table_name_79 (pick__number INTEGER, player VARCHAR)
SELECT high_assists FROM table_17323042_11 WHERE game = 1
Who was the High Assist in game 1?
CREATE TABLE table_17323042_11 ( high_assists VARCHAR, game VARCHAR )
SELECT team FROM table_27698941_8 WHERE date = "January 17"
Who were the 76ers opponents on January 17?
CREATE TABLE table_27698941_8 (team VARCHAR, date VARCHAR)
SELECT COUNT(games) FROM table_name_44 WHERE points > 0 AND lost < 4 AND drawn < 0
How many Games has Points larger than 0 and a Lost smaller than 4?
CREATE TABLE table_name_44 (games VARCHAR, drawn VARCHAR, points VARCHAR, lost VARCHAR)
SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = "Fall"
What are the distinct secretary votes in the fall election cycle?
CREATE TABLE VOTING_RECORD ( Secretary_Vote VARCHAR, ELECTION_CYCLE VARCHAR )
SELECT COUNT(high_points) FROM table_27698941_8 WHERE game = 34
How many players held the high point records for game 34?
CREATE TABLE table_27698941_8 (high_points VARCHAR, game VARCHAR)
SELECT MAX(points) FROM table_name_32 WHERE games < 7
which Points has Games smaller than 7?
CREATE TABLE table_name_32 (points INTEGER, games INTEGER)
SELECT first_elected FROM table_name_98 WHERE district = "south carolina 4"
What is the first elected date for the incumbent in the South Carolina 4 district?
CREATE TABLE table_name_98 ( first_elected VARCHAR, district VARCHAR )
SELECT record FROM table_27698941_8 WHERE date = "January 7"
What the win - loss recored for January 7?
CREATE TABLE table_27698941_8 (record VARCHAR, date VARCHAR)
SELECT COUNT(drawn) FROM table_name_87 WHERE points < 5 AND lost > 7
How many Drawns have Points smaller than 5 and a Lost larger than 7?
CREATE TABLE table_name_87 (drawn VARCHAR, points VARCHAR, lost VARCHAR)
SELECT viewers__in_millions_ FROM table_1849243_1 WHERE run_time = "23:55"
How many viewers in millions watched the episode 23:55 minutes long?
CREATE TABLE table_1849243_1 ( viewers__in_millions_ VARCHAR, run_time VARCHAR )
SELECT COUNT(high_points) FROM table_27698941_2 WHERE date = "October 5"
How many people led in points during the game on October 5?
CREATE TABLE table_27698941_2 (high_points VARCHAR, date VARCHAR)
SELECT record FROM table_name_35 WHERE date = "january 29"
Which record has a date of January 29?
CREATE TABLE table_name_35 (record VARCHAR, date VARCHAR)
SELECT district FROM table_name_53 WHERE location = "villupuram"
What District has a Location of villupuram?
CREATE TABLE table_name_53 ( district VARCHAR, location VARCHAR )
SELECT date FROM table_27700375_11 WHERE location_attendance = "The Palace of Auburn Hills 14,554"
Name the date for the palace of auburn hills 14,554
CREATE TABLE table_27700375_11 (date VARCHAR, location_attendance VARCHAR)
SELECT score FROM table_name_62 WHERE visitor = "new york"
Which score has a visitor of New York?
CREATE TABLE table_name_62 (score VARCHAR, visitor VARCHAR)
SELECT MIN(silver) FROM table_name_80 WHERE bronze > 1 AND rank < 11
What is the low silver medal total for nations with over 1 bronze ranked above 11?
CREATE TABLE table_name_80 ( silver INTEGER, bronze VARCHAR, rank VARCHAR )
SELECT MIN(game) FROM table_27700375_11 WHERE score = "L 109–116 (OT)"
Name the least game for l 109–116 (ot)
CREATE TABLE table_27700375_11 (game INTEGER, score VARCHAR)
SELECT visitor FROM table_name_40 WHERE date = "january 24"
What is the name of the visitor on January 24?
CREATE TABLE table_name_40 (visitor VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT course.course_id, semester.semester) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 200 AND 200 + 100 AND semester.semester IN ('FA', 'WN') AND semester.semester_id = course_offering.semester AND semester.year = 2016
During the Fall and Winter term , how many 200 level classes are there ?
CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE area ( course_id int, area 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 offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) 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 requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction 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 course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int )
SELECT high_rebounds FROM table_27700375_11 WHERE team = "Charlotte"
Name the high rebounds for charlotte
CREATE TABLE table_27700375_11 (high_rebounds VARCHAR, team VARCHAR)
SELECT home FROM table_name_3 WHERE date = "january 7"
Which home game has a date of January 7?
CREATE TABLE table_name_3 (home VARCHAR, date VARCHAR)
SELECT "9:30" FROM table_71735 WHERE "8:30" = 'dancing with the stars'
What is on at 9:30 on the channel of dancing with the stars?
CREATE TABLE table_71735 ( "7:00" text, "7:30" text, "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text )
SELECT high_rebounds FROM table_27700375_11 WHERE location_attendance = "Wells Fargo Center 16,695"
Name the high rebounds for wells fargo center 16,695
CREATE TABLE table_27700375_11 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT MAX(doctorate) FROM table_name_10 WHERE specialist = 0 AND college = "informatics and systems" AND masters < 2
What is the highest number of doctorates the college of informatics and systems, which has 0 specialists and less than 2 master's degrees, have?
CREATE TABLE table_name_10 (doctorate INTEGER, masters VARCHAR, specialist VARCHAR, college VARCHAR)
SELECT DISTINCT region_name FROM region ORDER BY Label
Show all distinct region names ordered by their labels.
CREATE TABLE region ( region_name VARCHAR, Label VARCHAR )
SELECT high_rebounds FROM table_27700375_8 WHERE high_points = "Brook Lopez (15)"
Who got the high rebounds if Brook Lopez (15) earned the high points?
CREATE TABLE table_27700375_8 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT date FROM table_name_62 WHERE blue_coalition = "8,80%"
On what Date is the Blue Coalition 8,80%?
CREATE TABLE table_name_62 (date VARCHAR, blue_coalition VARCHAR)
SELECT "Pick #" FROM table_19482 WHERE "College" = 'Florida State'
What is the pick number of the player whose college is Florida State?
CREATE TABLE table_19482 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text )
SELECT high_assists FROM table_27700375_8 WHERE team = "@ Indiana"
Who got high assists for team @ Indiana?
CREATE TABLE table_27700375_8 (high_assists VARCHAR, team VARCHAR)
SELECT source FROM table_name_8 WHERE attack = "9,77%"
What Source has an Attack of 9,77%?
CREATE TABLE table_name_8 (source VARCHAR, attack 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 = 'SAN FRANCISCO' AND date_day.day_number = 27 AND date_day.month_number = 8 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 = 'PITTSBURGH' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
show me flights from PITTSBURGH to SAN FRANCISCO on sunday
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 aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed int, range_miles int, pressurized varchar ) CREATE TABLE flight_fare ( flight_id int, fare_id 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 days ( days_code varchar, day_name varchar ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) 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 airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt 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 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 food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text )
SELECT COUNT(record) FROM table_27700375_8 WHERE high_assists = "Devin Harris (6)"
How many record data were written when Devin Harris (6) was High Assists?
CREATE TABLE table_27700375_8 (record VARCHAR, high_assists VARCHAR)
SELECT attack FROM table_name_71 WHERE source = "nciom"
What Attack has a Source of NCIOM?
CREATE TABLE table_name_71 (attack VARCHAR, source VARCHAR)
SELECT MIN(grid) FROM table_name_88 WHERE time_retired = "clutch" AND driver = "peter collins" AND laps < 26
what is the lowest grid when the time retired is clutch, the driver is peter collins and the laps is smaller than 26?
CREATE TABLE table_name_88 ( grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR )
SELECT COUNT(game) FROM table_27700375_8 WHERE date = "January 5"
How many games were held on January 5?
CREATE TABLE table_27700375_8 (game VARCHAR, date VARCHAR)
SELECT attack FROM table_name_74 WHERE gerb = "30,00%"
What Attack has a 30,00% GERB?
CREATE TABLE table_name_74 (attack VARCHAR, gerb VARCHAR)
SELECT MANAGER_ID, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)
For those employees who did not have any job in the past, return a scatter chart about the correlation between manager_id and department_id .
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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 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 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) )
SELECT high_assists FROM table_27700530_11 WHERE team = "Houston"
Who had highest assists at the game against Houston?
CREATE TABLE table_27700530_11 (high_assists VARCHAR, team VARCHAR)