answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT SUM(crowd) FROM table_name_33 WHERE home_team = "essendon" | What is the sum of Crowd when Essendon was the home team? | CREATE TABLE table_name_33 (crowd INTEGER, home_team VARCHAR) |
SELECT republican AS :_steve_sauerberg FROM table_16751596_2 WHERE dates_administered = "August 12, 2008" | Name the republican steve sauerberg for august 12, 2008 | CREATE TABLE table_16751596_2 (republican VARCHAR, dates_administered VARCHAR) |
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', prescriptions.startdate)) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 99883 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'clotrimazole' ORDER BY prescriptions.startda... | how many hours has it been since last time patient 99883 was prescribed clotrimazole during this hospital visit? | CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_tit... |
SELECT home_team AS score FROM table_name_8 WHERE away_team = "north melbourne" | What was the home team score when North Melbourne was the away team? | CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR) |
SELECT poll_source FROM table_16751596_2 WHERE dates_administered = "July 12, 2008" | Name the poll source for july 12, 2008 | CREATE TABLE table_16751596_2 (poll_source VARCHAR, dates_administered VARCHAR) |
SELECT "Name" FROM table_52595 WHERE "Roll" = '422' | Who has a roll value of 422? | CREATE TABLE table_52595 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) |
SELECT us_hot_100 FROM table_name_29 WHERE year = 2002 AND album = "west coast bad boyz, vol. 3: poppin' collars" | What is the U.S. Hot 100 chart number of the single off of the 2002 album west coast bad boyz, vol. 3: poppin' collars? | CREATE TABLE table_name_29 (us_hot_100 VARCHAR, year VARCHAR, album VARCHAR) |
SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE lead_margin = 35 | When the lead margin was 35, what were the Democrat: Vivian Davis Figures? | CREATE TABLE table_16751596_12 (democrat VARCHAR, lead_margin VARCHAR) |
SELECT location_attendance FROM table_11964154_9 WHERE high_rebounds = "Nick Collison (14)" | what's the location attendance where high rebounds is nick collison (14) | CREATE TABLE table_11964154_9 (
location_attendance VARCHAR,
high_rebounds VARCHAR
) |
SELECT us_rap FROM table_name_98 WHERE album = "west coast bad boyz, vol. 3: poppin' collars" | What is the U.S. Rap chart number of the album west coast bad boyz, vol. 3: poppin' collars? | CREATE TABLE table_name_98 (us_rap VARCHAR, album VARCHAR) |
SELECT republican AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = "June 30, 2008" | On June 30, 2008 who what was the Republican: Jeff Sessions percentage? | CREATE TABLE table_16751596_12 (republican VARCHAR, dates_administered VARCHAR) |
SELECT Work_Type, AVG(Years_working) FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_ID = t2.journalist_ID GROUP BY t2.Work_Type ORDER BY AVG(Years_working) DESC | Visualize the average experience working length of journalists working on different role type using a bar chart, and could you rank in descending by the total number? | CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance... |
SELECT MAX(round) FROM table_name_46 WHERE team = "baltimore bullets" AND pick > 6 | What is the top round for the baltimore bullets with a Pick larger than 6? | CREATE TABLE table_name_46 (round INTEGER, team VARCHAR, pick VARCHAR) |
SELECT COUNT(republican) AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = "November 14, 2007" | On November 14, 2007, how many different Republican: Jeff Sessions are there? | CREATE TABLE table_16751596_12 (republican VARCHAR, dates_administered VARCHAR) |
SELECT neighborhood.name FROM business, neighborhood, review, user WHERE neighborhood.business_id = business.business_id AND review.business_id = business.business_id AND user.name = 'Michelle' AND user.user_id = review.user_id | In which neighborhoods has Michelle reviewed a business ? | CREATE TABLE tip (
tip_id int,
business_id varchar,
text longtext,
user_id varchar,
likes int,
year int,
month varchar
)
CREATE TABLE checkin (
cid int,
business_id varchar,
count int,
day varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighb... |
SELECT away_team AS score FROM table_name_84 WHERE venue = "lake oval" | What team was the away team when they played at lake oval? | CREATE TABLE table_name_84 (away_team VARCHAR, venue VARCHAR) |
SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = "November 14, 2007" | On November 14, 2007, what are the Democrat: Vivian Davis Figures percentages? | CREATE TABLE table_16751596_12 (democrat VARCHAR, dates_administered VARCHAR) |
SELECT "Contestant" FROM table_26661 WHERE "Province, Community" = 'Baoruco' | Which contestant is from the province of baoruco | CREATE TABLE table_26661 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
) |
SELECT crowd FROM table_name_3 WHERE home_team = "north melbourne" | How many people were in the crowd when North Melbourne was the home team? | CREATE TABLE table_name_3 (crowd VARCHAR, home_team VARCHAR) |
SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = "July 31, 2008" | On July 31, 2008, what are the Democrat: Vivian Davis Figures percentages? | CREATE TABLE table_16751596_12 (democrat VARCHAR, dates_administered VARCHAR) |
SELECT AVG(points) FROM table_name_42 WHERE artist = "kamil mikulčík and nela" AND place > 18 | What is the average Points when the artist is kamil mikul k and nela, and the Place is larger than 18? | CREATE TABLE table_name_42 (
points INTEGER,
artist VARCHAR,
place VARCHAR
) |
SELECT SUM(avg) FROM table_name_76 WHERE player = "craig whelihan" AND yards < 0 | What is Craig Whelihan's average when his yards are smaller than 0? | CREATE TABLE table_name_76 (avg INTEGER, player VARCHAR, yards VARCHAR) |
SELECT democrat AS :_mark_begich FROM table_16751596_13 WHERE dates_administered = "October 6, 2008" | What was Mark Begich polling on October 6, 2008? | CREATE TABLE table_16751596_13 (democrat VARCHAR, dates_administered VARCHAR) |
SELECT COUNT(*) FROM table_204_467 WHERE "scorers" = 'sapsford' | in how many games was sapsford a scorer ? | CREATE TABLE table_204_467 (
id number,
"date" text,
"opponents" text,
"h/a" text,
"result\nf-a" text,
"scorers" text,
"attendance" number
) |
SELECT MAX(avg) FROM table_name_83 WHERE yards = 1229 | Which largest average had 1229 yards? | CREATE TABLE table_name_83 (avg INTEGER, yards VARCHAR) |
SELECT COUNT(dates_administered) FROM table_16751596_13 WHERE poll_source = "Research 2000/Daily Kos" | When the poll source is research 2000/daily kos, what is the total number of dates administered? | CREATE TABLE table_16751596_13 (dates_administered VARCHAR, poll_source VARCHAR) |
SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name DESC | For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and revenue , and group by attribute headquarter, and display bars 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 constructor FROM table_name_8 WHERE circuit = "silverstone" | What is the constructor where the circuit is Silverstone? | CREATE TABLE table_name_8 (constructor VARCHAR, circuit VARCHAR) |
SELECT COUNT(lead_maragin) FROM table_16751596_13 WHERE dates_administered = "July 17, 2008" | On July 17, 2008, what was the total number of lead maragin? | CREATE TABLE table_16751596_13 (lead_maragin VARCHAR, dates_administered VARCHAR) |
SELECT "Position" FROM table_30872 WHERE "College/junior/club team" = 'Roseau High School (USHS-MN)' | What position did Roseau High School (USHS-MN) play? | CREATE TABLE table_30872 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) |
SELECT winning_driver FROM table_name_42 WHERE race_name = "viii gran premio di siracusa" | Who is the Winning Driver in the race viii gran premio di siracusa? | CREATE TABLE table_name_42 (winning_driver VARCHAR, race_name VARCHAR) |
SELECT club FROM table_1676073_12 WHERE points_against = "608" | What clubs had 608 points against? | CREATE TABLE table_1676073_12 (club VARCHAR, points_against VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "63" AND prescriptions.drug = "PNEUMOcoccal Vac Polyvalent" | How many patients aged below 63 years had the drug pneumococcal vac polyvalent? | 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 date FROM table_name_91 WHERE winning_driver = "stirling moss" AND race_name = "vi grand prix de caen" | What is the date that the winner driver is Stirling Moss in the race named vi grand prix de caen? | CREATE TABLE table_name_91 (date VARCHAR, winning_driver VARCHAR, race_name VARCHAR) |
SELECT played FROM table_1676073_12 WHERE points = "48" | How many games played for the team with 48 points? | CREATE TABLE table_1676073_12 (played VARCHAR, points VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Fiber-optic bronchoscopy" | give me the number of patients whose procedure long title is fiber-optic bronchoscopy? | CREATE TABLE procedures (
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 diagnoses (
... |
SELECT state FROM table_name_55 WHERE location = "39.1178°n 106.4454°w" | Which state is the location of 39.1178°n 106.4454°w in? | CREATE TABLE table_name_55 (state VARCHAR, location VARCHAR) |
SELECT played FROM table_1676073_12 WHERE points_against = "686" | How many games played for the team with 686 points against? | CREATE TABLE table_1676073_12 (played VARCHAR, points_against VARCHAR) |
SELECT "Location" FROM table_66565 WHERE "Silver" = 'david mccann' AND "Gold" = 'morgan fox' | What location did david mccann receive a siver and morgan fox win the gold? | CREATE TABLE table_66565 (
"Year" text,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
) |
SELECT MAX(rank) FROM table_name_12 WHERE mountain_peak = "mount elbert" | What is the highest rank Mount Elbert has? | CREATE TABLE table_name_12 (rank INTEGER, mountain_peak VARCHAR) |
SELECT club FROM table_1676073_12 WHERE points_for = "748" | What clubs recorded 748 points to the good? | CREATE TABLE table_1676073_12 (club VARCHAR, points_for VARCHAR) |
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-52327')) AND NOT vitalperiodic.heartrate IS NUL... | when did patient 030-52327 have the minimum value of heartrate for the last time a day before? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeou... |
SELECT mountain_range FROM table_name_3 WHERE location = "37.3934°n 104.9201°w" | What is the mountain range at 37.3934°n 104.9201°w? | CREATE TABLE table_name_3 (mountain_range VARCHAR, location VARCHAR) |
SELECT COUNT(points_for) FROM table_1676073_12 WHERE points_against = "632" | How many teams had 632 points against? | CREATE TABLE table_1676073_12 (points_for VARCHAR, points_against VARCHAR) |
SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-4486')) AND STRFTIME('%y-%m', lab.labresulttime) >= '2100-12' ORDER BY lab.labresultt... | what was the first test which patient 002-4486 received since 12/2100? | 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 location FROM table_name_77 WHERE mountain_peak = "blanca peak" | What is the location of Blanca Peak? | CREATE TABLE table_name_77 (location VARCHAR, mountain_peak VARCHAR) |
SELECT drawn FROM table_1676073_12 WHERE lost = "11" AND points_for = "748" | How many games drawn for the team that lost 11 and had 748 points? | CREATE TABLE table_1676073_12 (drawn VARCHAR, lost VARCHAR, points_for VARCHAR) |
SELECT "Television" FROM table_26295 WHERE "Date" = 'December 28, 2009' | What was the television that was dated December 28, 2009? | CREATE TABLE table_26295 (
"Bowl Game" text,
"Date" text,
"Stadium" text,
"City" text,
"Television" text,
"Matchup/Results" text,
"Attendance" real,
"Payout (US$)" text
) |
SELECT state FROM table_name_4 WHERE mountain_peak = "west spanish peak" | Which state is West Spanish Peak in? | CREATE TABLE table_name_4 (state VARCHAR, mountain_peak VARCHAR) |
SELECT COUNT(republican) AS :_jack_hoogendyk FROM table_16751596_6 WHERE poll_source = "Public Policy Polling" | How many times did Public Policy Polling under Republican: Jack Hoogendyk? | CREATE TABLE table_16751596_6 (republican VARCHAR, poll_source VARCHAR) |
SELECT COUNT(poles) FROM table_25538763_1 WHERE season = 2012 AND points = "252" | How many pole data were given on season 2012 with 252 points? | CREATE TABLE table_25538763_1 (
poles VARCHAR,
season VARCHAR,
points VARCHAR
) |
SELECT mountain_range FROM table_name_59 WHERE rank = 5 | What is the ranked 5 mountain range? | CREATE TABLE table_name_59 (mountain_range VARCHAR, rank VARCHAR) |
SELECT poll_source FROM table_16751596_6 WHERE dates_administered = "July 10, 2008" | What poll source had an administered date on July 10, 2008? | CREATE TABLE table_16751596_6 (poll_source VARCHAR, dates_administered VARCHAR) |
SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85895) AND microbiologyevents.spec_type_desc = 'urine' AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start o... | when patient 85895 received a microbiology test for a urine for the last time during a month before? | CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
... |
SELECT district_residence FROM table_name_4 WHERE name = "choice b. randell" | Name of choice b. Randell is the name of which District Residence? | CREATE TABLE table_name_4 (district_residence VARCHAR, name VARCHAR) |
SELECT latitude FROM table_16768245_2 WHERE diameter = "184.0" | What is the latitude when the diameter is 184.0? | CREATE TABLE table_16768245_2 (latitude VARCHAR, diameter VARCHAR) |
SELECT Statement_Details, AVG(Account_Details) FROM Accounts AS T1 JOIN Statements AS T2 ON T1.Statement_ID = T2.Statement_ID GROUP BY Statement_Details | Show the average of account details for different statement details in a bar chart. | CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEG... |
SELECT name FROM table_name_32 WHERE took_office = "march 4, 1903" | Who has a Took Office of march 4, 1903? | CREATE TABLE table_name_32 (name VARCHAR, took_office VARCHAR) |
SELECT COUNT(longitude) FROM table_16768245_2 WHERE diameter = "224.0" | How many longitudes have a diameter of 224.0? | CREATE TABLE table_16768245_2 (longitude VARCHAR, diameter VARCHAR) |
SELECT All_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home ORDER BY COUNT(All_Home) DESC | Give me the comparison about the amount of All_Home over the All_Home , and group by attribute All_Home by a bar chart, I want to sort by the how many all home in desc please. | 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 took_office FROM table_name_30 WHERE party = "democrat" AND name = "john hancock" | Which Took Office that has a Party of democrat, under the name of John Hancock | CREATE TABLE table_name_30 (took_office VARCHAR, party VARCHAR, name VARCHAR) |
SELECT namesake FROM table_16768245_2 WHERE longitude = "189.5W" | What is the namesake of the feature found at 189.5w longitude? | CREATE TABLE table_16768245_2 (namesake VARCHAR, longitude 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 name FROM table_name_67 WHERE took_office = "march 4, 1875" | Who has Took Office of march 4, 1875? | CREATE TABLE table_name_67 (name VARCHAR, took_office VARCHAR) |
SELECT namesake FROM table_16768245_2 WHERE longitude = "147.1W" | When the longitude is 147.1w what is the namesake of the feature? | CREATE TABLE table_16768245_2 (namesake VARCHAR, longitude VARCHAR) |
SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie' | Find the names of schools that have some players in the mid position but not in the goalie position. | CREATE TABLE tryout (
cName VARCHAR,
pPos VARCHAR
) |
SELECT record FROM table_name_89 WHERE date = "june 22" | Name the record on june 22 | CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR) |
SELECT COUNT(longitude) FROM table_16768245_2 WHERE latitude = "9.9N" | How many longitudes have a latitude of 9.9n? | CREATE TABLE table_16768245_2 (longitude VARCHAR, latitude VARCHAR) |
SELECT title FROM table_name_62 WHERE presentation_of_credentials = "april 10, 1907" | Name the title with presentation of credentials of april 10, 1907 | CREATE TABLE table_name_62 (
title VARCHAR,
presentation_of_credentials VARCHAR
) |
SELECT COUNT(attendance) FROM table_name_50 WHERE visitor = "bulls" | Name the total number in attendance for when the bulls visited | CREATE TABLE table_name_50 (attendance VARCHAR, visitor VARCHAR) |
SELECT MAX(points) AS against FROM table_16770037_3 WHERE pts = 10 | What is the maximum points against when team's points are 10? | CREATE TABLE table_16770037_3 (points INTEGER, pts VARCHAR) |
SELECT fastest_lap FROM table_name_50 WHERE winning_driver = "adam christodoulou" AND pole_position = "adam christodoulou" | Who had the fastest lap when adam christodoulou was the winning driver and had the pole position? | CREATE TABLE table_name_50 (
fastest_lap VARCHAR,
winning_driver VARCHAR,
pole_position VARCHAR
) |
SELECT MAX(swimsuit) FROM table_name_1 WHERE interview < 8.46 | Name the most swimsuit for interview less than 8.46 | CREATE TABLE table_name_1 (swimsuit INTEGER, interview INTEGER) |
SELECT MAX(tries_against) FROM table_16770037_3 WHERE team = Bridgend | What are the tries against when they played against Bridgend? | CREATE TABLE table_16770037_3 (tries_against INTEGER, team VARCHAR, Bridgend VARCHAR) |
SELECT "Location" FROM table_25220 WHERE "Race Name" = 'Trenton 300' | Name the location for trenton 300 | CREATE TABLE table_25220 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Length" text,
"Track" text,
"Location" text,
"Pole Position" text,
"Winning Driver" text
) |
SELECT MAX(evening_gown) FROM table_name_38 WHERE average < 8.793 AND swimsuit < 8.12 AND interview = 8.51 | Name the most evening gown for average less than 8.793 with interview of 8.51 and swimsuit less than 8.12 | CREATE TABLE table_name_38 (evening_gown INTEGER, interview VARCHAR, average VARCHAR, swimsuit VARCHAR) |
SELECT MIN(tries_for) FROM table_16770037_3 | What is the smallest number of tries for in a game? | CREATE TABLE table_16770037_3 (tries_for INTEGER) |
SELECT MAX("Round") FROM table_65715 WHERE "Pick" > '179' | Which Round has a Pick larger than 179? | CREATE TABLE table_65715 (
"Player" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
) |
SELECT AVG(starts) FROM table_name_86 WHERE wins < 0 | On average, how many Starts have Wins that are smaller than 0? | CREATE TABLE table_name_86 (starts INTEGER, wins INTEGER) |
SELECT latitude FROM table_16768245_5 WHERE name = "Philae Sulcus" | Philae Sulcus has a latitude of what? | CREATE TABLE table_16768245_5 (latitude VARCHAR, name VARCHAR) |
SELECT "Antiparticle symbol" FROM table_76408 WHERE "Rest mass ( MeV / c 2 )" = '.47 ± .33' | What is the antiparticle symbol with a rest mess (mev/c2) of .47 .33? | CREATE TABLE table_76408 (
"Particle name" text,
"Particle symbol" text,
"Antiparticle symbol" text,
"Quark content" text,
"Rest mass ( MeV / c 2 )" text,
"J P C" text,
"Mean lifetime ( s )" text,
"Commonly decays to (>5% of decays)" text
) |
SELECT MAX(top_10s) FROM table_name_53 WHERE starts = 14 | Which of the top-10s has a starts value of 14? | CREATE TABLE table_name_53 (top_10s INTEGER, starts VARCHAR) |
SELECT opponent FROM table_16776312_3 WHERE date = "12 May 2008" | Name the opponent for 12 may 2008 | CREATE TABLE table_16776312_3 (opponent VARCHAR, date VARCHAR) |
SELECT "Score" FROM table_75118 WHERE "Loss" = 'maholm (2–4)' | What was the score of the game with a loss of Maholm (2 4)? | CREATE TABLE table_75118 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) |
SELECT SUM(starts) FROM table_name_52 WHERE tournament = "hsbc champions" AND wins < 0 | In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0? | CREATE TABLE table_name_52 (starts INTEGER, tournament VARCHAR, wins VARCHAR) |
SELECT COUNT(points) FROM table_16788123_5 WHERE team = "Sportivo Luqueño" | how many points scored by sportivo luqueño | CREATE TABLE table_16788123_5 (points VARCHAR, team VARCHAR) |
SELECT demographic.admission_type, demographic.discharge_location FROM demographic WHERE demographic.subject_id = "990" | what is admission type and discharge location of subject id 990? | 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 trainer FROM table_name_93 WHERE odds > 36 AND post = 11 | Who trained the horse on post 11 with over 36 odds? | CREATE TABLE table_name_93 (trainer VARCHAR, odds VARCHAR, post VARCHAR) |
SELECT points FROM table_16795394_3 WHERE team__number2 = "Atlético Nacional" | For team Atlético Nacional, what were the points? | CREATE TABLE table_16795394_3 (points VARCHAR, team__number2 VARCHAR) |
SELECT Name, SUM(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name ORDER BY Name | For each phone, show its names and total number of stocks Visualize by bar chart, and could you sort in ascending by the names? | CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price... |
SELECT MIN(post) FROM table_name_31 WHERE jockey = "calvin borel" | What is the lowest post number for calvin borel? | CREATE TABLE table_name_31 (post INTEGER, jockey VARCHAR) |
SELECT COUNT(team__number1) FROM table_16795394_3 WHERE team__number2 = "San Lorenzo" | If team two is San Lorenzo, how many were on team one? | CREATE TABLE table_16795394_3 (team__number1 VARCHAR, team__number2 VARCHAR) |
SELECT q.Id, q.Title, q.CreationDate, q.Body, q.Tags FROM Posts AS q, Users AS u WHERE q.AnswerCount = 0 AND q.OwnerUserId = u.Id AND u.Reputation = 1 AND NOT q.PostTypeId = 2 ORDER BY CreationDate DESC | Find Questions with No Answers by Users with 1 Reputation. | CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE... |
SELECT horse FROM table_name_43 WHERE jockey = "jara" | What horse for jara? | CREATE TABLE table_name_43 (horse VARCHAR, jockey VARCHAR) |
SELECT COUNT(points) FROM table_16795394_3 WHERE team__number2 = "Lanús" | If team two is Lanús, what was the total number of points? | CREATE TABLE table_16795394_3 (points VARCHAR, team__number2 VARCHAR) |
SELECT AVG("Points") FROM table_41153 WHERE "Difference" = '3' AND "Played" < '10' | Which Points has a Difference of 3, and a Played smaller than 10? | CREATE TABLE table_41153 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) |
SELECT date FROM table_name_90 WHERE leading_scorer = "lebron james (25)" | What is the date when Lebron James (25) was the lead scorer? | CREATE TABLE table_name_90 (date VARCHAR, leading_scorer VARCHAR) |
SELECT name AS origin FROM table_16799784_11 WHERE name = "Nike Fossae" | What is the name origin of Nike Fossae? | CREATE TABLE table_16799784_11 (name VARCHAR) |
SELECT COUNT(*) FROM table_204_229 WHERE "units" = 'mpa (kpsi)' | how many times does mpa -lrb- kpsi -rrb- appear under the units column ? | CREATE TABLE table_204_229 (
id number,
"property" text,
"test method" text,
"units" text,
"4275" text,
"4301" text,
"4435" text,
"4630" text,
"4645" text
) |
SELECT SUM(total) FROM table_name_29 WHERE gold < 0 | Which Total has a Gold smaller than 0? | CREATE TABLE table_name_29 (total INTEGER, gold INTEGER) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.