answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2158" AND lab.label = "Thyroxine (T4)"
count the number of patients who were admitted before 2158 and had thyroxine (t4) lab test.
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 t...
SELECT COUNT(goal_difference) FROM table_name_4 WHERE goals_against = 30 AND played < 18
Tell me the totla number of goal difference for goals against of 30 and played less than 18
CREATE TABLE table_name_4 (goal_difference VARCHAR, goals_against VARCHAR, played VARCHAR)
SELECT country FROM table_19001175_1 WHERE name = "Hideki Noda Category:Articles with hCards"
Name the country for hideki noda category:articles with hcards
CREATE TABLE table_19001175_1 (country VARCHAR, name VARCHAR)
SELECT 2009 FROM table_name_68 WHERE tournament = "tournaments played"
WHAT IS THE 2009 PERFORMANCE FOR TOURNAMENTS PLAYED?
CREATE TABLE table_name_68 ( tournament VARCHAR )
SELECT COUNT(draw) FROM table_name_47 WHERE played > 18
Name the total number of draw for played more than 18
CREATE TABLE table_name_47 (draw VARCHAR, played INTEGER)
SELECT COUNT(poles) FROM table_19001175_1 WHERE name = "Stefano Livio Category:Articles with hCards"
Name the number of poles for stefano livio category:articles with hcards
CREATE TABLE table_19001175_1 (poles VARCHAR, name VARCHAR)
SELECT "Episode Title" FROM table_58229 WHERE "Original Airdate" = 'march 31, 2008'
What is the title of the episode that originally aired on March 31, 2008?
CREATE TABLE table_58229 ( "Production no." real, "Episode no." real, "Original Airdate" text, "Episode Title" text, "Host" text )
SELECT pba_team FROM table_name_10 WHERE college = "ateneo" AND pick = 17
What PBA team is the player from Ateneo college and a pick of 17?
CREATE TABLE table_name_10 (pba_team VARCHAR, college VARCHAR, pick VARCHAR)
SELECT points FROM table_19001175_1 WHERE name = "Thierry Tassin Category:Articles with hCards"
Name the points for thierry tassin category:articles with hcards
CREATE TABLE table_19001175_1 (points VARCHAR, name VARCHAR)
SELECT "Opponent in the final" FROM table_40201 WHERE "Date" = 'september 25, 1995'
For the tournament played on September 25, 1995, who was the Finals opponent?
CREATE TABLE table_40201 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text )
SELECT AVG(pick) FROM table_name_15 WHERE player = "mark joseph kong"
What is Mark Joseph Kong's pick?
CREATE TABLE table_name_15 (pick INTEGER, player VARCHAR)
SELECT COUNT(wins) FROM table_19001175_1 WHERE name = "Michele Rugolo Category:Articles with hCards"
Name the number of wins for michele rugolo category:articles with hcards
CREATE TABLE table_19001175_1 (wins VARCHAR, name VARCHAR)
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT microbiologyevents.hadm_id FROM microbiologyevents WHERE microbiologyevents.spec_type_desc = 'abscess' AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))
how many patients had a microbiology abscess test in this year?
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, ...
SELECT pba_team FROM table_name_65 WHERE pick < 15 AND college = "ateneo"
What PBA team is the player from Ateneo college with a pick number smaller than 15 from?
CREATE TABLE table_name_65 (pba_team VARCHAR, pick VARCHAR, college VARCHAR)
SELECT l_g FROM table_19018191_5 WHERE player = "Ermengol"
Name the lg for ermengol
CREATE TABLE table_19018191_5 (l_g VARCHAR, player VARCHAR)
WITH posts_WITH_java_tags AS (SELECT PostId FROM PostTags AS pt LEFT JOIN Tags AS t ON pt.TagId = t.Id WHERE LOWER(t.TagName) = 'java') SELECT u.Id AS "user_link", u.Reputation, COUNT(*) AS number_of_answers FROM Posts AS p INNER JOIN posts_WITH_java_tags AS pt ON pt.PostId = p.Id INNER JOIN Posts AS a ON a.ParentId = ...
Top Responders to Java questions in the UK or England.
CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, Acce...
SELECT pick FROM table_name_29 WHERE player = "larry fonacier"
What pick number is Larry Fonacier?
CREATE TABLE table_name_29 (pick VARCHAR, player VARCHAR)
SELECT nat FROM table_19018191_5 WHERE total_apps = 27
Name the nat for total apps for 27
CREATE TABLE table_19018191_5 (nat VARCHAR, total_apps VARCHAR)
SELECT COUNT("Game") FROM table_76496 WHERE "Opponent" = 'athlone town'
What is the total game number with athlone town as the opponent?
CREATE TABLE table_76496 ( "Game" real, "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" text )
SELECT SUM(rating) FROM table_name_92 WHERE rank__timeslot_ < 3 AND rank__night_ < 8
what is the rating when the rank (timeslot) is less than 3 and the rank (night) is less than 8?
CREATE TABLE table_name_92 (rating INTEGER, rank__timeslot_ VARCHAR, rank__night_ VARCHAR)
SELECT COUNT(l_apps) FROM table_19018191_5 WHERE total_g = 8
Name the number of apps for total g is 8
CREATE TABLE table_19018191_5 (l_apps VARCHAR, total_g VARCHAR)
SELECT away_team FROM table_name_3 WHERE home_team = "swindon town"
What is Away Team, when Home Team is 'Swindon Town'?
CREATE TABLE table_name_3 ( away_team VARCHAR, home_team VARCHAR )
SELECT AVG(rank__night_) FROM table_name_29 WHERE rating > 4.3 AND viewers__millions_ > 10.72
what is the rank (night) when the rating is more than 4.3 and the viewers (millions) is more than 10.72?
CREATE TABLE table_name_29 (rank__night_ INTEGER, rating VARCHAR, viewers__millions_ VARCHAR)
SELECT player FROM table_19018191_5 WHERE l_apps = 27
Name the player for l apps is 27
CREATE TABLE table_19018191_5 (player VARCHAR, l_apps VARCHAR)
SELECT "GT3 Pro / Am Cup Winner" FROM table_31471 WHERE "GT3 Pro Cup Winner" = 'No. 1 Vita4One'
Who are the gt3 pro / am cup winners when the gt3 pro cup winner was no. 1 vita4one?
CREATE TABLE table_31471 ( "Event" real, "Circuit" text, "GT3 Pro Cup Winner" text, "GT3 Pro / Am Cup Winner" text, "GT3 Citation Cup Winner" text, "GT4 Cup Winner" text )
SELECT date FROM table_name_90 WHERE venue = "windy hill"
When was Windy Hill used as a venue?
CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)
SELECT country FROM table_19001916_2 WHERE entities = "EBISA"
What are all the countries where the electric company Ebisa has a presence?
CREATE TABLE table_19001916_2 (country VARCHAR, entities VARCHAR)
SELECT MIN("Total") FROM table_70473 WHERE "Rank" > '8' AND "Routine score" > '27.6' AND "Difficulty score" = '13.8'
What is the total with lower than rank 8, and higher than 27.6 score and 13.8 difficulty?
CREATE TABLE table_70473 ( "Rank" real, "Gymnast" text, "Difficulty score" text, "Routine score" real, "Total" real )
SELECT home_team FROM table_name_36 WHERE venue = "vfl park"
Which home team plays at VFL Park?
CREATE TABLE table_name_36 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(country) FROM table_19001916_2 WHERE supply_point = "Itaipu"
In how many countries is Itaipu a supply point for electricity?
CREATE TABLE table_19001916_2 (country VARCHAR, supply_point VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.diagnosis = "ABDOMINAL PAIN"
what is the number of patients whose gender is m and primary disease is abdominal pain?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic (...
SELECT home_team FROM table_name_2 WHERE away_team = "footscray"
Which team plays against Footscray as the home team?
CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR)
SELECT entities FROM table_19001916_2 WHERE supply_point = "Itaipu"
What are the electric companies drawing power from Itaipu?
CREATE TABLE table_19001916_2 (entities VARCHAR, supply_point VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND date_day.day_number = 16 AND date_day.month_number = 6 AND d...
show me flights from DENVER to ATLANTA on 6 16
CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE...
SELECT SUM(attendance) FROM table_name_99 WHERE date = "may 28"
What is the total audience on may 28?
CREATE TABLE table_name_99 (attendance INTEGER, date VARCHAR)
SELECT asia FROM table_19017269_5 WHERE latin_america_caribbean = "783 (7.5%)"
what will the population of Asia be when Latin America/Caribbean is 783 (7.5%)?
CREATE TABLE table_19017269_5 (asia VARCHAR, latin_america_caribbean VARCHAR)
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-36245')) AND intakeoutput.cellpath LIKE '%ou...
what is the total quantity of output that patient 017-36245 has had until 08/23/2102?
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9cod...
SELECT MAX(attendance) FROM table_name_93 WHERE score = "0 – 4"
What was the the total top attendance with a score of 0 – 4?
CREATE TABLE table_name_93 (attendance INTEGER, score VARCHAR)
SELECT europe FROM table_19017269_5 WHERE northern_america = "482 (4.7%)"
what will be the population of Europe when Northern America is 482 (4.7%)?
CREATE TABLE table_19017269_5 (europe VARCHAR, northern_america VARCHAR)
SELECT COUNT(oricon) FROM table_10979230_4 WHERE japanese_title = "愛のバカ"
What rank is on the Japanese singles chart?
CREATE TABLE table_10979230_4 ( oricon VARCHAR, japanese_title VARCHAR )
SELECT SUM(allsvenskan_titles) FROM table_name_78 WHERE stars_symbolizes = "number of swedish championship titles" AND club = "aik" AND introduced > 2000
How many allsvenskan titles did club aik have after its introduction after 2000, with stars symbolizing the number of swedish championship titles ?
CREATE TABLE table_name_78 (allsvenskan_titles INTEGER, introduced VARCHAR, stars_symbolizes VARCHAR, club VARCHAR)
SELECT COUNT(latin_america_caribbean) FROM table_19017269_5 WHERE asia = "4,894 (46.1%)"
what row is the population of Latin America/Caribbean when Asia is 4,894 (46.1%)?
CREATE TABLE table_19017269_5 (latin_america_caribbean VARCHAR, asia VARCHAR)
SELECT "Attendance" FROM table_11803 WHERE "Date" = 'october 7, 1990'
What is the attandance figure on October 7, 1990?
CREATE TABLE table_11803 ( "Week" text, "Date" text, "Opponent" text, "Result" text, "Kickoff [a ]" text, "Game site" text, "Attendance" text, "Record" text )
SELECT MAX(swedish_championship_titles) FROM table_name_62 WHERE introduced < 2006
What is the highest amount of swedish championship titles for the team that was introduced before 2006?
CREATE TABLE table_name_62 (swedish_championship_titles INTEGER, introduced INTEGER)
SELECT africa FROM table_19017269_5 WHERE oceania = "67 (0.6%)"
what will be the population of Africa when Oceania is 67 (0.6%)
CREATE TABLE table_19017269_5 (africa VARCHAR, oceania VARCHAR)
SELECT utah FROM table_name_80 WHERE texas = "humphrey"
What's the value for utah when texas is humphrey?
CREATE TABLE table_name_80 ( utah VARCHAR, texas VARCHAR )
SELECT record FROM table_name_75 WHERE loss = "r. springer"
What is the record loss of R. Springer?
CREATE TABLE table_name_75 (record VARCHAR, loss VARCHAR)
SELECT MIN(world) FROM table_19017269_5 WHERE latin_america_caribbean = "788 (8.1%)"
What is population in the world when 788 (8.1%)?
CREATE TABLE table_19017269_5 (world INTEGER, latin_america_caribbean VARCHAR)
SELECT 'http://aviation.stackexchange.com/' + LOWER(SUBSTRING(pt.Name, 1, 1)) + '/' + CAST(p.Id AS TEXT(255)) AS ID, pt.Name AS PostType, p.CreationDate, u.DisplayName AS PostWrittenBy, p.Title, p.Body FROM Posts AS p JOIN PostTypes AS pt ON p.PostTypeId = pt.Id JOIN Users AS u ON p.OwnerUserId = u.Id WHERE p.Body LIKE...
Posts which used HTML version of FAA P/CG (W/Links).
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 ) CRE...
SELECT streak FROM table_name_77 WHERE date = "april 12"
What was the streak on April 12?
CREATE TABLE table_name_77 (streak VARCHAR, date VARCHAR)
SELECT MIN(world) FROM table_19017269_5
what is the worlds smallest population?
CREATE TABLE table_19017269_5 (world INTEGER)
SELECT MAX("days") FROM table_203_397
how many days was the longest season of grande fratello ?
CREATE TABLE table_203_397 ( id number, "series" text, "launch date" text, "finale date" text, "days" number, "housemates" number, "winner" text, "main presenter" text, "grand prize" text, "liveshow\naudience\nmillions" number )
SELECT date FROM table_name_19 WHERE loss = "a. benes" AND opponent = "rockies"
What was the date of A. Benes loss to the Rockies?
CREATE TABLE table_name_19 (date VARCHAR, loss VARCHAR, opponent VARCHAR)
SELECT MIN(year) FROM table_19047_2
What is the first year in the competition?
CREATE TABLE table_19047_2 (year INTEGER)
SELECT "Date" FROM table_34531 WHERE "Attendance" > '35,000' AND "Week" = '8'
What is the date for the game played on week 8, with an attendance of more than 35,000?
CREATE TABLE table_34531 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT streak FROM table_name_45 WHERE attendance = "33,013"
Which streak had an attendance of 33,013?
CREATE TABLE table_name_45 (streak VARCHAR, attendance VARCHAR)
SELECT outcome FROM table_19047_2 WHERE opponent_in_the_final = "Jennifer Capriati"
What is the result in the final versos Jennifer Capriati?
CREATE TABLE table_19047_2 (outcome VARCHAR, opponent_in_the_final VARCHAR)
SELECT Minister, COUNT(Minister) FROM party WHERE Party_name <> 'Progress Party' GROUP BY Minister ORDER BY COUNT(Minister) DESC
Which ministers are not a part of the Progress Party, and count them by a bar chart, I want to show Y-axis from high to low order.
CREATE TABLE party ( Party_ID int, Minister text, Took_office text, Left_office text, Region_ID int, Party_name text ) CREATE TABLE region ( Region_ID int, Region_name text, Date text, Label text, Format text, Catalogue text ) CREATE TABLE member ( Member_ID int, ...
SELECT wicket_partnership FROM table_name_91 WHERE season = "1928"
What was the partnership in the season of 1928
CREATE TABLE table_name_91 (wicket_partnership VARCHAR, season VARCHAR)
SELECT championship FROM table_19047_2 WHERE score_in_the_final = "4–6, 7–5, 6–2"
What tournament did she win with a final score of 4–6, 7–5, 6–2?
CREATE TABLE table_19047_2 (championship VARCHAR, score_in_the_final VARCHAR)
SELECT "Home team" FROM table_11891 WHERE "Away team score" = '15.14 (104)'
Which team had an away score of 15.14 (104)?
CREATE TABLE table_11891 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT COUNT(earnings___) AS $__ FROM table_name_33 WHERE player = "jim colbert" AND wins < 4
What are the earnings for jim colbert with under 4 wins?
CREATE TABLE table_name_33 (earnings___ VARCHAR, player VARCHAR, wins VARCHAR)
SELECT COUNT(duration) FROM table_19061741_3 WHERE name = "Joj Agpangan*"
When joj agpangan* is the name how many duration's are there?
CREATE TABLE table_19061741_3 (duration VARCHAR, name VARCHAR)
SELECT "Pre-Race Host" FROM table_57268 WHERE "Lap-by-lap" = 'mike joy' AND "Year" = '2005'
Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005?
CREATE TABLE table_57268 ( "Year" real, "Network" text, "Lap-by-lap" text, "s Color commentator" text, "Pre-Race Host" text, "Ratings" text )
SELECT MAX(events) FROM table_name_34 WHERE player = "bob murphy"
How many events for bob murphy?
CREATE TABLE table_name_34 (events INTEGER, player VARCHAR)
SELECT COUNT(age) FROM table_19061741_3 WHERE edition = "Clash 2010" AND home_or_representative_town_or_province = "Davao City"
When davao city is the home or representative town or province and clash 2010 is the edition how many ages are there?
CREATE TABLE table_19061741_3 (age VARCHAR, edition VARCHAR, home_or_representative_town_or_province VARCHAR)
SELECT "Rank" FROM table_66835 WHERE "Laps" > '107' AND "Qual" = '137.825'
What is the rank when there are more than 107 laps and the qual is 137.825?
CREATE TABLE table_66835 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real )
SELECT COUNT(rank) FROM table_name_62 WHERE player = "bob murphy" AND wins < 4
What is the rank for bob murphy with under 4 wins?
CREATE TABLE table_name_62 (rank VARCHAR, player VARCHAR, wins VARCHAR)
SELECT edition FROM table_19061741_3 WHERE total_days_in_pbb_house = 77 AND status = "Winner"
When winner is the status and 77 is the total days in pbb house what is the edition?
CREATE TABLE table_19061741_3 (edition VARCHAR, total_days_in_pbb_house VARCHAR, status VARCHAR)
SELECT MAX(zone) FROM table_15366849_1
What's the biggest zone?
CREATE TABLE table_15366849_1 ( zone INTEGER )
SELECT SUM(apps) FROM table_name_30 WHERE club = "flamengo" AND season = "2009" AND goals > 0
When the club is flamengo in the 2009 season, and they scored more than 0 goals, what's the sum of the Apps?
CREATE TABLE table_name_30 (apps INTEGER, goals VARCHAR, club VARCHAR, season VARCHAR)
SELECT COUNT(name) FROM table_19061741_3 WHERE duration = "Days 1-86"
When days 1-86 is the duration how many names are there?
CREATE TABLE table_19061741_3 (name VARCHAR, duration VARCHAR)
SELECT MAX("Year Left") FROM table_65218 WHERE "Conference Joined" = 'sagamore' AND "Year Joined" > '1942'
What's the highest Year Left that's got a Conference Joined of Sagamore with a Year Joined larger than 1942?
CREATE TABLE table_65218 ( "School" text, "Location" text, "Mascot" text, "County" text, "Year Joined" real, "Year Left" real, "Conference Joined" text )
SELECT club FROM table_name_43 WHERE goals = 0 AND apps > 0 AND season = "2010"
In the 2010 season what club has 0 goals and more than 0 Apps?
CREATE TABLE table_name_43 (club VARCHAR, season VARCHAR, goals VARCHAR, apps VARCHAR)
SELECT duration FROM table_19061741_3 WHERE name = "Joaqui Mendoza"
WHen joaqui mendoza is the name how long is the duration?
CREATE TABLE table_19061741_3 (duration VARCHAR, name VARCHAR)
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'lab' AND cost.eventid IN (SELECT lab.labid FROM lab WHERE lab.labname = 'calcium')
how much does it cost to have a calcium lab test.
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid number, pa...
SELECT round FROM table_name_36 WHERE event = "cage rage 17"
What Round is the Event cage rage 17?
CREATE TABLE table_name_36 (round VARCHAR, event VARCHAR)
SELECT COUNT(name) FROM table_19061741_3 WHERE home_or_representative_town_or_province = "Guiguinto, Bulacan"
When guiguinto, bulacan is the home or representative town or province how many names are there?
CREATE TABLE table_19061741_3 (name VARCHAR, home_or_representative_town_or_province VARCHAR)
SELECT first_day_cover_cancellation FROM table_11900773_6 WHERE date_of_issue = "3 April 2008" AND theme = "IIHF World Championships, Quebec City"
Where is the first day cover cancellation for the 3 April 2008 IIHF World Championships, Quebec City stamp?
CREATE TABLE table_11900773_6 ( first_day_cover_cancellation VARCHAR, date_of_issue VARCHAR, theme VARCHAR )
SELECT event FROM table_name_70 WHERE time = "1:16"
What Event is at the Time 1:16?
CREATE TABLE table_name_70 (event VARCHAR, time VARCHAR)
SELECT written_by FROM table_19068566_1 WHERE production_code = "3T7458"
When 3t7458 is the production code who are the writers?
CREATE TABLE table_19068566_1 (written_by VARCHAR, production_code VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Mupirocin Cream 2%"
what is the total number of patients treated with mupirocin cream 2%?
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 title FROM table_name_93 WHERE track > 11
What is the title of the track after 11?
CREATE TABLE table_name_93 (title VARCHAR, track INTEGER)
SELECT production_code FROM table_19068566_1 WHERE us_viewers__million_ = "3.39"
When there are 3.39 million u.s viewers what is the production code?
CREATE TABLE table_19068566_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT competition FROM table_name_42 WHERE date = "august 11, 1996"
Which competition was on August 11, 1996?
CREATE TABLE table_name_42 ( competition VARCHAR, date VARCHAR )
SELECT original_album FROM table_name_92 WHERE performer = "brad mehldau"
On the title feature brad mehldau as the performer, what is the original album?
CREATE TABLE table_name_92 (original_album VARCHAR, performer VARCHAR)
SELECT directed_by FROM table_19068566_1 WHERE production_code = "3T7461"
When 3t7461 is the production code who is the director?
CREATE TABLE table_19068566_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT antonio_thomas FROM table_name_24 WHERE hikaru_sato = "tanaka (8:09)"
Name the antonio thomas for Hikaru Sato of tanaka (8:09)
CREATE TABLE table_name_24 ( antonio_thomas VARCHAR, hikaru_sato VARCHAR )
SELECT AVG(track) FROM table_name_59 WHERE original_album = "turbulent indigo"
Which track has the original album turbulent indigo?
CREATE TABLE table_name_59 (track INTEGER, original_album VARCHAR)
SELECT score FROM table_19072602_1 WHERE match_no = 4
What was the score at the end of the match number 4?
CREATE TABLE table_19072602_1 (score VARCHAR, match_no 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
give me some good places for arabic 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_n...
SELECT player FROM table_name_8 WHERE position = "center"
What Utah Jazz player played Center?
CREATE TABLE table_name_8 (player VARCHAR, position VARCHAR)
SELECT MIN(match_no) FROM table_19072602_1 WHERE team_usa = "Bill Hoffman"
What's the match number where Bill Hoffman plays for Team USA?
CREATE TABLE table_19072602_1 (match_no INTEGER, team_usa VARCHAR)
SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-1 year') GR...
what are the top four drugs most often prescribed for patients of the age 40s until 1 year ago?
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, ...
SELECT nationality FROM table_name_41 WHERE years_for_jazz = "1987-88"
What is the nationality of all Utah Jazz Players, that played 1987-88?
CREATE TABLE table_name_41 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT COUNT(score) FROM table_19072602_1 WHERE team_europe = "Mika Koivuniemi"
How many different scores did Team Europe get when Mika Koivuniemi played for them?
CREATE TABLE table_19072602_1 (score VARCHAR, team_europe VARCHAR)
SELECT CommentCount, ClosedDate, LastActivityDate FROM Posts LIMIT 10
SELECT TOP 10 * FROM users.
CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, ...
SELECT nationality FROM table_name_53 WHERE years_for_jazz = "2011-present"
What is the nationality of all Utah Jazz Players, that played 2011-present?
CREATE TABLE table_name_53 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT score FROM table_19072602_1 WHERE team_europe = "Tore Torgersen"
What was the score when Tore Torgersen played for Team Europe?
CREATE TABLE table_19072602_1 (score VARCHAR, team_europe VARCHAR)
SELECT COUNT(original_air_date) FROM table_2409041_4 WHERE no_in_season = 14
Name the number of airdates for 14
CREATE TABLE table_2409041_4 ( original_air_date VARCHAR, no_in_season VARCHAR )