answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT winter_olympics FROM table_174491_1 WHERE fis_nordic_world_ski_championships = "1982" | In what year did the winner of the FIS championship in 1982 win the Winter Olympics? | CREATE TABLE table_174491_1 (winter_olympics VARCHAR, fis_nordic_world_ski_championships VARCHAR) |
SELECT characteristic_name, other_characteristic_details, characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id | What are the names, details and data types of the characteristics which are never used by any product? | CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (characteristic_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR... |
SELECT date_from, date_to FROM project_staff WHERE project_id IN (SELECT project_id FROM project_staff GROUP BY project_id ORDER BY COUNT(*) DESC LIMIT 1) UNION SELECT date_from, date_to FROM project_staff WHERE role_code = 'leader' | From what date and to what date do the staff work on a project that has the most staff and has staff in a leader role? | CREATE TABLE document_types (
document_type_code text,
document_description text
)
CREATE TABLE projects (
project_id number,
organisation_id number,
project_details text
)
CREATE TABLE research_outcomes (
outcome_code text,
outcome_description text
)
CREATE TABLE grants (
grant_id nu... |
SELECT winter_olympics FROM table_174491_1 WHERE winner = "Thorleif Haug" | What year did Thorleif Haug win the Winter Olympics? | CREATE TABLE table_174491_1 (winter_olympics VARCHAR, winner VARCHAR) |
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name HAVING COUNT(*) >= 2 | What are characteristic names used at least twice across all products? | CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.admityear < "2150" | get the number of white-russian patients admitted before the year 2150. | 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 fis_nordic_world_ski_championships FROM table_174491_1 WHERE country = "Norway" AND holmenkollen = "1958" | What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Championships? | CREATE TABLE table_174491_1 (fis_nordic_world_ski_championships VARCHAR, country VARCHAR, holmenkollen VARCHAR) |
SELECT COUNT(*) FROM Ref_colors WHERE NOT color_code IN (SELECT color_code FROM products) | How many colors are never used by any product? | CREATE TABLE products (color_code VARCHAR); CREATE TABLE Ref_colors (color_code VARCHAR) |
SELECT * FROM table_train_233 WHERE hemoglobin_a1c_hba1c >= 6.5 AND hemoglobin_a1c_hba1c <= 8 | hba1c of 6.5 to 8 | CREATE TABLE table_train_233 (
"id" int,
"serum_bicarbonate" int,
"language" string,
"hemoglobin_a1c_hba1c" float,
"creatinine_clearance_cl" float,
"admission_blood_glucose" int,
"urine_albumin" int,
"ketoacidosis" bool,
"age" float,
"NOUSE" float
) |
SELECT holmenkollen FROM table_174491_2 WHERE fis_nordic_world_ski_championships = "1982" | What is the holmenkollen for the 1982 FIS Nordic World Ski Championships? | CREATE TABLE table_174491_2 (holmenkollen VARCHAR, fis_nordic_world_ski_championships VARCHAR) |
SELECT COUNT(*) FROM event | How many events are there? | CREATE TABLE event (Id VARCHAR) |
SELECT to_par FROM table_name_96 WHERE place = "t3" AND country = "england" | What to par has t3 as the place and england as the country? | CREATE TABLE table_name_96 (
to_par VARCHAR,
place VARCHAR,
country VARCHAR
) |
SELECT fis_nordic_world_ski_championships FROM table_174491_2 WHERE winner = "Birger Ruud" | What years did Birger Ruud win the FIS Nordic World Ski Championships? | CREATE TABLE table_174491_2 (fis_nordic_world_ski_championships VARCHAR, winner VARCHAR) |
SELECT name FROM event ORDER BY YEAR DESC | List all the event names by year from the most recent to the oldest. | CREATE TABLE event (name VARCHAR, YEAR VARCHAR) |
SELECT COUNT(round) FROM table_name_49 WHERE pick__number = 129 | What is the total round of the 129 pick? | CREATE TABLE table_name_49 (
round VARCHAR,
pick__number VARCHAR
) |
SELECT winter_olympics FROM table_174491_2 WHERE winner = "Karl Schnabl" | What year did Karl Schnabl win the Winter Olympics? | CREATE TABLE table_174491_2 (winter_olympics VARCHAR, winner VARCHAR) |
SELECT name FROM event ORDER BY YEAR DESC LIMIT 1 | What is the name of the event that happened in the most recent year? | CREATE TABLE event (name VARCHAR, YEAR VARCHAR) |
SELECT purchase_details, COUNT(purchase_details) FROM Purchases AS T1 JOIN Transactions AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 GROUP BY purchase_details ORDER BY purchase_details DESC | What are the purchase details of transactions with amount bigger than 10000, and count them by a bar chart, order by the bar from high to low. | CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_... |
SELECT fis_nordic_world_ski_championships FROM table_174491_2 WHERE holmenkollen = "1976" | What is the FIS Nordic World Ski Championships when holmenkollen is 1976? | CREATE TABLE table_174491_2 (fis_nordic_world_ski_championships VARCHAR, holmenkollen VARCHAR) |
SELECT COUNT(*) FROM stadium | How many stadiums are there? | CREATE TABLE stadium (Id VARCHAR) |
SELECT Title FROM Posts ORDER BY ClosedDate DESC LIMIT 100 | Top 100 most recent closed posts. Demo for R package RStackExchange | 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 winter_olympics FROM table_174491_2 WHERE holmenkollen = "1957, 1960" | What year is Winter Olympics when Holmenkollen is 1957, 1960? | CREATE TABLE table_174491_2 (winter_olympics VARCHAR, holmenkollen VARCHAR) |
SELECT name FROM stadium ORDER BY capacity DESC LIMIT 1 | Find the name of the stadium that has the maximum capacity. | CREATE TABLE stadium (name VARCHAR, capacity VARCHAR) |
SELECT * FROM table_test_16 WHERE renal_disease = 1 OR (creatinine_clearance_cl > 1.7 OR estimated_glomerular_filtration_rate_egfr < 35) | moderate to severe renal impairment ( crea level > 1.7 mg / dl or glomerular filtration rate < 35 ml / min ) . | CREATE TABLE table_test_16 (
"id" int,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"severe_hypertension" bool,
"adrenaline" bool,
"stroke" bool,
"renal_disease" bool,
"severe_uncontrolled_arterial_hypertension" bool,
"hepatic_disease" bool,
"... |
SELECT part_4 FROM table_1745843_7 WHERE part_3 = "borgen" | What's the part 4 for the verb whose part 3 is borgen? | CREATE TABLE table_1745843_7 (part_4 VARCHAR, part_3 VARCHAR) |
SELECT name FROM stadium WHERE capacity < (SELECT AVG(capacity) FROM stadium) | Find the names of stadiums whose capacity is smaller than the average capacity. | CREATE TABLE stadium (name VARCHAR, capacity INTEGER) |
SELECT COUNT(*) FROM table_204_946 WHERE "laps" = 225 | how many finished all 225 laps ? | CREATE TABLE table_204_946 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) |
SELECT verb_meaning FROM table_1745843_7 WHERE part_1 = "slapen" | What's the meaning of the verb whose part 1 is slapen? | CREATE TABLE table_1745843_7 (verb_meaning VARCHAR, part_1 VARCHAR) |
SELECT country FROM stadium GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 | Find the country that has the most stadiums. | CREATE TABLE stadium (country VARCHAR) |
SELECT height_ft__m_ FROM table_name_44 WHERE floors = 22 AND year = 1985 | How tall is the building built in 1985 with 22 floors? | CREATE TABLE table_name_44 (
height_ft__m_ VARCHAR,
floors VARCHAR,
year VARCHAR
) |
SELECT class FROM table_1745843_7 WHERE part_4 = "gelopen" | In what class does the verb with part 4 gelopen belong to? | CREATE TABLE table_1745843_7 (class VARCHAR, part_4 VARCHAR) |
SELECT country FROM stadium GROUP BY country HAVING COUNT(*) <= 3 | Which country has at most 3 stadiums listed? | CREATE TABLE stadium (country VARCHAR) |
SELECT team FROM table_name_46 WHERE game = 38 | What is the Team in Game 38? | CREATE TABLE table_name_46 (
team VARCHAR,
game VARCHAR
) |
SELECT part_1 FROM table_1745843_7 WHERE part_4 = "gevroren" | What's part 1 of the verb whose part 4 is gevroren? | CREATE TABLE table_1745843_7 (part_1 VARCHAR, part_4 VARCHAR) |
SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000 | Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000? | CREATE TABLE stadium (country VARCHAR, capacity INTEGER) |
SELECT "Date" FROM table_37479 WHERE "Result" = 'w' AND "Score" = '3-0' | Which Date has a Result of w, and a Score of 3-0? | CREATE TABLE table_37479 (
"Date" text,
"City" text,
"Result" text,
"Score" text,
"Competition" text
) |
SELECT COUNT(verb_meaning) FROM table_1745843_7 WHERE part_4 = "gegeven" | How many different meanings does the verb with part 4 gegeven have? | CREATE TABLE table_1745843_7 (verb_meaning VARCHAR, part_4 VARCHAR) |
SELECT COUNT(DISTINCT city) FROM stadium WHERE opening_year < 2006 | How many cities have a stadium that was opened before the year of 2006? | CREATE TABLE stadium (city VARCHAR, opening_year INTEGER) |
SELECT Comments.Id AS "comment_link", Comments.UserId AS "user_link", Posts.ClosedDate AS Closed, Comments.CreationDate FROM Comments INNER JOIN Posts ON Comments.PostId = Posts.Id WHERE (LOWER(Text) LIKE '%@downvoter%' OR LOWER(Text) LIKE '%downvoter%' OR LOWER(Text) LIKE '%the downvote%' OR LOWER(Text) LIKE '%downvot... | Comments asking the downvoter to explain. | CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDa... |
SELECT part_3 FROM table_1745843_7 WHERE part_4 = "gelopen" | What's the part 3 of the verb with part 4 gelopen? | CREATE TABLE table_1745843_7 (part_3 VARCHAR, part_4 VARCHAR) |
SELECT country, COUNT(*) FROM stadium GROUP BY country | How many stadiums does each country have? | CREATE TABLE stadium (country VARCHAR) |
SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC | Show different nominees and the number of musicals they have been nominated Plot them as bar chart, and could you order the total number in desc order? | CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
) |
SELECT COUNT(class) FROM table_1745843_6 WHERE part_3 = "lucon" | How many different classes of verbs are there whose part 3 is lucon? | CREATE TABLE table_1745843_6 (class VARCHAR, part_3 VARCHAR) |
SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006 | Which countries do not have a stadium that was opened after 2006? | CREATE TABLE stadium (country VARCHAR, opening_year INTEGER) |
SELECT MIN(points) FROM table_name_96 WHERE year = 2004 | What are the lowest points in 2004? | CREATE TABLE table_name_96 (
points INTEGER,
year VARCHAR
) |
SELECT class FROM table_1745843_6 WHERE part_1 = "lesan" | What's the class of the verb whose part 1 is lesan? | CREATE TABLE table_1745843_6 (class VARCHAR, part_1 VARCHAR) |
SELECT COUNT(*) FROM stadium WHERE country <> 'Russia' | How many stadiums are not in country "Russia"? | CREATE TABLE stadium (country VARCHAR) |
SELECT "one mora" FROM table_66921 WHERE "three-mora word" = '/kaze/ [kázé]' | What is the one mora for the three-mora word /kaze/ [k z ]? | CREATE TABLE table_66921 (
"!accented mora" text,
"one mora" text,
"two-mora word" text,
"three-mora word" text,
"gloss" text
) |
SELECT COUNT(part_3) FROM table_1745843_6 WHERE verb_meaning = "to freeze" | How many different part 3 verbs are there that mean to freeze? | CREATE TABLE table_1745843_6 (part_3 VARCHAR, verb_meaning VARCHAR) |
SELECT name FROM swimmer ORDER BY meter_100 | Find the names of all swimmers, sorted by their 100 meter scores in ascending order. | CREATE TABLE swimmer (name VARCHAR, meter_100 VARCHAR) |
SELECT SUM(allsvenskan_titles) FROM table_name_78 WHERE stars_symbolizes = "number of swedish championship titles" AND club = "aik" AND introduced > 2000 | How many allsvenskan titles did club aik have after its introduction after 2000, with stars symbolizing the number of swedish championship titles ? | CREATE TABLE table_name_78 (
allsvenskan_titles INTEGER,
introduced VARCHAR,
stars_symbolizes VARCHAR,
club VARCHAR
) |
SELECT part_3 FROM table_1745843_6 WHERE class = "4" | What's the part 3 of the verb whose class is 4? | CREATE TABLE table_1745843_6 (part_3 VARCHAR, class VARCHAR) |
SELECT COUNT(DISTINCT nationality) FROM swimmer | How many different countries are all the swimmers from? | CREATE TABLE swimmer (nationality VARCHAR) |
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'upper respiratory obstruction') | tell me the cost of a upper respiratory obstruction diagnosis? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... |
SELECT part_3 FROM table_1745843_6 WHERE class = "5" | What's the part 3 of the verb in class 5? | CREATE TABLE table_1745843_6 (part_3 VARCHAR, class VARCHAR) |
SELECT nationality, COUNT(*) FROM swimmer GROUP BY nationality HAVING COUNT(*) > 1 | List countries that have more than one swimmer. | CREATE TABLE swimmer (nationality VARCHAR) |
SELECT Id AS "post_link", OwnerUserId, OwnerDisplayName, CommunityOwnedDate FROM Posts WHERE Id = '##PostId##' | Can you really own things?. | CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId n... |
SELECT class FROM table_1745843_5 WHERE part_2 = "laug" | What is the class of the word who's second participle is laug? | CREATE TABLE table_1745843_5 (class VARCHAR, part_2 VARCHAR) |
SELECT meter_200, meter_300 FROM swimmer WHERE nationality = 'Australia' | Find all 200 meter and 300 meter results of swimmers with nationality "Australia". | CREATE TABLE swimmer (meter_200 VARCHAR, meter_300 VARCHAR, nationality VARCHAR) |
SELECT SUM(year) FROM table_name_54 WHERE date = "september 26" | In what Year was the Game on September 26? | CREATE TABLE table_name_54 (
year INTEGER,
date VARCHAR
) |
SELECT verb_meaning FROM table_1745843_5 WHERE class = "6" | What is the meaning of the class 6 verbs? | CREATE TABLE table_1745843_5 (verb_meaning VARCHAR, class VARCHAR) |
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' | Find the names of swimmers who has a result of "win". | CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR) |
SELECT date FROM table_name_68 WHERE year < 1988 AND loser = "philadelphia eagles" AND location = "giants stadium" AND result = "21-0" | Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0? | CREATE TABLE table_name_68 (
date VARCHAR,
result VARCHAR,
location VARCHAR,
year VARCHAR,
loser VARCHAR
) |
SELECT part_3 FROM table_1745843_5 WHERE part_2 = "band" | What is the 3rd participle of the verb whose 2nd participle is band? | CREATE TABLE table_1745843_5 (part_3 VARCHAR, part_2 VARCHAR) |
SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of the stadium which held the most events? | CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (stadium_id VARCHAR) |
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures ... | in the previous year, what are the top three most frequently prescribed drugs to patients in the same month after receiving other gastrostomy? | CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE procedures_icd (
row_id number,
su... |
SELECT part_1 FROM table_1745843_5 WHERE part_4 = "haitans" | What is the 1st participle of the verb whose 4th participle is haitans? | CREATE TABLE table_1745843_5 (part_1 VARCHAR, part_4 VARCHAR) |
SELECT t1.name, t1.capacity FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id WHERE t2.name = 'World Junior' | Find the name and capacity of the stadium where the event named "World Junior" happened. | CREATE TABLE event (stadium_id VARCHAR, name VARCHAR); CREATE TABLE stadium (name VARCHAR, capacity VARCHAR, id VARCHAR) |
SELECT gender FROM table_name_63 WHERE name = "elsthorpe school" | Name the gender for elsthorpe school | CREATE TABLE table_name_63 (
gender VARCHAR,
name VARCHAR
) |
SELECT part_4 FROM table_1745843_2 WHERE part_2 = "*lauk" | For part 2 *lauk, what is listed for part 4? | CREATE TABLE table_1745843_2 (part_4 VARCHAR, part_2 VARCHAR) |
SELECT name FROM stadium WHERE NOT id IN (SELECT stadium_id FROM event) | Find the names of stadiums which have never had any event. | CREATE TABLE stadium (name VARCHAR, id VARCHAR, stadium_id VARCHAR); CREATE TABLE event (name VARCHAR, id VARCHAR, stadium_id VARCHAR) |
SELECT "Founded" FROM table_16916 WHERE "Color" = 'Navy Blue' | What was the founding of navy blue? | CREATE TABLE table_16916 (
"Institution" text,
"Nickname" text,
"Status" text,
"Founded" real,
"Color" text,
"Location" text
) |
SELECT verb_meaning FROM table_1745843_2 WHERE part_3 = "*bundun" | What is the verb meaning for *bundun? | CREATE TABLE table_1745843_2 (verb_meaning VARCHAR, part_3 VARCHAR) |
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY COUNT(*) DESC LIMIT 1 | Find the name of the swimmer who has the most records. | CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR) |
SELECT Sex, COUNT(*) FROM people WHERE Weight > 85 GROUP BY Sex ORDER BY Sex | Count the number of people of each sex who have a weight higher than 85 by a bar chart, and I want to order by the X in asc. | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... |
SELECT part_3 FROM table_1745843_2 WHERE part_2 = "*raid" | For part 2 *raid, what is listed for part 3? | CREATE TABLE table_1745843_2 (part_3 VARCHAR, part_2 VARCHAR) |
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING COUNT(*) >= 2 | Find the name of the swimmer who has at least 2 records. | CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR) |
SELECT "No. in season" FROM table_16102 WHERE "Title" = 'The Northern Uprising' | What episode number of the season was 'The Northern Uprising'? | CREATE TABLE table_16102 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Setting" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) |
SELECT part_2 FROM table_1745843_2 WHERE part_4 = "*ridanaz" | What word is listed under part 2 for part 4 *ridanaz? | CREATE TABLE table_1745843_2 (part_2 VARCHAR, part_4 VARCHAR) |
SELECT t1.name, t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' GROUP BY t2.swimmer_id HAVING COUNT(*) > 1 | Find the name and nationality of the swimmer who has won (i.e., has a result of "win") more than 1 time. | CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, nationality VARCHAR, id VARCHAR) |
SELECT "Translation" FROM table_26383 WHERE "IPA ( Rio de Janeiro )" = 'ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə' | What is the original of the ipa ( rio de janeiro )translation ki mo t a w n t t i t n ? | CREATE TABLE table_26383 (
"Original" text,
"IPA ( Lisbon )" text,
"IPA ( Rio de Janeiro )" text,
"IPA ( S\u00e3o Paulo )" text,
"IPA ( Santiago de Compostela )" text,
"Translation" text
) |
SELECT part_1 FROM table_1745843_2 WHERE class = "3b" | What is listed under part 1 for class 3b? | CREATE TABLE table_1745843_2 (part_1 VARCHAR, class VARCHAR) |
SELECT name FROM swimmer WHERE NOT id IN (SELECT swimmer_id FROM record) | Find the names of the swimmers who have no record. | CREATE TABLE swimmer (name VARCHAR, id VARCHAR, swimmer_id VARCHAR); CREATE TABLE record (name VARCHAR, id VARCHAR, swimmer_id VARCHAR) |
SELECT qual FROM table_name_9 WHERE rank = "9" | What is the qual with a rank 9? | CREATE TABLE table_name_9 (
qual VARCHAR,
rank VARCHAR
) |
SELECT class FROM table_1745843_10 WHERE part_4 = "frosinn" | What class is the verb wich its part 4 is frosinn | CREATE TABLE table_1745843_10 (class VARCHAR, part_4 VARCHAR) |
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Win' INTERSECT SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE RESULT = 'Loss' | Find the names of the swimmers who have both "win" and "loss" results in the record. | CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR) |
SELECT questions.Id AS "post_link", Votes.UserId AS "user_link", 'site://posts/' + CAST(questions.Id AS TEXT) + '/timeline|timeline' AS "Timeline link", COUNT(*) AS "Number of bounties" FROM Posts AS questions LEFT JOIN Votes AS votes ON Votes.PostId = questions.Id WHERE Votes.VoteTypeId = 8 GROUP BY questions.Id, Vote... | Questions with multiple bounties by the same user. | CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConce... |
SELECT class FROM table_1745843_10 WHERE part_3 = "heldu" | What class is the verb wich its part 3 is heldu | CREATE TABLE table_1745843_10 (class VARCHAR, part_3 VARCHAR) |
SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia' | Find the names of stadiums that some Australian swimmers have been to. | CREATE TABLE swimmer (id VARCHAR, nationality VARCHAR); CREATE TABLE record (swimmer_id VARCHAR, event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (id VARCHAR, stadium_id VARCHAR) |
SELECT Name, Age FROM artist ORDER BY Age | What are the names and ages of artists? Show the result in a bar graph, and sort by the total number in ascending. | CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real... |
SELECT part_1 FROM table_1745843_10 WHERE class = "7b" | What is part 1 of the verb in class 7b | CREATE TABLE table_1745843_10 (part_1 VARCHAR, class VARCHAR) |
SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id = t2.id JOIN stadium AS t3 ON t3.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1 | Find the names of stadiums that the most swimmers have been to. | CREATE TABLE record (event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (stadium_id VARCHAR, id VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "LEVOBASE3" | provide the number of patients whose drug code is levobase3? | 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,... |
SELECT part_3 FROM table_1745843_10 WHERE class = "4" | What is part 1 of the verb in class 4 | CREATE TABLE table_1745843_10 (part_3 VARCHAR, class VARCHAR) |
SELECT * FROM swimmer | Find all details for each swimmer. | CREATE TABLE swimmer (Id VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND procedures.icd9_code = "3950" | count the number of patients whose ethnicity is hispanic or latino and procedure icd9 code is 3950? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... |
SELECT COUNT(part_4) FROM table_1745843_10 WHERE verb_meaning = "to bear" | How many verbs mean to bear | CREATE TABLE table_1745843_10 (part_4 VARCHAR, verb_meaning VARCHAR) |
SELECT AVG(capacity) FROM stadium WHERE opening_year = 2005 | What is the average capacity of the stadiums that were opened in year 2005? | CREATE TABLE stadium (capacity INTEGER, opening_year VARCHAR) |
SELECT demographic.marital_status, demographic.dob FROM demographic WHERE demographic.subject_id = "92796" | what is marital status and date of birth of subject id 92796? | 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 COUNT(part_1) FROM table_1745843_10 WHERE verb_meaning = "to grow, to produce" | How many verbs mean to grow, to produce | CREATE TABLE table_1745843_10 (part_1 VARCHAR, verb_meaning VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.