answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT group_position FROM table_name_50 WHERE result_f_a = "0–1" AND date = "1 november 2006" | Which Group position has Result F–A of 0–1 on 1 november 2006? | CREATE TABLE table_name_50 (group_position VARCHAR, result_f_a VARCHAR, date VARCHAR) |
SELECT COUNT(us_air_date) FROM table_18424435_5 WHERE directed_by = "Jim Donovan" | How many air dates where directed by jim donovan? | CREATE TABLE table_18424435_5 (us_air_date VARCHAR, directed_by VARCHAR) |
SELECT MAX("Top-5") FROM table_6263 WHERE "Events" < '16' AND "Wins" < '0' | Name the most top-5 for wins less than 0 and events less than 16 | CREATE TABLE table_6263 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) |
SELECT club FROM table_name_41 WHERE bowling_style = "right arm medium pace" AND name = "r. h. c. human" | What club is R. H. C. Human who has a right arm medium pace bowling style a member of? | CREATE TABLE table_name_41 (club VARCHAR, bowling_style VARCHAR, name VARCHAR) |
SELECT MIN(_number) FROM table_18424435_5 | What is the smallest number? | CREATE TABLE table_18424435_5 (_number INTEGER) |
SELECT MIN(laps) FROM table_name_22 WHERE time_retired = "engine" AND driver = "charles de tornaco" | I want the lowest Laps for time/retired of engine and driver of charles de tornaco | CREATE TABLE table_name_22 (
laps INTEGER,
time_retired VARCHAR,
driver VARCHAR
) |
SELECT birth_date FROM table_name_57 WHERE batting_style = "right-handed" AND name = "a. j. holmes" | What is the birth date of A. J. Holmes who has a right-handed batting style? | CREATE TABLE table_name_57 (birth_date VARCHAR, batting_style VARCHAR, name VARCHAR) |
SELECT us_air_date FROM table_18424435_5 WHERE canadian_viewers__million_ = "1.229" | Which air dates have 1.229 canadian viewers (millions)? | CREATE TABLE table_18424435_5 (us_air_date VARCHAR, canadian_viewers__million_ 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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS... | show me DL flights from DALLAS to DENVER | CREATE TABLE airline (
airline_code varchar,
airline_name text,
note 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 ... |
SELECT batting_style FROM table_name_75 WHERE bowling_style = "right arm medium pace" AND birth_date = "10 february 1910 (aged 29)" | What is the batting style of the person who has a right arm medium pace bowling style and a birth date of 10 February 1910 (aged 29)? | CREATE TABLE table_name_75 (batting_style VARCHAR, bowling_style VARCHAR, birth_date VARCHAR) |
SELECT COUNT(district) FROM table_18425346_2 WHERE serial_no = 9 | In what district is the city listed in Serial number 9? | CREATE TABLE table_18425346_2 (district VARCHAR, serial_no VARCHAR) |
SELECT DISTINCT FLIGHT_0.arrival_time, FLIGHT_0.departure_time FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight AS FLIGHT_0, flight AS FLIGHT_1, flight_leg WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CIT... | show me the DAILY flight schedule between BOSTON and PITTSBURGH | CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare 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 T... |
SELECT weight FROM table_name_91 WHERE name_v_t_e = "živko gocić category:articles with hcards" | What is the weight for the v t e of živko gocić category:articles with hcards? | CREATE TABLE table_name_91 (weight VARCHAR, name_v_t_e VARCHAR) |
SELECT COUNT(city_area_km_2__) FROM table_18425346_2 WHERE district = "Sargodha district" | What is the area of the city in the Sargodha district? | CREATE TABLE table_18425346_2 (city_area_km_2__ VARCHAR, district VARCHAR) |
SELECT "U.S. viewers (millions)" FROM table_23030 WHERE "Directed by" = 'Tony Phelan' | Name the viewers for the episode directed by tony phelan | CREATE TABLE table_23030 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) |
SELECT weight FROM table_name_26 WHERE name_v_t_e = "duško pijetlović category:articles with hcards" | What is the weight of the v t e of duško pijetlović category:articles with hcards? | CREATE TABLE table_name_26 (weight VARCHAR, name_v_t_e VARCHAR) |
SELECT MIN(city_area_km_2__) FROM table_18425346_2 | What is the smallest city area? | CREATE TABLE table_18425346_2 (city_area_km_2__ INTEGER) |
SELECT Team_Name, ACC_Percent FROM basketball_match ORDER BY Team_Name | A bar chart shows the distribution of Team_Name and ACC_Percent , and list X in asc order please. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... |
SELECT SUM(total) FROM table_name_45 WHERE player = "david o'callaghan" AND tally = "1-9" | What was the total for David O'Callaghan, and a Tally of 1-9? | CREATE TABLE table_name_45 (total INTEGER, player VARCHAR, tally VARCHAR) |
SELECT original_air_date FROM table_18427769_1 WHERE directed_by = "Di Drew" | If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose? | CREATE TABLE table_18427769_1 (original_air_date VARCHAR, directed_by VARCHAR) |
SELECT area FROM table_name_50 WHERE name = "mackenzie college" | What area is named Mackenzie college? | CREATE TABLE table_name_50 (
area VARCHAR,
name VARCHAR
) |
SELECT opposition FROM table_name_25 WHERE tally = "0-11" | What is the opposition when the tally was 0-11? | CREATE TABLE table_name_25 (opposition VARCHAR, tally VARCHAR) |
SELECT COUNT(population__2010_census_) FROM table_184334_2 WHERE s_barangay = 51 | What is the population (2010 census) if s barangay is 51? | CREATE TABLE table_184334_2 (population__2010_census_ VARCHAR, s_barangay VARCHAR) |
SELECT nationality FROM table_2886617_6 WHERE player = "Peter Slamiar" | What nationality was peter slamiar? | CREATE TABLE table_2886617_6 (
nationality VARCHAR,
player VARCHAR
) |
SELECT tally FROM table_name_44 WHERE county = "kilkenny" AND total = 10 AND opposition = "waterford" | What is the tally in Kilkenny county with 10 as the total and opposition of Waterford? | CREATE TABLE table_name_44 (tally VARCHAR, opposition VARCHAR, county VARCHAR, total VARCHAR) |
SELECT MIN(population__2010_census_) FROM table_184334_2 WHERE area___has__ = "66.11" | What is the population (2010 census) if the area is 66.11? | CREATE TABLE table_184334_2 (population__2010_census_ INTEGER, area___has__ VARCHAR) |
SELECT MIN("Season no.") FROM table_30975 WHERE "U.S. viewers (millions)" = '3.91' | What is the last episode in the season that had 3.91 million viewers in the US? | CREATE TABLE table_30975 (
"Season no." real,
"Series no." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
) |
SELECT AVG(weeks_on_chart) FROM table_name_40 WHERE position > 3 AND year > 1977 | What is the average weeks of a song with a larger than 3 position after 1977? | CREATE TABLE table_name_40 (weeks_on_chart INTEGER, position VARCHAR, year VARCHAR) |
SELECT entered FROM table_18438494_3 WHERE time = "14:42" | How many entered the match with a time of 14:42? | CREATE TABLE table_18438494_3 (entered VARCHAR, time VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicare" AND demographic.dob_year < "2182" | provide the number of patients whose insurance is medicare and year of birth is less than 2182? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... |
SELECT SUM(weeks_on_chart) FROM table_name_92 WHERE position < 1 | What is the sum of the weeks on a chart a song with a position less than 1 haas? | CREATE TABLE table_name_92 (weeks_on_chart INTEGER, position INTEGER) |
SELECT time FROM table_18438494_3 WHERE wrestler = "Cena" | What was the time for the match with Cena? | CREATE TABLE table_18438494_3 (time VARCHAR, wrestler VARCHAR) |
SELECT team FROM table_24231638_3 WHERE position_in_table = "19th" | What is the team for the position in table 19th? | CREATE TABLE table_24231638_3 (
team VARCHAR,
position_in_table VARCHAR
) |
SELECT MIN(year) FROM table_name_5 WHERE position < 1 | What is the earliest year a song with a position less than 1 has? | CREATE TABLE table_name_5 (year INTEGER, position INTEGER) |
SELECT station FROM table_1847523_2 WHERE city_of_license__market = "Cincinnati" | What are all the stations with a license in Cincinnati? | CREATE TABLE table_1847523_2 (station VARCHAR, city_of_license__market VARCHAR) |
SELECT MAX(Points) FROM climber WHERE Country = "United Kingdom" | What is the maximum point for climbers whose country is United Kingdom? | CREATE TABLE climber (
Points INTEGER,
Country VARCHAR
) |
SELECT tyre FROM table_name_81 WHERE entrant = "scuderia milano" | what is the tyre when the entrant is scuderia milano? | CREATE TABLE table_name_81 (tyre VARCHAR, entrant VARCHAR) |
SELECT affiliation FROM table_1847523_2 WHERE station = "KMGH-TV" | What station is affiliated with kmgh-tv? | CREATE TABLE table_1847523_2 (affiliation VARCHAR, station VARCHAR) |
SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5 | What are the top 5 countries by number of invoices and how many do they have? | CREATE TABLE customers (
id number,
first_name text,
last_name text,
company text,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text,
support_rep_id number
)
CREATE TABLE sqlite_sequence (
name text,
seq tex... |
SELECT driver FROM table_name_17 WHERE engine = "era 1.5 l6 s" AND chassis = "era b" | who is the driver with the engine era 1.5 l6 s and the chassis is era b? | CREATE TABLE table_name_17 (driver VARCHAR, engine VARCHAR, chassis VARCHAR) |
SELECT owned_since FROM table_1847523_2 WHERE station = "WFTS-TV" | How many stations have been owned since wfts-tv? | CREATE TABLE table_1847523_2 (owned_since VARCHAR, station VARCHAR) |
SELECT "University of Minnesota" FROM table_6741 WHERE "Rood & Taylor" = 'o' AND "Buechel & Manhart spelling (pronunciation)" = 'o' | Rood & Taylor of o, and a Buechel & Manhart spelling (pronunciation) of o had what university of Minnesota? | CREATE TABLE table_6741 (
"Buechel & Manhart spelling (pronunciation)" text,
"Ullrich" text,
"Brandon University" text,
"Deloria & Boas" text,
"Dakota Mission" text,
"Rood & Taylor" text,
"Riggs" text,
"Williamson" text,
"University of Minnesota" text,
"White Hat" text
) |
SELECT constructor FROM table_name_75 WHERE tyre = "d" AND engine = "talbot 23cv 4.5 l6" AND chassis = "talbot-lago t26c" AND entrant = "ecurie belge" | who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge? | CREATE TABLE table_name_75 (constructor VARCHAR, entrant VARCHAR, chassis VARCHAR, tyre VARCHAR, engine VARCHAR) |
SELECT city_of_license__market FROM table_1847523_2 WHERE channel___tv___rf__ = "41" | What city of license/market has the channel of 41? | CREATE TABLE table_1847523_2 (city_of_license__market VARCHAR, channel___tv___rf__ VARCHAR) |
SELECT COUNT("Win %") FROM table_74489 WHERE "Conference" = 'hockey east' AND "# of Bids" < '4' | For the Hockey East conference, what is the total number of win percentages when there are less than 4 bids? | CREATE TABLE table_74489 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" real,
"Regional Finals" real
) |
SELECT kk___1 FROM table_name_79 WHERE kk___3 = "1,100" | What is KK -1 if KK -3 is 1,100? | CREATE TABLE table_name_79 (kk___1 VARCHAR, kk___3 VARCHAR) |
SELECT MIN(owned_since) FROM table_1847523_2 WHERE station = "KERO-TV" | What is the minimum stations owned since kero-tv? | CREATE TABLE table_1847523_2 (owned_since INTEGER, station VARCHAR) |
SELECT "Area (km\u00b2)" FROM table_31374 WHERE "Capital" = 'Port-au-Prince' | What is every entry for area if capital is Port-au-Prince? | CREATE TABLE table_31374 (
"Country with flag" text,
"Area (km\u00b2)" real,
"Population (1 July 2005 est.)" real,
"Population density (per km\u00b2)" text,
"Capital" text
) |
SELECT kk___5 FROM table_name_38 WHERE kk___3 = "310" | What is KK -5 if KK - 3 is 310? | CREATE TABLE table_name_38 (kk___5 VARCHAR, kk___3 VARCHAR) |
SELECT lyric_fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = "93.2" | What is the lyric fm for rnag 93.2? | CREATE TABLE table_18475946_2 (lyric_fm__mhz_ VARCHAR, rnag__mhz_ VARCHAR) |
SELECT demographic.diagnosis FROM demographic WHERE demographic.name = "Kelly Gallardo" | what is primary disease of subject name kelly gallardo? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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... |
SELECT kk___5 FROM table_name_42 WHERE kk___1 = "1,067" | What is KK - 5 if KK - 1 is 1,067? | CREATE TABLE table_name_42 (kk___5 VARCHAR, kk___1 VARCHAR) |
SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE erp__kw_ = "16" | What are the 2fm's for erp 16? | CREATE TABLE table_18475946_2 (erp__kw_ VARCHAR) |
SELECT "Type" FROM table_26268 WHERE "Local Government Area" = 'Yalata' | What type of local government area is Yalata? | CREATE TABLE table_26268 (
"Local Government Area" text,
"Type" text,
"Major Town" text,
"Land Area (km\u00b2)" text,
"Pop. 2006" real,
"Density km \u22122" real,
"Towns" real,
"Est." real
) |
SELECT winner FROM table_name_74 WHERE time = "1:12.00" AND jockey = "melvin a. holland" | Who is the Winner with a Time of 1:12.00 and Melvin A. Holland as the Jockey? | CREATE TABLE table_name_74 (winner VARCHAR, time VARCHAR, jockey VARCHAR) |
SELECT rnag__mhz_ FROM table_18475946_2 WHERE transmitter = "Kippure" | What is the rnag for kippure transmitter? | CREATE TABLE table_18475946_2 (rnag__mhz_ VARCHAR, transmitter VARCHAR) |
SELECT game_4 FROM table_name_41 WHERE game_3 = "david boyle" | For which Game 4, did David Boyle play in Game 3? | CREATE TABLE table_name_41 (
game_4 VARCHAR,
game_3 VARCHAR
) |
SELECT year FROM table_name_71 WHERE purse = "$83,925" | Which Year has a Purse of $83,925? | CREATE TABLE table_name_71 (year VARCHAR, purse VARCHAR) |
SELECT rnag__mhz_ FROM table_18475946_2 WHERE lyric_fm__mhz_ = "98.7" | What is the rnag for lyric fm 98.7? | CREATE TABLE table_18475946_2 (rnag__mhz_ VARCHAR, lyric_fm__mhz_ VARCHAR) |
SELECT name, COUNT(name) FROM playlists GROUP BY name ORDER BY name DESC | List the number of the name of all playlist, display by the x-axis from high to low please. | CREATE TABLE tracks (
id INTEGER,
name VARCHAR(200),
album_id INTEGER,
media_type_id INTEGER,
genre_id INTEGER,
composer VARCHAR(220),
milliseconds INTEGER,
bytes INTEGER,
unit_price NUMERIC(10,2)
)
CREATE TABLE artists (
id INTEGER,
name VARCHAR(120)
)
CREATE TABLE genres ... |
SELECT purse FROM table_name_10 WHERE year = "1998" | What is the Purse listed for the Year of 1998? | CREATE TABLE table_name_10 (purse VARCHAR, year VARCHAR) |
SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = "94.4" | What is the 2fm for rnag 94.4? | CREATE TABLE table_18475946_2 (rnag__mhz_ VARCHAR) |
SELECT DATEADD(week, DATEDIFF(day, '20000109', CreationDate) / 7, '20000109') AS "week", Tags.TagName, COUNT(DISTINCT Posts.Id) AS Posts, SUM(Posts.AnswerCount) AS Answers, SUM(Posts.CommentCount) AS Comments FROM Posts INNER JOIN PostTags ON PostTags.PostId = Posts.Id INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE ... | Count of questions, comments, answers with tag over time. | CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId n... |
SELECT winner FROM table_name_9 WHERE year = "2000" | What's the Winner in the Year of 2000? | CREATE TABLE table_name_9 (winner VARCHAR, year VARCHAR) |
SELECT COUNT(reason_for_change) FROM table_1847180_3 WHERE vacator = "A. Willis Robertson (D)" | How many reasons were given when A. Willis Robertson (D) resigned? | CREATE TABLE table_1847180_3 (reason_for_change VARCHAR, vacator VARCHAR) |
SELECT duration FROM actor ORDER BY age DESC LIMIT 1 | Return the duration of the actor with the greatest age. | CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
)
CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
) |
SELECT winner FROM table_name_43 WHERE time = "1:10.60" AND owner = "leslie combs ii" | What's the WInner with a TIme of 1:10.60, and Owner of Leslie Combs II? | CREATE TABLE table_name_43 (winner VARCHAR, time VARCHAR, owner VARCHAR) |
SELECT vacator FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966" | Who vacated his post when his successor was formally installed on May 11, 1966? | CREATE TABLE table_1847180_3 (vacator VARCHAR, date_of_successors_formal_installation VARCHAR) |
SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT MIN(amount_piad) FROM claim_headers) | What is the name of the customer who has made the minimum amount of payment in one claim? | CREATE TABLE claims_processing_stages (
claim_stage_id number,
next_claim_stage_id number,
claim_status_name text,
claim_status_description text
)
CREATE TABLE claims_documents (
claim_id number,
document_type_code text,
created_by_staff_id number,
created_date number
)
CREATE TABLE po... |
SELECT trainer FROM table_name_33 WHERE year = "2013" | Who is the Trainer with the Year of 2013? | CREATE TABLE table_name_33 (trainer VARCHAR, year VARCHAR) |
SELECT state__class_ FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966" | What was the state (class) where the new successor was formally installed on May 11, 1966? | CREATE TABLE table_1847180_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR) |
SELECT commander FROM table_name_62 WHERE complement > 240 AND guns = "66" AND ship = "revolutie" | Which commander received complement larger than 240 , guns of 66 and ship of revolutie? | CREATE TABLE table_name_62 (
commander VARCHAR,
ship VARCHAR,
complement VARCHAR,
guns VARCHAR
) |
SELECT away_team AS score FROM table_name_84 WHERE away_team = "st kilda" | How many points did the away team of st kilda score? | CREATE TABLE table_name_84 (away_team VARCHAR) |
SELECT album FROM table_18442691_2 WHERE artist = "ABBA" | When abba is the artist what is the album? | CREATE TABLE table_18442691_2 (album VARCHAR, artist VARCHAR) |
SELECT "region" FROM table_204_277 GROUP BY "region" ORDER BY COUNT(*) LIMIT 1 | which is the least region charted on this chart | CREATE TABLE table_204_277 (
id number,
"region" text,
"country" text,
"location" text,
"size (m)" text,
"payload (metric tonnes)" text,
"degrees of freedom" number,
"x horiz disp (mm)" number,
"y horiz disp (mm)" number,
"z vert disp (mm)" number,
"x horiz vel (mm/s)" number... |
SELECT date FROM table_name_94 WHERE result = "l 13–9" | Tell me the date with result of l 13–9 | CREATE TABLE table_name_94 (date VARCHAR, result VARCHAR) |
SELECT album FROM table_18442691_2 WHERE no = 35 | When 35 is the number what is the album? | CREATE TABLE table_18442691_2 (album VARCHAR, no VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', 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 = '022-199074' AND patient.hos... | how many hours has passed since patient 022-199074 had a glucose laboratory test for the first time on this hospital visit? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellv... |
SELECT COUNT(week) FROM table_name_67 WHERE result = "w 35–7" | Tell me the total number of week for w 35–7 | CREATE TABLE table_name_67 (week VARCHAR, result VARCHAR) |
SELECT MIN(no) FROM table_18442691_2 WHERE album = "Bat Out of Hell" | When bat out of hell is the album what is the lowest number? | CREATE TABLE table_18442691_2 (no INTEGER, album VARCHAR) |
SELECT constructor FROM table_name_39 WHERE time_retired = "brakes" AND grid < 14 | I want the constructor for brakes and grid less than 14 | CREATE TABLE table_name_39 (
constructor VARCHAR,
time_retired VARCHAR,
grid VARCHAR
) |
SELECT AVG(week) FROM table_name_70 WHERE result = "l 34–24" | Tell me the average week for result of l 34–24 | CREATE TABLE table_name_70 (week INTEGER, result VARCHAR) |
SELECT no FROM table_18442691_2 WHERE released = "Cannot handle non-empty timestamp argument! 2007" | When cannot handle non-empty timestamp argument! 2007 is released what is the no.? | CREATE TABLE table_18442691_2 (no VARCHAR, released VARCHAR) |
SELECT city, COUNT(*) FROM station GROUP BY city | Give the proportion of what is the name of every city that has at least 15 stations and how many stations does it have? | CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
... |
SELECT czechoslovak_president FROM table_name_99 WHERE tenure_begin = "1950" | Who was the President of Czechoslovakia when an ambassador's tenure began in 1950? | CREATE TABLE table_name_99 (czechoslovak_president VARCHAR, tenure_begin VARCHAR) |
SELECT district FROM table_1847180_4 WHERE vacator = "Ralph Harvey (R)" | Which district did Ralph Harvey (r) vacated when he resigned? | CREATE TABLE table_1847180_4 (district VARCHAR, vacator VARCHAR) |
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'san francisco' AND restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id AND restaurant.rating = (SELECT MAX(RESTAURANTalias1.rating) FROM location AS LOCATIONalias1, restaurant AS RESTAURANTalias1 W... | What is the best restaurant in san francisco for french food ? | CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
reg... |
SELECT SUM(share) FROM table_name_2 WHERE air_date = "november 19, 2007" | What is the total share for an episode with an air date of November 19, 2007? | CREATE TABLE table_name_2 (share INTEGER, air_date VARCHAR) |
SELECT vacator FROM table_1847180_4 WHERE successor = "Walter B. Jones, Sr. (D)" | Who did Walter B. Jones, Sr. (d) succeeded in office? | CREATE TABLE table_1847180_4 (vacator VARCHAR, successor VARCHAR) |
SELECT "Decision" FROM table_29604 WHERE "First Star" = 'V. Lecavalier' | Who made the decisions in the game whose first star was V. Lecavalier? | CREATE TABLE table_29604 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"First Star" text,
"Decision" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) |
SELECT manufacturer FROM table_name_35 WHERE time_retired = "+15.665" | Which manufacturer has a Time/Retired of +15.665? | CREATE TABLE table_name_35 (manufacturer VARCHAR, time_retired VARCHAR) |
SELECT title FROM table_18481791_2 WHERE directed_by = "John T. Kretchmer" | What was the title of the episode directed by John T. Kretchmer? | CREATE TABLE table_18481791_2 (title VARCHAR, directed_by VARCHAR) |
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.dischtime IS NULL AND admissions.age BETWEEN 50 AND 59 | count the number of current patients whose age is in their 50s. | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE patients (
... |
SELECT laps FROM table_name_72 WHERE manufacturer = "aprilia" AND grid = 10 | What were the laps of aprilia with a grid of 10? | CREATE TABLE table_name_72 (laps VARCHAR, manufacturer VARCHAR, grid VARCHAR) |
SELECT MIN(no_in_season) FROM table_18481791_3 WHERE directed_by = "Bryan Spicer" | How many seasons were directed by Bryan Spicer? | CREATE TABLE table_18481791_3 (no_in_season INTEGER, directed_by VARCHAR) |
SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-38992')) AND vitalperiodic.respiration > 19.0 AND NOT vitalperio... | was respiration from patient 013-38992 greater than 19.0 on 12/31/last year? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)... |
SELECT AVG(crowd) FROM table_name_66 WHERE venue = "junction oval" | What was the size of the crowd at the game played at Junction Oval? | CREATE TABLE table_name_66 (crowd INTEGER, venue VARCHAR) |
SELECT title FROM table_18481791_3 WHERE no_in_series = 23 | What is the title of series 23? | CREATE TABLE table_18481791_3 (title VARCHAR, no_in_series VARCHAR) |
SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" ORDER BY COUNT(date_of_completion) DESC | What are the number of the completion dates of all the tests that have result 'Fail'?, show from high to low by the Y. | CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Subjects (
subject_id INTEGER,
subje... |
SELECT date FROM table_name_35 WHERE home_team = "north melbourne" | When was the game when North Melbourne was the home team? | CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.