answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT "L3 cache" FROM table_13514 WHERE "sSpec number" = 'sr0r2(l1)sr0t6(l1)'
What is the l3 cache when the sspec number is sr0r2(l1)sr0t6(l1)?
CREATE TABLE table_13514 ( "Model number" text, "sSpec number" text, "Cores" text, "Frequency" text, "Turbo" text, "L2 cache" text, "L3 cache" text, "GPU model" text, "GPU frequency" text, "Socket" text, "I/O bus" text, "Release date" text, "Part number(s)" text, ...
SELECT team FROM table_15872814_7 WHERE high_assists = "Rafer Alston (5)"
What team had high assists Rafer Alston (5)?
CREATE TABLE table_15872814_7 (team VARCHAR, high_assists VARCHAR)
SELECT COUNT(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code WHERE T1.crs_code = 'ACCT-211'
How many students enrolled in class ACCT-211?
CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR)
SELECT MIN(demographic.age) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.diagnosis = "OVERDOSE"
calculate the minimum age of home health care discharged patients who had overdose primary disease.
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 ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions...
SELECT high_assists FROM table_15873014_5 WHERE date = "January 3"
Who has the most assists on January 3?
CREATE TABLE table_15873014_5 (high_assists VARCHAR, date VARCHAR)
SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211'
What is the first name of each student enrolled in class ACCT-211?
CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR)
SELECT DISTINCT paper.paperid, paper.year FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'semantic parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid ORDER BY paper.year DESC
new semantic parsing papers
CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE field ( fieldid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE paper ( pape...
SELECT rector FROM table_15873547_1 WHERE mascot = "Phoxes"
Who is the rector of the residence hall who's mascot is the phoxes?
CREATE TABLE table_15873547_1 (rector VARCHAR, mascot VARCHAR)
SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C'
What is the first name of students enrolled in class ACCT-211 and got grade C?
CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR, enroll_grade VARCHAR)
SELECT event FROM table_name_76 WHERE position = "4th" AND year = 2007
Which event had 4th place and took place in the year 2007?
CREATE TABLE table_name_76 ( event VARCHAR, position VARCHAR, year VARCHAR )
SELECT mascot FROM table_15873547_1 WHERE colors = "Green and Navy"
What is the mascot with the colors green and navy?
CREATE TABLE table_15873547_1 (mascot VARCHAR, colors VARCHAR)
SELECT COUNT(*) FROM employee
Find the total number of employees.
CREATE TABLE employee (Id VARCHAR)
SELECT tankers FROM table_name_9 WHERE hazmat = "–" AND platforms = "–" AND staffing = "volunteer"
Which Tankers have a Hazmat of , and Platforms of , and a Staffing of volunteer?
CREATE TABLE table_name_9 ( tankers VARCHAR, staffing VARCHAR, hazmat VARCHAR, platforms VARCHAR )
SELECT residence_hall FROM table_15873547_1 WHERE mascot = "Vermin"
What residence hall has the vermin mascot?
CREATE TABLE table_15873547_1 (residence_hall VARCHAR, mascot VARCHAR)
SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.'
How many professors do have a Ph.D. degree?
CREATE TABLE professor (prof_high_degree VARCHAR)
SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP/57'
what is the AP/57 restriction
CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE days ( days_code varchar, day_name varchar ) CR...
SELECT colors FROM table_15873547_1 WHERE residence_hall = "Howard Hall"
What are the colors of Howard Hall?
CREATE TABLE table_15873547_1 (colors VARCHAR, residence_hall VARCHAR)
SELECT COUNT(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting'
How many students are enrolled in the class taught by some professor from the accounting department?
CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "PNEUMONIA" AND prescriptions.route = "SL"
let me know the number of patients taking drug via sl route suffering from pneumonia primary disease.
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT content FROM table_15887683_1 WHERE television_service = "LA7"
What is the content of la7 television service?
CREATE TABLE table_15887683_1 (content VARCHAR, television_service VARCHAR)
SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the department that has the largest number of students enrolled?
CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE course (dept_code VARCHAR, crs_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)
SELECT "Winner" FROM table_70219 WHERE "Event" = 'ept german open'
The EPT German open was won by which listed winner?
CREATE TABLE table_70219 ( "Date" text, "City" text, "Event" text, "Winner" text, "Prize" text )
SELECT content FROM table_15887683_1 WHERE television_service = "Rai 1"
What is the content of the rai 1 television service?
CREATE TABLE table_15887683_1 (content VARCHAR, television_service VARCHAR)
SELECT dept_name FROM department ORDER BY dept_name
list names of all departments ordered by their names.
CREATE TABLE department (dept_name VARCHAR)
SELECT COUNT(DISTINCT "rank") FROM table_203_392
how many different ranks exist for karate belts ?
CREATE TABLE table_203_392 ( id number, "rank" text, "belt alternate 1" text, "belt alternate 2" text, "belt alternate 3" text, "belt alternate 4" text )
SELECT package_option FROM table_15887683_1 WHERE television_service = "Rai 3"
What are the package/options when the TV service is rai 3?
CREATE TABLE table_15887683_1 (package_option VARCHAR, television_service VARCHAR)
SELECT class_code FROM CLASS WHERE class_room = 'KLR209'
List the codes of all courses that take place in room KLR209.
CREATE TABLE CLASS (class_code VARCHAR, class_room VARCHAR)
SELECT "Record" FROM table_21310 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_21310 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location/Attendance" text, "Record" text )
SELECT hdtv FROM table_15887683_1 WHERE television_service = "Italia 1"
What high definition television options are available for Italia 1?
CREATE TABLE table_15887683_1 (hdtv VARCHAR, television_service VARCHAR)
SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' ORDER BY emp_dob
List the first name of all employees with job code PROF ordered by their date of birth.
CREATE TABLE employee (emp_fname VARCHAR, emp_jobcode VARCHAR, emp_dob VARCHAR)
SELECT "time" FROM table_204_937 WHERE "rank" = 5
how long did it take the fifth place finisher to run the race ?
CREATE TABLE table_204_937 ( id number, "rank" number, "lane" number, "athlete" text, "time" number )
SELECT COUNT(hdtv) FROM table_15887683_16 WHERE television_service = "Elite Shopping TV"
How many values of HDTV apply when television service is elite shopping tv?
CREATE TABLE table_15887683_16 (hdtv VARCHAR, television_service VARCHAR)
SELECT T2.emp_fname, T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num ORDER BY T2.emp_fname
Find the first names and offices of all professors sorted by alphabetical order of their first name.
CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
SELECT "Home team score" FROM table_32339 WHERE "Venue" = 'western oval'
What did the home team score when playing at Western Oval?
CREATE TABLE table_32339 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT COUNT(country) FROM table_15887683_16 WHERE content = "arte"
How many countries have content of arte?
CREATE TABLE table_15887683_16 (country VARCHAR, content VARCHAR)
SELECT emp_fname, emp_lname FROM employee ORDER BY emp_dob LIMIT 1
What is the first and last name of the oldest employee?
CREATE TABLE employee (emp_fname VARCHAR, emp_lname VARCHAR, emp_dob VARCHAR)
SELECT "Opponents" FROM table_36349 WHERE "Partner" = 'irina-camelia begu' AND "Surface" = 'hard'
Which Opponents have a Partner of irina-camelia begu, and a Surface of hard?
CREATE TABLE table_36349 ( "Outcome" text, "Date" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text )
SELECT COUNT(hdtv) FROM table_15887683_16 WHERE television_service = "La Sorgente Sat 1"
How many values of HDTV correspond to television service of la sorgente sat 1?
CREATE TABLE table_15887683_16 (hdtv VARCHAR, television_service VARCHAR)
SELECT stu_fname, stu_lname, stu_gpa FROM student WHERE stu_gpa > 3 ORDER BY stu_dob DESC LIMIT 1
What is the first, last name, gpa of the youngest one among students whose GPA is above 3?
CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_gpa INTEGER, stu_dob VARCHAR)
SELECT * FROM table_train_159 WHERE kidney_disease = 1 OR estimated_glomerular_filtration_rate_egfr < 45
presence of chronic kidney disease ( gfr < 45 ml / min )
CREATE TABLE table_train_159 ( "id" int, "hemoglobin_a1c_hba1c" float, "estimated_glomerular_filtration_rate_egfr" int, "kidney_disease" bool, "serum_triglyceride" int, "body_mass_index_bmi" float, "age" float, "NOUSE" float )
SELECT hdtv FROM table_15887683_16 WHERE n° = 862
What values of HDTV correspond to n° of 862?
CREATE TABLE table_15887683_16 (hdtv VARCHAR, n° VARCHAR)
SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C'
What is the first name of students who got grade C in any class?
CREATE TABLE student (stu_num VARCHAR); CREATE TABLE enroll (stu_num VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Perforation of intestine" AND lab."CATEGORY" = "Blood Gas"
how many patients whose diagnoses long title is perforation of intestine and lab test category is blood gas?
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 demographic (...
SELECT content FROM table_15887683_10 WHERE package_option = "Sky Famiglia" AND language = "Italian" AND dar = "16:9" AND television_service = "MTV Hits"
Name the content for sky famiglia for italian and dar 16:9 for mtv hits
CREATE TABLE table_15887683_10 (content VARCHAR, television_service VARCHAR, dar VARCHAR, package_option VARCHAR, language VARCHAR)
SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) LIMIT 1
What is the name of department where has the smallest number of professors?
CREATE TABLE professor (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)
SELECT type FROM table_name_21 WHERE name = "mccormack"
What is the type when McCormack is the name?
CREATE TABLE table_name_21 ( type VARCHAR, name VARCHAR )
SELECT MIN(n) AS ° FROM table_15887683_10 WHERE television_service = "myDeejay"
Name the least number for mydeejay
CREATE TABLE table_15887683_10 (n INTEGER, television_service VARCHAR)
SELECT T2.dept_name, T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1
What is the name of department where has the largest number of professors with a Ph.D. degree?
CREATE TABLE professor (dept_code VARCHAR, prof_high_degree VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)
SELECT COUNT("Field goals") FROM table_28033 WHERE "Position" = 'Left end'
How many numbers were recorded on the fields goals of the Left End player?
CREATE TABLE table_28033 ( "Player" text, "Position" text, "Starter" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real )
SELECT COUNT(package_option) FROM table_15887683_10 WHERE television_service = "Music Box Italia"
Name the number of package options for music box italia
CREATE TABLE table_15887683_10 (package_option VARCHAR, television_service VARCHAR)
SELECT emp_fname FROM employee WHERE emp_jobcode = 'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num
What are the first names of the professors who do not teach a class.
CREATE TABLE employee (emp_fname VARCHAR, emp_jobcode VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
SELECT All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home ORDER BY SUM(School_ID) DESC
Draw a bar chart about the distribution of All_Home and the sum of School_ID , and group by attribute All_Home, could you show in desc by the y-axis please?
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 hdtv FROM table_15887683_10 WHERE package_option = "Sky Famiglia" AND dar = "16:9" AND television_service = "myDeejay"
Name the hdtv for sky famiglia and dar 16:9 for mydeejay
CREATE TABLE table_15887683_10 (hdtv VARCHAR, television_service VARCHAR, package_option VARCHAR, dar VARCHAR)
SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num = T5.prof_num
What is the first names of the professors from the history department who do not teach a class.
CREATE TABLE professor (emp_num VARCHAR, dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = "7 wpi"
Name the standard yarn weight system for 7 wpi
CREATE TABLE table_20297668_1 ( standard_yarn_weight_system VARCHAR, wraps_per_inch__wpi_ VARCHAR )
SELECT dar FROM table_15887683_10 WHERE television_service = "MTV Rocks"
Name the dar for mtv rocks
CREATE TABLE table_15887683_10 (dar VARCHAR, television_service VARCHAR)
SELECT T1.emp_lname, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'
What is the last name and office of the professor from the history department?
CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE employee (emp_lname VARCHAR, emp_num VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR)
SELECT "School/Club Team" FROM table_1262 WHERE "Name" = 'Norman Gonzales'
Nametheh school team for norman gonzales
CREATE TABLE table_1262 ( "Name" text, "Position" text, "Number" real, "School/Club Team" text, "Season" text, "Acquisition via" text )
SELECT ppv FROM table_15887683_10 WHERE package_option = "Sky Famiglia" AND dar = "16:9" AND television_service = "MTV Dance"
Name the ppv for sky famiglia and dar 16:9 for mtv dance
CREATE TABLE table_15887683_10 (ppv VARCHAR, television_service VARCHAR, package_option VARCHAR, dar VARCHAR)
SELECT T3.dept_name, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'
What is department name and office for the professor whose last name is Heffington?
CREATE TABLE employee (emp_num VARCHAR, emp_lname VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR)
SELECT points_against FROM table_name_51 WHERE drawn = "0" AND tries_for = "50"
For the club that had tries of 50 and drawn of 0, what were the points?
CREATE TABLE table_name_51 ( points_against VARCHAR, drawn VARCHAR, tries_for VARCHAR )
SELECT dar FROM table_15887683_17 WHERE television_service = "Telenord"
Name the dar for telenord
CREATE TABLE table_15887683_17 (dar VARCHAR, television_service VARCHAR)
SELECT T1.emp_lname, T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num WHERE T2.prof_office = 'DRE 102'
Find the last name and hire date of the professor who is in office DRE 102.
CREATE TABLE professor (emp_num VARCHAR, prof_office VARCHAR); CREATE TABLE employee (emp_lname VARCHAR, emp_hiredate VARCHAR, emp_num VARCHAR)
SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-23341')) AND DATETIME(medication.drugstarttime) <= DATETIM...
last time until 20 months ago when did patient 028-23341 get a prescription?
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE allergy ( allergy...
SELECT COUNT(hdtv) FROM table_15887683_17 WHERE television_service = "Eurotic TV"
Name the total number of hdtv for eurotic tv
CREATE TABLE table_15887683_17 (hdtv VARCHAR, television_service VARCHAR)
SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num WHERE T3.stu_lname = 'Smithson'
What is the code of the course which the student whose last name is Smithson took?
CREATE TABLE student (stu_num VARCHAR, stu_lname VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR, class_code VARCHAR)
SELECT demographic.admission_type, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2110"
Find me the admission type and short title of procedure for the patient with patient id 2110.
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 dar FROM table_15887683_17 WHERE n° = 912
Name the dar for 912
CREATE TABLE table_15887683_17 (dar VARCHAR, n° VARCHAR)
SELECT T4.crs_description, T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'
What are the description and credit of the course which the student whose last name is Smithson took?
CREATE TABLE student (stu_num VARCHAR, stu_lname VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_credit VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR)
SELECT MIN(yards) FROM table_name_3 WHERE long = 34 AND avg < 12.6
Name the lowest yards for 34 long and avg less than 12.6
CREATE TABLE table_name_3 ( yards INTEGER, long VARCHAR, avg VARCHAR )
SELECT COUNT(content) FROM table_15887683_19 WHERE television_service = "R-LIGHT"
How many times was something listed under content when the television was R-light?
CREATE TABLE table_15887683_19 (content VARCHAR, television_service VARCHAR)
SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA'
How many professors who has a either Ph.D. or MA degree?
CREATE TABLE professor (prof_high_degree VARCHAR)
SELECT "Loss" FROM table_56314 WHERE "Date" = 'may 9'
Who did they lose to on may 9?
CREATE TABLE table_56314 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT ppv FROM table_15887683_19 WHERE television_service = "SCT"
Was there PPV when the service was SCT?
CREATE TABLE table_15887683_19 (ppv VARCHAR, television_service VARCHAR)
SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'
How many professors who are from either Accounting or Biology department?
CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (dept_code VARCHAR)
SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id and the amount of job_id , and group by attribute job_id, list x-axis in asc order please.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25...
SELECT hdtv FROM table_15887683_19 WHERE television_service = "PRIVÈ"
Was there HDTV when the service was Privè?
CREATE TABLE table_15887683_19 (hdtv VARCHAR, television_service VARCHAR)
SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num = T2.prof_num WHERE crs_code = 'QM-261'
Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261.
CREATE TABLE CLASS (prof_num VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)
SELECT COUNT(matchup_results) FROM table_23718905_6 WHERE city = "San Diego, California"
How many different matchup/results appear in San Diego, California?
CREATE TABLE table_23718905_6 ( matchup_results VARCHAR, city VARCHAR )
SELECT language FROM table_15887683_19 WHERE television_service = "ContoTV 5"
In what laguage was Contotv 5?
CREATE TABLE table_15887683_19 (language VARCHAR, television_service VARCHAR)
SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOI...
Find the first name of student who is taking classes from accounting and Computer Info. Systems departments
CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR)
SELECT years FROM table_name_88 WHERE soap_opera = "marienhof" AND duration = "10 years" AND actor = "leonore capell"
What years did Marienhof run, which featured Leonore Capell and lasted 10 years?
CREATE TABLE table_name_88 ( years VARCHAR, actor VARCHAR, soap_opera VARCHAR, duration VARCHAR )
SELECT content FROM table_15887683_3 WHERE package_option = "Tutti i pacchetti + Sky HD"
What's the content of the Tutti i Pacchetti + Sky HD package?
CREATE TABLE table_15887683_3 (content VARCHAR, package_option VARCHAR)
SELECT AVG(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211'
What is the average gpa of the students enrolled in the course with code ACCT-211?
CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, stu_num VARCHAR)
SELECT CommentCount, Id, COUNT(*) FROM Posts GROUP BY Id, CommentCount HAVING COUNT(*) > 1 ORDER BY COUNT(*) DESC
Q1-1 What is the most number of comments on a single post?.
CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, V...
SELECT package_option FROM table_15887683_3 WHERE television_service = "FOX Sports HD"
What package offers Fox Sports HD?
CREATE TABLE table_15887683_3 (package_option VARCHAR, television_service VARCHAR)
SELECT stu_gpa, stu_phone, stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5
What is the first name, gpa and phone number of the top 5 students with highest gpa?
CREATE TABLE student (stu_gpa VARCHAR, stu_phone VARCHAR, stu_fname VARCHAR)
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 57050 AND admissions.dischtime IS NULL)) AND transfers...
how many hours has it been since patient 57050 stayed for the first time on the current hospital visit in ward 14?
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, d...
SELECT package_option FROM table_15887683_3 WHERE television_service = "Cartello promozionale Sky HD"
What packages offer the Cartello Promozionale Sky HD service?
CREATE TABLE table_15887683_3 (package_option VARCHAR, television_service VARCHAR)
SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa LIMIT 1
What is the department name of the students with lowest gpa belongs to?
CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code 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 CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIM...
give me flights from ATLANTA to BALTIMORE
CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE T...
SELECT COUNT(content) FROM table_15887683_3 WHERE package_option = "qualsiasi tranne Sky HD"
How many different contents are offered by the Qualsiasi Tranne Sky HD package?
CREATE TABLE table_15887683_3 (content VARCHAR, package_option VARCHAR)
SELECT stu_fname, stu_gpa FROM student WHERE stu_gpa < (SELECT AVG(stu_gpa) FROM student)
Find the first name and gpa of the students whose gpa is lower than the average gpa of all students.
CREATE TABLE student (stu_fname VARCHAR, stu_gpa INTEGER)
SELECT Body_Builder_ID, Clean_Jerk FROM body_builder
Return a scatter chart about the correlation between Body_Builder_ID and Clean_Jerk .
CREATE TABLE body_builder ( Body_Builder_ID int, People_ID int, Snatch real, Clean_Jerk real, Total real ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Birth_Date text, Birth_Place text )
SELECT content FROM table_15887683_3 WHERE n° = 204
What's the content offered by the package number 204?
CREATE TABLE table_15887683_3 (content VARCHAR, n° VARCHAR)
SELECT T2.dept_name, T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1
Find the name and address of the department that has the highest number of students.
CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)
SELECT COUNT(1999 AS _broadway) FROM table_10312547_1 WHERE character = "Mrs. Darling"
How many playerd Mrs. Darling in the 1999 Broadway?
CREATE TABLE table_10312547_1 ( character VARCHAR )
SELECT COUNT(ppv) FROM table_15887683_5 WHERE television_service = "Sky Cinema 1"
How many PPV values are listed for when television service Sky Cinema 1?
CREATE TABLE table_15887683_5 (ppv VARCHAR, television_service VARCHAR)
SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 3
Find the name, address, number of students in the departments that have the top 3 highest number of students.
CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)
SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE"
what is the maximum age of patients whose death status is 0 and diagnosed with primary disease coronary artery disease\coronary artery bypass graft with mvr; ? maze?
CREATE TABLE procedures ( 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, ...