answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT(population) FROM table_170958_2 WHERE area_km_2 = "149.32" | What is the total number of population in the land with an area of 149.32 km2? | CREATE TABLE table_170958_2 (population VARCHAR, area_km_2 VARCHAR) |
SELECT "District" FROM table_3011 WHERE "Date successor seated" = 'March 28, 1878' | What district was the successor seated in March 28, 1878? | CREATE TABLE table_3011 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) |
SELECT home_team AS score FROM table_name_18 WHERE venue = "victoria park" | What did the team score when playing at home in victoria park? | CREATE TABLE table_name_18 (home_team VARCHAR, venue VARCHAR) |
SELECT MAX(population) FROM table_170958_2 WHERE area_km_2 = "276.84" | What is the maximum population of the land with an area of 276.84 km2? | CREATE TABLE table_170958_2 (population INTEGER, area_km_2 VARCHAR) |
SELECT index FROM table_name_23 WHERE country = "singapore" AND name = "chen bangjun andie" | What is the Index number of Chen Bangjun Andie from Singapore? | CREATE TABLE table_name_23 (
index VARCHAR,
country VARCHAR,
name VARCHAR
) |
SELECT home_team AS score FROM table_name_95 WHERE home_team = "st kilda" | What did st kilda score at home? | CREATE TABLE table_name_95 (home_team VARCHAR) |
SELECT area_km_2 FROM table_170958_2 WHERE official_name = "Hopewell" | What is the land area of Hopewell parish in km2? | CREATE TABLE table_170958_2 (area_km_2 VARCHAR, official_name VARCHAR) |
SELECT place FROM table_name_12 WHERE score < 69 | WHich Places have a score smaller than 69? | CREATE TABLE table_name_12 (
place VARCHAR,
score INTEGER
) |
SELECT home_team FROM table_name_16 WHERE venue = "western oval" | Which team plays home in western oval venue? | CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR) |
SELECT march_27_29 FROM table_1708610_3 WHERE november_3 = "133" | Name the march 27-29 for november 3 being 133 | CREATE TABLE table_1708610_3 (march_27_29 VARCHAR, november_3 VARCHAR) |
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'compression of vein')) | count the number of patients who are diagnosed with compression of vein. | CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title te... |
SELECT time_retired FROM table_name_10 WHERE laps < 53 AND driver = "innes ireland" | When the driver is innes ireland and they drove under 53 laps, what was the Time/Retired? | CREATE TABLE table_name_10 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR) |
SELECT march_27_29 FROM table_1708610_3 WHERE january_15_16 = "January 15, 1991" | Name march 27-29 where january 15-16 is january 15, 1991 | CREATE TABLE table_1708610_3 (march_27_29 VARCHAR, january_15_16 VARCHAR) |
SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-195541' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS N... | how much different is patient 006-195541's weight last measured on the last hospital visit compared to the value first measured on the last hospital visit? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsysto... |
SELECT laps FROM table_name_65 WHERE driver = "peter arundell" | How many laps does peter arundell have? | CREATE TABLE table_name_65 (laps VARCHAR, driver VARCHAR) |
SELECT january_15_16 FROM table_1708610_3 WHERE march_27_29 = "March 29, 2006" | Name the january 15-16 where march 27-29 where march 29, 2006 | CREATE TABLE table_1708610_3 (january_15_16 VARCHAR, march_27_29 VARCHAR) |
SELECT "1st Party" FROM table_12841 WHERE "Election" = '1893 by-election' | Which 1st Party has an Election of 1893 by-election? | CREATE TABLE table_12841 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) |
SELECT driver FROM table_name_38 WHERE grid > 11 AND laps > 52 | Which driver has a grid value larger than 11, and drove more than 52 laps? | CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR, laps VARCHAR) |
SELECT COUNT(location_attendance) FROM table_17102076_10 WHERE score = "L 141–143 (OT)" | Name the number of location attendance for l 141–143 (ot) | CREATE TABLE table_17102076_10 (location_attendance VARCHAR, score VARCHAR) |
SELECT start_station_name, start_station_id FROM trip ORDER BY start_station_name | What are the ids and names of all start stations that were the beginning of at least 200 trips Show bar chart, and rank from low to high by the X-axis. | CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE trip (
id INTEGER,
d... |
SELECT crowd FROM table_name_16 WHERE away_team = "north melbourne" | What is the crowd for away team of north melbourne? | CREATE TABLE table_name_16 (crowd VARCHAR, away_team VARCHAR) |
SELECT record FROM table_17102076_10 WHERE date = "April 1" | Name the record for april 1 | CREATE TABLE table_17102076_10 (record VARCHAR, date VARCHAR) |
SELECT "Venue" FROM table_33749 WHERE "Away team" = 'st kilda' | What venue does st kilda play at as the away team? | CREATE TABLE table_33749 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT date FROM table_name_93 WHERE away_team = "essendon" | What is the date when the away team is essendon? | CREATE TABLE table_name_93 (date VARCHAR, away_team VARCHAR) |
SELECT high_assists FROM table_17102076_10 WHERE score = "L 98–118 (OT)" | Name the high assists for score being l 98–118 (ot) | CREATE TABLE table_17102076_10 (high_assists VARCHAR, score VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.discharge_location = "SHORT TERM HOSPITAL" | find the number of female patients who were discharged to short term hospital. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... |
SELECT visitor FROM table_name_81 WHERE home = "vancouver" AND date = "february 24" | Name the visitor from vancouver on february 24 | CREATE TABLE table_name_81 (visitor VARCHAR, home VARCHAR, date VARCHAR) |
SELECT MIN(game) FROM table_17102076_10 WHERE location_attendance = "ARCO Arena 13,330" | Name the least game for arco arena 13,330 | CREATE TABLE table_17102076_10 (game INTEGER, location_attendance VARCHAR) |
SELECT questions.Id AS "post_link", questions.CreationDate, COUNT(*) AS AnswerCount FROM Posts AS questions JOIN Posts AS answers ON answers.ParentId = questions.Id WHERE questions.OwnerUserId = '##UserId##' AND questions.PostTypeId = 1 AND questions.AcceptedAnswerId IS NULL GROUP BY questions.Id, questions.CreationDat... | Questions by a given user with unaccepted answers. | 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 description FROM table_name_56 WHERE date = "1962" | Which description is dated 1962? | CREATE TABLE table_name_56 (description VARCHAR, date VARCHAR) |
SELECT high_rebounds FROM table_17102076_5 WHERE game = 11 | Name the high rebounds for game 11 | CREATE TABLE table_17102076_5 (high_rebounds VARCHAR, game VARCHAR) |
SELECT DISTINCT semester.semester, semester.year FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.number = 248 AND course_offering.semester = semester.semester_id AND instructor.name LIKE '%Ryan Kellogg%' AND offering_instructor.instru... | When is the next time 248 , taught by Ryan Kellogg be offered ? | CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varc... |
SELECT home_team FROM table_name_53 WHERE venue = "moorabbin oval" | Moorabbin oval is home to what team? | CREATE TABLE table_name_53 (home_team VARCHAR, venue VARCHAR) |
SELECT high_points FROM table_17102076_5 WHERE score = "L 92–100 (OT)" | Name the high points for score being l 92–100 (ot) | CREATE TABLE table_17102076_5 (high_points VARCHAR, score VARCHAR) |
SELECT MIN("Enrollment") FROM table_23607 WHERE "Team Name" = 'Cyclones' | What is the minimum enrollment of the cyclones? | CREATE TABLE table_23607 (
"Institution" text,
"Team Name" text,
"Location (Population)" text,
"Team Started" real,
"Affiliation" text,
"Enrollment" real,
"Mascot" text,
"Divisional Titles" real,
"Big 12 Titles" real,
"National Titles" real
) |
SELECT leader_at_the_summit FROM table_name_23 WHERE year = 2005 | Who was the leader at the summit for the race in 2005? | CREATE TABLE table_name_23 (leader_at_the_summit VARCHAR, year VARCHAR) |
SELECT team FROM table_17102076_5 WHERE location_attendance = "ARCO Arena 13,685" | Name the team for arco arena 13,685 | CREATE TABLE table_17102076_5 (team VARCHAR, location_attendance VARCHAR) |
SELECT (SELECT "# of prisoners designed for" FROM table_204_414 WHERE "name" = 'erebuni') - (SELECT "# of prisoners designed for" FROM table_204_414 WHERE "name" = 'goris') | how many more prisoners is erebuni designed to hold than goris ? | CREATE TABLE table_204_414 (
id number,
"name" text,
"armenian" text,
"location" text,
"# of prisoners designed for" number,
"notes" text
) |
SELECT SUM(stage) FROM table_name_73 WHERE category = "1" AND year > 2003 | What is the sum of the stages for category 1 races after the year 2003? | CREATE TABLE table_name_73 (stage INTEGER, category VARCHAR, year VARCHAR) |
SELECT score FROM table_17102076_7 WHERE game = 35 | What was the score of game 35? | CREATE TABLE table_17102076_7 (score VARCHAR, game VARCHAR) |
WITH total_users AS (SELECT tu_count = COUNT(*) FROM Users), users_rep_x AS (SELECT ru_count = COUNT(*) FROM Users AS u WHERE u.Reputation < '##RepMax##') SELECT DISTINCT (SELECT tu_count FROM total_users) AS "total_users", (SELECT ru_count FROM users_rep_x) AS "users_rep_>_x", CAST((CAST((SELECT ru_count FROM users_re... | Reputation > X in % of Total Users. | CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
Exp... |
SELECT venue FROM table_name_40 WHERE home_team = "melbourne" | What is the stadium of melbourne? | CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR) |
SELECT location_attendance FROM table_17103645_10 WHERE score = "65-72" | Name the location attendance for score of 65-72 | CREATE TABLE table_17103645_10 (location_attendance VARCHAR, score VARCHAR) |
SELECT "Name" FROM table_7022 WHERE "Location" = 'brazil' AND "Unit" = 'caturrita formation' | What is the name of the non-mammal from brazil of the unit of caturrita formation? | CREATE TABLE table_7022 (
"Name" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text
) |
SELECT record FROM table_name_42 WHERE decision = "backstrom" AND attendance > 18 OFFSET 568 | What was the record in the game where the decision was Backstrom and there were more than 18,568 in attendance? | CREATE TABLE table_name_42 (record VARCHAR, decision VARCHAR, attendance VARCHAR) |
SELECT record FROM table_17103645_10 WHERE date = "July 18" | Name the record for july 18 | CREATE TABLE table_17103645_10 (record VARCHAR, date VARCHAR) |
SELECT lead FROM table_name_62 WHERE third = "hans frauenlob" | Which Lead has Hans Frauenlob as a Third? | CREATE TABLE table_name_62 (
lead VARCHAR,
third VARCHAR
) |
SELECT MAX(goals) FROM table_name_74 WHERE team = "getafe cf" | For Getafe CF, what is the highest number of goals scored? | CREATE TABLE table_name_74 (goals INTEGER, team VARCHAR) |
SELECT COUNT(high_assists) FROM table_17103645_10 WHERE date = "July 1" | Name the number of high assists for july 1 | CREATE TABLE table_17103645_10 (high_assists VARCHAR, date VARCHAR) |
SELECT "Team" FROM table_77877 WHERE "Manner of departure" = 'sacked' AND "Date of vacancy" = '4 december' | I want to know the team that was sacked and date of vacancy was 4 december | CREATE TABLE table_77877 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) |
SELECT AVG(matches) FROM table_name_5 WHERE goals < 41 AND team = "ca osasuna" AND average < 1.06 | For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches? | CREATE TABLE table_name_5 (matches INTEGER, average VARCHAR, goals VARCHAR, team VARCHAR) |
SELECT score FROM table_17103645_10 WHERE game = 19 | Name the score when game is 19 | CREATE TABLE table_17103645_10 (score VARCHAR, game VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "43" AND diagnoses.short_title = "Hypertension NOS" | what is the number of patients whose age is less than 43 and diagnoses short title is hypertension 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 AVG(goals) FROM table_name_79 WHERE average = 1.58 AND matches < 38 | For averages of 1.58 and matches under 38, what is the average number of goals? | CREATE TABLE table_name_79 (goals INTEGER, average VARCHAR, matches VARCHAR) |
SELECT result FROM table_17103566_1 WHERE team_1 = "ICL Pakistan" | What is the result when team 1 is ICL Pakistan? | CREATE TABLE table_17103566_1 (result VARCHAR, team_1 VARCHAR) |
SELECT business.name FROM business, category, review, user WHERE business.city = 'Dallas' AND category.business_id = business.business_id AND category.category_name = 'restaurant' AND review.business_id = business.business_id AND user.name = 'Patrick' AND user.user_id = review.user_id | Which restaurant in Dallas were reviewed by user Patrick ? | CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
longitude varchar,
review_count bigint,
is_open tinyint,
rating float,
state varchar
)
CREATE TABLE category (
id int,
business_id varchar,
c... |
SELECT ranking FROM table_name_14 WHERE season = "2009" | Which Ranking has a Season of 2009? | CREATE TABLE table_name_14 (ranking VARCHAR, season VARCHAR) |
SELECT match_number FROM table_17103566_1 WHERE result = "ICL World by 8 wickets" | What is the match number where the result is ICL World by 8 wickets? | CREATE TABLE table_17103566_1 (match_number VARCHAR, result VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service, city, date_day, days, flight WHERE city.city_code = airport_service.city_code AND city.city_name = 'BALTIMORE' AND date_day.day_number = 1 AND date_day.month_number = 1 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.day... | i'd like to arrange a trip to BALTIMORE on 1 1 | CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,... |
SELECT champions FROM table_name_95 WHERE runner_up = "tobol" AND coeff = "1.125" | Which Champions have a Runner-up of tobol, and a Coeff of 1.125? | CREATE TABLE table_name_95 (champions VARCHAR, runner_up VARCHAR, coeff VARCHAR) |
SELECT team_2 FROM table_17103566_1 WHERE result = "ICL World by 8 wickets" | What is team 2 where the result is ICL world by 8 wickets? | CREATE TABLE table_17103566_1 (team_2 VARCHAR, result VARCHAR) |
SELECT Users.Id AS "user_link", Users.DownVotes, Users.Reputation FROM Users ORDER BY Users.DownVotes DESC LIMIT 128 | Users who cast the most downvotes [save]. | CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
... |
SELECT champions FROM table_name_85 WHERE coeff = "1.000" | Which Champion has a Coeff of 1.000? | CREATE TABLE table_name_85 (champions VARCHAR, coeff VARCHAR) |
SELECT man_of_the_match FROM table_17103566_1 WHERE team_1 = "ICL Pakistan" | Who is man of the match when Team 1 is ICL Pakistan? | CREATE TABLE table_17103566_1 (man_of_the_match VARCHAR, team_1 VARCHAR) |
SELECT "Quantity made" FROM table_10555 WHERE "Class" = '330' | How many have a class of 330? | CREATE TABLE table_10555 (
"Class" text,
"Wheel arrangement" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text,
"Year(s) withdrawn" text,
"Comments" text
) |
SELECT MIN(game) FROM table_name_62 WHERE date = "23 april" AND batting_2nd = "england 5/113 (19)" | what is the game for 23 april when batting 2nd is england 5/113 (19)? | CREATE TABLE table_name_62 (game INTEGER, date VARCHAR, batting_2nd VARCHAR) |
SELECT COUNT(date) FROM table_17103566_1 WHERE match_number = 5 | How many dates have a Match number of 5? | CREATE TABLE table_17103566_1 (date VARCHAR, match_number VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM progra... | How can I most easily fulfill the PreMajor requirement with a class ? | CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE offering_instructor (
... |
SELECT MIN(game) FROM table_name_17 WHERE batting_2nd = "new zealand 6/133 (18)" | what is the game when batting 2nd is new zealand 6/133 (18)? | CREATE TABLE table_name_17 (game INTEGER, batting_2nd VARCHAR) |
SELECT man_of_the_match FROM table_17103566_1 WHERE match_number = 5 | Who is man of the match for match number 5? | CREATE TABLE table_17103566_1 (man_of_the_match VARCHAR, match_number VARCHAR) |
SELECT "Opponent" FROM table_69020 WHERE "Attendance" > '73,984' AND "Result" = 'w 28–14' | Who is the opponent with attendance greater than 73,984 with a result of w 28 14? | CREATE TABLE table_69020 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) |
SELECT MAX(game) FROM table_name_25 WHERE result = "new zealand by 4 wickets" | what is the game when the result is new zealand by 4 wickets? | CREATE TABLE table_name_25 (game INTEGER, result VARCHAR) |
SELECT location_attendance FROM table_17103729_7 WHERE score = "68-85" | With a score of 68-85, what is the location and attendance? | CREATE TABLE table_17103729_7 (location_attendance VARCHAR, score VARCHAR) |
SELECT MAX("Pick") FROM table_9990 WHERE "Nationality" = 'united states' AND "College" = 'new mexico state' AND "Round" > '6' | What is the highest Pick, when Nationality is 'United States', when College is 'New Mexico State', and when Round is greater than 6? | CREATE TABLE table_9990 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
) |
SELECT batting_1st FROM table_name_20 WHERE game = 8 | who is batting 1st in game 8? | CREATE TABLE table_name_20 (batting_1st VARCHAR, game VARCHAR) |
SELECT location_attendance FROM table_17103729_8 WHERE score = "64-74" | Name the location of 64-74 | CREATE TABLE table_17103729_8 (location_attendance VARCHAR, score VARCHAR) |
SELECT * FROM dbo.Posts WHERE CreationDate >= '2018/12/01' | WHERE filtering with dates and a little bit of time. | CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Badges (
Id... |
SELECT playoffs_2 FROM table_name_18 WHERE season = "2010-11" | What is the playoffs 2 result of season 2010-11? | CREATE TABLE table_name_18 (playoffs_2 VARCHAR, season VARCHAR) |
SELECT score FROM table_17103729_8 WHERE game = 25 | Name the score for game for 25 | CREATE TABLE table_17103729_8 (score VARCHAR, game VARCHAR) |
SELECT TOP(500) AS CreationDate FROM Posts ORDER BY CreationDate DESC | Check when there was the last update. | CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId numbe... |
SELECT playoffs_1 FROM table_name_41 WHERE season = "2004-05" | What is the playoffs 1 result of season 2004-05? | CREATE TABLE table_name_41 (playoffs_1 VARCHAR, season VARCHAR) |
SELECT record FROM table_17103729_8 WHERE location_attendance = "Palace of Auburn Hills 15,210" | Name the record for attendance location of palace of auburn hills 15,210 | CREATE TABLE table_17103729_8 (record VARCHAR, location_attendance VARCHAR) |
SELECT COUNT("Grid") FROM table_72862 WHERE "Points" = '30' | Name the total number of grid for 30 | CREATE TABLE table_72862 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
) |
SELECT SUM(grid) FROM table_name_39 WHERE driver = "alain prost" | Which Grid did Alain Prost drive on? | CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR) |
SELECT COUNT(high_rebounds) FROM table_17103729_8 WHERE score = "64-74" | Name the high rebounds for score of 64-74 | CREATE TABLE table_17103729_8 (high_rebounds VARCHAR, score VARCHAR) |
SELECT COUNT(week) FROM table_name_77 WHERE result = "l 31–28" | What is the Week number with a result of l 31 28? | CREATE TABLE table_name_77 (
week VARCHAR,
result VARCHAR
) |
SELECT time_retired FROM table_name_44 WHERE driver = "riccardo patrese" | What was Riccardo Patrese's time/retired? | CREATE TABLE table_name_44 (time_retired VARCHAR, driver VARCHAR) |
SELECT score FROM table_17103729_8 WHERE date = "July 16" | Namethe score for july 16 | CREATE TABLE table_17103729_8 (score VARCHAR, date VARCHAR) |
SELECT "Score" FROM table_4425 WHERE "Opponents" = 'misa eguchi eri hozumi' | Tell me the score of misa eguchi eri hozumi | CREATE TABLE table_4425 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) |
SELECT rounds FROM table_name_15 WHERE chassis = "n180" AND driver = "geoff lees" | How many rounds did geoff lees drive with chassis of n180? | CREATE TABLE table_name_15 (rounds VARCHAR, chassis VARCHAR, driver VARCHAR) |
SELECT best_10_year_period FROM table_1710426_2 WHERE best_15_year_period = "Fischer" | Which people had the best 10-year period when Fischer had best 15-year period? | CREATE TABLE table_1710426_2 (best_10_year_period VARCHAR, best_15_year_period VARCHAR) |
SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.admission_location = "TRSF WITHIN THIS FACILITY" | what is minimum age of patients whose marital status is widowed and admission location is trsf within this facility? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... |
SELECT tyres FROM table_name_10 WHERE driver = "didier pironi" | What is the tyres for Didier pironi? | CREATE TABLE table_name_10 (tyres VARCHAR, driver VARCHAR) |
SELECT best_10_year_period FROM table_1710426_2 WHERE best_15_year_period = "Capablanca" | Which people had the best 10-year period when Capablanca had the best 15-year period? | CREATE TABLE table_1710426_2 (best_10_year_period VARCHAR, best_15_year_period VARCHAR) |
SELECT COUNT("Canton") FROM table_946 WHERE "Commune" = 'Waldbillig' | how many canton with commune being waldbillig | CREATE TABLE table_946 (
"Map Key" real,
"Commune" text,
"Canton" text,
"District" text,
"Population" real
) |
SELECT constructor FROM table_name_25 WHERE driver = "jan lammers" AND rounds = "7-14" | Who was the constructor of the car that Jan Lammers made 7-14 rounds in? | CREATE TABLE table_name_25 (constructor VARCHAR, driver VARCHAR, rounds VARCHAR) |
SELECT record FROM table_17104539_9 WHERE date = "June 7" | Name the record for june 7 | CREATE TABLE table_17104539_9 (record VARCHAR, date VARCHAR) |
SELECT ACC_Regular_Season, Team_ID FROM basketball_match ORDER BY ACC_Regular_Season DESC | Draw a bar chart about the distribution of ACC_Regular_Season and Team_ID , and I want to sort by the X-axis in descending. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... |
SELECT engine FROM table_name_1 WHERE tyres = "g" AND chassis = "d3 d4" AND driver = "jan lammers" AND rounds = "4-6" | What engine was used during the race driven by Jan Lammers using a chassis of d3 d4, making a tyre of g and rounds of 4-6? | CREATE TABLE table_name_1 (engine VARCHAR, rounds VARCHAR, driver VARCHAR, tyres VARCHAR, chassis VARCHAR) |
SELECT date FROM table_17104539_9 WHERE score = "W 83-69" | Name the date for the score of w 83-69 | CREATE TABLE table_17104539_9 (date VARCHAR, score VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.