answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT name FROM table_name_86 WHERE goals < 7 AND rank < 7 AND appearances > 8
Who had less than 7 goals, was ranked under 7, and had more than 8 appearances?
CREATE TABLE table_name_86 ( name VARCHAR, appearances VARCHAR, goals VARCHAR, rank VARCHAR )
SELECT original_air_date FROM table_23399481_2 WHERE directed_by = "David Paymer"
What is the original air date of the episode that was directed by David Paymer?
CREATE TABLE table_23399481_2 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT COUNT(team_captain) FROM table_23214833_1 WHERE club = "Sliven 2000"
How many different team captains does the club Sliven 2000 have?
CREATE TABLE table_23214833_1 (team_captain VARCHAR, club 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 (((flight.departure_time <= 1200 AND flight.departure_time >= 1800) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ORLANDO' AND fligh...
okay what flights are there US from ORLANDO to CLEVELAND leaving in the afternoon
CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE days ( days_code varchar, day_name varchar ) ...
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.14"
If the amount of U.S. viewers is 2.14 million, who was the episode directed by?
CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT team_captain FROM table_23214833_1 WHERE stadium = "Gradski Stadion"
Who's the captain of the team whose stadium is Gradski Stadion?
CREATE TABLE table_23214833_1 (team_captain VARCHAR, stadium VARCHAR)
SELECT COUNT(*) FROM campuses WHERE county = "Los Angeles"
How many campuses are there in Los Angeles county?
CREATE TABLE campuses ( county VARCHAR )
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.05"
If the amount of U.S. viewers is 2.05 milliom, who was the episode directed by?
CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT stadium FROM table_23214833_1 WHERE capacity = 13800
What stadium has capacity for 13800?
CREATE TABLE table_23214833_1 (stadium VARCHAR, capacity VARCHAR)
SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor
Visualize a scatter chart on how many students does each advisor have?
CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Voting_record ( StuID INTEGER, Registration_Date VARCHAR(12), Election_Cycle VARCHAR(12), Presiden...
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.22"
What is the director name is the U.S. viewers is 2.22 million?
CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT capacity FROM table_23214833_1 WHERE team_captain = "Vasil Vasilev"
How many people can attend games in the stadium of the team whose captain is Vasil Vasilev?
CREATE TABLE table_23214833_1 (capacity VARCHAR, team_captain VARCHAR)
SELECT DISTINCT instructor.name 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 INNER JOIN offering_instructor ON offering_instr...
Which teachers will be teaching Other next Winter ?
CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, ...
SELECT viewers__millions_ FROM table_23397386_2 WHERE rating / SHARE(18 AS –49) = 2.6 / 7
How many million viewers watched the episode that had a 2.6/7 rating/share (18-49)
CREATE TABLE table_23397386_2 (viewers__millions_ VARCHAR, rating VARCHAR)
SELECT season FROM table_23224961_2 WHERE mittelfranken_süd = "ASV Nürnberg-Süd"
When asv nürnberg-süd is the mittelfranken süd what is the season?
CREATE TABLE table_23224961_2 (season VARCHAR, mittelfranken_süd VARCHAR)
SELECT MAX("No. in season") FROM table_2858 WHERE "Production code" = '3ABC12'
Name the most number in season for production code 3abc12
CREATE TABLE table_2858 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text )
SELECT viewers__millions_ FROM table_23397386_2 WHERE airdate = "March 28, 2010"
How many million viewers watched the episode that aired on March 28, 2010?
CREATE TABLE table_23397386_2 (viewers__millions_ VARCHAR, airdate VARCHAR)
SELECT season FROM table_23224961_2 WHERE oberfranken_west = "SV Neuses"
When sv neuses is the oberfranken west what is the season?
CREATE TABLE table_23224961_2 (season VARCHAR, oberfranken_west VARCHAR)
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age B...
what is the five most commonly ordered procedure in patients aged 30s until 2102?
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 ...
SELECT COUNT(rank__timeslot_) FROM table_23397386_2 WHERE airdate = "May 2, 2010"
How many rankings (timeslot) were there for the episode that aired on May 2, 2010?
CREATE TABLE table_23397386_2 (rank__timeslot_ VARCHAR, airdate VARCHAR)
SELECT COUNT(unterfranken_west) FROM table_23224961_2 WHERE oberfranken_ost = "Wacker Marktredwitz"
When wacker marktredwitz is the oberfranken ost how many unterfranken wests are there?
CREATE TABLE table_23224961_2 (unterfranken_west VARCHAR, oberfranken_ost VARCHAR)
SELECT a.Id AS "post_link", q.Title, a.Score FROM Posts AS a JOIN Posts AS q ON a.ParentId = q.Id WHERE a.OwnerUserId = '##id?210401##' AND a.PostTypeId = 2 ORDER BY a.Id
Scores of answers by a specific user.
CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDispl...
SELECT series__number FROM table_23399481_3 WHERE us_viewers__in_millions_ = "1.42"
What episode had 1.42 million viewers?
CREATE TABLE table_23399481_3 (series__number VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT mittelfranken_süd FROM table_23224961_2 WHERE unterfranken_west = "Alemannia Haibach" AND mittelfranken_nord = "ATSV Erlangen"
When atsv erlangen is the mittelfranken nord and alemannia haibach is the unterfranken west what is the mittelfranken süd?
CREATE TABLE table_23224961_2 (mittelfranken_süd VARCHAR, unterfranken_west VARCHAR, mittelfranken_nord VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "ROMANIAN EAST. ORTH"
count the number of patients whose religion is romanian east. orth.
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 ( ...
SELECT original_air_date FROM table_23399481_3 WHERE season__number = 4
What is the original air date for episode 4?
CREATE TABLE table_23399481_3 (original_air_date VARCHAR, season__number VARCHAR)
SELECT high_rebounds FROM table_23248940_8 WHERE team = "Orlando"
Who tied for the highest rebounds during the game against Orlando?
CREATE TABLE table_23248940_8 (high_rebounds VARCHAR, team VARCHAR)
SELECT DISTINCT name, number FROM course WHERE credits = 18 AND department = 'EECS'
Are there any courses worth 18 credits ?
CREATE TABLE gsi ( course_offering_id int, student_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, ...
SELECT team FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick"
Which team uses lola t92/00/ buick for their chassis/engine?
CREATE TABLE table_23391714_1 (team VARCHAR, chassis_engine VARCHAR)
SELECT high_points FROM table_23248940_6 WHERE game = 14
Who are all high points in game 14?
CREATE TABLE table_23248940_6 (high_points VARCHAR, game VARCHAR)
SELECT "Constellation" FROM table_53389 WHERE "Right ascension ( J2000 )" = '10h18m58.4s'
what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s?
CREATE TABLE table_53389 ( "NGC number" real, "Object type" text, "Constellation" text, "Right ascension ( J2000 )" text, "Declination ( J2000 )" text )
SELECT MAX(points) FROM table_23391714_1 WHERE pos = 18
When the pos equals 18 what is the max amount of points?
CREATE TABLE table_23391714_1 (points INTEGER, pos VARCHAR)
SELECT location_attendance FROM table_23248940_6 WHERE date = "November 18"
What is every value for location attendance on date of November 18?
CREATE TABLE table_23248940_6 (location_attendance VARCHAR, date VARCHAR)
SELECT "Trainer" FROM table_68150 WHERE "Odds" = '6/1'
Who has 6/1 odds?
CREATE TABLE table_68150 ( "Race" text, "Dist (f)" real, "Course" text, "Class" text, "Prize (\u00a3K)" real, "Odds" text, "Runners" real, "Placing" real, "Margin" real, "Time" text, "Jockey" text, "Trainer" text )
SELECT COUNT(no) FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick"
How many drivers used lola t92/00/ buick for their chassis/engine?
CREATE TABLE table_23391714_1 (no VARCHAR, chassis_engine VARCHAR)
SELECT score FROM table_23248940_6 WHERE date = "November 10"
What is every score when date is November 10?
CREATE TABLE table_23248940_6 (score VARCHAR, date VARCHAR)
SELECT "iso/iec standard" FROM table_204_200 ORDER BY "status" DESC LIMIT 1
what was the last standard published ?
CREATE TABLE table_204_200 ( id number, "iso/iec standard" text, "title" text, "status" text, "description" text, "wg" number )
SELECT MIN(no_in_series) FROM table_23403578_3 WHERE written_by = "Bernie Ancheta" AND no_in_season = 5
What's the series number of the episode with a season number 5, written by Bernie Ancheta?
CREATE TABLE table_23403578_3 (no_in_series INTEGER, written_by VARCHAR, no_in_season VARCHAR)
SELECT record FROM table_23248940_6 WHERE game = 11
What is every record for game 11?
CREATE TABLE table_23248940_6 (record VARCHAR, game VARCHAR)
SELECT COUNT("event") FROM table_204_53 WHERE "date" = 2010
how many events did grigorian attend in 2010 ?
CREATE TABLE table_204_53 ( id number, "date" text, "result" text, "opponent" text, "event" text, "location" text, "method" text, "round" number, "time" text )
SELECT original_air_date FROM table_23403578_3 WHERE prod_code = "213"
When did the episode with production code 213 air for the first time?
CREATE TABLE table_23403578_3 (original_air_date VARCHAR, prod_code VARCHAR)
SELECT COUNT(location_attendance) FROM table_23248967_5 WHERE game = 3
How many locations was game 3 played at?
CREATE TABLE table_23248967_5 (location_attendance VARCHAR, game VARCHAR)
SELECT qual FROM table_name_44 WHERE rank = "18" AND year = "1964"
What is the qual for rank 18 in 1964?
CREATE TABLE table_name_44 ( qual VARCHAR, rank VARCHAR, year VARCHAR )
SELECT directed_by FROM table_23403578_3 WHERE prod_code = "208"
Who directed the episode with production code 208?
CREATE TABLE table_23403578_3 (directed_by VARCHAR, prod_code VARCHAR)
SELECT score FROM table_23248967_5 WHERE team = "New Orleans"
What was the score against New Orleans?
CREATE TABLE table_23248967_5 (score VARCHAR, team VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.dob_year < "2197"
how many patients whose ethnicity is hispanic/latino - puerto rican and year of birth is less than 2197?
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT COUNT(24 AS _mountains) FROM table_23406517_2 WHERE bearing___degrees = "67.6 - 82.5 82.6 - 97.5 97.6 - 112.5"
How many values for 24 mountains when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5?
CREATE TABLE table_23406517_2 (bearing___degrees VARCHAR)
SELECT COUNT(location_attendance) FROM table_23248967_9 WHERE date = "March 6"
How many game locations occurred on March 6?
CREATE TABLE table_23248967_9 (location_attendance VARCHAR, date VARCHAR)
SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'external pacemaker' AND STRFTIME('%y', treat...
what are the four most commonly ordered microbiology tests for patients who had received external pacemaker before within the same month since 2105?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime t...
SELECT trigram FROM table_23406517_2 WHERE direction = "Northwest"
What is every trigram when direction is Northwest?
CREATE TABLE table_23406517_2 (trigram VARCHAR, direction VARCHAR)
SELECT surface FROM table_23258574_2 WHERE championship = "Wimbledon" AND year = 1974
What was the surface during wimbledon in 1974?
CREATE TABLE table_23258574_2 (surface VARCHAR, championship VARCHAR, year VARCHAR)
SELECT "Party" FROM table_62133 WHERE "Incumbent" = 'virginia foxx'
What is the party affiliation of Virginia Foxx?
CREATE TABLE table_62133 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text )
SELECT 24 AS _mountains FROM table_23406517_2 WHERE direction = "Northeast"
What are all values for 24 mountains when direction is Northeast?
CREATE TABLE table_23406517_2 (direction VARCHAR)
SELECT overall FROM table_23265433_2 WHERE offensive = "Mark Steenhuis"
Name the overall for mark steenhuis
CREATE TABLE table_23265433_2 (overall VARCHAR, offensive VARCHAR)
SELECT "Frequency" FROM table_51963 WHERE "Destination" = 'dibrugarh' AND "Train Name" = 'chennai egmore dibrugarh express'
What is the frequency of the Chennai Egmore Dibrugarh Express to Dibrugarh?
CREATE TABLE table_51963 ( "Train No." text, "Train Name" text, "Origin" text, "Destination" text, "Frequency" text )
SELECT total_career_titles FROM table_23408094_14 WHERE player = "Roy Emerson"
How many career titles does roy emerson have?
CREATE TABLE table_23408094_14 (total_career_titles VARCHAR, player VARCHAR)
SELECT COUNT(offensive) FROM table_23265433_2 WHERE overall = "Colin Doyle"
Name the total number of offensive for colin doyle
CREATE TABLE table_23265433_2 (offensive VARCHAR, overall VARCHAR)
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-21071')) AND lab.labname = 'mch' AND DATETIME(lab.labresulttime, 'start of mont...
when was patient 030-21071's first maximum mch a month before?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid num...
SELECT COUNT(total_career_titles) FROM table_23408094_14 WHERE span_of_years_led = 5
What were the total career titles of the player who led for 5 years?
CREATE TABLE table_23408094_14 (total_career_titles VARCHAR, span_of_years_led VARCHAR)
SELECT week FROM table_23265433_2 WHERE transition = "Steve Toll"
Name the week for steve toll
CREATE TABLE table_23265433_2 (week VARCHAR, transition VARCHAR)
SELECT date_successor_seated FROM table_224837_4 WHERE reason_for_change = "Contested election; served until February 14, 1794"
Name the date successor seated for contested election; served until february 14, 1794
CREATE TABLE table_224837_4 ( date_successor_seated VARCHAR, reason_for_change VARCHAR )
SELECT MIN(span_of_years_led) FROM table_23408094_14 WHERE tournament_at_which_lead_began = "Australian Championships"
Of the players whose lead began at the australian championships, what was the shortest span of years led?
CREATE TABLE table_23408094_14 (span_of_years_led INTEGER, tournament_at_which_lead_began VARCHAR)
SELECT rookie FROM table_23265433_2 WHERE offensive = "Ryan Powell"
Name the rookie for ryan powell
CREATE TABLE table_23265433_2 (rookie VARCHAR, offensive VARCHAR)
SELECT "Team" FROM table_73518 WHERE "Date" = 'January 4'
Name the team for january 4
CREATE TABLE table_73518 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "William Renshaw" AND titles_won_at_point_of_lead = 7
At which tournament did william renshaw begin his lead when he had won 7 titles?
CREATE TABLE table_23408094_14 (tournament_at_which_lead_began VARCHAR, player VARCHAR, titles_won_at_point_of_lead VARCHAR)
SELECT defensive FROM table_23265433_2 WHERE week = 9
Name the defensive for week 9
CREATE TABLE table_23265433_2 (defensive VARCHAR, week VARCHAR)
SELECT h FROM table WHERE c__max_ = 99
Name the h when c max is 99
CREATE TABLE table ( h VARCHAR, c__max_ VARCHAR )
SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "Pete Sampras"
At what tournament did pete sampras begin his lead?
CREATE TABLE table_23408094_14 (tournament_at_which_lead_began VARCHAR, player VARCHAR)
SELECT high_rebounds FROM table_23274514_5 WHERE record = "10-19"
Name the high rebounds for record 10-19
CREATE TABLE table_23274514_5 (high_rebounds VARCHAR, record VARCHAR)
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) DESC
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the amount of hire_date bin hire_date by time, and display by the y axis in descending.
CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,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 T...
SELECT directed_by FROM table_2342078_2 WHERE written_by = "Sherwood Schwartz"
Who are all directors when Sherwood Schwartz is the writer?
CREATE TABLE table_2342078_2 (directed_by VARCHAR, written_by VARCHAR)
SELECT high_points FROM table_23274514_5 WHERE score = "L 109–112 (OT)"
Name the high points for l 109–112 (ot)
CREATE TABLE table_23274514_5 (high_points VARCHAR, score VARCHAR)
SELECT "Guest" FROM table_28000 WHERE "Original airdate" = 'December 07'
Who were the guests for the episode with an original airdate of december 07?
CREATE TABLE table_28000 ( "Episode #" real, "The W\u00f8rd" text, "Guest" text, "Introductory phrase" text, "Original airdate" text, "Production code" real )
SELECT MAX(episode__number) FROM table_2342078_2 WHERE written_by = "Paul West"
What is the highest episode# with the writer Paul West?
CREATE TABLE table_2342078_2 (episode__number INTEGER, written_by VARCHAR)
SELECT high_assists FROM table_23281862_5 WHERE record = "4-3"
Name the high assists for 4-3
CREATE TABLE table_23281862_5 (high_assists VARCHAR, record VARCHAR)
SELECT position FROM table_name_51 WHERE pick > 315 AND round = 30
What is position of the player with a pick number greater than 315 and a round of 30?
CREATE TABLE table_name_51 ( position VARCHAR, pick VARCHAR, round VARCHAR )
SELECT production_code__order_they_were_made___number FROM table_2342078_2 WHERE episode__number = 13
What is every production code for episode # 13?
CREATE TABLE table_2342078_2 (production_code__order_they_were_made___number VARCHAR, episode__number VARCHAR)
SELECT location_attendance FROM table_23281862_5 WHERE team = "Memphis"
Name the location attendance for memphis
CREATE TABLE table_23281862_5 (location_attendance VARCHAR, team VARCHAR)
SELECT player FROM table_name_6 WHERE college = "iowa state"
What Player is from Iowa State?
CREATE TABLE table_name_6 ( player VARCHAR, college VARCHAR )
SELECT MAX(episode__number) FROM table_2342078_4 WHERE written_by = "Harry Winkler"
What is the highest episode number written by Harry Winkler?
CREATE TABLE table_2342078_4 (episode__number INTEGER, written_by VARCHAR)
SELECT COUNT(score) FROM table_23281862_5 WHERE team = "Sacramento"
Name the number of score for sacramento
CREATE TABLE table_23281862_5 (score VARCHAR, team VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program, program_course, semester WHERE course.course_id = course_offering.course_id AND program_course.category LIKE '%MDE%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_i...
Can you name for me the classes that can be taken as MDE next semester ?
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 gsi ( course_offering_id int, student_id int ) CREATE TABLE program ( program_id int, name v...
SELECT directed_by FROM table_2342078_4 WHERE written_by = "Brad Radnitz"
List all directors when Brad Radnitz was the writer?
CREATE TABLE table_2342078_4 (directed_by VARCHAR, written_by VARCHAR)
SELECT high_points FROM table_23284271_10 WHERE record = "53-27"
Who has the high points when 53-27 is the record?
CREATE TABLE table_23284271_10 (high_points VARCHAR, record VARCHAR)
SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTO...
which airlines fly from BOSTON to WASHINGTON but stopover in some other city
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_fli...
SELECT original_airdate FROM table_2342078_6 WHERE written_by = "Howard Ostroff"
Name the airdate for the episode written by howard ostroff
CREATE TABLE table_2342078_6 (original_airdate VARCHAR, written_by VARCHAR)
SELECT team FROM table_23284271_10 WHERE high_rebounds = "Dirk Nowitski (13)"
Which team has dirk nowitski (13) as high rebounds?
CREATE TABLE table_23284271_10 (team VARCHAR, high_rebounds VARCHAR)
SELECT "Model number" FROM table_7139 WHERE "Order part number" = 'tmdml44bkx5ld'
Which model number has an order part number of TMDML44BKX5LD?
CREATE TABLE table_7139 ( "Model number" text, "Frequency" text, "L2 cache" text, "Multi 1" text, "Voltage" real, "Socket" text, "Release date" text, "Order part number" text )
SELECT COUNT(production_code__number) FROM table_2342078_6 WHERE episode__number = 109
Name the production code # for episode 109
CREATE TABLE table_2342078_6 (production_code__number VARCHAR, episode__number VARCHAR)
SELECT score FROM table_23284271_10 WHERE game = 78
What is the score for game 78?
CREATE TABLE table_23284271_10 (score VARCHAR, game VARCHAR)
SELECT medal FROM table_name_43 WHERE name = "félix sánchez" AND games = "2012 london"
Which Medal had a Name of f lix s nchez, and a Games of 2012 london?
CREATE TABLE table_name_43 ( medal VARCHAR, name VARCHAR, games VARCHAR )
SELECT directed_by FROM table_2342078_6 WHERE written_by = "George Tibbles"
Name who drected the episode written by george tibbles
CREATE TABLE table_2342078_6 (directed_by VARCHAR, written_by VARCHAR)
SELECT high_assists FROM table_23284271_10 WHERE record = "50-26"
Who has the high assists when 50-26 is the record?
CREATE TABLE table_23284271_10 (high_assists VARCHAR, record VARCHAR)
SELECT "Date" FROM table_65434 WHERE "Result" = '3-1' AND "Location" = 'hague'
What date was the result 3-1 in Hague?
CREATE TABLE table_65434 ( "Date" text, "Location" text, "Lineup" text, "Assist/pass" text, "Score" text, "Result" text, "Competition" text )
SELECT title FROM table_2342078_5 WHERE written_by = "Harry Winkler"
What's the title of the episode written by Harry Winkler?
CREATE TABLE table_2342078_5 (title VARCHAR, written_by VARCHAR)
SELECT high_points FROM table_23284271_10 WHERE record = "50-26"
Who has high points when 50-26 is the record?
CREATE TABLE table_23284271_10 (high_points VARCHAR, record VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "27" AND lab.label = "Creatine Kinase (CK)"
what number of patients under the age of 27 underwent the lab test for creatine kinase (ck)?
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT act FROM table_23429629_4 WHERE place_came = "1st Place (Won the Series)"
During the 1st Place (Won the Series), who was the act?
CREATE TABLE table_23429629_4 (act VARCHAR, place_came VARCHAR)
SELECT date FROM table_23284271_10 WHERE team = "@ LA Clippers"
Which date is the team @ la clippers?
CREATE TABLE table_23284271_10 (date VARCHAR, team VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "SNF" AND diagnoses.long_title = "Schizoaffective disorder, unspecified"
how many patients whose discharge location is snf and diagnoses long title is schizoaffective disorder, unspecified?
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, ...