answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT "District" FROM table_18642 WHERE "First elected" = '1932'
What district had someone first elected in 1932?
CREATE TABLE table_18642 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT runner_up FROM table_name_14 WHERE score = "4 & 3" AND winner = "michael bonallack"
What runner-up has 4 & 3 as the score, with michael bonallack as the winner?
CREATE TABLE table_name_14 (runner_up VARCHAR, score VARCHAR, winner VARCHAR)
SELECT home_team FROM table_26842217_6 WHERE visiting_team = "Western Kentucky"
List all home teams when Western Kentucky was the visiting team.
CREATE TABLE table_26842217_6 (home_team VARCHAR, visiting_team VARCHAR)
SELECT COUNT("First Downs") FROM table_20334 WHERE "Date" = 'October 23'
What was the total number of first down on October 23?
CREATE TABLE table_20334 ( "Week" real, "Date" text, "Result" text, "Record" text, "Opponent" text, "Points For" real, "Points Against" real, "First Downs" real, "Attendance" real )
SELECT venue FROM table_name_83 WHERE score = "3 & 2" AND year = "1965"
What venue has 3 & 2 as the score, and 1965 as the year?
CREATE TABLE table_name_83 (venue VARCHAR, score VARCHAR, year VARCHAR)
SELECT time FROM table_26842217_6 WHERE home_team = "Kentucky"
List all times with Kentucky as the home team.
CREATE TABLE table_26842217_6 (time VARCHAR, home_team VARCHAR)
SELECT AVG(1990 AS _1991) FROM table_name_26 WHERE played = 38 AND points = 40
Which 1990-1991 is the average one that has Played of 38, and Points of 40?
CREATE TABLE table_name_26 ( played VARCHAR, points VARCHAR )
SELECT runner_up FROM table_name_95 WHERE year = "2008"
What runner-up has 2008 as the year?
CREATE TABLE table_name_95 (runner_up VARCHAR, year VARCHAR)
SELECT score FROM table_26847237_3 WHERE opposition = "Mid Canterbury"
What is the score when the opposition is mid canterbury?
CREATE TABLE table_26847237_3 (score VARCHAR, opposition VARCHAR)
SELECT "Maximum elevation" FROM table_26726 WHERE "Country or region" = 'Netherlands'
What is the maximum elevation in netherlands?
CREATE TABLE table_26726 ( "Country or region" text, "Highest point" text, "Maximum elevation" text, "Lowest point" text, "Minimum elevation" text, "Elevation span" text )
SELECT winner FROM table_name_70 WHERE venue = "royal st george's golf club" AND year = "1969"
What winner has royal st george's golf club as the venue, and 1969 as the year?
CREATE TABLE table_name_70 (winner VARCHAR, venue VARCHAR, year VARCHAR)
SELECT home_team FROM table_26847237_3 WHERE opposition = "East Coast"
what is the home team when the opposition is east coast?
CREATE TABLE table_26847237_3 (home_team VARCHAR, opposition VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab.itemid = "50911"
provide the number of patients whose marital status is single and item id is 50911?
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 runner_up FROM table_name_6 WHERE year = "1925"
What runner-up has 1925 as the year?
CREATE TABLE table_name_6 (runner_up VARCHAR, year VARCHAR)
SELECT home_team FROM table_26847237_3 WHERE opposition = "Wairarapa Bush"
What is the home team when the opposition is wairarapa bush?
CREATE TABLE table_26847237_3 (home_team VARCHAR, opposition VARCHAR)
SELECT AVG(score) FROM table_name_39 WHERE place = "t8" AND player = "lee trevino"
What is the average score of player lee trevino, who has a t8 place?
CREATE TABLE table_name_39 ( score INTEGER, place VARCHAR, player VARCHAR )
SELECT year FROM table_name_3 WHERE runner_up = "john davies" AND winner = "warren humphreys"
What year has John Davies as the runner-up, with warren humphreys as the winner?
CREATE TABLE table_name_3 (year VARCHAR, runner_up VARCHAR, winner VARCHAR)
SELECT home_team FROM table_26847237_3 WHERE round__number = "Round 1"
what is the home team when the round # is round 1?
CREATE TABLE table_26847237_3 (home_team VARCHAR, round__number VARCHAR)
SELECT MAX("Percent Yes") FROM table_11114 WHERE "Jurisdiction" = 'alberta' AND "Percent No" < '60.2'
What is the highest percent of yes Alberta, which had less than 60.2 vote no, has?
CREATE TABLE table_11114 ( "Jurisdiction" text, "Voted Yes" real, "Percent Yes" real, "Voted No" real, "Percent No" real )
SELECT nationality FROM table_name_71 WHERE goals = 27
What country is the player who scored 27 goals from?
CREATE TABLE table_name_71 (nationality VARCHAR, goals VARCHAR)
SELECT opposition FROM table_26847237_3 WHERE score = "37 - 28"
Who is the opposition when the score is 37 - 28?
CREATE TABLE table_26847237_3 (opposition VARCHAR, score VARCHAR)
SELECT "Free" FROM table_53591 WHERE "Total" = '156.67'
What was the free score of the skater with a total of 156.67?
CREATE TABLE table_53591 ( "Rank" real, "Name" text, "Nation" text, "Placings" real, "Figures" real, "Free" real, "Total" real )
SELECT years FROM table_name_62 WHERE goals = 27
For the player that scored 27 goals, what years did he score them?
CREATE TABLE table_name_62 (years VARCHAR, goals VARCHAR)
SELECT location FROM table_26847237_3 WHERE opposition = "Mid Canterbury"
What is the location when the opposition is mid canterbury?
CREATE TABLE table_26847237_3 (location VARCHAR, opposition VARCHAR)
SELECT COUNT(wins) FROM table_name_27 WHERE byes > 3
How many wins were there when the byes were more than 3?
CREATE TABLE table_name_27 ( wins VARCHAR, byes INTEGER )
SELECT finish FROM table_name_33 WHERE total < 282
In what place(s) did the player(s) with a total less than 282 finish?
CREATE TABLE table_name_33 (finish VARCHAR, total INTEGER)
SELECT score FROM table_26847237_1 WHERE round__number = "Round 7"
What was the score in round 7?
CREATE TABLE table_26847237_1 (score VARCHAR, round__number VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "27" AND diagnoses.short_title = "Intermed coronary synd"
give me the number of patients whose days of hospital stay is greater than 27 and diagnoses short title is intermed coronary synd?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT finish FROM table_name_94 WHERE total > 284 AND to_par = "+5" AND player = "nick faldo"
In what place did Nick Faldo, who had more than 284 points and a to par score of +5, finish?
CREATE TABLE table_name_94 (finish VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT home_team FROM table_26847237_1 WHERE opposition = "Buller"
Who was the home team when the opposition was Buller?
CREATE TABLE table_26847237_1 (home_team VARCHAR, opposition VARCHAR)
SELECT MIN(demographic.age) FROM demographic WHERE demographic.days_stay = "4" AND demographic.admityear >= "2177"
what is the minimum age of patients who stayed in hospital for 4 days and were admitted in or after the year 2177?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
SELECT mandate_end FROM table_name_44 WHERE office = "prime minister" AND name_a = "agathe uwilingiyimana"
When did Prime Minister Agathe Uwilingiyimana's mandate end?
CREATE TABLE table_name_44 (mandate_end VARCHAR, office VARCHAR, name_a VARCHAR)
SELECT win_loss FROM table_26847237_1 WHERE round__number = "Round 3"
Was it a win or loss for Wanganui in round 3?
CREATE TABLE table_26847237_1 (win_loss VARCHAR, round__number VARCHAR)
SELECT MIN(number) FROM table_name_30 WHERE school_club_team = "misamis institute"
What is the lowest Number, when School/Club Team is Misamis Institute?
CREATE TABLE table_name_30 ( number INTEGER, school_club_team VARCHAR )
SELECT power_output__kw_ FROM table_name_29 WHERE number_in_class = 5
What is the power output for class 5?
CREATE TABLE table_name_29 (power_output__kw_ VARCHAR, number_in_class VARCHAR)
SELECT location FROM table_26847237_1 WHERE opposition = "East Coast"
What was the location when the opposition was East Coast?
CREATE TABLE table_26847237_1 (location VARCHAR, opposition VARCHAR)
SELECT MAX(points) FROM table_name_81 WHERE lost < 1 AND games > 7
Which Points have a Lost smaller than 1, and Games larger than 7?
CREATE TABLE table_name_81 ( points INTEGER, lost VARCHAR, games VARCHAR )
SELECT class FROM table_name_75 WHERE power_output__kw_ > 700 AND number_in_class = 48
Which class has a power output larger than 700 and a class of 48?
CREATE TABLE table_name_75 (class VARCHAR, power_output__kw_ VARCHAR, number_in_class VARCHAR)
SELECT score FROM table_26847237_1 WHERE opposition = "West Coast" AND location = "Wanganui"
What was the score when the opposition was West Coast in Wanganui?
CREATE TABLE table_26847237_1 (score VARCHAR, opposition VARCHAR, location VARCHAR)
SELECT "1st Party" FROM table_80366 WHERE "1st Member" = 'william denison' AND "Election" = '1832'
Which party's 1st member is William Denison in the election of 1832?
CREATE TABLE table_80366 ( "Election" text, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text )
SELECT week_8_oct_26 FROM table_name_44 WHERE week_7_oct_19 = "syarcuse (4-2)"
What is the Week 8 result of the team that lost to syarcuse (4-2) in Week 7?
CREATE TABLE table_name_44 (week_8_oct_26 VARCHAR, week_7_oct_19 VARCHAR)
SELECT win_loss FROM table_26847237_1 WHERE location = "Paeroa"
Was it a win or a loss for Wanganui in Paeroa?
CREATE TABLE table_26847237_1 (win_loss VARCHAR, location VARCHAR)
SELECT SUM(swimsuit) FROM table_name_48 WHERE preliminaries < 8.27
What is the total swimsuit with Preliminaries smaller than 8.27?
CREATE TABLE table_name_48 ( swimsuit INTEGER, preliminaries INTEGER )
SELECT week_1_sept_7 FROM table_name_15 WHERE preseason = "colorado state"
What is the Week 1 result of Colorado State?
CREATE TABLE table_name_15 (week_1_sept_7 VARCHAR, preseason VARCHAR)
SELECT original_airdate FROM table_26866205_1 WHERE series__number = 26
What is every original air date for series# of 26?
CREATE TABLE table_26866205_1 (original_airdate VARCHAR, series__number VARCHAR)
SELECT "Second" FROM table_75267 WHERE "Third" = 'nikolina petric'
Who is the Second with Nikolina Petric as Third?
CREATE TABLE table_75267 ( "Nation" text, "Skip" text, "Third" text, "Second" text, "Lead" text )
SELECT incumbent FROM table_name_95 WHERE district = "colorado 4"
Who is the incumbent for the Colorado 4 district?
CREATE TABLE table_name_95 (incumbent VARCHAR, district VARCHAR)
SELECT director FROM table_26866233_1 WHERE series__number = 54
Who are the directors of the episode in series # 54?
CREATE TABLE table_26866233_1 (director VARCHAR, series__number VARCHAR)
SELECT MIN("Attendance") FROM table_27551
What is the lowest attendance?
CREATE TABLE table_27551 ( "Week" real, "Date" text, "Kickoff" text, "Opponent" text, "Final score" text, "Team record" text, "Game site" text, "Attendance" real )
SELECT district FROM table_name_41 WHERE party = "republican" AND results = "retired to run for governor democratic gain"
What district is the incumbent Republican and the incumbent retired to run for governor democratic gain?
CREATE TABLE table_name_41 (district VARCHAR, party VARCHAR, results VARCHAR)
SELECT writer FROM table_26866233_1 WHERE director = "Gene Reynolds"
The episode where the director is Gene Reynolds has who as the writer?
CREATE TABLE table_26866233_1 (writer VARCHAR, director VARCHAR)
SELECT record FROM table_name_20 WHERE date = "april 6"
Name the record for april 6
CREATE TABLE table_name_20 ( record VARCHAR, date VARCHAR )
SELECT party FROM table_name_66 WHERE district = "colorado 6"
In Colorado 6 district what is the party?
CREATE TABLE table_name_66 (party VARCHAR, district VARCHAR)
SELECT title FROM table_26866233_1 WHERE original_airdate = "December22,1996"
The episode with the original airdate December22,1996 has what title?
CREATE TABLE table_26866233_1 (title VARCHAR, original_airdate VARCHAR)
SELECT college FROM table_name_32 WHERE school = "wichita heights high school"
What college is getting a player that attends Wichita Heights High School?
CREATE TABLE table_name_32 ( college VARCHAR, school VARCHAR )
SELECT tournament FROM table_name_76 WHERE surface = "clay" AND score_in_the_final = "6–1, 3–6, 6–2"
Which tournament had a clay surface and a score of 6–1, 3–6, 6–2?
CREATE TABLE table_name_76 (tournament VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT original_airdate FROM table_26866299_1 WHERE writer = "Michael Glassberg"
What was the original air date of the episode written by michael glassberg?
CREATE TABLE table_26866299_1 (original_airdate VARCHAR, writer VARCHAR)
SELECT COUNT("Average") FROM table_34732 WHERE "Team" = 'elgin city' AND "Highest" < '537'
Team of elgin city, and a Highest smaller than 537 had what total number of average?
CREATE TABLE table_34732 ( "Team" text, "Stadium" text, "Capacity" real, "Highest" real, "Lowest" real, "Average" real )
SELECT COUNT(date) FROM table_name_39 WHERE score_in_the_final = "4–6, 4–6"
How many days had a score of 4–6, 4–6?
CREATE TABLE table_name_39 (date VARCHAR, score_in_the_final VARCHAR)
SELECT original_airdate FROM table_26866299_1 WHERE series__number = 96
What was the original air date for episode number 96 in the series?
CREATE TABLE table_26866299_1 (original_airdate VARCHAR, series__number VARCHAR)
SELECT COUNT("Position") FROM table_26769 WHERE "Points" = '30'
How many positions were given when 30 points were won?
CREATE TABLE table_26769 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" text, "Position" text )
SELECT to_par FROM table_name_85 WHERE year_won = 1988
What was the To Par of Tiger Woods who won in 1988?
CREATE TABLE table_name_85 (to_par VARCHAR, year_won VARCHAR)
SELECT writer FROM table_26866434_1 WHERE series__number = 122
Who wrote episode 122 in the series?
CREATE TABLE table_26866434_1 (writer VARCHAR, series__number VARCHAR)
SELECT AVG("Week") FROM table_40281 WHERE "Attendance" > '63,866' AND "Date" = 'september 7, 1981'
What is the average Week when there were more than 63,866 people in attendance on September 7, 1981?
CREATE TABLE table_40281 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT team_sites FROM table_name_59 WHERE name = "microsoft sharepoint"
What is the team sites entry for Microsoft Sharepoint?
CREATE TABLE table_name_59 (team_sites VARCHAR, name VARCHAR)
SELECT director FROM table_26866519_1 WHERE series__number = 201
Who directed series episode number 201?
CREATE TABLE table_26866519_1 (director VARCHAR, series__number VARCHAR)
SELECT MAX(pop__2010_) FROM table_name_58 WHERE geo_id = 3802763220 AND longitude > -98.936777
What is the highest 2010 population having GEO ID of 3802763220 and longitude over -98.936777?
CREATE TABLE table_name_58 ( pop__2010_ INTEGER, geo_id VARCHAR, longitude VARCHAR )
SELECT extranet FROM table_name_72 WHERE intranet = "yes" AND name = "microsoft exchange server"
If the intranet entry is Yes, what is the extranet entry for Microsoft Exchange server?
CREATE TABLE table_name_72 (extranet VARCHAR, intranet VARCHAR, name VARCHAR)
SELECT original_airdate FROM table_26866519_1 WHERE season__number = 20
What are the original air date(s) for season episode 20?
CREATE TABLE table_26866519_1 (original_airdate VARCHAR, season__number VARCHAR)
SELECT "High rebounds" FROM table_8703 WHERE "Date" = 'march 31'
What is listed for the High rebounds on the Date of March 31?
CREATE TABLE table_8703 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text )
SELECT team_sites FROM table_name_53 WHERE public = "no" AND developer = "yes"
What is the team sites entry that has a public entry of No and a developer entry of Yes?
CREATE TABLE table_name_53 (team_sites VARCHAR, public VARCHAR, developer VARCHAR)
SELECT COUNT(season__number) FROM table_26866519_1 WHERE director = "Ricardo Mendez Matta"
How many episodes are directed by ricardo mendez matta?
CREATE TABLE table_26866519_1 (season__number VARCHAR, director VARCHAR)
WITH QuestionsPerUser AS (SELECT U.Id AS UserId, COUNT(*) AS QuestionCount FROM Users AS u INNER JOIN Posts AS p ON u.Id = p.OwnerUserId WHERE p.PostTypeId = 1 GROUP BY U.Id), UsersWITHMoreThan28Questions AS (SELECT * FROM QuestionsPerUser WHERE QuestionCount > 28) SELECT SUM(QuestionCount) FROM UsersWITHMoreThan28Ques...
Users with more than 28 questions.
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, Cr...
SELECT name FROM table_name_34 WHERE public = "yes" AND personal_sites = "no" AND team_sites = "no"
What is the name for the entry that has a public of Yes, a personal sites of No, and a team sites of No?
CREATE TABLE table_name_34 (name VARCHAR, team_sites VARCHAR, public VARCHAR, personal_sites VARCHAR)
SELECT MIN(points) FROM table_26882866_1 WHERE standing = "5th"
Name the leaast points for standing 5th
CREATE TABLE table_26882866_1 (points INTEGER, standing VARCHAR)
SELECT "Rank" FROM table_69580 WHERE "Year" > '1994'
What rank is later than 1994?
CREATE TABLE table_69580 ( "Year" real, "Team" text, "Chassis" text, "Engine" text, "Rank" text, "Points" real )
SELECT name FROM table_name_61 WHERE developer = "yes" AND personal_sites = "no"
What is the name of the entry that has a developer entry of Yes and a personal sites entry of No?
CREATE TABLE table_name_61 (name VARCHAR, developer VARCHAR, personal_sites VARCHAR)
SELECT MIN(camper) FROM table_26894949_2 WHERE puma = "12"
If puma is 12, what is camper?
CREATE TABLE table_26894949_2 (camper INTEGER, puma VARCHAR)
SELECT "Results" FROM table_943 WHERE "GT2 Winning Team" = 'Lars-Erik Nielsen Allan Simonsen Richard Westbrook'
The results for gt2 winning team is all lars-erik nielsen allan simonsen richard westbrook.
CREATE TABLE table_943 ( "Rnd" real, "Circuit" text, "LMP1 Winning Team" text, "LMP2 Winning Team" text, "GT1 Winning Team" text, "GT2 Winning Team" text, "Results" text )
SELECT line_name FROM table_name_90 WHERE nimt_junction = "ohakune junction"
What Line has Ohakune Junction as its NIMT?
CREATE TABLE table_name_90 (line_name VARCHAR, nimt_junction VARCHAR)
SELECT COUNT(event) FROM table_26894949_2 WHERE puma = "20" AND abu_dhabi = "30"
In how many events was Puma 20 and abu dhabi 30?
CREATE TABLE table_26894949_2 (event VARCHAR, puma VARCHAR, abu_dhabi VARCHAR)
SELECT SUM(year) FROM table_name_46 WHERE animal = "downy woodpecker"
What year was the downy woodpecker coin created?
CREATE TABLE table_name_46 ( year INTEGER, animal VARCHAR )
SELECT line_name FROM table_name_4 WHERE terminus = "newmarket junction"
What line has Newmarket Junction terminus?
CREATE TABLE table_name_4 (line_name VARCHAR, terminus VARCHAR)
SELECT COUNT(sanya) FROM table_26894949_2 WHERE distance = "abu_dhabi"
How many time was the distance Abu Dhabi?
CREATE TABLE table_26894949_2 (sanya VARCHAR, distance VARCHAR)
SELECT MIN(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-56556')) AND lab.labname = 'anion gap' AND DATETIME(lab.labresulttime, 'start ...
what is patient 015-56556's daily minimum level of anion gap during the previous year?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, a...
SELECT terminus FROM table_name_37 WHERE length = "3.5km"
What terminus is 3.5km in lenght?
CREATE TABLE table_name_37 (terminus VARCHAR, length VARCHAR)
SELECT MAX(Ends) AS lost FROM table_26912584_2
What is the largest amount of ends lost?
CREATE TABLE table_26912584_2 (Ends INTEGER)
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'antiarrhythmics - class iv antiarrhythmic' AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(),...
how many patients have undergone wound care until 1 year ago in the same month after the first procedure of a antiarrhythmics - class iv antiarrhythmic?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime t...
SELECT line_name FROM table_name_7 WHERE nimt_junction = "huntly"
What line has Junction of Huntly NIMT
CREATE TABLE table_name_7 (line_name VARCHAR, nimt_junction VARCHAR)
SELECT skip FROM table_26912584_2 WHERE country = Sweden
When sweden is the country who is the skip?
CREATE TABLE table_26912584_2 (skip VARCHAR, country VARCHAR, Sweden VARCHAR)
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "Japan" AND t2.authorder = 1 AND t1.lname = "Ohori"
Which papers' first author is affiliated with an institution in the country 'Japan' and has last name 'Ohori'? Give me the titles of the papers.
CREATE TABLE authorship ( authid number, instid number, paperid number, authorder number ) CREATE TABLE papers ( paperid number, title text ) CREATE TABLE authors ( authid number, lname text, fname text ) CREATE TABLE inst ( instid number, name text, country text )
SELECT AVG(final) FROM table_name_42 WHERE all_around > 19.35 AND total > 40
What is the average final with an all around greater than 19.35 and a total over 40?
CREATE TABLE table_name_42 (final INTEGER, all_around VARCHAR, total VARCHAR)
SELECT story_by FROM table_26914076_3 WHERE us_viewers__millions_ = "0.53"
Who wrote the story viewed by 0.53 million viewers?
CREATE TABLE table_26914076_3 (story_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-59552' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1 OFFSET 1) ...
what was the weight change in patient 015-59552 second measured on the current hospital visit compared to the first value measured on the current hospital visit?
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 treatment ( treat...
SELECT SUM(final) FROM table_name_26 WHERE place > 2 AND nation = "finland" AND all_around > 18.9
What is the sum of the final for finland, who placed greater than 2 and had an all around larger than 18.9?
CREATE TABLE table_name_26 (final INTEGER, all_around VARCHAR, place VARCHAR, nation VARCHAR)
SELECT us_viewers__millions_ FROM table_26914076_3 WHERE story_by = "David Simon & Mari Kornhauser"
How many viewers watched the episode with a story by david simon & mari kornhauser?
CREATE TABLE table_26914076_3 (us_viewers__millions_ VARCHAR, story_by VARCHAR)
SELECT "Format" FROM table_66875 WHERE "Note" = '12cm' AND "Catalog" = 'alca-9198'
Name the format for 12cm note and catalog of alca-9198
CREATE TABLE table_66875 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text, "Note" text )
SELECT place FROM table_name_66 WHERE money___£__ = "140,000" AND score = 68 - 68 - 75 - 68 = 279
What is the place of the player with £140,000 and a 68-68-75-68=279 score?
CREATE TABLE table_name_66 (place VARCHAR, money___£__ VARCHAR, score VARCHAR)
SELECT COUNT(us_viewers__millions_) FROM table_26914076_3 WHERE directed_by = "Rob Bailey"
How many entries are there for u.s. viewers (millions) for the episode directed by rob bailey?
CREATE TABLE table_26914076_3 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT SUM("Round") FROM table_46453 WHERE "Position" = 'ls' AND "Overall" > '230'
What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230?
CREATE TABLE table_46453 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text )