answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT august_21_22 FROM table_22651355_3 WHERE june_10_11 = "June 11, 1983"
What value can you find under the column "august 21-22" and the row of June 11, 1983?
CREATE TABLE table_22651355_3 (august_21_22 VARCHAR, june_10_11 VARCHAR)
SELECT film_title_used_in_nomination FROM table_18987377_1 WHERE director = "André Téchiné Category:Articles with hCards"
Name the film title for andré téchiné category:articles with hcards
CREATE TABLE table_18987377_1 (film_title_used_in_nomination VARCHAR, director VARCHAR)
SELECT Headquarter, COUNT(DISTINCT T1.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code ORDER BY COUNT(DISTINCT T1.Name)
How many different products are produced in each headquarter city Visualize by bar chart, sort in ascending by the y axis.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT location_attendance FROM table_22654073_10 WHERE record = "51-15"
What was the location and attendance for the game against the team with a 51-15 record with the Cavaliers?
CREATE TABLE table_22654073_10 (location_attendance VARCHAR, record VARCHAR)
SELECT director FROM table_18987377_1 WHERE film_title_used_in_nomination = "Coup de Torchon"
Name the director for coup de torchon
CREATE TABLE table_18987377_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT "Player" FROM table_6762 WHERE "From club" = 'atlético madrid'
Which Player had a From club of atl tico madrid?
CREATE TABLE table_6762 ( "Date" text, "Pos." text, "Player" text, "From club" text, "Transfer fee" text )
SELECT COUNT(score) FROM table_22654073_8 WHERE record = "27-9"
How many scores are associated with a record of 27-9?
CREATE TABLE table_22654073_8 (score VARCHAR, record VARCHAR)
SELECT film_title_used_in_nomination FROM table_18987377_1 WHERE director = "Marcel Camus Category:Articles with hCards"
Name the film titled for marcel camus category:articles with hcards
CREATE TABLE table_18987377_1 (film_title_used_in_nomination VARCHAR, director VARCHAR)
SELECT "Batting partners" FROM table_45683 WHERE "Venue" = 'colombo'
Who were the batting partners in Colombo?
CREATE TABLE table_45683 ( "Wicket" text, "Runs" text, "Batting partners" text, "Batting team" text, "Fielding team" text, "Venue" text, "Season" text )
SELECT COUNT(game) FROM table_22654073_8 WHERE record = "29-10"
How many games are associated with a record of 29-10?
CREATE TABLE table_22654073_8 (game VARCHAR, record VARCHAR)
SELECT home_or_representative_town_or_province FROM table_19061741_1 WHERE name = "Cindy Miranda"
When cindy miranda is the name what is the home or representative town or province?
CREATE TABLE table_19061741_1 (home_or_representative_town_or_province VARCHAR, name VARCHAR)
SELECT "Opponent" FROM table_35324 WHERE "Surface" = 'hard (i)'
Who was the Opponent on a Hard (i) Surface?
CREATE TABLE table_35324 ( "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text )
SELECT team FROM table_22654073_6 WHERE record = "3-2"
Name the team for record 3-2
CREATE TABLE table_22654073_6 (team VARCHAR, record VARCHAR)
SELECT status FROM table_19061741_1 WHERE name = "Nel Rapiz"
When nel rapiz is the name what is the status?
CREATE TABLE table_19061741_1 (status VARCHAR, name VARCHAR)
SELECT "Age groups" FROM table_68955 WHERE "Sport" = 'figure skating'
What is the age group for figure skating?
CREATE TABLE table_68955 ( "Sport" text, "Competition name" text, "Competing entities" text, "Age groups" text, "Held every" text )
SELECT date FROM table_22654073_6 WHERE high_points = "LeBron James , Mo Williams (21)"
Name the date for lebron james , mo williams (21)
CREATE TABLE table_22654073_6 (date VARCHAR, high_points VARCHAR)
SELECT season FROM table_19061741_1 WHERE duration = "Day 8-36"
When day 8-36 is the duration what is the season?
CREATE TABLE table_19061741_1 (season VARCHAR, duration VARCHAR)
SELECT "Score" FROM table_60674 WHERE "To par" = '–1' AND "Player" = 'henrik stenson'
With a To par of 1, what is Player Henrik Stenson's Score?
CREATE TABLE table_60674 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT high_points FROM table_22654073_6 WHERE record = "9-4"
Name the high points for record 9-4
CREATE TABLE table_22654073_6 (high_points VARCHAR, record VARCHAR)
SELECT season FROM table_19061741_1 WHERE name = "Luz McClinton"
When luz mcclinton is the name what is the season?
CREATE TABLE table_19061741_1 (season VARCHAR, name VARCHAR)
SELECT "State and District of Columbia" FROM table_22730 WHERE "Overweight (incl. obese) adults" = '60.0%'
What is every state and District of Columbia with 60.0% overweight or obese adults?
CREATE TABLE table_22730 ( "State and District of Columbia" text, "Obese adults" text, "Overweight (incl. obese) adults" text, "Obese children and adolescents" text, "Obesity rank" real )
SELECT COUNT(date) FROM table_22654073_6 WHERE score = "L 85–86 (OT)"
Name the total number of date for l 85–86 (ot)
CREATE TABLE table_22654073_6 (date VARCHAR, score VARCHAR)
SELECT MAX(total_days_in_pbb_house) FROM table_19061741_1 WHERE name = "Yen Galagnara"
When yen galagnara is the name what is the highest total days in the pbb house?
CREATE TABLE table_19061741_1 (total_days_in_pbb_house INTEGER, name VARCHAR)
SELECT "Margin of victory" FROM table_40276 WHERE "Winning score" = '–10 (69-68-74-67=278)'
Who were the runner(s)-up when the winning score was 10 (69-68-74-67=278)?
CREATE TABLE table_40276 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text )
SELECT COUNT(network) FROM table_22654139_2 WHERE year = 2007
Name the network for 2007 total
CREATE TABLE table_22654139_2 (network VARCHAR, year VARCHAR)
SELECT COUNT(match_no) FROM table_19072602_2 WHERE team_europe = "Osku Palermaa"
How many match numbers have team europe listed as osku palermaa?
CREATE TABLE table_19072602_2 (match_no VARCHAR, team_europe VARCHAR)
SELECT vacator FROM table_225102_4 WHERE reason_for_change = "Died August 13, 1826"
Name the vacator for died august 13, 1826
CREATE TABLE table_225102_4 ( vacator VARCHAR, reason_for_change VARCHAR )
SELECT s_analyst FROM table_22654139_2
Name the analysts
CREATE TABLE table_22654139_2 (s_analyst VARCHAR)
SELECT COUNT(match_no) FROM table_19072602_5 WHERE team_europe = "Osku Palermaa"
When osku palermaa is on the europe team how many match numbers are there?
CREATE TABLE table_19072602_5 (match_no VARCHAR, team_europe VARCHAR)
SELECT SUM(drawn) FROM table_name_17 WHERE points = 6 AND against > 16
Which Drawn has a Points of 6, and a Against larger than 16?
CREATE TABLE table_name_17 ( drawn INTEGER, points VARCHAR, against VARCHAR )
SELECT result FROM table_22656187_9 WHERE partnering = "Frederica Piedade"
What was the result for a partnering of Frederica Piedade?
CREATE TABLE table_22656187_9 (result VARCHAR, partnering VARCHAR)
SELECT team_usa FROM table_19072602_5 WHERE team_europe = "Paul Moor"
When paul moor is on the europe team who is on the usa team?
CREATE TABLE table_19072602_5 (team_usa VARCHAR, team_europe VARCHAR)
SELECT non_suited_match FROM table_name_60 WHERE number_of_decks > 6
Name the Non-Suited Match that has greater than 6 Number of Decks.
CREATE TABLE table_name_60 ( non_suited_match VARCHAR, number_of_decks INTEGER )
SELECT round FROM table_22656187_9 WHERE w_l = "Loss" AND edition = "2012 Fed Cup Europe/Africa Group I"
Which round has a win-loss result of loss and an edition of 2012 Fed Cup Europe/Africa Group I?
CREATE TABLE table_22656187_9 (round VARCHAR, w_l VARCHAR, edition VARCHAR)
SELECT mountains_classification FROM table_19115414_4 WHERE team_classification = "Team Columbia"
Name the mountains classification for team columbia
CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, team_classification VARCHAR)
SELECT MIN(points) FROM table_name_38 WHERE drawn < 2 AND played > 8
What is the fewest number of points for clubs with less than 2 draws and more than 8 matches played?
CREATE TABLE table_name_38 ( points INTEGER, drawn VARCHAR, played VARCHAR )
SELECT manufacturer FROM table_2266230_1 WHERE driver = "Cale Yarborough" AND year = "1984"
Name the manufacturer for cale yarborough for 1984
CREATE TABLE table_2266230_1 (manufacturer VARCHAR, driver VARCHAR, year VARCHAR)
SELECT COUNT(stage__winner_) FROM table_19115414_4 WHERE team_classification = "Team Columbia"
Name the number of stage winners for team columbia
CREATE TABLE table_19115414_4 (stage__winner_ VARCHAR, team_classification VARCHAR)
SELECT COUNT("competition") FROM table_203_238
number of competitions
CREATE TABLE table_203_238 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text )
SELECT report FROM table_2266230_1 WHERE year = "2003"
Name the report for 2003
CREATE TABLE table_2266230_1 (report VARCHAR, year VARCHAR)
SELECT mountains_classification FROM table_19115414_4 WHERE points_classification = "Alexander Kristoff"
Name the mountains classification for alexander kristoff
CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, points_classification VARCHAR)
SELECT player FROM table_name_57 WHERE place = "t4" AND score = 71 - 74 - 66 = 211
What is the T4 Place Player with a Score of 71-74-66=211?
CREATE TABLE table_name_57 ( player VARCHAR, place VARCHAR, score VARCHAR )
SELECT date_opened FROM table_22665117_1 WHERE dist_id = 11901
What is the date opened if thedistrict ID is 11901?
CREATE TABLE table_22665117_1 (date_opened VARCHAR, dist_id VARCHAR)
SELECT MIN(other_black_population) FROM table_19149550_7 WHERE black_african_population = 37811
How much is the other black population when the black African population is 37811?
CREATE TABLE table_19149550_7 (other_black_population INTEGER, black_african_population VARCHAR)
SELECT "Production code" FROM table_26762 WHERE "Directed by" = 'Robert Duncan McNeill'
What as the production code for the episode directed by Robert Duncan McNeill?
CREATE TABLE table_26762 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Original air date" text, "Production code" text )
SELECT authorizing_agency FROM table_22665117_1 WHERE district_name = "Academy of Flint"
If the district name is the Academy of Flint, what is the authorizing agency?
CREATE TABLE table_22665117_1 (authorizing_agency VARCHAR, district_name VARCHAR)
SELECT london_borough FROM table_19149550_7 WHERE black_caribbean_population = 17974
Where are the london borough with the black caribbean population of 17974?
CREATE TABLE table_19149550_7 (london_borough VARCHAR, black_caribbean_population VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM area, course WHERE area.area LIKE '%computing infrastructure%' AND course.course_id = area.course_id
Where should I begin if I want to take a computing infrastructure course ?
CREATE TABLE ta ( campus_job_id int, student_id int, location 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 ( 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 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 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 instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category 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 area ( course_id int, area varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int )
SELECT district_name FROM table_22665117_1 WHERE dist_id = 74907
If the district ID is 74907, what is the name of the district?
CREATE TABLE table_22665117_1 (district_name VARCHAR, dist_id VARCHAR)
SELECT rank FROM table_19149550_7 WHERE london_borough = "Southwark"
What is the rank of london borough in southwark?
CREATE TABLE table_19149550_7 (rank VARCHAR, london_borough VARCHAR)
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27362) AND prescriptions.route = 'oral' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', prescriptions.startdate) = '07' ORDER BY prescriptions.startdate DESC LIMIT 1
what was the name of the drug that was prescribed to patient 27362 last time through the oral route in 07/last year?
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto 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 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 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 prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom 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_diagnoses ( row_id number, icd9_code text, short_title text, long_title 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text )
SELECT county FROM table_22665117_1 WHERE district_name = "Charyl Stockwell Academy"
If the name of the district is the Charyl Stockwell Academy, what is the county name?
CREATE TABLE table_22665117_1 (county VARCHAR, district_name VARCHAR)
SELECT MAX(black_caribbean_population) FROM table_19149550_7 WHERE other_black_population = 2243
What is the black caribbean population when the other black population is 2243?
CREATE TABLE table_19149550_7 (black_caribbean_population INTEGER, other_black_population VARCHAR)
SELECT Category, COUNT(*) FROM book_club GROUP BY Category
Show all book categories and the number of books in each category with a bar chart.
CREATE TABLE book_club ( book_club_id int, Year int, Author_or_Editor text, Book_Title text, Publisher text, Category text, Result text ) CREATE TABLE culture_company ( Company_name text, Type text, Incorporated_in text, Group_Equity_Shareholding real, book_club_id text, movie_id text ) CREATE TABLE movie ( movie_id int, Title text, Year int, Director text, Budget_million real, Gross_worldwide int )
SELECT driver FROM table_2266976_1 WHERE year = "1986"
Who was the driver in 1986?
CREATE TABLE table_2266976_1 (driver VARCHAR, year VARCHAR)
SELECT MIN(black_caribbean_population) FROM table_19149550_7 WHERE black_african_population < 10552.0
What is the black caribbean population when the black African population is less than 10552.0?
CREATE TABLE table_19149550_7 (black_caribbean_population INTEGER, black_african_population INTEGER)
SELECT MAX(points) FROM table_1973321_5 WHERE status = "Champion, won in the final against Amélie Mauresmo"
Name the most points for champion, won in the final against am lie mauresmo
CREATE TABLE table_1973321_5 ( points INTEGER, status VARCHAR )
SELECT date FROM table_2266976_1 WHERE average_speed__mph_ = "81.388"
When was an average speed of 81.388 mph recorded?
CREATE TABLE table_2266976_1 (date VARCHAR, average_speed__mph_ VARCHAR)
SELECT timeslot FROM table_19188562_2 WHERE rating__adults_18_49_ = "0.6"
What time slot had an adult rating of 0.6?
CREATE TABLE table_19188562_2 (timeslot VARCHAR, rating__adults_18_49_ VARCHAR)
SELECT "City" FROM table_42124 WHERE "State" = 'california' AND "AAM Accredited" = 'no' AND "ASTC Member" = 'yes' AND "AAM Member" = 'no'
What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No?
CREATE TABLE table_42124 ( "City" text, "State" text, "AAM Accredited" text, "AAM Member" text, "ASTC Member" text )
SELECT manufacturer FROM table_2266976_1 WHERE year = "1990"
Who was the manufacturer in 1990?
CREATE TABLE table_2266976_1 (manufacturer VARCHAR, year VARCHAR)
SELECT season AS finale FROM table_19188562_2 WHERE us_viewers__in_millions_ = "2.02"
What season finale date has 2.02 million u.s. Viewers?
CREATE TABLE table_19188562_2 (season VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT "Succeeded by" FROM table_1398 WHERE "Earpads" = 'Foam'
Name what succeeded by for foam
CREATE TABLE table_1398 ( "Headphone Model" text, "Headphone Class" text, "Sensitivity (dB)" text, "Impedance (Ohms)" real, "Driver-matched dB" text, "Construction" text, "Earpads" text, "Termination" text, "Succeeded by" text )
SELECT manufacturer FROM table_2266976_1 WHERE race_time = "2:30:28"
Who was the manufacturer in the year when the race lasted 2:30:28?
CREATE TABLE table_2266976_1 (manufacturer VARCHAR, race_time VARCHAR)
SELECT us_viewers__in_millions_ FROM table_19188562_2 WHERE season = 1
How many million u.s. Viewers watched season 1?
CREATE TABLE table_19188562_2 (us_viewers__in_millions_ VARCHAR, season 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 = 'SAN JOSE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ST. PAUL' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
flights from SAN JOSE to ST. PAUL
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 month ( month_number int, month_name text ) CREATE TABLE flight_fare ( flight_id int, fare_id 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 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 equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare 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 food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight 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 dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant 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 date_day ( month_number int, day_number int, year int, 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 time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt 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 compartment_class ( compartment varchar, class_type varchar )
SELECT team FROM table_2266976_1 WHERE year = "2003"
What team competed in 2003?
CREATE TABLE table_2266976_1 (team VARCHAR, year VARCHAR)
SELECT COUNT(tv_season) FROM table_19188562_2 WHERE rating__adults_18_49_ = "1.2"
How many tv series had an adult rating of 1.2?
CREATE TABLE table_19188562_2 (tv_season VARCHAR, rating__adults_18_49_ VARCHAR)
SELECT from_club FROM table_name_49 WHERE date = "20 oct. 2008"
Which From club has a Date of 20 oct. 2008?
CREATE TABLE table_name_49 ( from_club VARCHAR, date VARCHAR )
SELECT miles__km_ FROM table_2266976_1 WHERE race_time = "3:07:53"
How long in miles (km) was the race that lasted 3:07:53?
CREATE TABLE table_2266976_1 (miles__km_ VARCHAR, race_time VARCHAR)
SELECT location FROM table_19210115_1 WHERE nickname = "Hawks"
Where is the University that is also called Hawks?
CREATE TABLE table_19210115_1 (location VARCHAR, nickname VARCHAR)
SELECT Location, COUNT(Location) FROM performance GROUP BY Location
How many performances of each location? Show me the proportion using a pie chart.
CREATE TABLE member_attendance ( Member_ID int, Performance_ID int, Num_of_Pieces int ) CREATE TABLE member ( Member_ID text, Name text, Nationality text, Role text ) CREATE TABLE performance ( Performance_ID real, Date text, Host text, Location text, Attendance int )
SELECT race_name FROM table_22669375_1 WHERE date = "June 6"
Name the race name for june 6
CREATE TABLE table_22669375_1 (race_name VARCHAR, date VARCHAR)
SELECT location FROM table_19210115_1 WHERE nickname = "Owls"
Where is the University that is also called Owls?
CREATE TABLE table_19210115_1 (location VARCHAR, nickname VARCHAR)
SELECT country FROM table_14523485_9 WHERE channel = "TVNZ"
What country is the show aired on TVNZ?
CREATE TABLE table_14523485_9 ( country VARCHAR, channel VARCHAR )
SELECT location FROM table_22669375_1 WHERE race_name = "Trenton 300"
Name the location for trenton 300
CREATE TABLE table_22669375_1 (location VARCHAR, race_name VARCHAR)
SELECT COUNT(enrollment) FROM table_19210115_1 WHERE founded = 1863
How many University founded in 1863?
CREATE TABLE table_19210115_1 (enrollment VARCHAR, founded VARCHAR)
SELECT District_name, City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000 ORDER BY District_name
Return a bar chart on what are the district names and city populations for all districts that between 200,000 and 2,000,000 residents?, I want to sort by the bars in asc please.
CREATE TABLE product ( product_id int, product text, dimensions text, dpi real, pages_per_minute_color real, max_page_size text, interface text ) CREATE TABLE district ( District_ID int, District_name text, Headquartered_City text, City_Population real, City_Area real ) CREATE TABLE store ( Store_ID int, Store_Name text, Type text, Area_size real, Number_of_product_category real, Ranking int ) CREATE TABLE store_district ( Store_ID int, District_ID int ) CREATE TABLE store_product ( Store_ID int, Product_ID int )
SELECT race_name FROM table_22669375_1 WHERE rnd = 11
Name the race name for rnd being 11
CREATE TABLE table_22669375_1 (race_name VARCHAR, rnd VARCHAR)
SELECT location FROM table_19210115_1 WHERE conference = "American Athletic conference"
Where is the University that plays in the American Athletic Conference?
CREATE TABLE table_19210115_1 (location VARCHAR, conference VARCHAR)
SELECT "Ship" FROM table_12259 WHERE "Built" = '2012'
What ship was built in 2012?
CREATE TABLE table_12259 ( "Built" real, "Ship" text, "Operator" text, "Tonnage" text, "Flag" text )
SELECT length FROM table_22669816_1 WHERE winning_driver = "Roger McCluskey"
What length was won by Roger McCluskey?
CREATE TABLE table_22669816_1 (length VARCHAR, winning_driver VARCHAR)
SELECT affiliation FROM table_19210115_1 WHERE nickname = "Explorers"
What is the affiliation of the University called Explorers?
CREATE TABLE table_19210115_1 (affiliation VARCHAR, nickname VARCHAR)
SELECT district FROM table_25030512_26 WHERE incumbent = "Keith Ellison"
In what district was keith ellison the incumbent?
CREATE TABLE table_25030512_26 ( district VARCHAR, incumbent VARCHAR )
SELECT rnd FROM table_22669816_1 WHERE track = "Phoenix International Raceway"
What rounds did Phoenix International Raceway host?
CREATE TABLE table_22669816_1 (rnd VARCHAR, track VARCHAR)
SELECT nickname FROM table_19210115_1 WHERE institution = "Drexel University"
What is the nickname of Drexel University?
CREATE TABLE table_19210115_1 (nickname VARCHAR, institution VARCHAR)
SELECT SUM(grid) FROM table_name_76 WHERE driver = "david coulthard"
What is the grid total for david coulthard?
CREATE TABLE table_name_76 ( grid INTEGER, driver VARCHAR )
SELECT length FROM table_22669816_1 WHERE track = "Pocono International Raceway"
What are the lengths hosted by Pocono International Raceway?
CREATE TABLE table_22669816_1 (length VARCHAR, track VARCHAR)
SELECT branding FROM table_19215259_1 WHERE location = "Metro Manila"
What is the brand in Metro Manila?
CREATE TABLE table_19215259_1 (branding VARCHAR, location VARCHAR)
SELECT country FROM table_28498999_6 WHERE player = "Luke Donald"
what is the place where the person is luke donald
CREATE TABLE table_28498999_6 ( country VARCHAR, player VARCHAR )
SELECT length FROM table_22669816_1 WHERE track = "Phoenix International Raceway"
What lengths did Phoenix International Raceway host?
CREATE TABLE table_22669816_1 (length VARCHAR, track VARCHAR)
SELECT branding FROM table_19215259_1 WHERE location = "Cabanatuan"
What is the brand in Cabanatuan?
CREATE TABLE table_19215259_1 (branding VARCHAR, location VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.short_title = "Radiotherapeut proc NEC"
what number of married patients underwent the procedure titled radiotherapeut proc nec?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT location_attendance FROM table_22669044_7 WHERE score = "L 83–118 (OT)"
Name the location attendance for score being l 83–118 (ot)
CREATE TABLE table_22669044_7 (location_attendance VARCHAR, score VARCHAR)
SELECT power__kw_ FROM table_19215259_1 WHERE location = "Cebu"
What is the power at the cebu station?
CREATE TABLE table_19215259_1 (power__kw_ VARCHAR, location VARCHAR)
SELECT style FROM table_28677723_14 WHERE total = 27
Name the style for 27
CREATE TABLE table_28677723_14 ( style VARCHAR, total VARCHAR )
SELECT high_assists FROM table_22669044_7 WHERE date = "December 9"
Name the high assists for december 9
CREATE TABLE table_22669044_7 (high_assists VARCHAR, date VARCHAR)
SELECT frequency FROM table_19215259_1 WHERE branding = "101.5 News FM"
What is the frequency of 101.5 News FM?
CREATE TABLE table_19215259_1 (frequency VARCHAR, branding VARCHAR)
SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY Hometown
Show the hometown of all members, I want to sort by the X-axis in asc.
CREATE TABLE branch ( Branch_ID int, Name text, Open_year text, Address_road text, City text, membership_amount text ) CREATE TABLE purchase ( Member_ID int, Branch_ID text, Year text, Total_pounds real ) CREATE TABLE membership_register_branch ( Member_ID int, Branch_ID text, Register_Year text ) CREATE TABLE member ( Member_ID int, Card_Number text, Name text, Hometown text, Level int )
SELECT COUNT(winner) FROM table_2267345_2 WHERE team_classification = "Kelme-Costa Blanca" AND combativity_award = "Jacky Durand"
What is the total number of winners when the team classification leader was Kelme-Costa Blanca and the combativity award was won by Jacky Durand?
CREATE TABLE table_2267345_2 (winner VARCHAR, team_classification VARCHAR, combativity_award VARCHAR)