answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT(elevation__m_) FROM table_2251578_4 WHERE district = "Paratia" | How many elevations are listed for Paratia? | CREATE TABLE table_2251578_4 (elevation__m_ VARCHAR, district VARCHAR) |
SELECT MAX(points) FROM table_name_34 WHERE grid < 13 AND time_retired = "+7.538 secs" | What is the biggest points when the grid is less than 13 and the time/retired is +7.538 secs? | CREATE TABLE table_name_34 (
points INTEGER,
grid VARCHAR,
time_retired VARCHAR
) |
SELECT COUNT(silver) FROM table_name_18 WHERE gold < 1 AND bronze = 0 AND total < 2 | Name the number of silver when gold is less than 1 and bronze is 0 when total is less than 2 | CREATE TABLE table_name_18 (silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) |
SELECT province FROM table_2251578_4 WHERE district = "Condoroma" | What province is in the district of Condoroma? | CREATE TABLE table_2251578_4 (province VARCHAR, district VARCHAR) |
SELECT senior_status FROM table_name_30 WHERE chief_judge = "1991–1995" | Which Senior status has a Chief Judge of 1991 1995? | CREATE TABLE table_name_30 (
senior_status VARCHAR,
chief_judge VARCHAR
) |
SELECT traffic_direction FROM table_name_88 WHERE street = "70th street" | What is the traffic direction of 70th street? | CREATE TABLE table_name_88 (traffic_direction VARCHAR, street VARCHAR) |
SELECT reporters FROM table_22514845_2 WHERE year = 2003 | Name the reporters for 2003 | CREATE TABLE table_22514845_2 (reporters VARCHAR, year VARCHAR) |
SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 4 | what were the four most commonly performed lab tests during the last year? | 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 traffic_direction FROM table_name_8 WHERE west = "2nd avenue" AND _number_of_lanes = "1" AND street = "64th street" | What is the traffic direction of 64th street with 2nd avenue to the west and 1 lane? | CREATE TABLE table_name_8 (traffic_direction VARCHAR, street VARCHAR, west VARCHAR, _number_of_lanes VARCHAR) |
SELECT COUNT(race_caller) FROM table_22514845_2 WHERE trophy_presentation = "Bob Costas and Charlsie Cantey" | Name the total number for race caller for bob costas and charlsie cantey | CREATE TABLE table_22514845_2 (race_caller VARCHAR, trophy_presentation VARCHAR) |
SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY All_Home | Stacked bar chart of team_id for with each ACC_Road in each all home, I want to sort from low to high by the x-axis. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... |
SELECT traffic_direction FROM table_name_94 WHERE street = "97th street" | What is the traffic direction of 97th street? | CREATE TABLE table_name_94 (traffic_direction VARCHAR, street VARCHAR) |
SELECT race_caller FROM table_22514845_3 WHERE year = 1994 | Who is the race caller for the year 1994? | CREATE TABLE table_22514845_3 (race_caller VARCHAR, year VARCHAR) |
SELECT status FROM table_name_11 WHERE monarch = "henry i" AND reason = "succession unclear 1100-1103" | What is the Status when Henry I is the Monarch and the Reason is succession unclear 1100-1103? | CREATE TABLE table_name_11 (
status VARCHAR,
monarch VARCHAR,
reason VARCHAR
) |
SELECT _number_of_lanes FROM table_name_43 WHERE street = "20th street" | What is the # of lanes on 20th street? | CREATE TABLE table_name_43 (_number_of_lanes VARCHAR, street VARCHAR) |
SELECT COUNT(reporters) FROM table_22514845_3 WHERE year = 1993 | How many reporters for the year 1993? | CREATE TABLE table_22514845_3 (reporters VARCHAR, year VARCHAR) |
SELECT scored_1, 500 AS _points FROM table_name_34 WHERE years_played = "2004–2008" AND name = "jolene anderson" | WHich Scored 1,500 Points has a Years Played of 2004 2008 and a Name of jolene anderson? | CREATE TABLE table_name_34 (
scored_1 VARCHAR,
years_played VARCHAR,
name VARCHAR
) |
SELECT driver FROM table_name_40 WHERE entrant = "marlboro mclaren peugeot" | Who drove the Marlboro Mclaren Peugeot? | CREATE TABLE table_name_40 (driver VARCHAR, entrant VARCHAR) |
SELECT starting_odds FROM table_22517564_3 WHERE opening_odds = "2-1" | What were the starting odds for the opening odds of 2-1? | CREATE TABLE table_22517564_3 (starting_odds VARCHAR, opening_odds VARCHAR) |
SELECT DISTINCT dataset.datasetid, paper.year FROM dataset, keyphrase, paper, paperdataset, paperkeyphrase WHERE keyphrase.keyphrasename = 'deep learning' AND paperdataset.datasetid = dataset.datasetid AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paperkeyphrase.paperid = paperdataset.paperid AND paper.pap... | what was the first deep learning paper ? | CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
... |
SELECT tyre FROM table_name_93 WHERE entrant = "team lotus" AND driver = "mika salo" | What tyre did Mika Salo use for team Lotus? | CREATE TABLE table_name_93 (tyre VARCHAR, entrant VARCHAR, driver VARCHAR) |
SELECT jockey FROM table_22517564_3 WHERE opening_odds = "4-1" | Who was the jockey with opening odds of 4-1? | CREATE TABLE table_22517564_3 (jockey VARCHAR, opening_odds VARCHAR) |
SELECT lmpc_winning_team FROM table_24037660_2 WHERE rnd = 3 | What was the winning team lmpc in rnd 3? | CREATE TABLE table_24037660_2 (
lmpc_winning_team VARCHAR,
rnd VARCHAR
) |
SELECT driver FROM table_name_99 WHERE entrant = "tourtel larrousse f1" | Which driver drove the Tourtel Larrousse F1? | CREATE TABLE table_name_99 (driver VARCHAR, entrant VARCHAR) |
SELECT COUNT(jockey) FROM table_22517564_3 WHERE trainer = "Eoin Harty" | HOw many jockeys had eoin harty as a trainer | CREATE TABLE table_22517564_3 (jockey VARCHAR, trainer VARCHAR) |
SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code | How many bookings does each booking status have? List the booking status code and the number of corresponding bookings in a pie chart. | CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
availa... |
SELECT constructor FROM table_name_92 WHERE rounds = "all" AND driver = "gerhard berger" | Who constructed Gerhard Berger car that went all rounds? | CREATE TABLE table_name_92 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR) |
SELECT post FROM table_22517564_3 WHERE horse_name = "Chocolate Candy" | Which post had the horse named chocolate candy? | CREATE TABLE table_22517564_3 (post VARCHAR, horse_name VARCHAR) |
SELECT date FROM table_name_55 WHERE matches < 32 AND round = "fifth round proper" | What is Date, when Matches is less than 32, and when Round is Fifth Round Proper? | CREATE TABLE table_name_55 (
date VARCHAR,
matches VARCHAR,
round VARCHAR
) |
SELECT visitor FROM table_name_64 WHERE home = "phoenix" AND record = "2–5–0" | Who visited phoenix with a Record of 2–5–0? | CREATE TABLE table_name_64 (visitor VARCHAR, home VARCHAR, record VARCHAR) |
SELECT date_successor_seated FROM table_225199_4 WHERE district = "Virginia 11th" | What is every date successor seated for the Virginia 11th District? | CREATE TABLE table_225199_4 (date_successor_seated VARCHAR, district VARCHAR) |
SELECT "Coefficient" FROM table_74455 WHERE "Tournament" = '2010 Clausura' | the 2010 clausura tournament? | CREATE TABLE table_74455 (
"Tournament" text,
"Player" text,
"Nationality" text,
"Team" text,
"Games played" real,
"Goals conceded" real,
"Coefficient" text
) |
SELECT decision FROM table_name_17 WHERE record = "3–5–0" | What decision had a Record of 3–5–0? | CREATE TABLE table_name_17 (decision VARCHAR, record VARCHAR) |
SELECT successor FROM table_225200_4 WHERE date_successor_seated = "Not filled this congress" | Name the successor for not filled this congress | CREATE TABLE table_225200_4 (successor VARCHAR, date_successor_seated VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "11" AND diagnoses.long_title = "Aftercare for healing traumatic fracture of lower leg" | provide the number of patients whose days of hospital stay is greater than 11 and diagnoses long title is aftercare for healing traumatic fracture of lower leg? | 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(attendance) FROM table_name_38 WHERE home = "phoenix" AND record = "1–0–0" | What is the low attendance was based in phoenix with a Record of 1–0–0? | CREATE TABLE table_name_38 (attendance INTEGER, home VARCHAR, record VARCHAR) |
SELECT district FROM table_225200_4 WHERE reason_for_change = "Rep. Warren R. Davis died during previous congress" | Name the district for rep. warren r. davis died during previous congress | CREATE TABLE table_225200_4 (district VARCHAR, reason_for_change VARCHAR) |
SELECT points_classification_navy_blue_jersey FROM table_name_8 WHERE general_classification_yellow_jersey = "graeme brown" | Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown | CREATE TABLE table_name_8 (
points_classification_navy_blue_jersey VARCHAR,
general_classification_yellow_jersey VARCHAR
) |
SELECT score FROM table_name_88 WHERE home = "phoenix" AND record = "3–6–0" | What was the score did phoenix have with a Record of 3–6–0 at home? | CREATE TABLE table_name_88 (score VARCHAR, home VARCHAR, record VARCHAR) |
SELECT COUNT(reason_for_change) FROM table_225200_4 WHERE date_successor_seated = "Not filled this congress" | Name the total number of reason for change for not filled this congress | CREATE TABLE table_225200_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR) |
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, 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_i... | in 2105, what are the three most frequent laboratory tests ordered for patients during the same month after receiving cv cath plcmt w guidance? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CR... |
SELECT record FROM table_name_95 WHERE home = "anaheim" | What was the record while at home in Anaheim? | CREATE TABLE table_name_95 (record VARCHAR, home VARCHAR) |
SELECT vacator FROM table_225200_4 WHERE reason_for_change = "Resigned February 26, 1836 because of ill health" | Name the vacator for resigned february 26, 1836 because of ill health | CREATE TABLE table_225200_4 (vacator VARCHAR, reason_for_change VARCHAR) |
SELECT "Surface" FROM table_47414 WHERE "Score" = '4–6, 6–4, 3–6' | What is the Surface of the court in the match with a Score of 4 6, 6 4, 3 6? | CREATE TABLE table_47414 (
"Outcome" text,
"Year" real,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) |
SELECT inning FROM table_name_86 WHERE team = "minnesota twins" AND date = "06-07-1961" | Which inning were the Minnesota Twins in on 06-07-1961? | CREATE TABLE table_name_86 (inning VARCHAR, team VARCHAR, date VARCHAR) |
SELECT vacator FROM table_225205_3 WHERE reason_for_change = "Failure to elect" | Name the vacator for failure to elect | CREATE TABLE table_225205_3 (vacator VARCHAR, reason_for_change VARCHAR) |
SELECT COUNT(*) > 0 FROM semester WHERE NOT semester IN (SELECT DISTINCT SEMESTERalias1.semester FROM course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias1 WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND COURSEalias0.department = 'SPANISH' AND COURSEalias0.numbe... | SPANISH 278 is offered every semester , correct ? | CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TAB... |
SELECT away_team FROM table_name_16 WHERE venue = "arden street oval" | Who was the away team at the game held at Arden Street Oval? | CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR) |
SELECT state__class_ FROM table_225205_3 WHERE reason_for_change = "Iowa admitted to the Union December 28, 1846" | Name the state class for iowa admitted to the union december 28, 1846 | CREATE TABLE table_225205_3 (state__class_ VARCHAR, reason_for_change VARCHAR) |
SELECT finished FROM table_14345690_5 WHERE exited = "Day 11" | What is the finished place where exited is day 11? | CREATE TABLE table_14345690_5 (
finished VARCHAR,
exited VARCHAR
) |
SELECT venue FROM table_name_91 WHERE away_team = "footscray" | What is the name of the venue that away team footscray played at? | CREATE TABLE table_name_91 (venue VARCHAR, away_team VARCHAR) |
SELECT vacator FROM table_225206_3 WHERE reason_for_change = "Failure to elect" | Who was the vacator when the reason for change was failure to elect? | CREATE TABLE table_225206_3 (vacator VARCHAR, reason_for_change VARCHAR) |
SELECT time FROM table_26842217_8 WHERE visiting_team = "Clemson" | If the visiting team is Clemson, when was the time? | CREATE TABLE table_26842217_8 (
time VARCHAR,
visiting_team VARCHAR
) |
SELECT date FROM table_name_74 WHERE venue = "princes park" | What date was the game played at princes park? | CREATE TABLE table_name_74 (date VARCHAR, venue VARCHAR) |
SELECT COUNT(nat) FROM table_22542179_3 WHERE total_g = 6 | Name the number of nat for total g of 6 | CREATE TABLE table_22542179_3 (nat VARCHAR, total_g VARCHAR) |
SELECT "Tries against" FROM table_22022 WHERE "Points for" = '150' | How many tries against were there with points of 150? | CREATE TABLE table_22022 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) |
SELECT COUNT(track) FROM table_name_75 WHERE recorded = "1964-01-08" | How many tracks were Recorded 1964-01-08? | CREATE TABLE table_name_75 (track VARCHAR, recorded VARCHAR) |
SELECT l_g FROM table_22542179_3 WHERE player = "Rubio" | Name the l g for rubio | CREATE TABLE table_22542179_3 (l_g VARCHAR, player VARCHAR) |
SELECT COUNT("Outgoing manager") FROM table_30340 WHERE "Team" = 'Sunshine Stars' | how many managers left sunshine stars? | CREATE TABLE table_30340 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
) |
SELECT translation FROM table_name_61 WHERE composer = "jacques brel, rod mckuen" | WhatTranslation has a Composer of jacques brel, rod mckuen? | CREATE TABLE table_name_61 (translation VARCHAR, composer VARCHAR) |
SELECT MIN(total_apps) FROM table_22542179_3 WHERE player = "Txema" | Name the least total apaps for txema | CREATE TABLE table_22542179_3 (total_apps INTEGER, player VARCHAR) |
SELECT london_borough FROM table_19149550_9 WHERE pakistani_population = 7797 | What's the London borough with 7797 Pakistani citizens? | CREATE TABLE table_19149550_9 (
london_borough VARCHAR,
pakistani_population VARCHAR
) |
SELECT recorded FROM table_name_31 WHERE track > 2 AND translation = "the last meal" | Which recording has a Track larger than 2, and a Translation of the last meal? | CREATE TABLE table_name_31 (recorded VARCHAR, track VARCHAR, translation VARCHAR) |
SELECT COUNT(pop__km²) FROM table_2252745_1 WHERE administrative_centre = "Egilsstaðir" | when administrative centre is egilsstaðir, what is the pop./ km²? | CREATE TABLE table_2252745_1 (pop__km² VARCHAR, administrative_centre VARCHAR) |
SELECT "High assists" FROM table_1352 WHERE "Date" = 'December 14' | Name the high assists for december 14 | CREATE TABLE table_1352 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT title FROM table_name_90 WHERE track = 3 | Which title has a Track of 3? | CREATE TABLE table_name_90 (title VARCHAR, track VARCHAR) |
SELECT pop__km² FROM table_2252745_1 WHERE area__km²_ = 22721 | when the area (km²) is 22721, what is the pop./ km²? | CREATE TABLE table_2252745_1 (pop__km² VARCHAR, area__km²_ VARCHAR) |
SELECT "Margin of victory" FROM table_41402 WHERE "Runner(s)-up" = 'jack nicklaus' | By how many strokes did Lema beat Jack Nicklaus? | CREATE TABLE table_41402 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) |
SELECT date FROM table_name_9 WHERE home = "new jersey" AND record = "7-23-7" | When was the home game when the New Jersey team's record became 7-23-7? | CREATE TABLE table_name_9 (date VARCHAR, home VARCHAR, record VARCHAR) |
SELECT MAX(population_2008_07_01) FROM table_2252745_1 WHERE administrative_centre = "Selfoss" | What is the max pop of 2008 for selfoss? | CREATE TABLE table_2252745_1 (population_2008_07_01 INTEGER, administrative_centre VARCHAR) |
SELECT COUNT(title) FROM table_10718631_2 WHERE no_in_series = 113 | How many titles were there for the 113 episode? | CREATE TABLE table_10718631_2 (
title VARCHAR,
no_in_series VARCHAR
) |
SELECT college FROM table_name_86 WHERE pick = 11 | What college has a pick of 11? | CREATE TABLE table_name_86 (college VARCHAR, pick VARCHAR) |
SELECT pop__km² FROM table_2252745_1 WHERE _number = 4 | When the # is 4, what is the pop./ km²? | CREATE TABLE table_2252745_1 (pop__km² VARCHAR, _number VARCHAR) |
SELECT q.Id AS "post_link", q.Tags FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId WHERE a.OwnerUserId = @UserId AND NOT q.Tags LIKE '%<python>%' | My answers for questions not containing Python tag. | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGu... |
SELECT AVG(pick) FROM table_name_28 WHERE college = "florida state" | What is the average pick of Florida State? | CREATE TABLE table_name_28 (pick INTEGER, college VARCHAR) |
SELECT player FROM table_22538587_3 WHERE l_apps = 17 | Name the player for l apps for 17 | CREATE TABLE table_22538587_3 (player VARCHAR, l_apps VARCHAR) |
SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-77687')) AND intakeoutput.cellpath LIKE '%intake%' AND D... | what was the name of the intake that patient 005-77687 on last month/30 first had? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wa... |
SELECT AVG(pick) FROM table_name_63 WHERE college = "san diego state" | What is the average pick of San Diego State? | CREATE TABLE table_name_63 (pick INTEGER, college VARCHAR) |
SELECT MIN(total_apps) FROM table_22538587_3 WHERE player = "Jaime" | Name the least total apps for jaime | CREATE TABLE table_22538587_3 (total_apps INTEGER, player VARCHAR) |
SELECT COUNT(stadium) FROM table_11208143_9 WHERE capacity = 7500 | How many stadiums are there with a capacity of 7500? | CREATE TABLE table_11208143_9 (
stadium VARCHAR,
capacity VARCHAR
) |
SELECT MIN(sp) + fs FROM table_name_64 WHERE name = "miljan begovic" AND placings > 189 | What is the lowest value for SP+FS for Miljan Begovic with a greater than 189 place? | CREATE TABLE table_name_64 (fs VARCHAR, sp INTEGER, name VARCHAR, placings VARCHAR) |
SELECT COUNT(l_g) FROM table_22538587_3 WHERE c_g > 1.0 AND c_apps = 3 | Name the total number of lg for cg is larger than 1.0 for c apps is 3 | CREATE TABLE table_22538587_3 (l_g VARCHAR, c_g VARCHAR, c_apps VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2170" AND lab.label = "Other Cells" | How many patients born before the year 2170 had a lab test named other cells? | 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 AVG(points) FROM table_name_42 WHERE rank < 12 AND name = "david santee" | What is the average points value for a rank less than 12 for David Santee? | CREATE TABLE table_name_42 (points INTEGER, rank VARCHAR, name VARCHAR) |
SELECT result FROM table_22577693_1 WHERE runner_up = "[[|]] 151/8 (50.0 overs)" | If the runner-up is [[|]] 151/8 (50.0 overs), what were the results? | CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR) |
SELECT diagnoses.long_title, procedures.short_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "23733" | what is diagnoses long title and procedure short title of subject id 23733? | 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 COUNT(rank) FROM table_name_44 WHERE points = 185.16 AND sp + fs > 5 | What is the total number for Rank with 185.16 points and a SP+FS value greater than 5? | CREATE TABLE table_name_44 (rank VARCHAR, points VARCHAR, sp VARCHAR, fs VARCHAR) |
SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = "Hong Kong 207/6 (47.1 overs)" | What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)? | CREATE TABLE table_22577693_1 (host_nation_s_ VARCHAR, winner VARCHAR) |
SELECT JOB_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of job_id and department_id in a bar chart. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_I... |
SELECT MAX(sp) + fs FROM table_name_27 WHERE points > 164.56 AND rank > 1 AND name = "mitsuru matsumura" | What is the largest value for SP+FS with more than 164.56 points for Mitsuru Matsumura in a Rank greater than 1? | CREATE TABLE table_name_27 (fs VARCHAR, sp INTEGER, name VARCHAR, points VARCHAR, rank VARCHAR) |
SELECT details FROM table_22577693_1 WHERE result = "Kuwait won by 72 runs Scorecard" | If the results are Kuwait won by 72 runs scorecard, what are the details? | CREATE TABLE table_22577693_1 (details VARCHAR, result VARCHAR) |
SELECT * FROM table_train_42 WHERE allergy_to_vitamin_c = 1 OR allergy_to_thiamine = 1 | patients with a history of hypersensitivity to vitamin c or thiamine | CREATE TABLE table_train_42 (
"id" int,
"taking_vitamin_c" bool,
"do_not_resuscitate_dnr" bool,
"allergy_to_thiamine" bool,
"taking_thiamine" bool,
"receiving_vasopressor" bool,
"sepsis" bool,
"hypotension" bool,
"allergy_to_vitamin_c" bool,
"glucose_6_phosphate_dehydrogenase_def... |
SELECT variant__with_niqqud__ FROM table_name_84 WHERE phonetic_realisation = "[[[|u]]]" | When phonetic realisation is [[[|u]]], what is the variant with niqqud? | CREATE TABLE table_name_84 (variant__with_niqqud__ VARCHAR, phonetic_realisation VARCHAR) |
SELECT winner FROM table_22577693_1 WHERE final_venue = "Kowloon Cricket Club" | Who was the winner if the final venue is Kowloon Cricket Club? | CREATE TABLE table_22577693_1 (winner VARCHAR, final_venue VARCHAR) |
SELECT dorm_name, AVG(T1.Age) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name ORDER BY dorm_name | Find the average age of students living in each dorm and the name of dorm Plot them as bar chart, rank by the bars in asc. | CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHA... |
SELECT variant__with_niqqud__ FROM table_name_53 WHERE phonemic_value = "/v/" AND without_niqqud = "as middle letter: וו" | When a variant without niqqud is as middle letter: וו with a phonemic value of /v/, what is the variant with niqqud? | CREATE TABLE table_name_53 (variant__with_niqqud__ VARCHAR, phonemic_value VARCHAR, without_niqqud VARCHAR) |
SELECT us_viewers__millions_ FROM table_22570439_1 WHERE series__number = 83 | How many u.s. viewers (million) have a series # 83? | CREATE TABLE table_22570439_1 (us_viewers__millions_ VARCHAR, series__number VARCHAR) |
SELECT Id FROM Comments WHERE Text = 'http://whathaveyoutried.com' | what have you tried comments. | CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... |
SELECT phonetic_realisation FROM table_name_12 WHERE phonemic_value = "/v/" AND without_niqqud = "as initial letter: ו" | What is the phonetic realisation if the phonemic value is /v/ and the without niqqud is as initial letter: ו? | CREATE TABLE table_name_12 (phonetic_realisation VARCHAR, phonemic_value VARCHAR, without_niqqud VARCHAR) |
SELECT us_viewers__millions_ FROM table_22570439_1 WHERE season__number = 5 | How many u.s. viewers (millions) have 5 as the season #? | CREATE TABLE table_22570439_1 (us_viewers__millions_ VARCHAR, season__number VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.