answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT t1.drugname FROM (SELECT medication.drugname, COUNT(medication.drugstarttime) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-1581')) AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-57 month') GROUP BY medication.drugname) AS t1 WHERE t1.c1 >= 2
what is the name of drug patient 015-1581 has been prescribed two or more times until 57 months ago?
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time )
SELECT position FROM table_24565004_14 WHERE name = "Thierry Morin"
What positions correspond to the name Thierry Morin?
CREATE TABLE table_24565004_14 (position VARCHAR, name VARCHAR)
SELECT COUNT(hand_number) FROM table_26853172_1 WHERE player_1 = "South" AND prevailing_wind = "East"
What is the hand number of the hand where player 1 is south and the east wind is prevailing?
CREATE TABLE table_26853172_1 (hand_number VARCHAR, player_1 VARCHAR, prevailing_wind VARCHAR)
SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType ORDER BY AllergyType
How many students are affected by each allergy type Visualize by bar chart, order by the X-axis in ascending.
CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) )
SELECT period FROM table_24565004_11 WHERE appearances¹ = 219
What time period had appearances of 219?
CREATE TABLE table_24565004_11 (period VARCHAR, appearances¹ VARCHAR)
SELECT player_1 FROM table_26853172_1 WHERE player_3 = "South" AND prevailing_wind = "South"
What is player 1 when player 3 is South and the prevailing wind is South?
CREATE TABLE table_26853172_1 (player_1 VARCHAR, player_3 VARCHAR, prevailing_wind VARCHAR)
SELECT seasons_and_winners FROM table_16884579_1 WHERE premiere = "28 January 2007"
Name the seasons and winners that airs 28 january 2007
CREATE TABLE table_16884579_1 ( seasons_and_winners VARCHAR, premiere VARCHAR )
SELECT COUNT(period) FROM table_24565004_11 WHERE goals¹ = 15
How many periods had 15 goals?
CREATE TABLE table_24565004_11 (period VARCHAR, goals¹ VARCHAR)
SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.54"
Who directed the episode that had 0.54 million U.S. viewers?
CREATE TABLE table_26914076_4 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "GANGRENE" AND demographic.days_stay = "27"
what is minimum age of patients whose primary disease is gangrene and days of hospital stay is 27?
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 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 )
SELECT MIN(appearances¹) FROM table_24565004_22 WHERE name = "Pierre Vermeulen"
at least how many times was Pierre Vermeulen at a game?
CREATE TABLE table_24565004_22 (appearances¹ INTEGER, name VARCHAR)
SELECT teleplay_by FROM table_26914076_4 WHERE directed_by = "Tim Robbins"
Who wrote the teleplay for the episode directed by Tim Robbins?
CREATE TABLE table_26914076_4 (teleplay_by VARCHAR, directed_by VARCHAR)
SELECT score FROM table_name_35 WHERE points > 46 AND game < 35 AND december = 21
Which Score has Points larger than 46, and a Game smaller than 35, and a December of 21?
CREATE TABLE table_name_35 ( score VARCHAR, december VARCHAR, points VARCHAR, game VARCHAR )
SELECT nationality² FROM table_24565004_22 WHERE name = "Richard Vanquelef"
What country is Richard Vanquelef from?
CREATE TABLE table_24565004_22 (nationality² VARCHAR, name VARCHAR)
SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.57"
Who directed the episode that had 0.57 million U.S. viewers?
CREATE TABLE table_26914076_4 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12274) AND prescriptions.drug = 'phenylephrine hcl' AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-01' ORDER BY prescriptions.startdate LIMIT 1
what is the dose of phenylephrine hcl, that patient 12274 was first prescribed in 01/2105?
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE 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 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 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 outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod 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 d_icd_diagnoses ( 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) 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 )
SELECT nationality² FROM table_24565004_22 WHERE name = "Pierre Vermeulen"
What country is Pierre Vermeulen from?
CREATE TABLE table_24565004_22 (nationality² VARCHAR, name VARCHAR)
SELECT MAX(_number) FROM table_26914076_4 WHERE us_viewers__millions_ = "0.49"
What number episode in the season was watched by 0.49 million U.S. viewers?
CREATE TABLE table_26914076_4 (_number INTEGER, us_viewers__millions_ VARCHAR)
SELECT "run 2" FROM table_203_358 WHERE "athlete" = 'jan urfer'
how long did it take for jan urfer to complete run 2 ?
CREATE TABLE table_203_358 ( id number, "pos." number, "athlete" text, "run 1" number, "run 2" number, "total" text )
SELECT COUNT(appearances¹) FROM table_24565004_20 WHERE nationality² = "Yugoslavia"
Name the number of appearances for yugoslavia
CREATE TABLE table_24565004_20 (appearances¹ VARCHAR, nationality² VARCHAR)
SELECT COUNT(round) FROM table_26920192_5 WHERE series = "Italian" AND circuit = "Valencia"
How many times is the series italian and the circuit is valencia?
CREATE TABLE table_26920192_5 (round VARCHAR, series VARCHAR, circuit VARCHAR)
SELECT AVG("Game") FROM table_39366 WHERE "Opponent" = 'phoenix coyotes' AND "December" < '9'
Which game has an opponent of Phoenix Coyotes and was before Dec 9?
CREATE TABLE table_39366 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text )
SELECT nationality² FROM table_24565004_20 WHERE position = "Defender" AND appearances¹ = 201
Name the nationality for defender 201
CREATE TABLE table_24565004_20 (nationality² VARCHAR, position VARCHAR, appearances¹ VARCHAR)
SELECT fastest_lap FROM table_26920192_5 WHERE circuit = "Magione"
Who had the fastest lap for the circuit magione?
CREATE TABLE table_26920192_5 (fastest_lap VARCHAR, circuit VARCHAR)
SELECT date FROM table_13079788_3 WHERE gt3_winner = "Oliver Bryant Matt Harris"
what are all the date for gt3 winner oliver bryant matt harris
CREATE TABLE table_13079788_3 ( date VARCHAR, gt3_winner VARCHAR )
SELECT goals¹ FROM table_24565004_20 WHERE name = "Daniel Sanchez"
Name the goals for daniel sanchez
CREATE TABLE table_24565004_20 (goals¹ VARCHAR, name VARCHAR)
SELECT fastest_lap FROM table_26920192_5 WHERE winning_driver = "Giorgio Sanna"
Who had the fastest lap when the winning driver is giorgio sanna?
CREATE TABLE table_26920192_5 (fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT Time, meter_100 FROM swimmer ORDER BY Time DESC
Visualize a bar chart about the distribution of Time and meter_100 , could you display in descending by the x-axis?
CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text ) CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int )
SELECT MIN(goals¹) FROM table_24565004_20 WHERE nationality² = "Algeria"
Name the most goals for algeria
CREATE TABLE table_24565004_20 (goals¹ INTEGER, nationality² VARCHAR)
SELECT fastest_lap FROM table_26920192_5 WHERE winning_driver = "Kristian Ghedina"
Who had the fastest lap when the winning driver was kristian ghedina?
CREATE TABLE table_26920192_5 (fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT original_nfl_team FROM table_name_31 WHERE pos = "cb"
What is the Original NFL team of the CB Player?
CREATE TABLE table_name_31 ( original_nfl_team VARCHAR, pos VARCHAR )
SELECT MIN(goals¹) FROM table_24565004_21
What was the lowest score.
CREATE TABLE table_24565004_21 (goals¹ INTEGER)
SELECT title FROM table_26961951_6 WHERE directed_by = "Romeo Tirone"
What is the title of the episode directed by Romeo Tirone?
CREATE TABLE table_26961951_6 (title VARCHAR, directed_by VARCHAR)
SELECT "2007" FROM table_68651 WHERE "2011" = '2r' AND "2008" = '2r'
What is the 2007 value with 2r in 2011 and 2r in 2008?
CREATE TABLE table_68651 ( "Tournament" text, "2003" text, "2007" text, "2008" text, "2009" text, "2011" text )
SELECT MIN(appearances¹) FROM table_24565004_21 WHERE name = "Sammy Traoré"
List the minimum impressions for sammy traoré
CREATE TABLE table_24565004_21 (appearances¹ INTEGER, name VARCHAR)
SELECT original_air_date FROM table_26961951_6 WHERE written_by = "Abe Sylvia"
When did the episode written by Abe Sylvia originally air?
CREATE TABLE table_26961951_6 (original_air_date VARCHAR, written_by VARCHAR)
SELECT COUNT("event") FROM table_204_53 WHERE "location" = 'netherlands'
how many matches were held in the netherlands ?
CREATE TABLE table_204_53 ( id number, "date" text, "result" text, "opponent" text, "event" text, "location" text, "method" text, "round" number, "time" text )
SELECT period FROM table_24565004_21 WHERE name = "Nabatingue Toko"
During what years did nabatingue toko play.
CREATE TABLE table_24565004_21 (period VARCHAR, name VARCHAR)
SELECT MAX(no_in_series) FROM table_26961951_6 WHERE us_viewers__million_ = "0.56"
Which episode number had a viewership of 0.56 million?
CREATE TABLE table_26961951_6 (no_in_series INTEGER, us_viewers__million_ VARCHAR)
SELECT "city" FROM table_203_860 WHERE "rank" = (SELECT "rank" FROM table_203_860 WHERE "city" = 'delhi') - 1
who is ranked before delhi ?
CREATE TABLE table_203_860 ( id number, "rank" number, "city" text, "population (2011)" number, "population (2001)" number, "state/territory" text )
SELECT COUNT(goals¹) FROM table_24565004_17 WHERE name = "Mauricio Pochettino"
Name the number of goals for mauricio pochettino
CREATE TABLE table_24565004_17 (goals¹ VARCHAR, name VARCHAR)
SELECT written_by FROM table_26961951_6 WHERE directed_by = "Jesse Peretz"
Who was the writer in the episode directed by Jesse Peretz?
CREATE TABLE table_26961951_6 (written_by VARCHAR, directed_by VARCHAR)
SELECT percent_of_mass FROM table_name_58 WHERE molecules = "1.74e14*"
what is the perfect of mass when the molecules is 1.74e14*?
CREATE TABLE table_name_58 ( percent_of_mass VARCHAR, molecules VARCHAR )
SELECT period FROM table_24565004_17 WHERE name = "Michel Prost"
Name the period for michel prost
CREATE TABLE table_24565004_17 (period VARCHAR, name VARCHAR)
SELECT result FROM table_26977890_1 WHERE combatants_b = "Royal Navy"
With the Royal Navy as Combatants B, what was the result?
CREATE TABLE table_26977890_1 (result VARCHAR, combatants_b VARCHAR)
SELECT tournament FROM table_name_49 WHERE winning_score = –6(73 - 68 - 72 - 69 = 282)
What Tournament had a Winning score of 6 (73-68-72-69=282)?
CREATE TABLE table_name_49 ( tournament VARCHAR, winning_score VARCHAR )
SELECT goals¹ FROM table_24565004_17 WHERE name = "Mauricio Pochettino"
Name the goals for mauricio pochettino
CREATE TABLE table_24565004_17 (goals¹ VARCHAR, name VARCHAR)
SELECT conflict FROM table_26977890_1 WHERE combatants_b = "Italian Navy"
In what conflicts was the Italian Navy Combatants B?
CREATE TABLE table_26977890_1 (conflict VARCHAR, combatants_b VARCHAR)
SELECT AVG(lost) FROM table_name_93 WHERE against < 25 AND played < 1
What is the Lost with Against smaller than 25, and Played smaller than 1?
CREATE TABLE table_name_93 ( lost INTEGER, against VARCHAR, played VARCHAR )
SELECT period FROM table_24565004_2 WHERE appearances¹ = 380
Name the period for appearances being 380
CREATE TABLE table_24565004_2 (period VARCHAR, appearances¹ VARCHAR)
SELECT COUNT(result) FROM table_26977890_1 WHERE battles = "Battle of the Yellow Sea"
How many battles resulted in Battle of the Yellow Sea?
CREATE TABLE table_26977890_1 (result VARCHAR, battles VARCHAR)
SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8"
Find the names of catalog entries with level number 8.
CREATE TABLE Catalog_Contents_Additional_Attributes ( catalog_entry_id VARCHAR, catalog_level_number VARCHAR ) CREATE TABLE Catalog_Contents ( catalog_entry_name VARCHAR, catalog_entry_id VARCHAR )
SELECT appearances¹ FROM table_24565004_2 WHERE name = "Bernard Allou"
Name the appearances for bernard allou
CREATE TABLE table_24565004_2 (appearances¹ VARCHAR, name VARCHAR)
SELECT MIN(rank) FROM table_26986076_3 WHERE rider = "Paul Coward 492cc Nourish Weslake"
What is Paul Coward 492cc nourish Weslake's lowest rank?
CREATE TABLE table_26986076_3 (rank INTEGER, rider VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATTLE' AND date_day.day_number = 26 AND date_day.month_number = 7 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CHICAGO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
what flights leave from CHICAGO to SEATTLE on saturday
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 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 compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) 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 code_description ( code varchar, description 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 food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) 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 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 aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed int, range_miles int, pressurized varchar ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE state ( state_code text, state_name text, country_name text )
SELECT MAX(appearances¹) FROM table_24565004_2 WHERE name = "Bernard Allou"
Name the most appearances for bernard allou
CREATE TABLE table_24565004_2 (appearances¹ INTEGER, name VARCHAR)
SELECT mon_23_aug FROM table_26986076_3 WHERE rider = "Steve Linsdell 499cc Royal Enfield Seeley"
What was the time on Monday August 23rd for Steve Linsdell 499cc royal enfield seeley?
CREATE TABLE table_26986076_3 (mon_23_aug VARCHAR, rider VARCHAR)
SELECT COUNT("Production code") FROM table_30247 WHERE "U.S. viewers (million)" = '4.36'
How many production codes are there for the episode that had 4.36 million u.s. viewers?
CREATE TABLE table_30247 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "U.S. viewers (million)" text )
SELECT MAX(goals¹) FROM table_24565004_7
What is the highest number of goals scored
CREATE TABLE table_24565004_7 (goals¹ INTEGER)
SELECT turbo_boost FROM table_269920_17 WHERE model = "E5504"
Does the model e5504 have a turbo boost?
CREATE TABLE table_269920_17 (turbo_boost VARCHAR, model VARCHAR)
SELECT opponent FROM table_name_95 WHERE loss = "wilcox" AND date = "jun 18"
Loss of wilcox, and a Date of jun 18 had what opponent?
CREATE TABLE table_name_95 ( opponent VARCHAR, loss VARCHAR, date VARCHAR )
SELECT MIN(appearances¹) FROM table_24565004_7
What is the lowest number of appearances a player had
CREATE TABLE table_24565004_7 (appearances¹ INTEGER)
SELECT speed__ghz_ FROM table_269920_17 WHERE model = "X5560"
What is the speed of model x5560?
CREATE TABLE table_269920_17 (speed__ghz_ VARCHAR, model VARCHAR)
SELECT directed_by FROM table_2618113_1 WHERE production_code = "K0122"
Who directed k0122?
CREATE TABLE table_2618113_1 ( directed_by VARCHAR, production_code VARCHAR )
SELECT nationality² FROM table_24565004_7 WHERE name = "Louis Floch"
What is the nationality of Louis floch
CREATE TABLE table_24565004_7 (nationality² VARCHAR, name VARCHAR)
SELECT MAX(l3_cache__mb_) FROM table_269920_17 WHERE qpi_speed__gt_s_ = "4.8" AND speed__ghz_ = "2.00" AND model = "E5504"
What is the maximum L3 cache of the processor whose speed is 2.00 GHZ, has a QPI speed of 4.8 gt/s, and is model e5504?
CREATE TABLE table_269920_17 (l3_cache__mb_ INTEGER, model VARCHAR, qpi_speed__gt_s_ VARCHAR, speed__ghz_ VARCHAR)
SELECT link_abilities FROM table_11703336_1 WHERE predecessors = "TI-85"
What is the link abilities when the predecessors is ti-85?
CREATE TABLE table_11703336_1 ( link_abilities VARCHAR, predecessors VARCHAR )
SELECT name FROM table_24565004_7 WHERE appearances¹ = 252
Which player had 252 appearances
CREATE TABLE table_24565004_7 (name VARCHAR, appearances¹ VARCHAR)
SELECT COUNT(qpi_speed__gt_s_) FROM table_269920_17 WHERE model = "L5506"
How many models numbered L5506 have a QPI speed?
CREATE TABLE table_269920_17 (qpi_speed__gt_s_ VARCHAR, model VARCHAR)
SELECT "Finish" FROM table_14816 WHERE "Laps" < '200' AND "Year" = '1953'
What was the finish with less than 200 laps in 1953?
CREATE TABLE table_14816 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real )
SELECT nationality² FROM table_24565004_7 WHERE goals¹ = 13
What is the nationality of the player who scored 13 goals
CREATE TABLE table_24565004_7 (nationality² VARCHAR, goals¹ VARCHAR)
SELECT game_3 FROM table_27039190_3 WHERE viewers = "Under 2.61m"
What was game 3 when there were under 2.61m viewers?
CREATE TABLE table_27039190_3 (game_3 VARCHAR, viewers VARCHAR)
SELECT "Result" FROM table_7187 WHERE "Venue" = 'n'
What is the Result with a Venue that is n?
CREATE TABLE table_7187 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real )
SELECT COUNT(season) FROM table_245711_2 WHERE final_record = "9–16–5"
how many time is the final record is 9–16–5?
CREATE TABLE table_245711_2 (season VARCHAR, final_record VARCHAR)
SELECT COUNT(episode) FROM table_27039190_3 WHERE viewers = "4.44m"
How many episodes had 4.44m viewers?
CREATE TABLE table_27039190_3 (episode VARCHAR, viewers VARCHAR)
SELECT DISTINCT COUNT(paper.paperid) FROM paper, venue WHERE venue.venueid = paper.venueid AND venue.venuename = 'emnlp'
how many papers are in emnlp ?
CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE field ( fieldid int ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar )
SELECT flight_up FROM table_245800_2 WHERE launch_date = "23 July 1980 18:33:03"
What station was sent on flight up and was launched on 23 July 1980 18:33:03?
CREATE TABLE table_245800_2 (flight_up VARCHAR, launch_date VARCHAR)
SELECT committee FROM table_27050981_7 WHERE district = "46"
What committees do the district 46 members serve on?
CREATE TABLE table_27050981_7 (committee VARCHAR, district VARCHAR)
SELECT Main_Industry, COUNT(Main_Industry) FROM company WHERE Headquarters <> 'USA' GROUP BY Main_Industry ORDER BY COUNT(Main_Industry) DESC
How many companies that are not headquartered in the United States for each main industry? Show me a bar chart, and could you display by the total number from high to low?
CREATE TABLE station_company ( Station_ID int, Company_ID int, Rank_of_the_Year int ) CREATE TABLE gas_station ( Station_ID int, Open_Year int, Location text, Manager_Name text, Vice_Manager_Name text, Representative_Name text ) CREATE TABLE company ( Company_ID int, Rank int, Company text, Headquarters text, Main_Industry text, Sales_billion real, Profits_billion real, Assets_billion real, Market_Value real )
SELECT crew FROM table_245800_2 WHERE flight_up = "Soyuz T-3"
Who were the crews on the flight up of Soyuz T-3?
CREATE TABLE table_245800_2 (crew VARCHAR, flight_up VARCHAR)
SELECT MIN(league_apps) FROM table_27086613_5 WHERE total_apps = 5
Name the least league apps for total apps of 5
CREATE TABLE table_27086613_5 (league_apps INTEGER, total_apps VARCHAR)
SELECT tournament FROM table_name_33 WHERE partner = "nicole thijssen" AND opponent_in_the_final = "nina bratchikova & frederica piedade"
What Tournament did Silva Partner with Nicole Thijssen with Opponent in the final Nina Bratchikova & Frederica Piedade?
CREATE TABLE table_name_33 ( tournament VARCHAR, partner VARCHAR, opponent_in_the_final VARCHAR )
SELECT duration__days_ FROM table_245800_2 WHERE flight_down = "Soyuz 35"
How many days were the station of Soyuz 35 in flight down were in orbit?
CREATE TABLE table_245800_2 (duration__days_ VARCHAR, flight_down VARCHAR)
SELECT MIN(fa_cup_goals) FROM table_27086613_5 WHERE fa_cup_apps = 2 AND position = "FW"
Name the least fa cup goals with fa cup apps being 2 and fw
CREATE TABLE table_27086613_5 (fa_cup_goals INTEGER, fa_cup_apps VARCHAR, position VARCHAR)
SELECT MIN(goals_conceded) FROM table_name_72 WHERE played < 18
If the games played are smaller than 18, what are the lowest goals conceded?
CREATE TABLE table_name_72 ( goals_conceded INTEGER, played INTEGER )
SELECT COUNT(gn_divisions) FROM table_24574438_1 WHERE ds_division = "Mannar"
Name the number of gn divisions for mannar
CREATE TABLE table_24574438_1 (gn_divisions VARCHAR, ds_division VARCHAR)
SELECT total_apps FROM table_27086613_5 WHERE league_apps = 4
Name the total apps for league apps being 4
CREATE TABLE table_27086613_5 (total_apps VARCHAR, league_apps VARCHAR)
SELECT total FROM table_name_91 WHERE gold = "5"
What is the total medal count for the nation that has 5 gold?
CREATE TABLE table_name_91 ( total VARCHAR, gold VARCHAR )
SELECT MAX(sinhalese) FROM table_24574438_1 WHERE ds_division = "Manthai West"
Name the sinhalese for manthai west
CREATE TABLE table_24574438_1 (sinhalese INTEGER, ds_division VARCHAR)
SELECT date_of_appointment FROM table_27114708_2 WHERE replaced_by = "Alfredo Aglietti"
Please mention those appointment dates those are replaced by alfredo aglietti
CREATE TABLE table_27114708_2 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT "Week 1" FROM table_59964 WHERE "Week 8" = 'not eligible' AND "Week 9" = 'no nominations' AND "Week 3" = 'cyril'
What kind of Week 1 has a Week 8 of not eligible, and a Week 9 of no nominations, and a Week 3 of cyril? Question 3
CREATE TABLE table_59964 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text, "Week 6" text, "Week 7" text, "Week 8" text, "Week 9" text, "Week 10 FINAL" text )
SELECT MIN(indian_tamil) FROM table_24574438_1 WHERE population_density___km_2__ = 240
Name the least indian tamil for population density being 240
CREATE TABLE table_24574438_1 (indian_tamil INTEGER, population_density___km_2__ VARCHAR)
SELECT team FROM table_27114708_2 WHERE replaced_by = "Gianluca Atzori"
Mention all the applicable team who are replaced by gianluca atzori
CREATE TABLE table_27114708_2 (team VARCHAR, replaced_by VARCHAR)
SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project GROUP BY T1.Name
What are the naems of all the projects, and how many scientists were assigned to each of them.
CREATE TABLE Projects ( Code Char(4), Name Char(50), Hours int ) CREATE TABLE AssignedTo ( Scientist int, Project char(4) ) CREATE TABLE Scientists ( SSN int, Name Char(30) )
SELECT population_density___km_2__ FROM table_24574438_1 WHERE ds_division = "Manthai West"
Name the popultion density being manthai west
CREATE TABLE table_24574438_1 (population_density___km_2__ VARCHAR, ds_division VARCHAR)
SELECT outgoing_manager FROM table_27114708_2 WHERE team = "Reggina"
For team reggina please mention all the outgoing manager
CREATE TABLE table_27114708_2 (outgoing_manager VARCHAR, team VARCHAR)
SELECT COUNT("Destination") FROM table_24575 WHERE "Frequency" = 'Weekly' AND "Train Name" = 'AC Express'
How many destinations have a weekly frequency and are named AC Express?
CREATE TABLE table_24575 ( "Train No." text, "Train Name" text, "Destination" text, "Category" text, "Frequency" text )
SELECT COUNT(sinhalese) FROM table_24574438_1 WHERE indian_tamil = 177
Name the total number of sinhalese for indian tamil being 177
CREATE TABLE table_24574438_1 (sinhalese VARCHAR, indian_tamil VARCHAR)
SELECT date_of_appointment FROM table_27114708_2 WHERE team = "Ascoli"
For team ascoli please mention all the appointment date.
CREATE TABLE table_27114708_2 (date_of_appointment VARCHAR, team VARCHAR)
SELECT "Home team" FROM table_74799 WHERE "Venue" = 'princes park'
Which team plays home at Princes Park?
CREATE TABLE table_74799 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )