answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT SUM(year) FROM table_name_46 WHERE animal = "downy woodpecker" | What year was the downy woodpecker coin created? | CREATE TABLE table_name_46 (year INTEGER, animal VARCHAR) |
SELECT original_title FROM table_20124413_3 WHERE production_code = "3.19" | What was the original title of 3.19? | CREATE TABLE table_20124413_3 (original_title VARCHAR, production_code VARCHAR) |
SELECT DISTINCT COUNT(DISTINCT cite.citingpaperid), paper.venueid FROM cite, keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'NLP' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = cite.citedpaperid AND paper.paperid = paperkeyphrase.paperid GROUP BY paper.venueid ORDER BY COUN... | What are the best NLP conferences ? | CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TAB... |
SELECT artist FROM table_name_40 WHERE year < 2010 | Which artist created coins before 2010? | CREATE TABLE table_name_40 (artist VARCHAR, year INTEGER) |
SELECT _number FROM table_20124413_2 WHERE prod_code = "2.6" | How many numbers have the product code of 2.6? | CREATE TABLE table_20124413_2 (_number VARCHAR, prod_code VARCHAR) |
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(DEPARTMENT_ID) | For those employees who was hired before 2002-06-21, find hire_date and the average of department_id bin hire_date by time, and visualize them by a bar chart, and could you show by the Y-axis from low to high please? | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,... |
SELECT COUNT(game) FROM table_name_3 WHERE team = "boston" | What is the game number against the team Boston? | CREATE TABLE table_name_3 (game VARCHAR, team VARCHAR) |
SELECT COUNT(directed_by) FROM table_20124413_2 WHERE prod_code = "2.8" | How many directed have the product code of 2.8? | CREATE TABLE table_20124413_2 (directed_by VARCHAR, prod_code VARCHAR) |
SELECT * FROM table_dev_53 WHERE anemia = 1 OR (hct < 36 AND gender = 'male') OR (hct < 33 AND gender = 'female') | clinically significant anemia ( hct < 36 % in male , < 33 % in female ) | CREATE TABLE table_dev_53 (
"id" int,
"anemia" bool,
"gender" string,
"hemoglobin_a1c_hba1c" float,
"dyslipidemia" bool,
"hct" int,
"hematocrit_hct" float,
"persistent_macroalbuminuria" bool,
"urine_albumin" int,
"high_density_lipoprotein_cholesterol_hdl_c" int,
"coagulopathy... |
SELECT date FROM table_name_27 WHERE game = 23 | What is the date of game 23? | CREATE TABLE table_name_27 (date VARCHAR, game VARCHAR) |
SELECT original_title FROM table_20124413_1 WHERE prod_code = "1.12" | When 1.12 is the production code what is the original title? | CREATE TABLE table_20124413_1 (original_title VARCHAR, prod_code VARCHAR) |
SELECT COUNT(top_25) FROM table_name_93 WHERE events < 2 | What is the total number of top-25 a tournament with less than 2 events has? | CREATE TABLE table_name_93 (
top_25 VARCHAR,
events INTEGER
) |
SELECT percent_of_slovenes_1951 FROM table_name_31 WHERE village__german_ = "roach" | What percentage of Slovenes lived in the village of Roach in 1951? | CREATE TABLE table_name_31 (percent_of_slovenes_1951 VARCHAR, village__german_ VARCHAR) |
SELECT COUNT(original_airdate) FROM table_20124413_1 WHERE prod_code = "1.17" | When 1.17 is the production code how many air dates are there? | CREATE TABLE table_20124413_1 (original_airdate VARCHAR, prod_code VARCHAR) |
SELECT venue FROM table_name_91 WHERE competition = "friendly" | What is the Venue with the Friendly Competition? | CREATE TABLE table_name_91 (
venue VARCHAR,
competition VARCHAR
) |
SELECT venue FROM table_name_89 WHERE away_team = "south melbourne" | Which Venue has an Away team of south melbourne? | CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR) |
SELECT winnings FROM table_2012187_1 WHERE poles = 0 AND team_s_ = "Yates Racing Front Row Motorsports" | state the winnings of yates racing front row motorsports where poles were 0 | CREATE TABLE table_2012187_1 (winnings VARCHAR, poles VARCHAR, team_s_ VARCHAR) |
SELECT "Away team score" FROM table_10157 WHERE "Away team" = 'richmond' | What is Richmond's away team score versus Geelong? | CREATE TABLE table_10157 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT away_team AS score FROM table_name_3 WHERE away_team = "melbourne" | What did the Melbourne team score in their away game? | CREATE TABLE table_name_3 (away_team VARCHAR) |
SELECT team_s_ FROM table_2012187_1 WHERE winnings = "$2,605,05" | which team(s) won $2,605,05 | CREATE TABLE table_2012187_1 (team_s_ VARCHAR, winnings VARCHAR) |
SELECT "Predecessor" FROM table_36527 WHERE "District" < '11' AND "Congress" = '68th' AND "Date" = 'may 1, 1923' | What predecessor has a district less than 11, 68th as the Congress, and may 1, 1923 as the date? | CREATE TABLE table_36527 (
"District" real,
"Congress" text,
"Date" text,
"Predecessor" text,
"Winner" text
) |
SELECT home_team FROM table_name_91 WHERE venue = "arden street oval" | Which Home team plays at the arden street oval Venue? | CREATE TABLE table_name_91 (home_team VARCHAR, venue VARCHAR) |
SELECT COUNT(wins) FROM table_2012187_1 WHERE top_10 = 2 | state the wins of the team with 2 top 10 | CREATE TABLE table_2012187_1 (wins VARCHAR, top_10 VARCHAR) |
SELECT "Location Attendance" FROM table_1662 WHERE "Game" = '20' | Name the location attendance for 20 | CREATE TABLE table_1662 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT venue FROM table_name_58 WHERE home_team = "hawthorn" | What is Home team Venue for the hawthorn team? | CREATE TABLE table_name_58 (venue VARCHAR, home_team VARCHAR) |
SELECT kannada_name_ಕನ್ನಡ FROM table_201400_2 WHERE tamil_name_தமிழ் = "Anusham அனுஷம்" | what is kannada name ಕನ್ನಡ of tamil name தமிழ் anusham அனுஷம் | CREATE TABLE table_201400_2 (kannada_name_ಕನ್ನಡ VARCHAR, tamil_name_தமிழ் VARCHAR) |
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-23047')) AND intakeoutput.celllabel = 'enter... | give me the total quantity of enteral impact peptide 1.5 that patient 015-23047 has taken today. | 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 home_team FROM table_name_29 WHERE venue = "princes park" | What Home team plays at the princes park Venue? | CREATE TABLE table_name_29 (home_team VARCHAR, venue VARCHAR) |
SELECT malayalam_name_മലയാളം FROM table_201400_2 WHERE tamil_name_தமிழ் = "Punarpoosam புனர்பூசம்" | what is the malayalam name മലയാളം of tamil name தமிழ் punarpoosam புனர்பூசம் | CREATE TABLE table_201400_2 (malayalam_name_മലയാളം VARCHAR, tamil_name_தமிழ் VARCHAR) |
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3125) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT prescriptions.drug FROM prescriptions WHERE ... | what are the drugs that are added to patient 3125 today in comparison to yesterday? | 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 nu... |
SELECT home_away FROM table_name_96 WHERE opponent = "rattlers" AND field = "united sports training center" | Was the game against the Rattlers at the United Sports Training Center a home game or an away game? | CREATE TABLE table_name_96 (home_away VARCHAR, opponent VARCHAR, field VARCHAR) |
SELECT telugu_name_తెలుగు FROM table_201400_2 WHERE kannada_name_ಕನ್ನಡ = "Utthara ಉತ್ತರ" | what is the telugu name తెలుగు of kannada name ಕನ್ನಡ utthara ಉತ್ತರ | CREATE TABLE table_201400_2 (telugu_name_తెలుగు VARCHAR, kannada_name_ಕನ್ನಡ VARCHAR) |
SELECT Comptroller, COUNT(Comptroller) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 OR T1.District = 2 GROUP BY Comptroller ORDER BY Comptroller | Find the parties associated with the delegates from district 1 or 2 Who served as comptrollers of the parties, and count them by a bar chart, and rank in asc by the x axis. | CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE party (
Party_ID int,
... |
SELECT opponent FROM table_name_65 WHERE field = "multi-sport field" | What was the opponent for the game at Multi-sport Field? | CREATE TABLE table_name_65 (opponent VARCHAR, field VARCHAR) |
SELECT sanskrit FROM table_201400_2 WHERE western_star_name = "Arcturus" | what is the sanskrit of western star name arcturus | CREATE TABLE table_201400_2 (sanskrit VARCHAR, western_star_name VARCHAR) |
SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'semantic parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2016 AND venue.venueid = paper.venueid AND venue.venuename = 'acl' | papers on semantic parsing appeared at acl in 2016 | CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE cite (
citingpaperid int,
... |
SELECT result FROM table_name_15 WHERE home_away = "away" AND date = "august 4" | What is the result of the away game played on August 4? | CREATE TABLE table_name_15 (result VARCHAR, home_away VARCHAR, date VARCHAR) |
SELECT malayalam_name_മലയാളം FROM table_201400_2 WHERE sanskrit = "Uttarāṣāḍha उत्तराषाढा" | what is the malayalam name മലയാളം of sanskrit uttarāṣāḍha उत्तराषाढा | CREATE TABLE table_201400_2 (malayalam_name_മലയാളം VARCHAR, sanskrit VARCHAR) |
SELECT "2008" FROM table_55664 WHERE "2001" = 'wta premier 5 tournaments' | Tell me the 2008 for when 2001 of wta premier 5 tournaments | CREATE TABLE table_55664 (
"Tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
) |
SELECT field FROM table_name_63 WHERE date = "july 12" | On which field was the game played on July 12? | CREATE TABLE table_name_63 (field VARCHAR, date VARCHAR) |
SELECT traditional FROM table_2013618_1 WHERE area = 544 | Name the traditional for area 544 | CREATE TABLE table_2013618_1 (traditional VARCHAR, area VARCHAR) |
SELECT mens_singles FROM table_14904221_1 WHERE year = 1994 | WHo won men's singles in 1994? | CREATE TABLE table_14904221_1 (
mens_singles VARCHAR,
year VARCHAR
) |
SELECT venue FROM table_name_53 WHERE scored = 1 AND competition = "2006 fifa world cup qualification" | At what venue did Sigurd Rushfeldt score 1 point in the 2006 FIFA World Cup Qualification competition? | CREATE TABLE table_name_53 (venue VARCHAR, scored VARCHAR, competition VARCHAR) |
SELECT foochow FROM table_2013618_1 WHERE english_name = "Pingnan County" | Name the foochow for pingnan county | CREATE TABLE table_2013618_1 (foochow VARCHAR, english_name VARCHAR) |
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | give me some good places for arabic in mountain view ? | CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
reg... |
SELECT date FROM table_name_24 WHERE scored < 2 AND competition = "uefa euro 2004 qualifying" | What date did Sigurd Rushfeldt score less than 2 points in the UEFA Euro 2004 qualifying competition? | CREATE TABLE table_name_24 (date VARCHAR, scored VARCHAR, competition VARCHAR) |
SELECT pinyin FROM table_2013618_1 WHERE foochow = "Ciá-ìng-gâing" | Name the pinyin for ciá-ìng-gâing | CREATE TABLE table_2013618_1 (pinyin VARCHAR, foochow VARCHAR) |
SELECT report FROM table_1140076_2 WHERE race = "San Marino Grand Prix" | What is the report listed for the race in San Marino Grand Prix? | CREATE TABLE table_1140076_2 (
report VARCHAR,
race VARCHAR
) |
SELECT tournament FROM table_name_21 WHERE date = "february 17, 2002" | What is the tournament on February 17, 2002? | CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR) |
SELECT traditional FROM table_2013618_1 WHERE simplified = "屏南县" | Name the traditional for 屏南县 | CREATE TABLE table_2013618_1 (traditional VARCHAR, simplified VARCHAR) |
SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26995) AND prescriptions.drug = 'lisinopril' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFT... | what was the lisinopril dose that was prescribed to patient 26995 in 11/last year for the first time? | 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_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id... |
SELECT MAX(goals) FROM table_name_87 WHERE player = "mitsuo kato" | How many goals does mitsuo kato have? | CREATE TABLE table_name_87 (goals INTEGER, player VARCHAR) |
SELECT density FROM table_2013618_1 WHERE traditional = "古田縣" | Name the density for 古田縣 | CREATE TABLE table_2013618_1 (density VARCHAR, traditional VARCHAR) |
SELECT player FROM table_name_48 WHERE years_for_grizzlies = "2002-2003" | Which Player has Years for Grizzlies of 2002-2003? | CREATE TABLE table_name_48 (
player VARCHAR,
years_for_grizzlies VARCHAR
) |
SELECT engine FROM table_name_99 WHERE entrant = "scuderia ferrari" AND driver = "raymond sommer" | Which engine has the entrant scuderia ferrari and is driven by Raymond Sommer? | CREATE TABLE table_name_99 (engine VARCHAR, entrant VARCHAR, driver VARCHAR) |
SELECT english_name FROM table_2013618_1 WHERE traditional = "福鼎市" | Name the english name for 福鼎市 | CREATE TABLE table_2013618_1 (english_name VARCHAR, traditional VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.long_title = "Ulcer of other part of foot" | how many dead patients had ulcer of other part of foot diagnoses? | 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 chassis FROM table_name_51 WHERE driver = "reg parnell" | What Chassis does Reg Parnell drive? | CREATE TABLE table_name_51 (chassis VARCHAR, driver VARCHAR) |
SELECT cfl_team FROM table_20170644_1 WHERE player = "Darcy Brown" | What CFL team did Darcy Brown play for? | CREATE TABLE table_20170644_1 (cfl_team VARCHAR, player VARCHAR) |
SELECT Nationality, COUNT(Nationality) FROM journalist GROUP BY Nationality | Create a pie chart showing how many nationality across nationality. | CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance... |
SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = "ryan mccay" | What is Ryan McCay's speed that has a rank better than 8? | CREATE TABLE table_name_65 (speed VARCHAR, rank VARCHAR, rider VARCHAR) |
SELECT cfl_team FROM table_20170644_1 WHERE player = "Simeon Rottier" | What CFL team did simeon rottier play for? | CREATE TABLE table_20170644_1 (cfl_team VARCHAR, player VARCHAR) |
SELECT position FROM table_name_81 WHERE round < 8 AND overall = 48 | What is the position of the player with a round less than 8 and an overall of 48? | CREATE TABLE table_name_81 (
position VARCHAR,
round VARCHAR,
overall VARCHAR
) |
SELECT team FROM table_name_18 WHERE speed = "113.316mph" | What's the name of the team that went 113.316mph? | CREATE TABLE table_name_18 (team VARCHAR, speed VARCHAR) |
SELECT college FROM table_20170644_1 WHERE player = "Étienne Légaré" | What college did étienne légaré play for? | CREATE TABLE table_20170644_1 (college VARCHAR, player VARCHAR) |
SELECT "Rim diameter" FROM table_74705 WHERE "Neck diameter" = '11.84 (.466)' | Which Rim diameter has a Neck diameter of 11.84 (.466)? | CREATE TABLE table_74705 (
"Name" text,
"Case type" text,
"Bullet diameter" text,
"Neck diameter" text,
"Base diameter" text,
"Rim diameter" text,
"Case length" text,
"Cartridge length" text
) |
SELECT team FROM table_name_81 WHERE rank < 7 AND rider = "matts nilsson" | What's Matts Nilsson's team that's ranked better than 7? | CREATE TABLE table_name_81 (team VARCHAR, rank VARCHAR, rider VARCHAR) |
SELECT cfl_team FROM table_20170644_1 WHERE position = "OL" | What team was in position OL? | CREATE TABLE table_20170644_1 (cfl_team VARCHAR, position VARCHAR) |
SELECT date FROM table_name_14 WHERE fastest_lap = "jody scheckter" AND race = "french grand prix" | Tell me the date for jody scheckter being the fastest lap at the french grand prix | CREATE TABLE table_name_14 (
date VARCHAR,
fastest_lap VARCHAR,
race VARCHAR
) |
SELECT AVG(drop_zone) AS Time FROM table_name_22 WHERE drop_zone = "n" AND troop_carrier_group = "1st pathfinder prov." | What is the average drop zone time in the N drop zone for the 1st Pathfinder Prov.? | CREATE TABLE table_name_22 (drop_zone INTEGER, troop_carrier_group VARCHAR) |
SELECT player FROM table_20170644_1 WHERE cfl_team = "Hamilton Tiger-Cats (via BC via Saskatchewan )" | Who was the player for the CFL team hamilton tiger-cats (via bc via saskatchewan )? | CREATE TABLE table_20170644_1 (player VARCHAR, cfl_team VARCHAR) |
SELECT tournament FROM table_name_53 WHERE opponents_in_the_final = "andrei pavel rogier wassen" | Tell me the tournament for opponents of andrei pavel rogier wassen | CREATE TABLE table_name_53 (
tournament VARCHAR,
opponents_in_the_final VARCHAR
) |
SELECT uk_base FROM table_name_42 WHERE airborne_unit = "pathfinders" | Which UK Base has an airborne unit of Pathfinders? | CREATE TABLE table_name_42 (uk_base VARCHAR, airborne_unit VARCHAR) |
SELECT MAX(pick__number) FROM table_20170644_1 WHERE cfl_team = "BC Lions (via Hamilton via Winnipeg )" | What number pick did the CFL team bc lions (via hamilton via winnipeg ) have? | CREATE TABLE table_20170644_1 (pick__number INTEGER, cfl_team VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Ac infect polyneuritis" AND lab.flag = "delta" | count the number of patients whose diagnoses short title is ac infect polyneuritis and lab test abnormal status is delta? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT high_assists FROM table_name_94 WHERE game = 1 | What was the number of high assists for game 1? | CREATE TABLE table_name_94 (high_assists VARCHAR, game VARCHAR) |
SELECT COUNT(release_date) FROM table_20174050_1 WHERE story__number = 7 | How many different release dates are there for the audio book with a story number 7? | CREATE TABLE table_20174050_1 (release_date VARCHAR, story__number VARCHAR) |
SELECT record FROM table_name_70 WHERE game = 37 | What was the record after game 37? | CREATE TABLE table_name_70 (
record VARCHAR,
game VARCHAR
) |
SELECT chief_judge FROM table_name_35 WHERE reason_for_termination = "retirement" | Tell me the chief judge which has reason for termination of retirement | CREATE TABLE table_name_35 (chief_judge VARCHAR, reason_for_termination VARCHAR) |
SELECT title FROM table_20174050_1 WHERE story__number = 91 | What's the title of the audio book with story number 91? | CREATE TABLE table_20174050_1 (title VARCHAR, story__number VARCHAR) |
SELECT MAX(played) FROM table_name_27 WHERE against > 14 AND lost = 3 | What was the highest number of games played when they had over 14 against and 3 losses? | CREATE TABLE table_name_27 (
played INTEGER,
against VARCHAR,
lost VARCHAR
) |
SELECT high_assists FROM table_name_41 WHERE high_rebounds = "boozer (13)" | For boozer (13) what is the high assists and high rebounds? | CREATE TABLE table_name_41 (high_assists VARCHAR, high_rebounds VARCHAR) |
SELECT release_date FROM table_20174050_1 WHERE target__number = "069 69" | When was the audio book with target number 069 69 released? | CREATE TABLE table_20174050_1 (release_date VARCHAR, target__number VARCHAR) |
SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'adefovir dipivoxil' AND STRFTIME('%y', prescriptions.startdate) <= '2104' | what was the number of times the adefovir dipivoxil was prescribed until 2104? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate... |
SELECT score FROM table_name_40 WHERE game < 4 AND high_points = "williams (28)" | What is the score for the game that is less than 4 and a high points of williams (28)? | CREATE TABLE table_name_40 (score VARCHAR, game VARCHAR, high_points VARCHAR) |
SELECT format FROM table_20174050_1 WHERE title = "The Mind Robber" | What's the format of the audio book titled The Mind Robber? | CREATE TABLE table_20174050_1 (format VARCHAR, title VARCHAR) |
SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear >= "2184" | what is the maximum age of married patients whose admission year is in or after 2184? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT athlete FROM table_name_1 WHERE round_3 = "did not advance" AND event = "76 kg" | Which athlete in the 76 kg class, did not advance at the end of Round 3. | CREATE TABLE table_name_1 (athlete VARCHAR, round_3 VARCHAR, event VARCHAR) |
SELECT reader FROM table_20174050_24 WHERE author = "Cole, Stephen Stephen Cole" AND release_date = "2008-11-13 13 November 2008" | who is the reader of the audiobook authored by cole, stephen stephen cole and released on 2008-11-13 13 november 2008 | CREATE TABLE table_20174050_24 (reader VARCHAR, author VARCHAR, release_date VARCHAR) |
SELECT "Country" FROM table_76437 WHERE "Total" < '290' AND "Year(s) won" = '1960' | What is Country, when Total is less than 290, and when Year(s) Won is 1960? | CREATE TABLE table_76437 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) |
SELECT owner FROM table_name_99 WHERE post_position < 4 AND jockey = "todd pletcher" | Who owns the horse with a post position of less than 4 with jockey todd pletcher? | CREATE TABLE table_name_99 (owner VARCHAR, post_position VARCHAR, jockey VARCHAR) |
SELECT COUNT(company) FROM table_20174050_24 WHERE title = "Deadly Download" | how many companies released an audiobook titled deadly download | CREATE TABLE table_20174050_24 (company VARCHAR, title VARCHAR) |
SELECT COUNT(*), T1.director FROM movie AS T1 JOIN rating AS T2 ON T1.mid = T2.mid GROUP BY T1.director | For each director, how many reviews have they received? | CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
) |
SELECT jockey FROM table_name_50 WHERE horse_name = "hard spun" | What jockey is on hard spun? | CREATE TABLE table_name_50 (jockey VARCHAR, horse_name VARCHAR) |
SELECT company FROM table_20174050_24 WHERE release_date = "2010-11-04 4 November 2010" | which companies released on 2010-11-04 4 november 2010 | CREATE TABLE table_20174050_24 (company VARCHAR, release_date VARCHAR) |
SELECT opponent FROM table_name_34 WHERE location = "boston garden" AND record = "58-23" | Location of boston garden, and a Record of 58-23 involved what opponent? | CREATE TABLE table_name_34 (
opponent VARCHAR,
location VARCHAR,
record VARCHAR
) |
SELECT horse_name FROM table_name_84 WHERE jockey = "todd pletcher" AND post_time_odds = "14.20-1" | What horse does todd pletcher ride with odds of 14.20-1? | CREATE TABLE table_name_84 (horse_name VARCHAR, jockey VARCHAR, post_time_odds VARCHAR) |
SELECT company FROM table_20174050_24 WHERE author = "Day, Martin Martin Day" | which company released audiobooks authored by day, martin martin day | CREATE TABLE table_20174050_24 (company VARCHAR, author VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%hyderabad%' OR UPPER(Location) LIKE '%HYDERABAD' ORDER BY Reputation DESC LIMIT 50 | Top 50 Users from Hyderabad. | CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number... |
SELECT owner FROM table_name_87 WHERE lengths_behind = "5½" | Who the Owner that has a Lengths Behind of 5½? | CREATE TABLE table_name_87 (owner VARCHAR, lengths_behind VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.