answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT winning_pct__percentage FROM table_2259285_1 WHERE goals_for = 322
What was the winning % when there were 322 goals?
CREATE TABLE table_2259285_1 ( winning_pct__percentage VARCHAR, goals_for VARCHAR )
SELECT class FROM table_22824297_1 WHERE position = "Guard" AND player = "Tal Brody"
What is every class with a position of guard and Tal Brody as the player?
CREATE TABLE table_22824297_1 (class VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(_percentage_of_popular_vote) FROM table_19769687_3 WHERE _number_of_seats_won = 83
Name the total number for % popular vote for # of seats won for 83
CREATE TABLE table_19769687_3 (_percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR)
SELECT "Formula" FROM table_65993 WHERE "Driver" = 'john moore-brabazon'
Which formula had a driver of John Moore-Brabazon?
CREATE TABLE table_65993 ( "Year" real, "Formula" text, "Driver" text, "Constructor" text, "Location" text, "Report" text )
SELECT COUNT(no) FROM table_22824297_1 WHERE hometown = "Canton, Illinois"
How many values for number occur with the hometown of Canton, Illinois?
CREATE TABLE table_22824297_1 (no VARCHAR, hometown VARCHAR)
SELECT _percentage_of_popular_vote FROM table_19769687_3 WHERE election = "1926"
Name the % of popular vote for election for 1926
CREATE TABLE table_19769687_3 (_percentage_of_popular_vote VARCHAR, election VARCHAR)
SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.admityear >= "2179"
calculate the average age of urgent hospital admission patients who were admitted on or after 2179.
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear 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 ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT class FROM table_22824312_1 WHERE player = "Ren Alde"
What class was ren alde?
CREATE TABLE table_22824312_1 (class VARCHAR, player VARCHAR)
SELECT MAX(_number_of_seats_won) FROM table_19769687_3
Name the most # of seats won
CREATE TABLE table_19769687_3 (_number_of_seats_won INTEGER)
SELECT "Country" FROM table_61491 WHERE "Player" = 'nick faldo'
What country has player Nick Faldo?
CREATE TABLE table_61491 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( \u00a3 )" real )
SELECT player FROM table_22824312_1 WHERE weight = 170
Who are the player's who weighed 170?
CREATE TABLE table_22824312_1 (player VARCHAR, weight VARCHAR)
SELECT MAX(_number_of_total_votes) FROM table_19769687_3 WHERE election = "1878"
Name the most number of total votes for election for 1878
CREATE TABLE table_19769687_3 (_number_of_total_votes INTEGER, election VARCHAR)
SELECT DEPT_CODE, COUNT(*) FROM PROFESSOR WHERE PROF_HIGH_DEGREE = 'Ph.D.' GROUP BY DEPT_CODE
Return a histogram on how many professors have a Ph.D. in each department?
CREATE TABLE DEPARTMENT ( DEPT_CODE varchar(10), DEPT_NAME varchar(30), SCHOOL_CODE varchar(8), EMP_NUM int, DEPT_ADDRESS varchar(20), DEPT_EXTENSION varchar(4) ) CREATE TABLE PROFESSOR ( EMP_NUM int, DEPT_CODE varchar(10), PROF_OFFICE varchar(50), PROF_EXTENSION varchar(4), PROF_HIGH_DEGREE varchar(5) ) CREATE TABLE CLASS ( CLASS_CODE varchar(5), CRS_CODE varchar(10), CLASS_SECTION varchar(2), CLASS_TIME varchar(20), CLASS_ROOM varchar(8), PROF_NUM int ) CREATE TABLE EMPLOYEE ( EMP_NUM int, EMP_LNAME varchar(15), EMP_FNAME varchar(12), EMP_INITIAL varchar(1), EMP_JOBCODE varchar(5), EMP_HIREDATE datetime, EMP_DOB datetime ) CREATE TABLE ENROLL ( CLASS_CODE varchar(5), STU_NUM int, ENROLL_GRADE varchar(50) ) CREATE TABLE COURSE ( CRS_CODE varchar(10), DEPT_CODE varchar(10), CRS_DESCRIPTION varchar(35), CRS_CREDIT float(8) ) CREATE TABLE STUDENT ( STU_NUM int, STU_LNAME varchar(15), STU_FNAME varchar(15), STU_INIT varchar(1), STU_DOB datetime, STU_HRS int, STU_CLASS varchar(2), STU_GPA float(8), STU_TRANSFER numeric, DEPT_CODE varchar(18), STU_PHONE varchar(4), PROF_NUM int )
SELECT hometown FROM table_22824312_1 WHERE player = "Jim Dutcher"
What is jim dutcher's hometown?
CREATE TABLE table_22824312_1 (hometown VARCHAR, player VARCHAR)
SELECT MAX(_number) FROM table_197638_7 WHERE french_open = 1974
What is the number for the french open 1974?
CREATE TABLE table_197638_7 (_number INTEGER, french_open VARCHAR)
SELECT "Indians admitted" FROM table_21407 WHERE "Year" = '2001'
How many Indians were admitted in 2001?
CREATE TABLE table_21407 ( "Year" real, "Indians admitted" real, "Pakistanis admitted" real, "Sri Lankans admitted" real, "Bangladeshis admitted" real, "Nepalis admitted" real )
SELECT COUNT(player) FROM table_22824319_3 WHERE points = 51
Name the total number of player for 51 points
CREATE TABLE table_22824319_3 (player VARCHAR, points VARCHAR)
SELECT MAX(australian_open) FROM table_197638_7
When was the Australian open?
CREATE TABLE table_197638_7 (australian_open INTEGER)
SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'magnesium') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65582) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY labevents.charttime DESC LIMIT 1
when was patient 65582 tested for magnesium for the last time this month?
CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) 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, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) 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 cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) 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 )
SELECT MAX(rebounds) FROM table_22824319_3 WHERE player = "Larry Smith"
Name the most rebounds for larry smith
CREATE TABLE table_22824319_3 (rebounds INTEGER, player VARCHAR)
SELECT COUNT(age) FROM table_197638_7 WHERE player = "Maureen Connolly Brinker"
How many ages have Maureen Connolly Brinker as the player?
CREATE TABLE table_197638_7 (age VARCHAR, player VARCHAR)
SELECT high_rebounds FROM table_name_62 WHERE score = "w 81-69"
Which High rebounds has a Score of w 81-69?
CREATE TABLE table_name_62 ( high_rebounds VARCHAR, score VARCHAR )
SELECT steals FROM table_22824319_3 WHERE blocks = 5
Name the steals for 5 blocks
CREATE TABLE table_22824319_3 (steals VARCHAR, blocks VARCHAR)
SELECT MIN(french_open) FROM table_197638_7 WHERE player = "Serena Williams"
When is the French Open when serena williams is the player?
CREATE TABLE table_197638_7 (french_open INTEGER, player VARCHAR)
SELECT "U.S. viewers (millions)" FROM table_29122 WHERE "Story by" = 'David Simon & Mari Kornhauser'
How many viewers watched the episode with a story by david simon & mari kornhauser?
CREATE TABLE table_29122 ( "No." real, "#" real, "Title" text, "Directed by" text, "Story by" text, "Teleplay by" text, "Original air date" text, "U.S. viewers (millions)" text )
SELECT MIN(points) FROM table_22824319_3
Name the least points
CREATE TABLE table_22824319_3 (points INTEGER)
SELECT COUNT(dismissals) FROM table_19769948_26 WHERE innings = 191
how many dismissals in a game with 191 innings
CREATE TABLE table_19769948_26 (dismissals VARCHAR, innings VARCHAR)
SELECT result FROM table_name_27 WHERE opponent = "clyde" AND venue = "h"
What is the result of the match with clyde as the opponent in the h venue?
CREATE TABLE table_name_27 ( result VARCHAR, opponent VARCHAR, venue VARCHAR )
SELECT h_ci__ka_m_ FROM table_2282444_1 WHERE b_r__t_ = "0.6–1.4"
When 0.6–1.4 is the b r (t) what is the h ci (ka/m)?
CREATE TABLE table_2282444_1 (h_ci__ka_m_ VARCHAR, b_r__t_ VARCHAR)
SELECT COUNT(residence_city) FROM table_198175_2 WHERE english_name = "Province of Viborg and Nyslott"
How many residence cities have an English name of Province of Viborg and Nyslott?
CREATE TABLE table_198175_2 (residence_city VARCHAR, english_name VARCHAR)
SELECT COUNT(*) FROM table_204_568 WHERE "est. building cost" < 20
how many boats costed less than # 20m to build ?
CREATE TABLE table_204_568 ( id number, "pennant" text, "name" text, "hull builder" text, "ordered" text, "laid down" text, "launched" text, "accepted into service" text, "commissioned" text, "est. building cost" text, "fate" text )
SELECT COUNT(t_c__) AS Β°c_ FROM table_2282444_1 WHERE magnet = "Nd 2 Fe 14 B (bonded)"
When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc (Β°c)?
CREATE TABLE table_2282444_1 (t_c__ VARCHAR, magnet VARCHAR)
SELECT MAX(map_number) FROM table_198175_2
What is the highest value for map number?
CREATE TABLE table_198175_2 (map_number INTEGER)
SELECT T1.first_name, T1.last_name, T1.staff_id FROM staff AS T1 JOIN payment AS T2 ON T1.staff_id = T2.staff_id GROUP BY T1.staff_id ORDER BY COUNT(*) LIMIT 1
Which staff handled least number of payments? List the full name and the id.
CREATE TABLE payment ( staff_id VARCHAR ) CREATE TABLE staff ( first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR )
SELECT h_ci__ka_m_ FROM table_2282444_1 WHERE t_c__Β°c_ = "720"
When 720 is the t c (Β°c) what is the h ci (ka/m)?
CREATE TABLE table_2282444_1 (h_ci__ka_m_ VARCHAR, t_c__Β°c_ VARCHAR)
SELECT swedish_name FROM table_198175_2 WHERE residence_city = "Loviisa"
What is every Swedish name for residence city is Loviisa?
CREATE TABLE table_198175_2 (swedish_name VARCHAR, residence_city VARCHAR)
SELECT award_show FROM table_name_53 WHERE category = "best loved drama" AND year = 2002
In what award show was Bad Girls nominated for Best Loved Drama in 2002?
CREATE TABLE table_name_53 ( award_show VARCHAR, category VARCHAR, year VARCHAR )
SELECT sec_wins FROM table_22825679_1 WHERE percentage = ".357" AND home_record = "4-3"
Name the sec wins for .357 percentage and 4-3 home record
CREATE TABLE table_22825679_1 (sec_wins VARCHAR, percentage VARCHAR, home_record VARCHAR)
SELECT finnish_name FROM table_198175_2 WHERE english_name = "Province of Viborg and Nyslott"
What is every Finnish name for the English name of Province of Viborg and Nyslott?
CREATE TABLE table_198175_2 (finnish_name VARCHAR, english_name VARCHAR)
SELECT party FROM table_name_76 WHERE results = "re-elected" AND district = "louisiana 5"
What is Party, when Results is 'Re-Elected', and when District is 'Louisiana 5'?
CREATE TABLE table_name_76 ( party VARCHAR, results VARCHAR, district VARCHAR )
SELECT percentage FROM table_22825679_1 WHERE team = "Georgia"
Name the percentage for georgia
CREATE TABLE table_22825679_1 (percentage VARCHAR, team VARCHAR)
SELECT traditional_chinese FROM table_1982739_2 WHERE area = 181
What is the traditional Chinese character set for the location that has an area of 181?
CREATE TABLE table_1982739_2 (traditional_chinese VARCHAR, area VARCHAR)
SELECT company FROM table_name_84 WHERE number > 5 AND price = "$389m"
What company is numbered larger than 5 and priced at $389M?
CREATE TABLE table_name_84 ( company VARCHAR, number VARCHAR, price VARCHAR )
SELECT overall_record FROM table_22825679_1 WHERE road_record = "4-3"
Name the overall record for road record being 4-3
CREATE TABLE table_22825679_1 (overall_record VARCHAR, road_record VARCHAR)
SELECT COUNT(area) FROM table_1982739_2 WHERE english_name = "Nanqiao District"
What is the total number of areas that are called Nanqiao District?
CREATE TABLE table_1982739_2 (area VARCHAR, english_name VARCHAR)
SELECT AVG("Attendance") FROM table_40300 WHERE "Date" = 'december 22, 1980'
Mean attendance for December 22, 1980?
CREATE TABLE table_40300 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT COUNT(road_record) FROM table_22825679_1 WHERE team = "Ole Miss"
Name the number of road record for team ole miss
CREATE TABLE table_22825679_1 (road_record VARCHAR, team VARCHAR)
SELECT COUNT(english_name) FROM table_1982739_2 WHERE traditional_chinese = "ε…¨ζ€’ηΈ£"
What is the number of English names that have a Traditional Chinese name of ε…¨ζ€’ηΈ£?
CREATE TABLE table_1982739_2 (english_name VARCHAR, traditional_chinese VARCHAR)
SELECT COUNT("Reason for change") FROM table_2628 WHERE "Successor" = 'Jonathan Jennings'
Name the reason for change for jonathan jennings
CREATE TABLE table_2628 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text )
SELECT percentage FROM table_22825679_1 WHERE team = "Ole Miss"
Name the percentage for ole miss
CREATE TABLE table_22825679_1 (percentage VARCHAR, team VARCHAR)
SELECT pinyin FROM table_1982739_2 WHERE english_name = "Dingyuan County"
What is the Pinyin name for Dingyuan County?
CREATE TABLE table_1982739_2 (pinyin VARCHAR, english_name VARCHAR)
SELECT "Player" FROM table_25382 WHERE "Weight" = '170'
Who are the player's who weighed 170?
CREATE TABLE table_25382 ( "No." real, "Player" text, "Position" text, "Height" text, "Weight" real, "Class" text, "Hometown" text )
SELECT MAX(blocks) FROM table_22824324_2 WHERE player = "Kendall Gill"
What is the most number of blocks kendall gill had?
CREATE TABLE table_22824324_2 (blocks INTEGER, player VARCHAR)
SELECT MAX(stats) FROM table_19839391_3 WHERE pitcher = "Doug Davis"
What are Doug Davis' maximum pitching stats?
CREATE TABLE table_19839391_3 (stats INTEGER, pitcher VARCHAR)
SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)
What is the average credit score for customers who have taken a loan?
CREATE TABLE loan ( loan_id text, loan_type text, cust_id text, branch_id text, amount number ) CREATE TABLE customer ( cust_id text, cust_name text, acc_type text, acc_bal number, no_of_loans number, credit_score number, branch_id number, state text ) CREATE TABLE bank ( branch_id number, bname text, no_of_customers number, city text, state text )
SELECT MIN(three_pointers) FROM table_22824324_2 WHERE rebounds = 178
What is the lowest number of three pointers in games where the number of rebounds was 178?
CREATE TABLE table_22824324_2 (three_pointers INTEGER, rebounds VARCHAR)
SELECT pitcher FROM table_19839391_3 WHERE seasons = "1970"
List the pitchers for the 1970 season
CREATE TABLE table_19839391_3 (pitcher VARCHAR, seasons VARCHAR)
SELECT ACC_Regular_Season, Team_ID FROM basketball_match
Give me a pie to show team_id from different acc regular season.
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 ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text )
SELECT COUNT(steals) FROM table_22824324_2 WHERE player = "Andy Kaufmann"
How many steals were the in games that andy kaufmann played?
CREATE TABLE table_22824324_2 (steals VARCHAR, player VARCHAR)
SELECT wins FROM table_19839391_3 WHERE winning__percentage = "0.667"
How many wins had a win percentage of 0.667
CREATE TABLE table_19839391_3 (wins VARCHAR, winning__percentage VARCHAR)
SELECT AVG(capacity) FROM table_name_28 WHERE club = "bandΔ±rma banvit"
What is the capacity of Band rma Banvit?
CREATE TABLE table_name_28 ( capacity INTEGER, club VARCHAR )
SELECT MIN(three_pointers) FROM table_22824324_2 WHERE player = "Kendall Gill"
What is the lowest number of three pointers in games that kendall gill played?
CREATE TABLE table_22824324_2 (three_pointers INTEGER, player VARCHAR)
SELECT MIN(no_decisions) FROM table_19839391_3 WHERE winning__percentage = "1.000" AND wins = 3
how many "no decisions" are there with 3 wins and a win percentage of 1.000?
CREATE TABLE table_19839391_3 (no_decisions INTEGER, winning__percentage VARCHAR, wins VARCHAR)
SELECT "School/Club Team/Country" FROM table_56338 WHERE "Height in Ft." = '6-5'
Name the school/club team/country for the player that is 6-5 ft
CREATE TABLE table_56338 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "School/Club Team/Country" text )
SELECT COUNT(three_pointers) FROM table_22824324_2 WHERE points = 581
How many games had three pointers where the number of points was 581?
CREATE TABLE table_22824324_2 (three_pointers VARCHAR, points VARCHAR)
SELECT MIN(wins) FROM table_19864214_3 WHERE seasons = "1986"
stae the least number of wins in 1986
CREATE TABLE table_19864214_3 (wins INTEGER, seasons VARCHAR)
SELECT DISTINCT name, number FROM course WHERE credits = 6 AND department = 'EECS'
Are there any courses that are worth 6 credits ?
CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) 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 semester ( semester_id int, semester varchar, year int ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int )
SELECT MAX(episodes) FROM table_22837363_1 WHERE viewers__in_millions_ = "5.74"
What was the highest amount of episodes for the season with 5.74 million viewers?
CREATE TABLE table_22837363_1 (episodes INTEGER, viewers__in_millions_ VARCHAR)
SELECT MIN(no_decisions) FROM table_19864214_3 WHERE pitcher = "Scott Feldman Category:Articles with hCards"
what is the least number of no decisions for scott feldman category:articles with hcards
CREATE TABLE table_19864214_3 (no_decisions INTEGER, pitcher VARCHAR)
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28443)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') AND STRFTIME('%d', chartevents.charttime) = '18' ORDER BY chartevents.valuenum DESC, chartevents.charttime LIMIT 1
what was the first time that patient 28443 had the maximum value of the arterial bp mean on this month/18?
CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) 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 d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) 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 cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text )
SELECT surface FROM table_22834834_3 WHERE score_in_the_final = "6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)"
Which surfaces have the final score of 6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)?
CREATE TABLE table_22834834_3 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT starts FROM table_19864214_3 WHERE seasons = "1977"
what is the number of starts in 1977
CREATE TABLE table_19864214_3 (starts VARCHAR, seasons VARCHAR)
SELECT languages FROM table_14670060_1 WHERE call_sign = "XEJAM"
What languages are spoken when call sign XEJAM is used?
CREATE TABLE table_14670060_1 ( languages VARCHAR, call_sign VARCHAR )
SELECT COUNT(outcome) FROM table_22834834_3 WHERE score_in_the_final = "7–6 (9–7) , 6–3"
How many outcome have a score of 7–6 (9–7) , 6–3?
CREATE TABLE table_22834834_3 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT pitcher FROM table_19864214_3 WHERE seasons = "1982, 1984, 1985, 1987, 1988, 1989"
who was the pitcher in seasons 1982, 1984, 1985, 1987, 1988, 1989
CREATE TABLE table_19864214_3 (pitcher VARCHAR, seasons VARCHAR)
SELECT MAX("year") - MIN("year") + 1 FROM table_204_88
how many years is the chart for ?
CREATE TABLE table_204_88 ( id number, "year" number, "english title" text, "japanese" text, "romanization" text, "type" text )
SELECT outcome FROM table_22834834_3 WHERE score_in_the_final = "6–3, 6–2"
Which outcomes have a final score of 6–3, 6–2?
CREATE TABLE table_22834834_3 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(wins) FROM table_19864214_3 WHERE pitcher = "Jon Matlack Category:Articles with hCards"
how many wins did pitcher jon matlack category:articles with hcards achieve
CREATE TABLE table_19864214_3 (wins VARCHAR, pitcher VARCHAR)
SELECT "TV network" FROM table_10111 WHERE "Type of Television Network" = 'spanish commercial' AND "Number of households viewable" > '53,674,000' AND "Place" > '1'
Which TV network is a spanish commercial network with greater than 53,674,000 households viewable and place lower than 1?
CREATE TABLE table_10111 ( "Place" real, "TV network" text, "% of US households reached" text, "Number of households viewable" real, "Type of Television Network" text )
SELECT MAX(year) FROM table_22834834_3 WHERE opponent_in_the_final = "Andre Agassi"
What is the last year that Andre Agassi was the final opponent?
CREATE TABLE table_22834834_3 (year INTEGER, opponent_in_the_final VARCHAR)
SELECT MAX(no_in_series) FROM table_19897294_4
How many series are there total?
CREATE TABLE table_19897294_4 (no_in_series INTEGER)
SELECT COUNT(DISTINCT course_offering.course_id) FROM course, course_offering, offering_instructor AS OFFERING_INSTRUCTOR_0, offering_instructor AS OFFERING_INSTRUCTOR_1, offering_instructor AS OFFERING_INSTRUCTOR_2 WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND OFFERING_INSTRUCTOR_0.instructor_id < OFFERING_INSTRUCTOR_1.instructor_id AND OFFERING_INSTRUCTOR_0.offering_id = course_offering.offering_id AND OFFERING_INSTRUCTOR_1.instructor_id < OFFERING_INSTRUCTOR_2.instructor_id AND OFFERING_INSTRUCTOR_1.offering_id = OFFERING_INSTRUCTOR_0.offering_id AND OFFERING_INSTRUCTOR_2.offering_id = OFFERING_INSTRUCTOR_0.offering_id
What is the number of courses which are being taught by more than 2 professors ?
CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) 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 )
SELECT COUNT(year) FROM table_22834834_3 WHERE score_in_the_final = "6–3, 6–2"
How many years have a final score of 6–3, 6–2?
CREATE TABLE table_22834834_3 (year VARCHAR, score_in_the_final VARCHAR)
SELECT family_families FROM table_19897294_4 WHERE no_overall = "UK10"
What family had a no.overall of UK10?
CREATE TABLE table_19897294_4 (family_families VARCHAR, no_overall VARCHAR)
SELECT COUNT("Goals Against") FROM table_60196 WHERE "Position" = '4'
How many Goals Against have a Position of 4?
CREATE TABLE table_60196 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Difference" text, "Points 1" text )
SELECT championship FROM table_22834834_3 WHERE score_in_the_final = "6–7 (9–11) , 6–4, 7–5, 4–6, 4–6"
Which championship has a final score of 6–7 (9–11) , 6–4, 7–5, 4–6, 4–6?
CREATE TABLE table_22834834_3 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT MAX(division) FROM table_1990460_1
What's the highest division number through the years?
CREATE TABLE table_1990460_1 (division INTEGER)
SELECT Trade_Name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id ORDER BY id DESC
what is the id and trade name of the medicines can interact with at least 3 enzymes?, I want to list in descending by the y axis.
CREATE TABLE medicine ( id int, name text, Trade_Name text, FDA_approved text ) CREATE TABLE enzyme ( id int, name text, Location text, Product text, Chromosome text, OMIM int, Porphyria text ) CREATE TABLE medicine_enzyme_interaction ( enzyme_id int, medicine_id int, interaction_type text )
SELECT COUNT(year) FROM table_22834834_12 WHERE earnings__$_ = 2254598
How many years had a total earnings amount of 2254598?
CREATE TABLE table_22834834_12 (year VARCHAR, earnings__$_ VARCHAR)
SELECT MIN(division) FROM table_1990460_1 WHERE regular_season = "6th, Great Lakes"
What's the lowest division number of the 6th, Great Lakes season?
CREATE TABLE table_1990460_1 (division INTEGER, regular_season VARCHAR)
SELECT RANK() OVER (ORDER BY SUM(Posts.FavoriteCount) DESC) AS "no.", Posts.OwnerUserId AS "user_link", Users.Reputation, SUM(Posts.FavoriteCount) AS "TotalFavorites", COUNT(*) AS "Posts with favorites" FROM Posts JOIN Users ON Users.Id = Posts.OwnerUserId WHERE NOT Posts.OwnerUserId IS NULL AND Posts.FavoriteCount > 0 AND Posts.CommunityOwnedDate IS NULL GROUP BY Posts.OwnerUserId, Users.Reputation ORDER BY TotalFavorites DESC
Users by total number of favorites on their posts.
CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) 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 ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number )
SELECT MAX(year) FROM table_22834834_12
What is the latest year that data is available for?
CREATE TABLE table_22834834_12 (year INTEGER)
SELECT open_cup FROM table_1990460_1 WHERE year = 2006
What's the team's status in the Open Cup in 2006?
CREATE TABLE table_1990460_1 (open_cup VARCHAR, year VARCHAR)
SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'Dependent type' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid
Which paper should I read about Dependent type ?
CREATE TABLE field ( fieldid int ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE paperfield ( fieldid int, paperid int )
SELECT score_in_the_final FROM table_22834834_2 WHERE year = 1994
What is the score in the final in the year 1994?
CREATE TABLE table_22834834_2 (score_in_the_final VARCHAR, year VARCHAR)
SELECT year FROM table_1990460_1 WHERE regular_season = "4th, Midwest"
When did the 4th, Midwest season happen?
CREATE TABLE table_1990460_1 (year VARCHAR, regular_season VARCHAR)
SELECT nickname FROM table_name_26 WHERE no_of_premierships = 0 AND years_in_competition = "1982-2003"
What was the Nickname that had a No. 0, and Years in Competition of 1982-2003?
CREATE TABLE table_name_26 ( nickname VARCHAR, no_of_premierships VARCHAR, years_in_competition VARCHAR )
SELECT championship FROM table_22834834_2 WHERE year = 1993
Who is the championship for the year of 1993?
CREATE TABLE table_22834834_2 (championship VARCHAR, year VARCHAR)
SELECT COUNT(spokesperson) FROM table_1992924_3 WHERE year_s_ = 2004
how many spokesperson where in 2004
CREATE TABLE table_1992924_3 (spokesperson VARCHAR, year_s_ VARCHAR)
SELECT designated_visitors FROM table_name_42 WHERE designated_home = "atlanta falcons"
Who were the visitors when the Atlanta Falcons were the home team?
CREATE TABLE table_name_42 ( designated_visitors VARCHAR, designated_home VARCHAR )