answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT driver FROM table_name_91 WHERE grid > 5 AND laps = 28 | What Driver has 28 Laps and a Grid greater than 5? | CREATE TABLE table_name_91 (driver VARCHAR, grid VARCHAR, laps VARCHAR) |
SELECT MAX(q1_order) FROM table_1706942_1 WHERE driver = "Felipe Massa" | What is the Q1 order for Felipe Massa? | CREATE TABLE table_1706942_1 (q1_order INTEGER, driver VARCHAR) |
SELECT "country" FROM table_204_439 WHERE "country" IN ('germany', 'russia') ORDER BY "total" LIMIT 1 | which team was faster : germany or russia ? | CREATE TABLE table_204_439 (
id number,
"rank" number,
"bib" number,
"country" text,
"athletes" text,
"run 1" text,
"run 2" text,
"run 3" text,
"run 4" text,
"total" text,
"behind" number
) |
SELECT MAX(laps) FROM table_name_80 WHERE time_retired = "wheel" | What is the highest Laps with a Time/Retired Wheel? | CREATE TABLE table_name_80 (laps INTEGER, time_retired VARCHAR) |
SELECT q1_time FROM table_1706942_1 WHERE q1_order = 6 | What is the Q1 time for the driver with Q1 order of 6? | CREATE TABLE table_1706942_1 (q1_time VARCHAR, q1_order VARCHAR) |
SELECT "Bronze" FROM table_37011 WHERE "Gold" = 'kim woo-jin' | What's the Bronze that's also got a Godl of Kim Woo-Jin? | CREATE TABLE table_37011 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
) |
SELECT driver FROM table_name_86 WHERE time_retired = "+1.027" | What Driver has a +1.027 Time/Retired? | CREATE TABLE table_name_86 (driver VARCHAR, time_retired VARCHAR) |
SELECT COUNT(q1_order) FROM table_1706942_1 WHERE driver = "Alexander Wurz" | How many Q1 figures are given for Alexander Wurz? | CREATE TABLE table_1706942_1 (q1_order VARCHAR, driver VARCHAR) |
SELECT metal FROM table_name_84 WHERE element = "heavenly stems" | Which Metal has an Element of heavenly stems? | CREATE TABLE table_name_84 (
metal VARCHAR,
element VARCHAR
) |
SELECT result FROM table_name_78 WHERE score = "44-20" | What game has a score of 44-20? | CREATE TABLE table_name_78 (result VARCHAR, score VARCHAR) |
SELECT high_assists FROM table_17060277_5 WHERE game = 12 | Who all had the most assists in game 12? | CREATE TABLE table_17060277_5 (high_assists VARCHAR, game VARCHAR) |
SELECT vitalperiodic.systemicsystolic FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-849')) AND NOT vitalperiodic.systemicsystolic ... | what was the last systemicsystolic value patient 007-849 had since 12/27/2105? | 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 vitalperiodi... |
SELECT date FROM table_name_67 WHERE venue = "headingley stadium" | What date was a game played at Headingley Stadium? | CREATE TABLE table_name_67 (date VARCHAR, venue VARCHAR) |
SELECT position FROM table_1708014_1 WHERE winnings = "$4,228,889" | Which position offers winnings of $4,228,889? | CREATE TABLE table_1708014_1 (position VARCHAR, winnings VARCHAR) |
SELECT "final" FROM table_203_507 WHERE "player" = 'karl behting' | karl behting and giovanni cenni each had final scores of what ? | CREATE TABLE table_203_507 (
id number,
"#" text,
"player" text,
"\u03c3 points" number,
"qual." number,
"final" number
) |
SELECT competition FROM table_name_84 WHERE venue = "shay stadium" | What competition was played at Shay Stadium? | CREATE TABLE table_name_84 (competition VARCHAR, venue VARCHAR) |
SELECT poles FROM table_1708014_1 WHERE team_s_ = "#14 Ginn Racing" | How many poles did team #14 ginn racing have? | CREATE TABLE table_1708014_1 (poles VARCHAR, team_s_ VARCHAR) |
SELECT DISTINCT flight.departure_time 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 = 'SAN FRANCISCO' AND date_day.day_number = 20 AND date_day.month_num... | please give me the flight times the morning on UA for 9 20 from PHILADELPHIA to SAN FRANCISCO | CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
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... |
SELECT show FROM table_name_45 WHERE year < 2011 AND episode_title = "part 3" | Which show had a part 3 before 2011? | CREATE TABLE table_name_45 (show VARCHAR, year VARCHAR, episode_title VARCHAR) |
SELECT winnings FROM table_1708014_1 WHERE poles = 0 AND position = "14th" | When the poles are 0 and the position is 14th, how much are the winnings? | CREATE TABLE table_1708014_1 (winnings VARCHAR, poles VARCHAR, position VARCHAR) |
SELECT mon_30_may FROM table_29218221_1 WHERE fri_3_june = "17' 13.46 131.431mph" | What is the Mon 30 May time for the rider whose Fri 3 June time was 17' 13.46 131.431mph? | CREATE TABLE table_29218221_1 (
mon_30_may VARCHAR,
fri_3_june VARCHAR
) |
SELECT books FROM table_name_23 WHERE gender = "male" AND animal_name = "bounder" | What are the male Bounder books? | CREATE TABLE table_name_23 (books VARCHAR, gender VARCHAR, animal_name VARCHAR) |
SELECT starts FROM table_1708014_1 WHERE winnings = "$1,301,370" | Which start won $1,301,370? | CREATE TABLE table_1708014_1 (starts VARCHAR, winnings VARCHAR) |
SELECT COUNT(grid) FROM table_name_39 WHERE time_retired = "+1:21.239" AND laps > 25 | How many grids have a time of +1:21.239 and more than 25 laps? | CREATE TABLE table_name_39 (
grid VARCHAR,
time_retired VARCHAR,
laps VARCHAR
) |
SELECT COUNT(attendance) FROM table_name_75 WHERE date = "april 12" | How many people attended on April 12? | CREATE TABLE table_name_75 (attendance VARCHAR, date VARCHAR) |
SELECT MAX(top_5) FROM table_1708014_1 WHERE top_10 = 5 AND team_s_ = "#40 Chip Ganassi Racing" | For team #40 chip ganassi racing which top 5 is the highest where top 10 is 5? | CREATE TABLE table_1708014_1 (top_5 INTEGER, top_10 VARCHAR, team_s_ VARCHAR) |
SELECT TagName, COUNT(p.TagId) AS "Uses", 200 - COUNT(p.TagId) AS "Questions Needed WITH this Tag Left" FROM Tags AS t INNER JOIN PostTags AS p ON p.TagId = t.Id GROUP BY t.TagName ORDER BY Uses DESC LIMIT 40 | Is the site ready for the Generalist Badge?. Lists the top 40 tags, how many times they're used each, and how many questions are needed with that tag so that the Site is eligible for the Generalist badge | CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate tim... |
SELECT date FROM table_name_10 WHERE no_built = 5 AND wheels = "4-4-2t" | On what date were 5 built with 4-4-2t wheels? | CREATE TABLE table_name_10 (date VARCHAR, no_built VARCHAR, wheels VARCHAR) |
SELECT position FROM table_1708014_2 WHERE starts = 3 | what is the posisiotn where the start is 3? | CREATE TABLE table_1708014_2 (position VARCHAR, starts VARCHAR) |
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code DESC | For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the sum of code , and group by attribute name, and sort Y-axis in descending order. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
SELECT date FROM table_name_70 WHERE loco_nos = "421-6" | On what date was the number of locomotives 421-6? | CREATE TABLE table_name_70 (date VARCHAR, loco_nos VARCHAR) |
SELECT team_s_ FROM table_1708014_2 WHERE winnings = "$81,690" | what is the team where winnings is $81,690? | CREATE TABLE table_1708014_2 (team_s_ VARCHAR, winnings VARCHAR) |
SELECT MAX("Week") FROM table_78396 WHERE "Result" = 'w 34-21' | When is the last week that has a result of a w 34-21? | CREATE TABLE table_78396 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) |
SELECT no_built FROM table_name_17 WHERE loco_nos = "11-20" | How many were built with a locomotive number of 11-20? | CREATE TABLE table_name_17 (no_built VARCHAR, loco_nos VARCHAR) |
SELECT location_attendance FROM table_17080868_7 WHERE team = "Indiana" | What was the attendance of the Indiana game? | CREATE TABLE table_17080868_7 (location_attendance VARCHAR, team VARCHAR) |
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'dvt - related to vascular catheter') | how much is the cost of a dvt - related to vascular catheter diagnosis? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid... |
SELECT date FROM table_name_38 WHERE wheels = "4-4-2" AND no_built > 5 | On what date were more than 5 built with 4-4-2 wheels? | CREATE TABLE table_name_38 (date VARCHAR, wheels VARCHAR, no_built VARCHAR) |
SELECT trans_2 FROM table_17085947_32 WHERE bike__40km_ = "58:20" | What is the trans 2 duration if the biking stage is covered within 58:20? | CREATE TABLE table_17085947_32 (trans_2 VARCHAR, bike__40km_ VARCHAR) |
SELECT COUNT(instructor.name), instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'UP' AND course.number = 263 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = cour... | Who should I expect to be the UP 263 instructor ? | CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar... |
SELECT date FROM table_name_48 WHERE no_built < 10 AND loco_nos = "31-35" | On what date were less than 10 built with a locomotive number of 31-35? | CREATE TABLE table_name_48 (date VARCHAR, no_built VARCHAR, loco_nos VARCHAR) |
SELECT trans_2 FROM table_17085947_32 WHERE total_time = "1:51:19.45" | What is the trans 2 duration if the total time is 1:51:19.45? | CREATE TABLE table_17085947_32 (trans_2 VARCHAR, total_time VARCHAR) |
SELECT * FROM table_train_102 WHERE serum_creatinine >= 1.6 | serum creatinine >= 1.6 mg / dl | CREATE TABLE table_train_102 (
"id" int,
"autoimmune_disease" bool,
"stroke" bool,
"renal_disease" bool,
"hepatic_disease" bool,
"liver_disease" bool,
"serum_creatinine" float,
"seizure_disorder" bool,
"NOUSE" float
) |
SELECT crowd FROM table_name_8 WHERE away_team = "collingwood" | How many spectators watched when the away team was Collingwood? | CREATE TABLE table_name_8 (crowd VARCHAR, away_team VARCHAR) |
SELECT swim__15km_ FROM table_17085947_32 WHERE athlete = "Daniela Ryf" | What was the duration of Daniela Ryf's swimming stage? | CREATE TABLE table_17085947_32 (swim__15km_ VARCHAR, athlete VARCHAR) |
SELECT "Nov 2008" FROM table_26261 WHERE "Aug 2008" = '1.7%' | What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008? | CREATE TABLE table_26261 (
"Party" text,
"Result, Parliam. election 2005" text,
"Result, County elections 2007" text,
"Aug 2008" text,
"Sep 2008" text,
"Oct 2008" text,
"Nov 2008" text,
"Dec 2008" text,
"Jan 2009" text,
"Feb 2009" text,
"Mar 2009" text,
"Apr 2009" text,
... |
SELECT away_team AS score FROM table_name_37 WHERE away_team = "essendon" | What did Essendon score when they were the away team? | CREATE TABLE table_name_37 (away_team VARCHAR) |
SELECT COUNT(athlete) FROM table_17085947_32 WHERE trans_1 = "0:26" | How many athletes completed a trans 1 within 0:26? | CREATE TABLE table_17085947_32 (athlete VARCHAR, trans_1 VARCHAR) |
SELECT "Attendance" FROM table_54294 WHERE "Away team" = 'boreham wood' | what was the attendance when the away team was boreham wood? | CREATE TABLE table_54294 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
) |
SELECT home_team FROM table_name_65 WHERE venue = "brunswick street oval" | Who was the home team at Brunswick Street Oval? | CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR) |
SELECT athlete FROM table_17085947_32 WHERE bike__40km_ = "58:52" | Who was the athlete that covered biking within 58:52? | CREATE TABLE table_17085947_32 (athlete VARCHAR, bike__40km_ VARCHAR) |
SELECT T1.property_id, COUNT(*) FROM Properties AS T1 JOIN Residents AS T2 ON T1.property_id = T2.property_id GROUP BY T1.property_id | Scatter chart. how many residents does each property have? List property id and resident count. | CREATE TABLE Properties (
property_id INTEGER,
property_type_code CHAR(15),
property_address VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Things (
thing_id INTEGER,
organization_id INTEGER,
Type_of_Thing_Code CHAR(15),
service_type_code CHAR(10),
service_details VARCHAR(2... |
SELECT away_team AS score FROM table_name_7 WHERE away_team = "south melbourne" | What was South Melbourne's away team score? | CREATE TABLE table_name_7 (away_team VARCHAR) |
SELECT high_points FROM table_17080868_8 WHERE team = "New York" | All high points are team new york. | CREATE TABLE table_17080868_8 (high_points VARCHAR, team VARCHAR) |
SELECT MIN("Wins") FROM table_49660 WHERE "Points" = '28' AND "Year" < '1972' | Name the lowest Wins which has Points of 28, and a Year smaller than 1972? | CREATE TABLE table_49660 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) |
SELECT away_team AS score FROM table_name_89 WHERE venue = "brunswick street oval" | Who was the away team at Brunswick Street Oval? | CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR) |
SELECT location_attendance FROM table_17080868_8 WHERE date = "February 12" | February 12 is the date for all location attendance. | CREATE TABLE table_17080868_8 (location_attendance VARCHAR, date VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "3799" AND prescriptions.drug_type = "ADDITIVE" | provide the number of patients who have procedure icd9 code 3799 and are on additive type of drug prescription. | 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 t... |
SELECT MIN(height__m_) FROM table_name_37 WHERE class = "hewitt" AND prom__m_ < 148 | Tell me the lowest height for class of hewitt and prom less than 148 | CREATE TABLE table_name_37 (height__m_ INTEGER, class VARCHAR, prom__m_ VARCHAR) |
SELECT location_attendance FROM table_17080868_8 WHERE game = 54 | 54 is the game where location attendance are. | CREATE TABLE table_17080868_8 (location_attendance VARCHAR, game VARCHAR) |
SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Nepal%' ORDER BY Reputation DESC LIMIT 150 | Top 150 users from nepal. | CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... |
SELECT COUNT(prom__m_) FROM table_name_59 WHERE height__m_ < 615 | Tell me the total number of prom for height less than 615 | CREATE TABLE table_name_59 (prom__m_ VARCHAR, height__m_ INTEGER) |
SELECT record FROM table_17080868_8 WHERE high_points = "Corey Maggette (25)" | All high points were record by corey maggette (25). | CREATE TABLE table_17080868_8 (record VARCHAR, high_points VARCHAR) |
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime, patient.patienthealthsystemstayid FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'levothyroxine so... | list the top three most frequent drugs that patients were prescribed with during the same hospital encounter after having been prescribed with levothyroxine sodium 100 mcg po tabs. | 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,
... |
SELECT peak FROM table_name_10 WHERE prom__m_ < 147 AND height__m_ < 619 | I want to know the peak which is prom less than 147 and height less than 619 | CREATE TABLE table_name_10 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR) |
SELECT COUNT(location_attendance) FROM table_17080868_6 WHERE date = "December 29" | what is the total number of attendance where the date is december 29? | CREATE TABLE table_17080868_6 (location_attendance VARCHAR, date VARCHAR) |
SELECT Status, AVG(Population) FROM city GROUP BY Status ORDER BY Status DESC | Give me a histogram for what are the statuses and average populations of each city?, list by the names in desc please. | CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Population real,
Census_Ranking text
)
CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pi... |
SELECT peak FROM table_name_26 WHERE prom__m_ < 147 | Tell me the peak for prom being less than 147 | CREATE TABLE table_name_26 (peak VARCHAR, prom__m_ INTEGER) |
SELECT manner_of_departure FROM table_17085981_2 WHERE outgoing_manager = "Petrik Sander" | What was the manner in which Petrik Sander departed? | CREATE TABLE table_17085981_2 (manner_of_departure VARCHAR, outgoing_manager VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Drug induced neutropenia" AND prescriptions.route = "LEFT EYE" | provide the number of patients whose diagnoses long title is drug induced neutropenia and drug route is left eye? | 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 t... |
SELECT MIN(prom__m_) FROM table_name_62 WHERE class = "hewitt" AND peak = "cushat law" AND height__m_ > 615 | Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615 | CREATE TABLE table_name_62 (prom__m_ INTEGER, height__m_ VARCHAR, class VARCHAR, peak VARCHAR) |
SELECT manner_of_departure FROM table_17085981_2 WHERE team = "Stuttgarter Kickers" AND outgoing_manager = "Edgar Schmitt" | What was the manner of departure for Edgar Schmitt of the Stuttgarter Kickers? | CREATE TABLE table_17085981_2 (manner_of_departure VARCHAR, team VARCHAR, outgoing_manager VARCHAR) |
SELECT "Poor law union" FROM table_74469 WHERE "Townland" = 'Lackenagobidane' | What is the poor law union of the Lackenagobidane townland? | CREATE TABLE table_74469 (
"Townland" text,
"Area( acres )" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
) |
SELECT peak FROM table_name_14 WHERE height__m_ > 619 AND class = "hewitt" AND prom__m_ = 148 | Name the peak for height more than 619 and class of hewitt with prom being 148 | CREATE TABLE table_name_14 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR, class VARCHAR) |
SELECT date_of_appointment FROM table_17085981_2 WHERE outgoing_manager = "Jürgen Kohler" | What was the date of appointment when Jürgen Kohler was the outgoing manager? | CREATE TABLE table_17085981_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) |
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND patient.hospitaldischargetime IS NULL)) ORDER BY mi... | when had patient 031-3355 first received a microbiology test during this hospital encounter? | 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 cost (
costid num... |
SELECT percentage_democrats FROM table_name_57 WHERE democratic__republican = "2/4" | What is the percentage democrats with 2/4 democrat/republican? | CREATE TABLE table_name_57 (percentage_democrats VARCHAR, democratic__republican VARCHAR) |
SELECT COUNT(date_of_appointment) FROM table_17085981_2 WHERE replaced_by = "Jürgen Kohler" | How many appointment dates were recorded when Jürgen Kohler was the replaced by? | CREATE TABLE table_17085981_2 (date_of_appointment VARCHAR, replaced_by VARCHAR) |
SELECT MIN(week) FROM table_17861179_1 WHERE game_site = "Shea Stadium" | What is the week where the game site is Shea Stadium? | CREATE TABLE table_17861179_1 (
week INTEGER,
game_site VARCHAR
) |
SELECT percentage_democrats FROM table_name_45 WHERE democratic_seat_plurality = "-3" AND democratic__republican = "2/5" | What is the percentage democrats with democratic plurality of -3, and 2/5 democrat/republican? | CREATE TABLE table_name_45 (percentage_democrats VARCHAR, democratic_seat_plurality VARCHAR, democratic__republican VARCHAR) |
SELECT swimsuit FROM table_17088705_2 WHERE interview = "9.366" | What are the swimsuit scores of participants with score 9.366 in interview | CREATE TABLE table_17088705_2 (swimsuit VARCHAR, interview VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "TRANSIENT ISCHEMIC ATTACK" AND procedures.short_title = "Cardiopulm resuscita NOS" | how many patients whose primary disease is transient ischemic attack and procedure short title is cardiopulm resuscita nos? | 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 percentage_republicans FROM table_name_62 WHERE democratic__republican = "7/6" | What is the percent of republicans with 7/6 democrat/republican? | CREATE TABLE table_name_62 (percentage_republicans VARCHAR, democratic__republican VARCHAR) |
SELECT average FROM table_17088705_2 WHERE country = "Arizona" | State average scores of participants from arizona | CREATE TABLE table_17088705_2 (average VARCHAR, country VARCHAR) |
SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC | For those employees who was hired before 2002-06-21, show me the trend about commission_pct over hire_date with a line chart, and order from high to low by the x axis. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE... |
SELECT democratic_seat_plurality FROM table_name_94 WHERE percentage_democrats = "29%" | What is the democratic seat plurality with 29% democrat? | CREATE TABLE table_name_94 (democratic_seat_plurality VARCHAR, percentage_democrats VARCHAR) |
SELECT COUNT(interview) FROM table_17088705_2 WHERE preliminary = "8.895" | Number of participants with a score 8.895 in preliminary | CREATE TABLE table_17088705_2 (interview VARCHAR, preliminary VARCHAR) |
SELECT COUNT("Third place") FROM table_1314 WHERE "Team" = 'Toronto' | When the team is Toronto how many times did they place third? | CREATE TABLE table_1314 (
"Team" text,
"Titles" real,
"Runner-up" real,
"Third place" real,
"Fourth place" real,
"Years participated" real
) |
SELECT democratic_seat_plurality FROM table_name_91 WHERE state_ranked_in_partisan_order = "new hampshire" | What is the democratic seat plurality with partisan order of New Hampshire? | CREATE TABLE table_name_91 (democratic_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR) |
SELECT evening_gown FROM table_17088705_2 WHERE swimsuit = "8.988" | Evening gown scores of participants with 8.988 swimsuit score | CREATE TABLE table_17088705_2 (evening_gown VARCHAR, swimsuit VARCHAR) |
SELECT COUNT(DISTINCT u_id) FROM review | How many different users wrote some reviews? | CREATE TABLE useracct (
u_id number,
name text
)
CREATE TABLE review (
a_id number,
u_id number,
i_id number,
rating number,
rank number
)
CREATE TABLE trust (
source_u_id number,
target_u_id number,
trust number
)
CREATE TABLE item (
i_id number,
title text
) |
SELECT score FROM table_name_32 WHERE visitor = "pacers" | What is the score of the game with Pacers as the Visitor? | CREATE TABLE table_name_32 (score VARCHAR, visitor VARCHAR) |
SELECT average FROM table_17088705_2 WHERE evening_gown = "9.226" | What are the average scores of participants with 9.226 in evening gown | CREATE TABLE table_17088705_2 (average VARCHAR, evening_gown VARCHAR) |
SELECT "Record" FROM table_66581 WHERE "Score" = '21-16' | What was the record at the game with a score of 21-16? | CREATE TABLE table_66581 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text
) |
SELECT home FROM table_name_11 WHERE date = "december 5, 2007" | Who was Home on December 5, 2007? | CREATE TABLE table_name_11 (home VARCHAR, date VARCHAR) |
SELECT swimsuit FROM table_17088705_2 WHERE preliminary = "8.847" | Give swimsuit scores of participants 8.847 in preliminary | CREATE TABLE table_17088705_2 (swimsuit VARCHAR, preliminary VARCHAR) |
SELECT COUNT("Round") FROM table_50406 WHERE "College" = 'appalachian state' AND "Overall" < '156' | Which Round has a College of appalachian state, and an Overall smaller than 156? | CREATE TABLE table_50406 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) |
SELECT japanese_orthography FROM table_name_39 WHERE abbreviation = "ndmc" | What is the Japanese orthography for the abbreviation of ndmc? | CREATE TABLE table_name_39 (japanese_orthography VARCHAR, abbreviation VARCHAR) |
SELECT official_name FROM table_170958_2 WHERE area_km_2 = "276.84" | What is the official name of the land with an area of 276.84 km2? | CREATE TABLE table_170958_2 (official_name VARCHAR, area_km_2 VARCHAR) |
SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-424' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS NULL... | what difference is there in patient 009-424's weight last measured on the last hospital visit compared to the first value measured on the last hospital visit? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugst... |
SELECT english_name FROM table_name_31 WHERE provider_national_government_ = "ministry of defense" AND abbreviation = "nda bōei-dai(防衛大)" | What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)? | CREATE TABLE table_name_31 (english_name VARCHAR, provider_national_government_ VARCHAR, abbreviation VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.