answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT height FROM table_24055352_1 WHERE hometown = "Los Angeles"
What is the height when the player is from Los Angeles?
CREATE TABLE table_24055352_1 (height VARCHAR, hometown VARCHAR)
SELECT episode_number FROM table_25391981_20 WHERE episode = "Week 4, Part 2"
What number episode was Week 4, Part 2?
CREATE TABLE table_25391981_20 (episode_number VARCHAR, episode VARCHAR)
SELECT cName, COUNT(*) FROM Tryout GROUP BY cName ORDER BY COUNT(*) DESC
How many students participated in tryouts for each college by descennding count. Show a pie chart.
CREATE TABLE College ( cName varchar(20), state varchar(2), enr numeric(5,0) ) CREATE TABLE Tryout ( pID numeric(5,0), cName varchar(20), pPos varchar(8), decision varchar(3) ) CREATE TABLE Player ( pID numeric(5,0), pName varchar(20), yCard varchar(3), HS numeric(5,0) )
SELECT height FROM table_24055352_1 WHERE name = "Kammeon Holsey"
What is Kammeon Holsey's height?
CREATE TABLE table_24055352_1 (height VARCHAR, name VARCHAR)
SELECT viewers__millions_ FROM table_25391981_20 WHERE episode_number = "10.18"
How many viewers in millions watched the episode with the number 10.18?
CREATE TABLE table_25391981_20 (viewers__millions_ VARCHAR, episode_number VARCHAR)
SELECT AVG(byes) FROM table_name_54 WHERE benalla_dfl = "bonnie doon" AND wins > 16
What are the average byes of Bonnie Doon having more than 16 wins?
CREATE TABLE table_name_54 ( byes INTEGER, benalla_dfl VARCHAR, wins VARCHAR )
SELECT high_school FROM table_24055352_1 WHERE number = 5
What is the high school of the player number 5?
CREATE TABLE table_24055352_1 (high_school VARCHAR, number VARCHAR)
SELECT rating / SHARE(18 AS –49) FROM table_25391981_20 WHERE episode = "Week 6, Part 1"
What is the rating/share for 18-49 for Week 6, Part 1?
CREATE TABLE table_25391981_20 (rating VARCHAR, episode VARCHAR)
SELECT receipt_date, COUNT(receipt_date) FROM Documents ORDER BY receipt_date
Give me the trend of how many receipt date by receipt date, and could you show in asc by the receipt_date?
CREATE TABLE Circulation_History ( document_id INTEGER, draft_number INTEGER, copy_number INTEGER, employee_id INTEGER ) CREATE TABLE Roles ( role_code CHAR(15), role_description VARCHAR(255) ) CREATE TABLE Documents_Mailed ( document_id INTEGER, mailed_to_address_id INTEGER, mailing_date DATETIME ) CREATE TABLE Addresses ( address_id INTEGER, address_details VARCHAR(255) ) CREATE TABLE Ref_Shipping_Agents ( shipping_agent_code CHAR(15), shipping_agent_name VARCHAR(255), shipping_agent_description VARCHAR(255) ) CREATE TABLE Draft_Copies ( document_id INTEGER, draft_number INTEGER, copy_number INTEGER ) CREATE TABLE Documents ( document_id INTEGER, document_status_code CHAR(15), document_type_code CHAR(15), shipping_agent_code CHAR(15), receipt_date DATETIME, receipt_number VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE Employees ( employee_id INTEGER, role_code CHAR(15), employee_name VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( document_type_code CHAR(15), document_type_description VARCHAR(255) ) CREATE TABLE Document_Drafts ( document_id INTEGER, draft_number INTEGER, draft_details VARCHAR(255) ) CREATE TABLE Ref_Document_Status ( document_status_code CHAR(15), document_status_description VARCHAR(255) )
SELECT COUNT(world_record) FROM table_24062944_2 WHERE kenenisa_bekele___eth__ = "Marílson Gomes dos Santos ( BRA )"
How many times is kenenisa bekele ( eth ) is marílson gomes dos santos ( bra )?
CREATE TABLE table_24062944_2 (world_record VARCHAR, kenenisa_bekele___eth__ VARCHAR)
SELECT weekly_rank FROM table_25391981_20 WHERE share = "14" AND original_airdate = "April 20, 2010"
What is the weekly rank of the episode with a 14 share whose original airdate was April 20, 2010?
CREATE TABLE table_25391981_20 (weekly_rank VARCHAR, share VARCHAR, original_airdate VARCHAR)
SELECT "Acquisition via" FROM table_42620 WHERE "Position" = 'forward' AND "School/Club Team" = 'manuel luis quezon'
How did the School/Club Team of Manuel Luis Quezon acquire their Forward?
CREATE TABLE table_42620 ( "Name" text, "Position" text, "Number" real, "School/Club Team" text, "Season" text, "Acquisition via" text )
SELECT against FROM table_24074130_5 WHERE opponent = "Andreas Vinciguerra"
What is every entry for against with opponent Andreas Vinciguerra?
CREATE TABLE table_24074130_5 (against VARCHAR, opponent VARCHAR)
SELECT form__to_sing_ FROM table_25401_2 WHERE brazilian_portuguese = "[kɐ̃ˈtẽmus]"
What is the form ("to sing") when brazilian portuguese is [kɐ̃ˈtẽmus]?
CREATE TABLE table_25401_2 (form__to_sing_ VARCHAR, brazilian_portuguese VARCHAR)
SELECT "Player" FROM table_49221 WHERE "Position" = 'wr'
What is the WR player?
CREATE TABLE table_49221 ( "Round" real, "Pick" text, "Player" text, "Position" text, "School/Club Team" text )
SELECT surface FROM table_24074130_5 WHERE against = "Sweden"
What is every surface against Sweden?
CREATE TABLE table_24074130_5 (surface VARCHAR, against VARCHAR)
SELECT romanian FROM table_25401_2 WHERE nuorese_sardinian = "[ˈkantata]"
what is romanian when nuorese sardinian is [ˈkantata]?
CREATE TABLE table_25401_2 (romanian VARCHAR, nuorese_sardinian VARCHAR)
SELECT attendance FROM table_name_15 WHERE date = "april 17"
Name the attendance on april 17
CREATE TABLE table_name_15 ( attendance VARCHAR, date VARCHAR )
SELECT win_lose FROM table_24074130_5 WHERE against = "Sweden"
What is every entry in the win/lose against Sweden?
CREATE TABLE table_24074130_5 (win_lose VARCHAR, against VARCHAR)
SELECT romanian FROM table_25401_2 WHERE nuorese_sardinian = "[ˈkantaza]"
what is romanian when nuorese sardinian is [ˈkantaza]?
CREATE TABLE table_25401_2 (romanian VARCHAR, nuorese_sardinian VARCHAR)
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'contrast arteriogram-leg')) AS t1 JOIN (SELECT admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t2.charttime) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') GROUP BY t2.icd9_code) AS t3 WHERE t3.c1 <= 3)
what are the three most common procedures that followed within 2 months for patients who were given a contrast arteriogram-leg?
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name 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 d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_labitems ( row_id number, itemid number, label 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE 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 cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost 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 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 d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text )
SELECT COUNT(production_code) FROM table_2409041_3 WHERE original_air_date = "November 16, 1990"
How many production codes have an original airdate of November 16, 1990?
CREATE TABLE table_2409041_3 (production_code VARCHAR, original_air_date VARCHAR)
SELECT result FROM table_25505246_7 WHERE opponent = "Andreja Klepač"
What were the results when Hanne Skak Jensen faced Andreja Klepač as opponent?
CREATE TABLE table_25505246_7 (result VARCHAR, opponent VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016 ORDER BY course.department
What are the courses offered this semester ?
CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req 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 program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE 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 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 program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text 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_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 requirement ( requirement_id int, requirement varchar, college varchar )
SELECT MIN(no_in_series) FROM table_2409041_3 WHERE original_air_date = "March 1, 1991"
What series number had an original airdate of March 1, 1991?
CREATE TABLE table_2409041_3 (no_in_series INTEGER, original_air_date VARCHAR)
SELECT opponent FROM table_25505246_7 WHERE against = "Belarus"
Who was Hanne Skak Jensen's opponent when facing Belarus?
CREATE TABLE table_25505246_7 (opponent VARCHAR, against 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 = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
show flights from PITTSBURGH into SAN FRANCISCO
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 flight_leg ( flight_id int, leg_number int, leg_flight 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 date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) 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 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 ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE code_description ( code varchar, description 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 airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE flight ( 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 days ( days_code varchar, day_name varchar ) CREATE TABLE flight_fare ( flight_id int, fare_id int )
SELECT COUNT(production_code) FROM table_2409041_3 WHERE no_in_series = 39
How many production codes were in series 39?
CREATE TABLE table_2409041_3 (production_code VARCHAR, no_in_series VARCHAR)
SELECT round FROM table_25505246_7 WHERE against = "Austria"
What kind of round was played when Hanne Skak Jensen faced Austria?
CREATE TABLE table_25505246_7 (round VARCHAR, against VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "81" AND demographic.days_stay > "29"
how many patients whose age is less than 81 and days of hospital stay is greater than 29?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 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 written_by FROM table_2409041_3 WHERE no_in_season = 23
Who wrote season 23?
CREATE TABLE table_2409041_3 (written_by VARCHAR, no_in_season VARCHAR)
SELECT result FROM table_25505246_7 WHERE against = "Austria"
What were the round results when Hanne Skak Jensen faced Austria?
CREATE TABLE table_25505246_7 (result VARCHAR, against VARCHAR)
SELECT "Record" FROM table_47031 WHERE "High assists" = 'beno udrih (4)' AND "Game" = '26'
What is the record of game 26 with beno udrih (4) as the highest assists?
CREATE TABLE table_47031 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT MIN(production_code) FROM table_2409041_5 WHERE no_in_series = 86
What is the production code for episode number 86 in the series?
CREATE TABLE table_2409041_5 (production_code INTEGER, no_in_series VARCHAR)
SELECT MIN(touchdowns) FROM table_25517718_3 WHERE player = "Boggs"
How many touchdowns does Boggs have?
CREATE TABLE table_25517718_3 (touchdowns INTEGER, player VARCHAR)
SELECT Creation, AVG(Budget_in_Billions) FROM department
I want to see trend of the average of budget in billions by creation
CREATE TABLE head ( head_ID int, name text, born_state text, age real ) CREATE TABLE management ( department_ID int, head_ID int, temporary_acting text ) CREATE TABLE department ( Department_ID int, Name text, Creation text, Ranking int, Budget_in_Billions real, Num_Employees real )
SELECT MAX(production_code) FROM table_2409041_5 WHERE original_air_date = "January 8, 1993"
What is the production code for the episode that originally aired on January 8, 1993?
CREATE TABLE table_2409041_5 (production_code INTEGER, original_air_date VARCHAR)
SELECT starter FROM table_25517718_3 WHERE position = "Right halfback"
Is the right halfback player a starter?
CREATE TABLE table_25517718_3 (starter VARCHAR, position VARCHAR)
SELECT winner FROM table_name_92 WHERE finalist = "lina krasnoroutskaya"
Who was the winner against finalist Lina Krasnoroutskaya?
CREATE TABLE table_name_92 ( winner VARCHAR, finalist VARCHAR )
SELECT written_by FROM table_2409041_5 WHERE original_air_date = "January 15, 1993"
Who wrote the episode that originally aired on January 15, 1993?
CREATE TABLE table_2409041_5 (written_by VARCHAR, original_air_date VARCHAR)
SELECT position FROM table_25517718_3 WHERE player = "Boggs"
What position does Boggs play?
CREATE TABLE table_25517718_3 (position VARCHAR, player VARCHAR)
SELECT "2000" FROM table_48509 WHERE "1996" = 'a' AND "1997" = 'a' AND "2007" = 'a'
What is 2000, when 1996 is 'A', when 1997 is 'A', and when 2007 is 'A'?
CREATE TABLE table_48509 ( "Tournament" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "Career WR" text, "Career Win-Loss" text )
SELECT title FROM table_2409041_5 WHERE no_in_series = 77
What is the name of episode number 77 in the series?
CREATE TABLE table_2409041_5 (title VARCHAR, no_in_series VARCHAR)
SELECT MIN(extra_points) FROM table_25517718_3 WHERE position = "Left halfback"
What is the smallest number of extra points for a left halfback?
CREATE TABLE table_25517718_3 (extra_points INTEGER, position VARCHAR)
SELECT MAX("Total") FROM table_59095 WHERE "To par" = '+3'
What is the maximum total when the To par is +3?
CREATE TABLE table_59095 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text )
SELECT directed_by FROM table_2409041_2 WHERE no_in_series = 17
When 17 is the number in series who is the director?
CREATE TABLE table_2409041_2 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT MIN(extra_points) FROM table_25517718_3
What is the smallest number of extra points?
CREATE TABLE table_25517718_3 (extra_points INTEGER)
SELECT venue FROM table_name_62 WHERE away_team = "geelong"
Where did Geelong play as the away team?
CREATE TABLE table_name_62 ( venue VARCHAR, away_team VARCHAR )
SELECT original_air_date FROM table_2409041_2 WHERE no_in_series = 21
When 21 is the number in series what is the air date?
CREATE TABLE table_2409041_2 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT COUNT(starter) FROM table_25517718_3 WHERE position = "Right tackle"
How many starters are there at right tackle?
CREATE TABLE table_25517718_3 (starter VARCHAR, position VARCHAR)
SELECT "Date" FROM table_34997 WHERE "Visitor" = 'ny islanders'
What date has ny islanders as the visitor?
CREATE TABLE table_34997 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" text, "Record" text )
SELECT written_by FROM table_2409041_2 WHERE production_code = 446004
When 446004 is the production code who are the writers?
CREATE TABLE table_2409041_2 (written_by VARCHAR, production_code VARCHAR)
SELECT COUNT(mls_team) FROM table_25518547_4 WHERE player = "Jamel Wallace"
How many mls teams had player jamel wallace?
CREATE TABLE table_25518547_4 (mls_team VARCHAR, player VARCHAR)
SELECT "Award" FROM table_48512 WHERE "Year" < '2012' AND "Category" = 'revelación pop del año'
Before the year 2012, what award was given to the artist in the category of revelaci n pop del a o?
CREATE TABLE table_48512 ( "Year" real, "Award" text, "Nominated Work" text, "Category" text, "Result" text )
SELECT title FROM table_2409041_9 WHERE written_by = "Gary M. Goodrich"
What was the name of the epiode written by Gary M. Goodrich?
CREATE TABLE table_2409041_9 (title VARCHAR, written_by VARCHAR)
SELECT affiliation FROM table_25518547_4 WHERE player = "Kwaku Nyamekye"
What university is kwaku nyamekye affiliated with?
CREATE TABLE table_25518547_4 (affiliation VARCHAR, player VARCHAR)
SELECT AVG("Attendance") FROM table_53603 WHERE "Date" = 'april 24'
What is the average attendance on april 24?
CREATE TABLE table_53603 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT directed_by FROM table_2409041_9 WHERE no_in_series = 179
Who directed episode number 179 in the series?
CREATE TABLE table_2409041_9 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT affiliation FROM table_25518547_4 WHERE mls_team = "Houston Dynamo"
What university is houston dynamo affiliated with?
CREATE TABLE table_25518547_4 (affiliation VARCHAR, mls_team VARCHAR)
SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id ORDER BY T1.id DESC
What are the ids and names of the architects who built at least 3 bridges , and rank y-axis in desc order.
CREATE TABLE architect ( id text, name text, nationality text, gender text ) CREATE TABLE bridge ( architect_id int, id int, name text, location text, length_meters real, length_feet real ) CREATE TABLE mill ( architect_id int, id int, location text, name text, type text, built_year int, notes text )
SELECT voltage FROM table_24096813_15 WHERE part_number_s_ = "TT80503300"
What's the voltage of the model with part number TT80503300?
CREATE TABLE table_24096813_15 (voltage VARCHAR, part_number_s_ VARCHAR)
SELECT position FROM table_25518547_4 WHERE pick__number = 63
What is the position of pick # 63?
CREATE TABLE table_25518547_4 (position VARCHAR, pick__number VARCHAR)
SELECT d_46_√ FROM table_name_2 WHERE d_43_√ = "r 3"
What is the D 46 with a D 43 with r 3?
CREATE TABLE table_name_2 ( d_46_√ VARCHAR, d_43_√ VARCHAR )
SELECT frequency FROM table_24096813_15 WHERE part_number_s_ = "TT80503300"
What's the frequency of the model with part number TT80503300?
CREATE TABLE table_24096813_15 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT COUNT(player) FROM table_25518547_4 WHERE affiliation = "Indiana University"
How many players are affiliated with indiana university?
CREATE TABLE table_25518547_4 (player VARCHAR, affiliation VARCHAR)
SELECT MAX(loses) FROM table_name_93 WHERE points_against < 956 AND club = "high park demons" AND points < 16
What are the highest losses that have points agaisnt less than 956, high park demons as the club, and points less than 16?
CREATE TABLE table_name_93 ( loses INTEGER, points VARCHAR, points_against VARCHAR, club VARCHAR )
SELECT part_number_s_ FROM table_24096813_15 WHERE tdp = "2.9 (Max.4.1~5.4) W"
What's the part number of the model with TDP of 2.9 (max.4.1~5.4) w?
CREATE TABLE table_24096813_15 (part_number_s_ VARCHAR, tdp VARCHAR)
SELECT MIN(season) FROM table_25538763_1
When was the earliest season of Juncadella's career?
CREATE TABLE table_25538763_1 (season INTEGER)
SELECT COUNT("Rank") FROM table_63443 WHERE "Country" = 'australia'
What rank was the team from Australia?
CREATE TABLE table_63443 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text )
SELECT l1_cache FROM table_24096813_15 WHERE sspec_number = "SL2Z3, SL28Q (myA0)"
What's the l1 cache of the model with sspec number sl2z3, sl28q (mya0)?
CREATE TABLE table_24096813_15 (l1_cache VARCHAR, sspec_number VARCHAR)
SELECT COUNT(poles) FROM table_25538763_1 WHERE season = 2012 AND points = "252"
How many pole data were given on season 2012 with 252 points?
CREATE TABLE table_25538763_1 (poles VARCHAR, season VARCHAR, points VARCHAR)
SELECT SUM("Roll") FROM table_71700 WHERE "Name" = 'morrinsville school'
Name the sum of roll for morrinsville school
CREATE TABLE table_71700 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real )
SELECT COUNT(region_4__australia_) FROM table_240936_2 WHERE region_2__uk_ = "July 9, 2007"
How many region 4 dates are associated with a region 2 date of July 9, 2007?
CREATE TABLE table_240936_2 (region_4__australia_ VARCHAR, region_2__uk_ VARCHAR)
SELECT wins FROM table_25538763_1 WHERE team = "Prema Powerteam" AND points = "240"
How many wins did Prema Powerteam won with 240 points?
CREATE TABLE table_25538763_1 (wins VARCHAR, team VARCHAR, points VARCHAR)
SELECT transaction_type, COUNT(*) FROM Financial_Transactions GROUP BY transaction_type ORDER BY transaction_type
Draw a bar chart of transaction type versus the total number, and rank from low to high by the names.
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) ) CREATE TABLE Accounts ( account_id INTEGER, customer_id INTEGER, account_name VARCHAR(50), other_account_details VARCHAR(255) ) 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 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) )
SELECT region_1__can_ FROM table_240936_2 WHERE region_1__us_ = "January 16, 2007"
What is the region 1 (Canada) date associated with a region 1 (US) date of January 16, 2007?
CREATE TABLE table_240936_2 (region_1__can_ VARCHAR, region_1__us_ VARCHAR)
SELECT MAX(season) FROM table_25539502_1 WHERE podiums = 1
What is the latest season where he had 1 podium?
CREATE TABLE table_25539502_1 (season INTEGER, podiums VARCHAR)
SELECT year, COUNT(*) FROM section GROUP BY semester ORDER BY year DESC
How many courses are provided in each year? Visualize with a group line chart grouping by semester, I want to order X from in desc order.
CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number varchar(7), time_slot_id varchar(4) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15), budget numeric(12,2) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE course ( course_id varchar(8), title varchar(50), dept_name varchar(20), credits numeric(2,0) ) CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) )
SELECT region_4__australia_ FROM table_240936_2 WHERE region_1__us_ = "January 16, 2007"
What is the region 4 (Aus) date associated with a region 1 (US) date of January 16, 2007?
CREATE TABLE table_240936_2 (region_4__australia_ VARCHAR, region_1__us_ VARCHAR)
SELECT position FROM table_25539502_1 WHERE team = "FMS International"
What was his position when the team was FMS International?
CREATE TABLE table_25539502_1 (position VARCHAR, team VARCHAR)
SELECT Role_Code, COUNT(*) FROM Employees GROUP BY Role_Code
Show all role codes and the number of employees in each role by a bar chart.
CREATE TABLE All_Documents ( Document_ID INTEGER, Date_Stored DATETIME, Document_Type_Code CHAR(15), Document_Name CHAR(255), Document_Description CHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Document_Locations ( Document_ID INTEGER, Location_Code CHAR(15), Date_in_Location_From DATETIME, Date_in_Locaton_To DATETIME ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) ) CREATE TABLE Ref_Calendar ( Calendar_Date DATETIME, Day_Number INTEGER ) CREATE TABLE Roles ( Role_Code CHAR(15), Role_Name VARCHAR(255), Role_Description VARCHAR(255) ) CREATE TABLE Employees ( Employee_ID INTEGER, Role_Code CHAR(15), Employee_Name VARCHAR(255), Gender_MFU CHAR(1), Date_of_Birth DATETIME, Other_Details VARCHAR(255) ) CREATE TABLE Documents_to_be_Destroyed ( Document_ID INTEGER, Destruction_Authorised_by_Employee_ID INTEGER, Destroyed_by_Employee_ID INTEGER, Planned_Destruction_Date DATETIME, Actual_Destruction_Date DATETIME, Other_Details VARCHAR(255) ) CREATE TABLE Ref_Locations ( Location_Code CHAR(15), Location_Name VARCHAR(255), Location_Description VARCHAR(255) )
SELECT region_2__uk_ FROM table_240936_2 WHERE region_4__australia_ = "July 31, 2008"
What is the region 2 (UK) date associated with a region 4 (Aus) date of July 31, 2008?
CREATE TABLE table_240936_2 (region_2__uk_ VARCHAR, region_4__australia_ VARCHAR)
SELECT MIN(races) FROM table_25539502_1 WHERE podiums = 11
What is the smallest number of races competed in with 11 podiums?
CREATE TABLE table_25539502_1 (races INTEGER, podiums VARCHAR)
SELECT MIN("Starts") FROM table_25751
How many starts are there?
CREATE TABLE table_25751 ( "Position" real, "Driver" text, "Points" real, "Starts" real, "Wins" real, "Top 5s" real, "Top 10s" real, "Winnings ($)" real )
SELECT region_1__can_ FROM table_240936_2 WHERE region_2__uk_ = "May 18, 2009"
What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?
CREATE TABLE table_240936_2 (region_1__can_ VARCHAR, region_2__uk_ VARCHAR)
SELECT points FROM table_25561038_1 WHERE position = "1st"
List the total points for the 1st place team.
CREATE TABLE table_25561038_1 (points VARCHAR, position VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "1 int mam-cor art bypass"
give me the number of patients who had single internal mammary-coronary artery bypass.
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT directed_by FROM table_2409041_6 WHERE original_air_date = "September 24, 1993"
Who was the director for the episode airing on September 24, 1993?
CREATE TABLE table_2409041_6 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT season FROM table_25561038_1 WHERE position = "1st"
List the year in which the driver was in 1st place.
CREATE TABLE table_25561038_1 (season VARCHAR, position VARCHAR)
SELECT "Gross Capacity" FROM table_53324 WHERE "Commercial Operation" = 'august 28, 1987'
What is the gross capacity of the unit that started commercial operation on August 28, 1987?
CREATE TABLE table_53324 ( "Unit" text, "Reactor Type" text, "Net Capacity" text, "Gross Capacity" text, "Construction Start" text, "Grid Connection" text, "Commercial Operation" text, "Status" text )
SELECT COUNT(no_in_series) FROM table_2409041_6 WHERE no_in_season = 18
In which series was season 18?
CREATE TABLE table_2409041_6 (no_in_series VARCHAR, no_in_season VARCHAR)
SELECT COUNT(races) FROM table_25561038_1 WHERE points = "15"
How many series awarded 15 points?
CREATE TABLE table_25561038_1 (races VARCHAR, points VARCHAR)
SELECT "Type" FROM table_72485 WHERE "Transfer fee" = '€20M'
What is the type of the player whose transfer fee was 20m?
CREATE TABLE table_72485 ( "N" real, "P" text, "Name" text, "EU" text, "Country" text, "Age" real, "Type" text, "Moving from" text, "Transfer window" text, "Ends" text, "Transfer fee" text, "Source" text )
SELECT title FROM table_2409041_6 WHERE no_in_season = 2
What is the title of season 2?
CREATE TABLE table_2409041_6 (title VARCHAR, no_in_season VARCHAR)
SELECT MAX(f_laps) FROM table_25561038_1
List the highest number of laps.
CREATE TABLE table_25561038_1 (f_laps INTEGER)
SELECT yards FROM table_11157122_5 WHERE attempts = 87
How many yards did the player with 87 attempts rush?
CREATE TABLE table_11157122_5 ( yards VARCHAR, attempts VARCHAR )
SELECT brand_name FROM table_24099628_1 WHERE model__list_ = "E4xxx"
What is the brand name associated with a model name e4xxx?
CREATE TABLE table_24099628_1 (brand_name VARCHAR, model__list_ VARCHAR)
SELECT team FROM table_25561038_1 WHERE points = "12"
List the team with 12 points.
CREATE TABLE table_25561038_1 (team VARCHAR, points VARCHAR)
SELECT "Score" FROM table_75986 WHERE "Year" < '1994' AND "Partner" = 'elizabeth sayers smylie'
Which Score has smaller than 1994, and a Partner of elizabeth sayers smylie?
CREATE TABLE table_75986 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text )
SELECT brand_name FROM table_24099628_1 WHERE model__list_ = "4x0"
What is the brand name associated with the model 4x0?
CREATE TABLE table_24099628_1 (brand_name VARCHAR, model__list_ VARCHAR)