answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT COUNT("Points") FROM table_61006 WHERE "Wins" < '14' AND "Club" = 'sd indauchu' AND "Position" > '12'
WHAT ARE THE TOTAL NUMBER OF POINTS WITH WINS SMALLER THAN 14, AT SD INDAUCHU, POSITION BIGGER THAN 12?
CREATE TABLE table_61006 ( "Position" real, "Club" text, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real )
SELECT COUNT(scores) FROM table_23292220_5 WHERE episode = "5x06"
Name the number of scores for 5x06
CREATE TABLE table_23292220_5 (scores VARCHAR, episode VARCHAR)
SELECT COUNT(rnd) FROM table_22670216_1 WHERE location = "Brooklyn, Michigan" AND pole_position = "Bobby Unser"
If the location is Brooklyn, Michigan and the pole position is Bobby Unser, what is the RND total number?
CREATE TABLE table_22670216_1 (rnd VARCHAR, location VARCHAR, pole_position VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME" AND procedures.long_title = "Endoscopic sphincterotomy and papillotomy"
what is the number of patients whose discharge location is home and procedure long title is endoscopic sphincterotomy and papillotomy?
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 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 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT first_broadcast FROM table_23292220_17 WHERE seans_team = "Tina Malone and Joe Wilkinson"
Name the first broadcast for tina malone and joe wilkinson
CREATE TABLE table_23292220_17 (first_broadcast VARCHAR, seans_team VARCHAR)
SELECT COUNT(rnd) FROM table_22670216_1 WHERE track = "Ontario Motor Speedway" AND pole_position = "Johnny Rutherford"
If the pole position is Johnny Rutherford and the track is the Ontario Motor Speedway, what is the RND total number?
CREATE TABLE table_22670216_1 (rnd VARCHAR, track VARCHAR, pole_position VARCHAR)
SELECT "Date of vacancy" FROM table_1606 WHERE "Replaced by" = 'Viorel Moldovan'
What was the date of vacancy when Viorel Moldovan replaced a manager?
CREATE TABLE table_1606 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text )
SELECT COUNT(jons_team) FROM table_23292220_17 WHERE episode = "15x10"
Name the number of jons team for 15x10
CREATE TABLE table_23292220_17 (jons_team VARCHAR, episode VARCHAR)
SELECT laps FROM table_2267857_1 WHERE date = "October 26"
Name the laps of october 26
CREATE TABLE table_2267857_1 (laps VARCHAR, date VARCHAR)
SELECT journal.name FROM author, journal, publication, writes WHERE author.name = 'H. V. Jagadish' AND publication.jid = journal.jid AND writes.aid = author.aid AND writes.pid = publication.pid
return me the journals, which have papers by ' H. V. Jagadish ' .
CREATE TABLE publication_keyword ( kid int, pid int ) CREATE TABLE keyword ( keyword varchar, kid int ) CREATE TABLE publication ( abstract varchar, cid int, citation_num int, jid int, pid int, reference_num int, title varchar, year int ) CREATE TABLE conference ( cid int, homepage varchar, name varchar ) CREATE TABLE domain ( did int, name varchar ) CREATE TABLE writes ( aid int, pid int ) CREATE TABLE organization ( continent varchar, homepage varchar, name varchar, oid int ) CREATE TABLE domain_author ( aid int, did int ) CREATE TABLE domain_conference ( cid int, did int ) CREATE TABLE domain_keyword ( did int, kid int ) CREATE TABLE cite ( cited int, citing int ) CREATE TABLE author ( aid int, homepage varchar, name varchar, oid int ) CREATE TABLE domain_journal ( did int, jid int ) CREATE TABLE domain_publication ( did int, pid int ) CREATE TABLE journal ( homepage varchar, jid int, name varchar )
SELECT scores FROM table_23292220_17 WHERE seans_team = "Chris Ramsey and Carol Vorderman"
Name the scores for chris ramsey and carol vorderman
CREATE TABLE table_23292220_17 (scores VARCHAR, seans_team VARCHAR)
SELECT date FROM table_2267857_1 WHERE year = 2006
Name the date for 2006
CREATE TABLE table_2267857_1 (date VARCHAR, year VARCHAR)
SELECT SUM(laps) FROM table_name_56 WHERE driver = "lance reventlow" AND grid > 16
Name the sum of Laps for lance reventlow with grid more than 16
CREATE TABLE table_name_56 ( laps INTEGER, driver VARCHAR, grid VARCHAR )
SELECT COUNT(jons_team) FROM table_23292220_17 WHERE episode = "15x07"
Name the total number of jons team for 15x07
CREATE TABLE table_23292220_17 (jons_team VARCHAR, episode VARCHAR)
SELECT COUNT(year) FROM table_2267857_1 WHERE driver = "Dick Hutcherson"
Name the number of year for dick hutcherson
CREATE TABLE table_2267857_1 (year VARCHAR, driver VARCHAR)
SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 21110) AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 = 2
what was the drug that patient 21110 had been prescribed two times a month before.
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 d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_labitems ( row_id number, itemid number, label 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 d_items ( row_id number, itemid number, label text, linksto text ) 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 ) 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom 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 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 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 outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number )
SELECT jasons_team FROM table_23292220_6 WHERE episode = "6x02"
Name all of Jason's teams that appeared on episode 6x02?
CREATE TABLE table_23292220_6 (jasons_team VARCHAR, episode VARCHAR)
SELECT COUNT(report) FROM table_2267857_1 WHERE date = "July 23"
Name the total number for report july 23
CREATE TABLE table_2267857_1 (report VARCHAR, date VARCHAR)
SELECT SUM("prize money (usd)") FROM table_203_446
what was the total prize money earned by contestants ?
CREATE TABLE table_203_446 ( id number, "name" text, "gender" text, "age" number, "from" text, "occupation" text, "prize money (usd)" text, "status" text )
SELECT COUNT(episode) FROM table_23292220_6 WHERE seans_team = "Vanessa Feltz and Lee Mack"
In how many episodes were Vanessa Feltz and Lee Mack the team for Sean?
CREATE TABLE table_23292220_6 (episode VARCHAR, seans_team VARCHAR)
SELECT party FROM table_22756549_1 WHERE margin = 105731
What party won with a margin of 105731?
CREATE TABLE table_22756549_1 (party VARCHAR, margin VARCHAR)
SELECT MIN("2 credits") FROM table_19612 WHERE "Hand" = 'Flush'
Name the least 2 credits for flush
CREATE TABLE table_19612 ( "Hand" text, "1 credit" real, "2 credits" real, "3 credits" real, "4 credits" real, "5 credits" real )
SELECT episode FROM table_23292220_6 WHERE jasons_team = "Duncan James and Johnny Vegas"
Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team.
CREATE TABLE table_23292220_6 (episode VARCHAR, jasons_team VARCHAR)
SELECT party AS a FROM table_22756549_1 WHERE winner = "K. Anbazhagan"
What party is the winner K. Anbazhagan from?
CREATE TABLE table_22756549_1 (party VARCHAR, winner VARCHAR)
SELECT AVG(weight) FROM player
What is the average weight of all players?
CREATE TABLE player_attributes ( id number, player_fifa_api_id number, player_api_id number, date text, overall_rating number, potential number, preferred_foot text, attacking_work_rate text, defensive_work_rate text, crossing number, finishing number, heading_accuracy number, short_passing number, volleys number, dribbling number, curve number, free_kick_accuracy number, long_passing number, ball_control number, acceleration number, sprint_speed number, agility number, reactions number, balance number, shot_power number, jumping number, stamina number, strength number, long_shots number, aggression number, interceptions number, positioning number, vision number, penalties number, marking number, standing_tackle number, sliding_tackle number, gk_diving number, gk_handling number, gk_kicking number, gk_positioning number, gk_reflexes number ) CREATE TABLE league ( id number, country_id number, name text ) CREATE TABLE country ( id number, name text ) CREATE TABLE player ( id number, player_api_id number, player_name text, player_fifa_api_id number, birthday text, height number, weight number ) CREATE TABLE team ( id number, team_api_id number, team_fifa_api_id number, team_long_name text, team_short_name text ) CREATE TABLE team_attributes ( id number, team_fifa_api_id number, team_api_id number, date text, buildupplayspeed number, buildupplayspeedclass text, buildupplaydribbling number, buildupplaydribblingclass text, buildupplaypassing number, buildupplaypassingclass text, buildupplaypositioningclass text, chancecreationpassing number, chancecreationpassingclass text, chancecreationcrossing number, chancecreationcrossingclass text, chancecreationshooting number, chancecreationshootingclass text, chancecreationpositioningclass text, defencepressure number, defencepressureclass text, defenceaggression number, defenceaggressionclass text, defenceteamwidth number, defenceteamwidthclass text, defencedefenderlineclass text ) CREATE TABLE sqlite_sequence ( name text, seq text )
SELECT MAX(sf_round) FROM table_23293785_3 WHERE driver = "Duncan Tappy"
What round does Duncan Tappy drive in?
CREATE TABLE table_23293785_3 (sf_round INTEGER, driver VARCHAR)
SELECT COUNT(party) AS a FROM table_22756549_1 WHERE winner = "M. Gounder"
How many times did M. Gounder win for Party A?
CREATE TABLE table_22756549_1 (party VARCHAR, winner VARCHAR)
SELECT AVG("Election") FROM table_64200 WHERE "Province" = 'grosseto' AND "established" < '1766'
What is the average election result for the province of Grosseto from 1766 and prior?
CREATE TABLE table_64200 ( "Province" text, "Inhabitants" real, "established" real, "President" text, "Party" text, "Election" real )
SELECT MAX(race_total_pts_) FROM table_23293785_3 WHERE country = "England"
How many racing points did England get?
CREATE TABLE table_23293785_3 (race_total_pts_ INTEGER, country VARCHAR)
SELECT winner FROM table_22756549_1 WHERE runner_up_a = "V. A. Muthiah"
Who won when V. A. Muthiah was the runner-up?
CREATE TABLE table_22756549_1 (winner VARCHAR, runner_up_a VARCHAR)
SELECT "Semi finalists" FROM table_43263 WHERE "Runner-up" = 'alexandra fusai wiltrud probst'
Who were the semi finalists when the runner-up was Alexandra Fusai Wiltrud Probst?
CREATE TABLE table_43263 ( "Week of" text, "Tier" text, "Winner" text, "Runner-up" text, "Semi finalists" text )
SELECT race_2_pts_ FROM table_23293785_3 WHERE race_1_pts_ = 12
How many are the Race 2 points when Race 1 was 12?
CREATE TABLE table_23293785_3 (race_2_pts_ VARCHAR, race_1_pts_ VARCHAR)
SELECT party FROM table_22756549_1 WHERE runner_up_a = "A. Krishnaswamy"
What party was the winner when A. Krishnaswamy was the runner-up?
CREATE TABLE table_22756549_1 (party VARCHAR, runner_up_a VARCHAR)
SELECT "Opponent" FROM table_27233 WHERE "Game site" = 'Waldstadion'
What opponents played Waldstadion in a game?
CREATE TABLE table_27233 ( "Week" real, "Date" text, "Kickoff" text, "Opponent" text, "Final score" text, "Team record" text, "Game site" text, "Attendance" real )
SELECT us_viewers__millions_ FROM table_23294081_11 WHERE no = 226
How many millions of people in the US saw the episode number 226?
CREATE TABLE table_23294081_11 (us_viewers__millions_ VARCHAR, no VARCHAR)
SELECT runner_up_a FROM table_22756549_1 WHERE constituency = "Nagapattinam"
Who was the runner up for the Nagapattinam constituency?
CREATE TABLE table_22756549_1 (runner_up_a VARCHAR, constituency VARCHAR)
SELECT "opponent" FROM table_204_920 WHERE "assist/pass" = 'wambach'
who was the only opponent to be scored against with an assist from wambach ?
CREATE TABLE table_204_920 ( id number, "goal" number, "date" text, "location" text, "opponent" text, "lineup" text, "min" number, "assist/pass" text, "score" text, "result" text, "competition" text )
SELECT MAX(no) FROM table_23294081_11
What is the highest episode number?
CREATE TABLE table_23294081_11 (no INTEGER)
SELECT runner_up_a FROM table_22757733_4 WHERE winner = "Sankar Adhi"
who ended runner-up to sankar adhi?
CREATE TABLE table_22757733_4 (runner_up_a VARCHAR, winner VARCHAR)
SELECT DISTINCT semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'MUSTHTRE' AND course.number = 141 AND semester.semester_id = course_offering.semester ORDER BY semester.year LIMIT 1
For what length of time has MUSTHTRE 141 been offered ?
CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) 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 instructor ( instructor_id int, name varchar, uniqname 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 course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_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 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 comment_instructor ( instructor_id int, student_id int, score int, comment_text 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 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 jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar )
SELECT performer_1 FROM table_23294081_11 WHERE performer_2 = "Heather Anne Campbell" AND _number = 7
Who was performer 1 in the episode number 7 where Heather Anne Campbell was performer 2?
CREATE TABLE table_23294081_11 (performer_1 VARCHAR, performer_2 VARCHAR, _number VARCHAR)
SELECT party AS a FROM table_22757733_4 WHERE runner_up_a = "K. Annamalai"
which was k. annamalai´s party a?
CREATE TABLE table_22757733_4 (party VARCHAR, runner_up_a VARCHAR)
SELECT COUNT("title") FROM table_203_751 WHERE "album" <> 'non-album single'
how many singles were released as part of an album ?
CREATE TABLE table_203_751 ( id number, "year" number, "title" text, "peak chart positions\nus\nair" number, "peak chart positions\nus\nmain" number, "peak chart positions\nus\nmod" number, "album" text )
SELECT MIN(_number) FROM table_23294081_11 WHERE performer_2 = "Heather Anne Campbell" AND us_viewers__millions_ = "2.99"
What's the number of the episode seen by 2.99 millions of people in the US, where performer 2 was Heather Anne Campbell?
CREATE TABLE table_23294081_11 (_number INTEGER, performer_2 VARCHAR, us_viewers__millions_ VARCHAR)
SELECT population FROM table_22815568_7 WHERE market_income_per_capita = "$17,362"
What is the population in those place where the market income per capita is $17,362?
CREATE TABLE table_22815568_7 (population VARCHAR, market_income_per_capita VARCHAR)
SELECT agg FROM table_name_34 WHERE team_2 = "asl sport guyanais"
Name the agg for team 2 of asl sport guyanais.
CREATE TABLE table_name_34 ( agg VARCHAR, team_2 VARCHAR )
SELECT episode FROM table_23292220_7 WHERE seans_team = "Vic Reeves and Claudia Winkleman"
Name the episode for vic reeves and claudia winkleman
CREATE TABLE table_23292220_7 (episode VARCHAR, seans_team VARCHAR)
SELECT COUNT(unemployment_rate) FROM table_22815568_7 WHERE market_income_per_capita = "$16,981"
What is the unemployment rate in those places where the market income per capita is $16,981?
CREATE TABLE table_22815568_7 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR)
SELECT demographic.dischtime FROM demographic WHERE demographic.subject_id = "8440"
what is discharge time of subject id 8440?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE 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 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(scores) FROM table_23292220_7 WHERE episode = "7x05"
Name the number of scores for episode 7x05
CREATE TABLE table_23292220_7 (scores VARCHAR, episode VARCHAR)
SELECT status FROM table_22815568_7 WHERE poverty_rate = "8.6%"
What is the status in those places where the poverty rate is 8.6%?
CREATE TABLE table_22815568_7 (status VARCHAR, poverty_rate VARCHAR)
SELECT race FROM table_name_72 WHERE replica = "dnf"
Which race has a replica of DNF?
CREATE TABLE table_name_72 ( race VARCHAR, replica VARCHAR )
SELECT seans_team FROM table_23292220_7 WHERE first_broadcast = "13 November 2008"
Name the seans team being 13 november 2008
CREATE TABLE table_23292220_7 (seans_team VARCHAR, first_broadcast VARCHAR)
SELECT unemployment_rate FROM table_22815568_7 WHERE status = "Transitional" AND county = "Alexander"
What is the unemployment rate in those places in Alexander county whose status is transitional?
CREATE TABLE table_22815568_7 (unemployment_rate VARCHAR, status VARCHAR, county VARCHAR)
SELECT 1997 FROM table_name_6 WHERE 1994 = "qf" AND 1999 = "1r"
What 1997, has qf as a 1994, and 1r as a 1999?
CREATE TABLE table_name_6 ( Id VARCHAR )
SELECT COUNT(seans_team) FROM table_23292220_7 WHERE episode = "7x04"
Name the total number of seans team being 7x04
CREATE TABLE table_23292220_7 (seans_team VARCHAR, episode VARCHAR)
SELECT population FROM table_22815568_7 WHERE county = "McDowell"
What is the population of the country of McDowell?
CREATE TABLE table_22815568_7 (population VARCHAR, county VARCHAR)
SELECT SUM(attendance) FROM table_name_62 WHERE week = 11
what is the sum of attendance of week 11
CREATE TABLE table_name_62 ( attendance INTEGER, week VARCHAR )
SELECT COUNT(scores) FROM table_23292220_7 WHERE episode = "7x10"
Name the total number of scores for 7x10
CREATE TABLE table_23292220_7 (scores VARCHAR, episode VARCHAR)
SELECT county FROM table_22815568_7 WHERE unemployment_rate = "5.8%" AND market_income_per_capita = "$22,866"
In what counties is the unemployment rate 5.8% and the market income per capita is $22,866?
CREATE TABLE table_22815568_7 (county VARCHAR, unemployment_rate VARCHAR, market_income_per_capita VARCHAR)
SELECT DISTINCT COUNT(paper.paperid), paper.year FROM paper, venue WHERE venue.venueid = paper.venueid AND venue.venuename = 'NIPS' GROUP BY paper.year ORDER BY COUNT(paper.paperid) DESC
which year had the most NIPS papers ?
CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE field ( fieldid int ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int )
SELECT COUNT(date) FROM table_23293785_2 WHERE race_total_pts_ = 180
How many dates have a total points for race of 180?
CREATE TABLE table_23293785_2 (date VARCHAR, race_total_pts_ VARCHAR)
SELECT partnering FROM table_22825058_23 WHERE round = "SF"
Name the partnering for round sf
CREATE TABLE table_22825058_23 (partnering VARCHAR, round VARCHAR)
SELECT COUNT(DISTINCT major), COUNT(DISTINCT city_code) FROM student
Find the numbers of different majors and cities.
CREATE TABLE student ( major VARCHAR, city_code VARCHAR )
SELECT race_1_pts_ FROM table_23293785_2 WHERE race_total_pts_ = 180
What is every points value for race 1 if the total race points is 180?
CREATE TABLE table_23293785_2 (race_1_pts_ VARCHAR, race_total_pts_ VARCHAR)
SELECT COUNT(round) FROM table_22825058_23 WHERE against = "The Netherlands"
Name the total number of round for against the netherlands
CREATE TABLE table_22825058_23 (round VARCHAR, against VARCHAR)
SELECT bodyweight FROM table_name_18 WHERE total__kg_ = "145.0"
Which bodyweight has a Total (kg) of 145.0?
CREATE TABLE table_name_18 ( bodyweight VARCHAR, total__kg_ VARCHAR )
SELECT MIN(race_total_pts_) FROM table_23293785_2 WHERE country = "Belgium"
What is the lowest number of total race points for the country of Belgium?
CREATE TABLE table_23293785_2 (race_total_pts_ INTEGER, country VARCHAR)
SELECT round FROM table_22825058_23 WHERE opponents = "John Van Lottum Martin Verkerk"
Name the round for john van lottum martin verkerk
CREATE TABLE table_22825058_23 (round VARCHAR, opponents VARCHAR)
SELECT director FROM table_name_7 WHERE prod_code = "40811-005"
Who directed the episode with production code 40811-005?
CREATE TABLE table_name_7 ( director VARCHAR, prod_code VARCHAR )
SELECT driver FROM table_23293785_2 WHERE location = "Estoril Circuit"
Who is every driver for the location of Estoril Circuit?
CREATE TABLE table_23293785_2 (driver VARCHAR, location VARCHAR)
SELECT w_l FROM table_22825058_23 WHERE against = "Czech Republic"
Name the w/l for czech republic
CREATE TABLE table_22825058_23 (w_l VARCHAR, against VARCHAR)
SELECT state FROM table_name_66 WHERE royal_house = "ying"
Which state has a royal house of Ying?
CREATE TABLE table_name_66 ( state VARCHAR, royal_house VARCHAR )
SELECT MAX(sf_round) FROM table_23293785_2 WHERE country = "England"
What is the highest value for SF round for the country of England?
CREATE TABLE table_23293785_2 (sf_round INTEGER, country VARCHAR)
SELECT result FROM table_22825058_23 WHERE opponents = "Jiří Novák Radek Štěpánek"
Name the result for jiří novák radek štěpánek
CREATE TABLE table_22825058_23 (result VARCHAR, opponents VARCHAR)
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'insert endotracheal tube') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26995) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
calculate how many times patient 26995 has undergone the procedure of insert endotracheal tube a year before.
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 inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) 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 patients ( row_id number, subject_id number, gender text, dob time, dod 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 cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title 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 microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) 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 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 )
SELECT surface FROM table_23297_3 WHERE year = 2001
What is the surface for the year 2001?
CREATE TABLE table_23297_3 (surface VARCHAR, year VARCHAR)
SELECT tournament_venue__city_ FROM table_22849575_6 WHERE conference = "Big Sky conference"
Name the tournament venue for big sky conference
CREATE TABLE table_22849575_6 (tournament_venue__city_ VARCHAR, conference VARCHAR)
SELECT "Prize Fund" FROM table_22627 WHERE "Venue" = 'RWE-Sporthalle, Mülheim'
How much was the prize money for rwe-sporthalle, m lheim ?
CREATE TABLE table_22627 ( "Year" real, "Champion (average in final)" text, "Legs" text, "Runner-up (average in final)" text, "Sponsor" text, "Prize Fund" text, "Champion" text, "Runner-up" text, "Venue" text )
SELECT score FROM table_23308178_4 WHERE date = "October 29"
What was the score on October 29?
CREATE TABLE table_23308178_4 (score VARCHAR, date VARCHAR)
SELECT COUNT(conference) AS Tournament FROM table_22849575_6 WHERE tournament_winner = "James Madison"
Name the number of conference tournament for james madison
CREATE TABLE table_22849575_6 (conference VARCHAR, tournament_winner VARCHAR)
SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5
show me a good arabic restaurant in mountain view ?
CREATE TABLE restaurant ( id int, name varchar, food_type varchar, city_name varchar, rating "decimal ) CREATE TABLE geographic ( city_name varchar, county varchar, region varchar ) CREATE TABLE location ( restaurant_id int, house_number int, street_name varchar, city_name varchar )
SELECT COUNT(opponent) FROM table_23308178_4 WHERE record = "3-2-2"
How many opponents were there with the record of 3-2-2?
CREATE TABLE table_23308178_4 (opponent VARCHAR, record VARCHAR)
SELECT team FROM table_22848931_3 WHERE replaced_by = "Arif Asadov"
Name the team for arif asadov
CREATE TABLE table_22848931_3 (team VARCHAR, replaced_by VARCHAR)
SELECT score FROM table_name_42 WHERE record = "1-1"
WHAT SCORE HAD A RECORD OF 1-1?
CREATE TABLE table_name_42 ( score VARCHAR, record VARCHAR )
SELECT record FROM table_23308178_4 WHERE date = "October 17"
What was the record on October 17?
CREATE TABLE table_23308178_4 (record VARCHAR, date VARCHAR)
SELECT manner_of_departure FROM table_22848931_3 WHERE date_of_vacancy = "1 December 2009"
Name the manner of departure for 1 december 2009
CREATE TABLE table_22848931_3 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT date FROM table_16388478_3 WHERE away_team = "Fremantle"
On what date did the away team Fremantle play?
CREATE TABLE table_16388478_3 ( date VARCHAR, away_team VARCHAR )
SELECT date FROM table_23308178_4 WHERE opponent = "New York Rangers"
What date did they play agains the New York Rangers?
CREATE TABLE table_23308178_4 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_22848931_3 WHERE date_of_vacancy = "10 June 2009"
Name the outgoing manager for 10 june 2009
CREATE TABLE table_22848931_3 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT stadium FROM table_name_30 WHERE final_score = "27-34"
In what stadium did a game result in a final scoreline reading 27-34?
CREATE TABLE table_name_30 ( stadium VARCHAR, final_score VARCHAR )
SELECT MAX(points) FROM table_23308178_4 WHERE date = "October 27"
How many points were there scored on October 27?
CREATE TABLE table_23308178_4 (points INTEGER, date VARCHAR)
SELECT atlantic_europe FROM table_22860_1 WHERE central_europe = "Wisconsin Stage"
What is every entry for Atlantic Europe when Central Europe is Wisconsin stage?
CREATE TABLE table_22860_1 (atlantic_europe VARCHAR, central_europe VARCHAR)
SELECT "Venue" FROM table_67801 WHERE "Result" = 'draw'
What venue had a draw?
CREATE TABLE table_67801 ( "Date" text, "Home captain" text, "Away captain" text, "Venue" text, "Result" text )
SELECT COUNT(score) FROM table_23308178_5 WHERE record = "10-3-4"
How many different scores are there for the game with 10-3-4 record?
CREATE TABLE table_23308178_5 (score VARCHAR, record VARCHAR)
SELECT COUNT(maghreb) FROM table_22860_1 WHERE mediterranean_europe = "Siciliense"
How many values for Maghreb with Mediterranean Europe is Siciliense?
CREATE TABLE table_22860_1 (maghreb VARCHAR, mediterranean_europe VARCHAR)
SELECT MAX("Series #") FROM table_23057 WHERE "Written by" = 'Kristen Dunphy and David Ogilvy'
What is the series number for the episode written by Kristen Dunphy and David Ogilvy?
CREATE TABLE table_23057 ( "Series #" real, "Episode #" real, "Title" text, "Written by" text, "Directed by" text, "Viewers" real, "Original airdate" text )
SELECT date FROM table_23308178_5 WHERE record = "13-5-6"
When was the game with 13-5-6 record played?
CREATE TABLE table_23308178_5 (date VARCHAR, record VARCHAR)
SELECT atlantic_europe FROM table_22860_1 WHERE age__before_ = "10,000 years"
What is the Atlantic Europe when age is 10,000 years?
CREATE TABLE table_22860_1 (atlantic_europe VARCHAR, age__before_ VARCHAR)
SELECT MAX("Year") FROM table_8576 WHERE "Venue" = 'berlin, germany'
what is the latest year when the venue is berlin, germany?
CREATE TABLE table_8576 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text )