answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT driver___passenger FROM table_16941304_4 WHERE points = 394 | Name the driver passenger for 394 points | CREATE TABLE table_16941304_4 (driver___passenger VARCHAR, points VARCHAR) |
SELECT SUM(Num_of_Audience) FROM festival_detail | What are the total number of the audiences who visited any of the festivals? | CREATE TABLE festival_detail (Num_of_Audience INTEGER) |
SELECT QPosts.ViewCount, QPosts.LastActivityDate, QPosts.Title, QPosts.Id, QPosts.Body, QPosts.AcceptedAnswerId AS "answer Id", APosts.Body FROM Posts AS QPosts, Posts AS APosts, PostTags WHERE (QPosts.Id = PostTags.PostId) AND (PostTags.TagId = 3) AND (QPosts.PostTypeId = 1) AND APosts.Id = QPosts.AcceptedAnswerId LIM... | Select All Javascript Questions and Accepted answers. | CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
C... |
SELECT equipment FROM table_16941304_4 WHERE bike_no = 3 | Name the equipment for bike number being 3 | CREATE TABLE table_16941304_4 (equipment VARCHAR, bike_no VARCHAR) |
SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION <> 'United States' | In which year are there festivals both inside the 'United States' and outside the 'United States'? | CREATE TABLE festival_detail (YEAR VARCHAR, LOCATION VARCHAR) |
SELECT lead FROM table_name_59 WHERE second = "nkeiruka ezekh" | Who is the lead for the team with Nkeiruka Ezekh as second? | CREATE TABLE table_name_59 (
lead VARCHAR,
second VARCHAR
) |
SELECT reason_for_change FROM table_1694492_2 WHERE district = "New York 10th" | In district New York 10th, what was the reason for change? | CREATE TABLE table_1694492_2 (reason_for_change VARCHAR, district VARCHAR) |
SELECT COUNT(*) FROM premises | How many premises are there? | CREATE TABLE premises (Id VARCHAR) |
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'methylprednisolone sodium succ' AND DATETIME(prescriptions.startd... | what were the three most commonly prescribed medications during a year before for patients who were also prescribed with methylprednisolone sodium succ at the same time? | CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE i... |
SELECT reason_for_change FROM table_1694505_4 WHERE district = "Wisconsin 2nd" | In the district Wisconsin 2nd, what was the reason for change? | CREATE TABLE table_1694505_4 (reason_for_change VARCHAR, district VARCHAR) |
SELECT DISTINCT premises_type FROM premises | What are all the distinct premise types? | CREATE TABLE premises (premises_type VARCHAR) |
SELECT demographic.age, demographic.days_stay FROM demographic WHERE demographic.name = "Michelle Medina" | what is age and days of hospital stay of subject name michelle medina? | 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 MIN(age_30_39) FROM table_169693_1 WHERE age_20_29 = 593 | Name the least age 30-39 where age 20-29 is 593 | CREATE TABLE table_169693_1 (age_30_39 INTEGER, age_20_29 VARCHAR) |
SELECT premises_type, premise_details FROM premises ORDER BY premises_type | Find the types and details for all premises and order by the premise type. | CREATE TABLE premises (premises_type VARCHAR, premise_details VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.departure_time <= 2359 AND flight.departure_time >= 1200) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.... | pm flights leaving SAN FRANCISCO arriving BOSTON | CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE... |
SELECT MIN(age_40_49) FROM table_169693_1 | Name the least age 40-49 | CREATE TABLE table_169693_1 (age_40_49 INTEGER) |
SELECT premises_type, COUNT(*) FROM premises GROUP BY premises_type | Show each premise type and the number of premises in that type. | CREATE TABLE premises (premises_type VARCHAR) |
SELECT year FROM table_name_54 WHERE stages = "8" | What year was stage 8 reached? | CREATE TABLE table_name_54 (
year VARCHAR,
stages VARCHAR
) |
SELECT age_30_39 FROM table_169693_1 WHERE age_10_19 = 380 | Name the age 30-39 and age 10-19 380 | CREATE TABLE table_169693_1 (age_30_39 VARCHAR, age_10_19 VARCHAR) |
SELECT product_category, COUNT(*) FROM mailshot_campaigns GROUP BY product_category | Show all distinct product categories along with the number of mailshots in each category. | CREATE TABLE mailshot_campaigns (product_category VARCHAR) |
SELECT demographic.marital_status, demographic.age FROM demographic WHERE demographic.name = "Orville Ford" | what is marital status and age of subject name orville ford? | 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 score FROM table_16967990_1 WHERE _number = "4" | Name the score for number 4 | CREATE TABLE table_16967990_1 (score VARCHAR, _number VARCHAR) |
SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM mailshot_customers) | Show the name and phone of the customer without any mailshot. | CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR) |
SELECT points_for FROM table_13399573_3 WHERE points = "52" | What amount of points for were there when there was 52 points? | CREATE TABLE table_13399573_3 (
points_for VARCHAR,
points VARCHAR
) |
SELECT COUNT(chester) FROM table_16974228_1 WHERE religion = "Hindu" | How many numbers were recorded for Chester when the religion was Hindu? | CREATE TABLE table_16974228_1 (chester VARCHAR, religion VARCHAR) |
SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response' | Show the name and phone for customers with a mailshot with outcome code 'No Response'. | CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR, outcome_code VARCHAR) |
SELECT position FROM table_28059992_5 WHERE cfl_team = "Saskatchewan" | What position did the draft pick going to saskatchewan play? | CREATE TABLE table_28059992_5 (
position VARCHAR,
cfl_team VARCHAR
) |
SELECT MIN(earnings___) AS $__ FROM table_1697190_2 | what was Casey Martin's minimum yearly earnings? | CREATE TABLE table_1697190_2 (earnings___ INTEGER) |
SELECT outcome_code, COUNT(*) FROM mailshot_customers GROUP BY outcome_code | Show the outcome code of mailshots along with the number of mailshots in each outcome code. | CREATE TABLE mailshot_customers (outcome_code VARCHAR) |
SELECT "Season #" FROM table_72254 WHERE "Written by" = 'Michael Poryes' | What season features writer Michael Poryes? | CREATE TABLE table_72254 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) |
SELECT money_list_rank FROM table_1697190_2 WHERE best_finish = "T-65" | when Casey Martin's best finish was t-65, where did he land in the money list rankings? | CREATE TABLE table_1697190_2 (money_list_rank VARCHAR, best_finish VARCHAR) |
SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING COUNT(*) >= 2 | Show the names of customers who have at least 2 mailshots with outcome code 'Order'. | CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR) |
SELECT SUM(frequency_mhz) FROM table_name_67 WHERE call_sign = "k259aw" | Name the sum of frequency will call sign of k259aw | CREATE TABLE table_name_67 (
frequency_mhz INTEGER,
call_sign VARCHAR
) |
SELECT MAX(wins) FROM table_1697190_2 | how many times did Casey Martin win? | CREATE TABLE table_1697190_2 (wins INTEGER) |
SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | Show the names of customers who have the most mailshots. | CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR) |
SELECT operator FROM table_name_81 WHERE berths > 1 AND depth__m_ = "12.5-15.5" | Name the operator with berths more than 1 and depth of 12.5-15.5 | CREATE TABLE table_name_81 (
operator VARCHAR,
berths VARCHAR,
depth__m_ VARCHAR
) |
SELECT COUNT(air_dates) FROM table_16976547_2 WHERE cycle_no = "05" | Name the total number of air dates for 05 cycle | CREATE TABLE table_16976547_2 (air_dates VARCHAR, cycle_no VARCHAR) |
SELECT T2.customer_name, T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_code = 'Order' INTERSECT SELECT T2.customer_name, T2.payment_method FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.outcome_cod... | What are the name and payment method of customers who have both mailshots in 'Order' outcome and mailshots in 'No Response' outcome. | CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR, outcome_code VARCHAR) |
SELECT t2.claim_status_name FROM claims_processing AS t1 JOIN claims_processing_stages AS t2 ON t1.claim_stage_id = t2.claim_stage_id GROUP BY t1.claim_stage_id ORDER BY COUNT(*) DESC LIMIT 1 | Which claim processing stage has the most claims? Show the claim status name. | CREATE TABLE claim_headers (
claim_header_id number,
claim_status_code text,
claim_type_code text,
policy_id number,
date_of_claim time,
date_of_settlement time,
amount_claimed number,
amount_piad number
)
CREATE TABLE customers (
customer_id number,
customer_details text
)
CRE... |
SELECT vote FROM table_16976547_2 WHERE eliminated = "Gigit" | Name the vote for gigit | CREATE TABLE table_16976547_2 (vote VARCHAR, eliminated VARCHAR) |
SELECT T2.premises_type, T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id | Show the premise type and address type code for all customer addresses. | CREATE TABLE premises (premises_type VARCHAR, premise_id VARCHAR); CREATE TABLE customer_addresses (address_type_code VARCHAR, premise_id VARCHAR) |
SELECT * FROM table_train_135 WHERE systolic_blood_pressure_sbp > 180 OR diastolic_blood_pressure_dbp > 100 OR myocardial_infarction = 1 OR heart_disease = 1 OR renal_disease = 1 OR hepatic_disease = 1 OR gastrointestinal_disease = 1 OR blood_glucose > 180 | acute or poorly controlled medical illness: blood pressure > 180 mmhg systolic or 100 mmhg diastolic; myocardial infarction within 6 months; uncompensated congestive heart failure ( nyha class iii or iv ) , severe renal, hepatic or gastrointestinal disease that could alter drug pharmacokinetics; blood glucose > 180 mg ... | CREATE TABLE table_train_135 (
"id" int,
"loss_of_consciousness" bool,
"systolic_blood_pressure_sbp" int,
"head_injury" bool,
"heart_disease" bool,
"stroke" bool,
"renal_disease" bool,
"hepatic_disease" bool,
"hydrocephalus" bool,
"peptic_ulcer_disease" bool,
"blood_glucose" ... |
SELECT finish FROM table_16976547_2 WHERE eliminated = "Patani" | Name the finish for patani | CREATE TABLE table_16976547_2 (finish VARCHAR, eliminated VARCHAR) |
SELECT DISTINCT address_type_code FROM customer_addresses | What are the distinct address type codes for all customer addresses? | CREATE TABLE customer_addresses (address_type_code VARCHAR) |
SELECT DISTINCT program_course.category FROM course, program_course WHERE course.department = 'RCSSCI' AND course.number = 396 AND program_course.course_id = course.course_id | Besides a general elective , would RCSSCI 396 fulfill any requirements ? | CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
ins... |
SELECT COUNT(immunity) FROM table_16976547_2 WHERE cycle_no = "13" | Name the total number of immunity for cycle number of 13 | CREATE TABLE table_16976547_2 (immunity VARCHAR, cycle_no VARCHAR) |
SELECT order_shipping_charges, customer_id FROM customer_orders WHERE order_status_code = 'Cancelled' OR order_status_code = 'Paid' | Show the shipping charge and customer id for customer orders with order status Cancelled or Paid. | CREATE TABLE customer_orders (order_shipping_charges VARCHAR, customer_id VARCHAR, order_status_code VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Government" AND demographic.admission_location = "EMERGENCY ROOM ADMIT" | give me the number of patients whose insurance is government and admission location is emergency room admit? | CREATE TABLE diagnoses (
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
)
C... |
SELECT new_returning_same_network FROM table_169766_13 WHERE previous_network = "NBC" | For the NBC network, what was the new/returning/same network status? | CREATE TABLE table_169766_13 (new_returning_same_network VARCHAR, previous_network VARCHAR) |
SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE shipping_method_code = 'FedEx' AND order_status_code = 'Paid' | Show the names of customers having an order with shipping method FedEx and order status Paid. | CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR) |
SELECT dorm_name, COUNT(*) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.Age > 20 GROUP BY T3.dorm_name ORDER BY COUNT(*) | Return a bar chart on how many students are older than 20 in each dorm?, and I want to rank in ascending by the Y. | CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Student (
StuID INTEGE... |
SELECT show FROM table_169766_13 WHERE new_returning_same_network = "Syndication" | Which show was sent to syndication for its new/returning/same network. | CREATE TABLE table_169766_13 (show VARCHAR, new_returning_same_network VARCHAR) |
SELECT COUNT(*) FROM COURSE | How many courses are there in total? | CREATE TABLE COURSE (Id VARCHAR) |
SELECT DISTINCT flight.flight_id 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 = 'PITTSBURGH' AND date_day.day_number = 22 AND date_day.month_number = 3 AN... | give me the flights on tuesday from LOS ANGELES to PITTSBURGH | CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
... |
SELECT new_returning_same_network FROM table_169766_13 WHERE show = "This Week in Baseball" | What is the new/returning/same network name for This Week in Baseball? | CREATE TABLE table_169766_13 (new_returning_same_network VARCHAR, show VARCHAR) |
SELECT COUNT(*) FROM COURSE WHERE Credits > 2 | How many courses have more than 2 credits? | CREATE TABLE COURSE (Credits INTEGER) |
SELECT COUNT(draws) FROM table_name_94 WHERE losses > 5 AND club = "mortlake" | How many draws did Mortlake have when the losses were more than 5? | CREATE TABLE table_name_94 (
draws VARCHAR,
losses VARCHAR,
club VARCHAR
) |
SELECT show FROM table_169766_13 WHERE previous_network = "The Family Channel" | Which show as previously on The Family Channel? | CREATE TABLE table_169766_13 (show VARCHAR, previous_network VARCHAR) |
SELECT CName FROM COURSE WHERE Credits = 1 | List all names of courses with 1 credit? | CREATE TABLE COURSE (CName VARCHAR, Credits VARCHAR) |
SELECT COUNT("Theme") FROM table_28505 WHERE "Order #" = '9' | How many themes are there where the order # is 9? | CREATE TABLE table_28505 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) |
SELECT retitled_as_same FROM table_169766_13 WHERE last_aired = 1958 | Did the name change for the program last aired in 1958? | CREATE TABLE table_169766_13 (retitled_as_same VARCHAR, last_aired VARCHAR) |
SELECT CName FROM COURSE WHERE Days = "MTW" | Which courses are taught on days MTW? | CREATE TABLE COURSE (CName VARCHAR, Days VARCHAR) |
SELECT "tournament" FROM table_204_328 WHERE id = 1 | what is the first tournament listed ? | CREATE TABLE table_204_328 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin of\nvictory" text,
"runner(s)-up" text
) |
SELECT rating FROM table_16993379_1 WHERE rank__overall_ = "190" | What was the rating of the episode with an overall ranking of 190? | CREATE TABLE table_16993379_1 (rating VARCHAR, rank__overall_ VARCHAR) |
SELECT COUNT(*) FROM DEPARTMENT WHERE Division = "AS" | What is the number of departments in Division "AS"? | CREATE TABLE DEPARTMENT (Division VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND procedures.short_title = "PTCA" | provide the number of patients whose ethnicity is hispanic or latino and procedure short title is ptca? | 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 COUNT(share) FROM table_16993379_1 WHERE viewers__millions_ = "3.11" | How many were the shares when the viewers reached 3.11 million? | CREATE TABLE table_16993379_1 (share VARCHAR, viewers__millions_ VARCHAR) |
SELECT DPhone FROM DEPARTMENT WHERE Room = 268 | What are the phones of departments in Room 268? | CREATE TABLE DEPARTMENT (DPhone VARCHAR, Room VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "83" AND demographic.days_stay > "0" | how many patients under the age of 83 stayed in the hospital for atleast a day? | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... |
SELECT saka_era FROM table_169955_1 WHERE in_malayalam = "മിഥുനം" | Name the saka era for malayalam മിഥുനം | CREATE TABLE table_169955_1 (saka_era VARCHAR, in_malayalam VARCHAR) |
SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = "B" | Find the number of students that have at least one grade "B". | CREATE TABLE ENROLLED_IN (StuID VARCHAR, Grade VARCHAR) |
SELECT incumbent FROM table_name_47 WHERE district = "massachusetts 8" | Which Incumbent has a District of massachusetts 8? | CREATE TABLE table_name_47 (
incumbent VARCHAR,
district VARCHAR
) |
SELECT months_in_malayalam_era FROM table_169955_1 WHERE in_malayalam = "കുംഭം" | Name the months in the malayalam era for കുംഭം | CREATE TABLE table_169955_1 (months_in_malayalam_era VARCHAR, in_malayalam VARCHAR) |
SELECT MAX(gradepoint), MIN(gradepoint) FROM GRADECONVERSION | Find the max and min grade point for all letter grade. | CREATE TABLE GRADECONVERSION (gradepoint INTEGER) |
SELECT T2.state, T3.average_scale_score FROM finrev_fed_key_17 AS T2 JOIN finrev_fed_17 AS T1 ON T1.state_code = T2.state_code JOIN ndecoreexcel_math_grade8 AS T3 ON T2.state = T3.state GROUP BY T2.state ORDER BY SUM(T1.t_fed_rev) DESC LIMIT 1 | Which state spent the most revenue towards schools and whats the state average score | CREATE TABLE ndecoreexcel_math_grade8 (
year number,
state text,
all_students text,
average_scale_score number
)
CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district text,
nces_id text,
yr_data number,
t_fed_rev number,
c14 number,
c25 number
... |
SELECT sign_of_zodiac FROM table_169955_1 WHERE tamil_calendar = "Chithirai" | Name the sign of zodiac for chithirai | CREATE TABLE table_169955_1 (sign_of_zodiac VARCHAR, tamil_calendar VARCHAR) |
SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%' | Find the first names of students whose first names contain letter "a". | CREATE TABLE STUDENT (Fname VARCHAR) |
SELECT DISTINCT name, number FROM course WHERE credits = 16 AND department = 'EECS' | Name the courses that are worth 16 credits . | 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 saka_era FROM table_169955_1 WHERE sign_of_zodiac = "Pisces" | Name the saka era for sign of zodiac being pisces | CREATE TABLE table_169955_1 (saka_era VARCHAR, sign_of_zodiac VARCHAR) |
SELECT Fname, Lname FROM FACULTY WHERE sex = "M" AND Building = "NEB" | Find the first names and last names of male (sex is M) faculties who live in building NEB. | CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, sex VARCHAR, Building VARCHAR) |
SELECT COUNT(draws) FROM table_14889048_2 WHERE team = "Libertad" | How may draws did libertad have? | CREATE TABLE table_14889048_2 (
draws VARCHAR,
team VARCHAR
) |
SELECT COUNT(gregorian_calendar) FROM table_169955_1 WHERE sign_of_zodiac = "Gemini" | Name the number of gregorian calenda rof gemini | CREATE TABLE table_169955_1 (gregorian_calendar VARCHAR, sign_of_zodiac VARCHAR) |
SELECT Room FROM FACULTY WHERE Rank = "Professor" AND Building = "NEB" | Find the rooms of faculties with rank professor who live in building NEB. | CREATE TABLE FACULTY (Room VARCHAR, Rank VARCHAR, Building VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.short_title = "Parent infus nutrit sub" | how many female patients had the procedure short title parent infus nutrit sub? | 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 high_rebounds FROM table_17001658_10 WHERE high_assists = "Raymond Felton (12)" | For High Assists of Raymond Felton (12), who were the High rebounds? | CREATE TABLE table_17001658_10 (high_rebounds VARCHAR, high_assists VARCHAR) |
SELECT DName FROM DEPARTMENT WHERE Building = "Mergenthaler" | Find the department name that is in Building "Mergenthaler". | CREATE TABLE DEPARTMENT (DName VARCHAR, Building VARCHAR) |
SELECT date, COUNT(date) FROM weather WHERE max_temperature_f > 85 ORDER BY COUNT(date) DESC | Give me the number of the dates when the max temperature was higher than 85, and display from high to low by the Y. | 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 weather (
date TEXT,
... |
SELECT date FROM table_17001658_10 WHERE team = "Philadelphia" | On what date was the team Philadelphia? | CREATE TABLE table_17001658_10 (date VARCHAR, team VARCHAR) |
SELECT * FROM COURSE ORDER BY Credits | List all information about courses sorted by credits in the ascending order. | CREATE TABLE COURSE (Credits VARCHAR) |
SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-98330' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi... | patient 006-98330's potassium last measured on the first hospital visit is less than the first value measured on the first hospital visit? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... |
SELECT high_rebounds FROM table_17001658_10 WHERE high_assists = "D. J. Augustin (8)" | Who was the high rebound for the high assists of d. j. augustin (8)? | CREATE TABLE table_17001658_10 (high_rebounds VARCHAR, high_assists VARCHAR) |
SELECT CName FROM COURSE ORDER BY Credits | List the course name of courses sorted by credits. | CREATE TABLE COURSE (CName VARCHAR, Credits VARCHAR) |
SELECT "2010" FROM table_47843 WHERE "2006" = '3r' | what is 2010 when 2006 is 3r? | CREATE TABLE table_47843 (
"Tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text... |
SELECT record FROM table_17001658_10 WHERE high_rebounds = "Gerald Wallace (14)" | What was the final score of the game with gerald wallace (14) as the High Rebound? | CREATE TABLE table_17001658_10 (record VARCHAR, high_rebounds VARCHAR) |
SELECT Fname FROM STUDENT ORDER BY Age DESC | Find the first name of students in the descending order of age. | CREATE TABLE STUDENT (Fname VARCHAR, Age VARCHAR) |
SELECT MAX("Silver") FROM table_63028 WHERE "Total" = '57' AND "Bronze" > '20' | What is the highest silver that has 57 as the total, with a bronze greater than 20? | CREATE TABLE table_63028 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT score FROM table_17001658_5 WHERE game = 15 | What was the final score in game 15? | CREATE TABLE table_17001658_5 (score VARCHAR, game VARCHAR) |
SELECT LName FROM STUDENT WHERE Sex = "F" ORDER BY Age DESC | Find the last name of female (sex is F) students in the descending order of age. | CREATE TABLE STUDENT (LName VARCHAR, Sex VARCHAR, Age VARCHAR) |
SELECT T2.title, SUM(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title | Visualize the total smallest rating of different movie title using a pie chart. | CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) |
SELECT high_assists FROM table_17001658_5 WHERE team = "Miami" | Who had the most assists and how many did they have in the game against Miami? | CREATE TABLE table_17001658_5 (high_assists VARCHAR, team VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.