answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT state FROM table_1416612_1 WHERE highest_point = "Mount Katahdin"
what's the state with highest point being mount katahdin
CREATE TABLE table_1416612_1 (state VARCHAR, highest_point VARCHAR)
SELECT "Dominant religion (2002)" FROM table_3331 WHERE "Type" = 'village' AND "Cyrillic Name Other Names" = 'Бачко Добро Поље'
Name the dominant religion for village for
CREATE TABLE table_3331 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text )
SELECT position FROM table_name_68 WHERE weight > 200 AND number < 44 AND years_exp = "9" AND college = "university of new mexico"
What is Position, when Weight is greater than 200, when Number is less than 44, when Years Exp is 9, and when College is "University of New Mexico"?
CREATE TABLE table_name_68 (position VARCHAR, college VARCHAR, years_exp VARCHAR, weight VARCHAR, number VARCHAR)
SELECT language FROM table_14160327_4 WHERE genre = "Glam"
What language for the glam genre?
CREATE TABLE table_14160327_4 (language VARCHAR, genre 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 = 'vasc shunt & bypass nec') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 58730 AND NOT admissions.di...
make a count of the number of times patient 58730 has received a vasc shunt & bypass nec when they came to the hospital first time.
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE prescriptions ( row_id number, subject_id number,...
SELECT release_price___usd__ FROM table_name_53 WHERE model_number = "atom z510pt"
What was the release price of the Atom Z510PT processor?
CREATE TABLE table_name_53 (release_price___usd__ VARCHAR, model_number VARCHAR)
SELECT exportable FROM table_14160327_4 WHERE decade = "1980s"
What game allow the 1980s to be exportable?
CREATE TABLE table_14160327_4 (exportable VARCHAR, decade VARCHAR)
SELECT "First elected" FROM table_74013 WHERE "District" = 'Kentucky 3'
Name the first elected for kentucky 3
CREATE TABLE table_74013 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text )
SELECT part_number_s_ FROM table_name_51 WHERE model_number = "atom z500"
Which part number was used for the Atom Z500 processor?
CREATE TABLE table_name_51 (part_number_s_ VARCHAR, model_number VARCHAR)
SELECT COUNT(family_friendly) FROM table_14160327_4 WHERE decade = "1990s"
How many family friendly games are in the 1990s?
CREATE TABLE table_14160327_4 (family_friendly VARCHAR, decade VARCHAR)
SELECT school_club_team FROM table_name_3 WHERE player = "mark eaton"
Who did mark eaton play for?
CREATE TABLE table_name_3 ( school_club_team VARCHAR, player VARCHAR )
SELECT mult FROM table_name_35 WHERE release_price___usd__ = "n/a" AND sspec_number = "slgpr(c0)"
What was the multiplier of the processor with sSpec number of SLGPR(C0) and a release price of N/A?
CREATE TABLE table_name_35 (mult VARCHAR, release_price___usd__ VARCHAR, sspec_number VARCHAR)
SELECT home__1st_leg_ FROM table_14219514_2 WHERE aggregate = "0-1"
When 0-1 is the aggregate what are the home (1st leg)?
CREATE TABLE table_14219514_2 (home__1st_leg_ VARCHAR, aggregate VARCHAR)
SELECT "Home team" FROM table_59475 WHERE "Tie no" = '44'
Which home team has 44 ties?
CREATE TABLE table_59475 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text )
SELECT runner_s__up FROM table_name_68 WHERE tournament = "chicago challenge"
Who is the runner-up at the Chicago challenge?
CREATE TABLE table_name_68 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT home__2nd_leg_ FROM table_14219514_2 WHERE home__1st_leg_ = "Belgrano"
When belgrano is the home (1st leg) what is the home (2nd leg)?
CREATE TABLE table_14219514_2 (home__2nd_leg_ VARCHAR, home__1st_leg_ VARCHAR)
SELECT MAX("built") FROM table_203_547
what is the date that the last ship was built ?
CREATE TABLE table_203_547 ( id number, "ship" text, "built" number, "in service for cunard" text, "type" text, "tonnage" text, "notes" text )
SELECT runner_s__up FROM table_name_42 WHERE tournament = "atlantic city classic"
Who is the runner-up of Atlantic city classic?
CREATE TABLE table_name_42 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT 2 AS nd_leg FROM table_14219514_2 WHERE home__2nd_leg_ = "Platense"
When platense is the home (2nd leg) what is the 2nd leg?
CREATE TABLE table_14219514_2 (home__2nd_leg_ VARCHAR)
SELECT stuffit FROM table_name_75 WHERE gzip = "yes" AND iso_cd_image = "no" AND lha_lzh = "no"
What is the Stuffit ability that has a gzip of yes, ISO/CD images of no and LHA/LZH of no?
CREATE TABLE table_name_75 ( stuffit VARCHAR, lha_lzh VARCHAR, gzip VARCHAR, iso_cd_image VARCHAR )
SELECT date FROM table_name_61 WHERE tournament = "u.s. women's open"
What is the date of the U.S. Women's open?
CREATE TABLE table_name_61 (date VARCHAR, tournament VARCHAR)
SELECT COUNT(1 AS st_leg) FROM table_14219514_2 WHERE home__1st_leg_ = "Altos Hornos Zapla"
When altos hornos zapla is the home (1st leg) what is overall amount of 1st leg?
CREATE TABLE table_14219514_2 (home__1st_leg_ VARCHAR)
SELECT COUNT(DISTINCT dormid) FROM has_amenity
Find the number of dorms that have some amenity.
CREATE TABLE lives_in ( stuid number, dormid number, room_number number ) CREATE TABLE has_amenity ( dormid number, amenid number ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CRE...
SELECT margin_of_victory FROM table_name_8 WHERE tournament = "gna/glendale federal classic"
What is the margin of victory of the gna/glendale federal classic?
CREATE TABLE table_name_8 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT home__1st_leg_ FROM table_14219514_2 WHERE home__2nd_leg_ = "Temperley"
When temperley is the home (2nd leg) what is the home (1st leg)?
CREATE TABLE table_14219514_2 (home__1st_leg_ VARCHAR, home__2nd_leg_ VARCHAR)
SELECT "Home team score" FROM table_58200 WHERE "Venue" = 'vfl park'
What is the Home Team Score at VFL Park?
CREATE TABLE table_58200 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT class FROM table_name_34 WHERE part_4 = "*buranaz"
Which class has *buranaz as Part 4?
CREATE TABLE table_name_34 (class VARCHAR, part_4 VARCHAR)
SELECT COUNT(2 AS nd_leg) FROM table_14219514_1 WHERE aggregate = "2-4"
How many 2nd legs had an aggregate of 2-4?
CREATE TABLE table_14219514_1 (aggregate VARCHAR)
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Name DESC
For those records from the products and each product's manufacturer, find name and code , and group by attribute founder, and visualize them by a bar chart, and display by the x axis in desc.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT verb_meaning FROM table_name_88 WHERE part_2 = "*bar"
What is the verb meaning for *bar as Part 2?
CREATE TABLE table_name_88 (verb_meaning VARCHAR, part_2 VARCHAR)
SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = "Independiente"
How many 2nd legs are there where home (1st leg) is Independiente?
CREATE TABLE table_14219514_1 (home__1st_leg_ VARCHAR)
SELECT MAX("First elected") FROM table_789
What is the last year on this list someone was first elected?
CREATE TABLE table_789 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT class FROM table_name_62 WHERE part_4 = "*alanaz"
Which class has *alanaz as Part 4?
CREATE TABLE table_name_62 (class VARCHAR, part_4 VARCHAR)
SELECT home__2nd_leg_ FROM table_14219514_1 WHERE home__1st_leg_ = "Talleres"
Who was in home (2nd leg) when Talleres was in home (1st leg)
CREATE TABLE table_14219514_1 (home__2nd_leg_ VARCHAR, home__1st_leg_ VARCHAR)
SELECT stadium FROM table_name_60 WHERE visiting_team = "denver broncos"
What stadium did the Denver Broncos visit?
CREATE TABLE table_name_60 ( stadium VARCHAR, visiting_team VARCHAR )
SELECT class FROM table_name_59 WHERE part_2 = "*fraus"
Which class has *fraus as Part 2?
CREATE TABLE table_name_59 (class VARCHAR, part_2 VARCHAR)
SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = "Boca Juniors"
Who was in 2nd leg when Boca Juniors was in home (1st leg)?
CREATE TABLE table_14219514_1 (home__1st_leg_ VARCHAR)
SELECT june_10_11 FROM table_25284864_3 WHERE march_27_29 = "March 28, 1968"
What June 10-11 is is that corresponds to March 28, 1968?
CREATE TABLE table_25284864_3 ( june_10_11 VARCHAR, march_27_29 VARCHAR )
SELECT transfer_fee FROM table_name_60 WHERE name = "evilasio"
what is the transfer fee for evilasio?
CREATE TABLE table_name_60 (transfer_fee VARCHAR, name VARCHAR)
SELECT playoffs FROM table_14240688_1 WHERE open_cup = "2nd Round"
Name the playoffs for 2nd round open cup
CREATE TABLE table_14240688_1 (playoffs VARCHAR, open_cup VARCHAR)
SELECT "Title/Rank" FROM table_51162 WHERE "Actor" = 'pauline moran'
What is the title rank of actor pauline moran?
CREATE TABLE table_51162 ( "Actor" text, "Character" text, "Title/Rank" text, "Series" text, "Years" text )
SELECT team FROM table_name_21 WHERE completions = "redshirt"
What team did James Vanderberg belong to when the Completions had a status of redshirt?
CREATE TABLE table_name_21 (team VARCHAR, completions VARCHAR)
SELECT reg_season FROM table_14225409_1 WHERE playoffs = "Conference Semifinals" AND us_open_cup = "Did not qualify"
What was the regular season standings for the year when the playoffs reached the conference semifinals and the team did not qualify for the US Open Cup?
CREATE TABLE table_14225409_1 (reg_season VARCHAR, playoffs VARCHAR, us_open_cup VARCHAR)
SELECT score FROM table_name_48 WHERE to_par = "–1" AND player = "henrik stenson"
With a To par of 1, what is Player Henrik Stenson's Score?
CREATE TABLE table_name_48 ( score VARCHAR, to_par VARCHAR, player VARCHAR )
SELECT completions FROM table_name_72 WHERE team = "iowa" AND yards = "45"
What were the number of completions for James Vanderberg on Iowa when his yards were 45?
CREATE TABLE table_name_72 (completions VARCHAR, team VARCHAR, yards VARCHAR)
SELECT population__1931__in_1, 000 AS s FROM table_14245_3 WHERE voivodeship_or_city = "lubelskie"
Name the population in 1931 for lubelskie
CREATE TABLE table_14245_3 (population__1931__in_1 VARCHAR, voivodeship_or_city VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "WHITE" AND lab.label = "Protein/Creatinine Ratio"
How many white ethnic background patients had a protein/creatinine ratio lab test?
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 team FROM table_name_19 WHERE completions = "42"
What was the team Vanderberg belonged to when there was 42 completions?
CREATE TABLE table_name_19 (team VARCHAR, completions VARCHAR)
SELECT population__1931__in_1, 000 AS s FROM table_14245_3 WHERE capital = "Tarnopol"
Name the population when the capital is tarnopol
CREATE TABLE table_14245_3 (population__1931__in_1 VARCHAR, capital VARCHAR)
SELECT "High points" FROM table_7167 WHERE "Location Attendance" = 'staples center 18,964'
What is High Points, when Location Attendance is Staples Center 18,964?
CREATE TABLE table_7167 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT attempts FROM table_name_17 WHERE completions = "223"
What number of attempts were recorded when the completions were 223?
CREATE TABLE table_name_17 (attempts VARCHAR, completions VARCHAR)
SELECT MIN(bits_14_12) FROM table_14249278_1 WHERE description = "Output from accumulator to character bus"
Name the most bits 14-12 for output from accumulator to character bus
CREATE TABLE table_14249278_1 (bits_14_12 INTEGER, description VARCHAR)
SELECT T1.Price, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Name
For those records from the products and each product's manufacturer, draw a scatter chart about the correlation between price and code , and group by attribute name.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT year FROM table_name_96 WHERE attempts = "888"
In what year was the number of attempts 888?
CREATE TABLE table_name_96 (year VARCHAR, attempts VARCHAR)
SELECT MIN(number_in_fleet) FROM table_1425948_1 WHERE chassis_manufacturer = "Scania" AND fleet_numbers = "3230"
what is smallest number in fleet for chassis manufacturer Scania and fleet numbers is 3230?
CREATE TABLE table_1425948_1 (number_in_fleet INTEGER, chassis_manufacturer VARCHAR, fleet_numbers VARCHAR)
SELECT SUM("gold") FROM table_204_183
how many total gold medals were awarded ?
CREATE TABLE table_204_183 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT attempts FROM table_name_42 WHERE team = "iowa" AND yards = "2,249"
What was the number of attempts for Vanderberg on Iowa when the recorded yards were 2,249?
CREATE TABLE table_name_42 (attempts VARCHAR, team VARCHAR, yards VARCHAR)
SELECT chassis_manufacturer FROM table_1425948_1 WHERE fleet_numbers = "2530-2558"
Which chassis manufacturer is for fleet numbers range 2530-2558
CREATE TABLE table_1425948_1 (chassis_manufacturer VARCHAR, fleet_numbers VARCHAR)
SELECT "Year [e ] (Ceremony)" FROM table_22142 WHERE "Director" = 'Otar Iosseliani'
when was otar iosseliani's film selected
CREATE TABLE table_22142 ( "Year [e ] (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Main Language(s)" text, "Result" text )
SELECT Leading AS scorer FROM table_name_10 WHERE opponent = "@ indiana"
Which Leading Scorer has an Opponent of @ indiana?
CREATE TABLE table_name_10 (Leading VARCHAR, opponent VARCHAR)
SELECT MIN(number_in_fleet) FROM table_1425948_1 WHERE chassis_model = "Scania K360UA"
Chassis model Scania K360ua has what minimum number in fleet?
CREATE TABLE table_1425948_1 (number_in_fleet INTEGER, chassis_model VARCHAR)
SELECT total FROM table_name_21 WHERE set_2 = "20–25"
What is the total when the score for set 2 is 20 25?
CREATE TABLE table_name_21 ( total VARCHAR, set_2 VARCHAR )
SELECT Leading AS scorer FROM table_name_70 WHERE record = "3-3"
Which Leading Scorer has a Record of 3-3?
CREATE TABLE table_name_70 (Leading VARCHAR, record VARCHAR)
SELECT channels FROM table_142573_1 WHERE designation = "PC700"
Name the channels when designation is pc700
CREATE TABLE table_142573_1 (channels VARCHAR, designation VARCHAR)
SELECT "Class" FROM table_35202 WHERE "Points" < '89' AND "Team" = 'honda' AND "Year" > '1987'
Which class has fewer than 89 points and the Honda team later than 1987?
CREATE TABLE table_35202 ( "Year" real, "Class" text, "Team" text, "Points" real, "Wins" real )
SELECT date FROM table_name_98 WHERE tie_no = "6"
What is the date when tie number is 6?
CREATE TABLE table_name_98 (date VARCHAR, tie_no VARCHAR)
SELECT MAX(clock_rate__mhz_) FROM table_142573_1
Name the maximum clock rate mhz
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER)
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-15417')) AND DATETIME(microlab.culturetakentime) <= DATETIME(...
when did patient 031-15417 first get a microbiology test until 25 months 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 home_team FROM table_name_93 WHERE tie_no = "9"
Who is the home team with tie number 9?
CREATE TABLE table_name_93 (home_team VARCHAR, tie_no VARCHAR)
SELECT bus_width__bits_ FROM table_142573_1 WHERE bandwidth__mb_s_ = 3200
Name the bus width bits when bandwidth mb/s is 3200
CREATE TABLE table_142573_1 (bus_width__bits_ VARCHAR, bandwidth__mb_s_ VARCHAR)
SELECT "Title" FROM table_26738 WHERE "Episode No." = '2'
What is the title of episode 2?
CREATE TABLE table_26738 ( "Series No." real, "Episode No." real, "Title" text, "Directed by" text, "Written by" text, "UK Ratings (BBC2 Rank)" text, "Original air date" text )
SELECT home_team FROM table_name_38 WHERE away_team = "sheffield united"
Who is the home team when Sheffield United is the away team?
CREATE TABLE table_name_38 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(clock_rate__mhz_) FROM table_142573_1
Name the least clock rate mhz
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "ASIAN" AND prescriptions.drug = "GlyBURIDE"
provide the number of asian patients who are taking glyburide medication.
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 (...
SELECT date FROM table_name_98 WHERE away_team = "aston villa"
What is the date when Aston Villa is the away team?
CREATE TABLE table_name_98 (date VARCHAR, away_team VARCHAR)
SELECT MIN(clock_rate__mhz_) FROM table_142573_1 WHERE designation = "RIMM 4200"
Name the least clock rate mhz when designation is rimm 4200
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER, designation VARCHAR)
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%uganda%' OR UPPER(Location) LIKE '%UGA' ORDER BY Reputation DESC LIMIT 200
Top 200 users from Uganda.
CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time...
SELECT home_team FROM table_name_75 WHERE date = "31 january 1951" AND away_team = "sheffield united"
Who is the home team on 31 January 1951 when away team was Sheffield United?
CREATE TABLE table_name_75 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT COUNT(clock_rate__mhz_) FROM table_142573_1 WHERE bandwidth__mb_s_ = 2400
Name the number of clock rate mhz when bandwidth mb/s is 2400
CREATE TABLE table_142573_1 (clock_rate__mhz_ VARCHAR, bandwidth__mb_s_ VARCHAR)
SELECT apt_type_code FROM apartments GROUP BY apt_type_code ORDER BY AVG(room_count) DESC LIMIT 3
What are the top three apartment types in terms of the average room count? Give me the
CREATE TABLE apartments ( apt_id number, building_id number, apt_type_code text, apt_number text, bathroom_count number, bedroom_count number, room_count text ) CREATE TABLE apartment_buildings ( building_id number, building_short_name text, building_full_name text, building...
SELECT MAX(attendance) FROM table_name_62 WHERE week > 11 AND opponent = "washington redskins"
What was the attendance during the match that took place after week 11 against the washington redskins?
CREATE TABLE table_name_62 (attendance INTEGER, week VARCHAR, opponent VARCHAR)
SELECT elementary_schools FROM table_14254419_3 WHERE principal__2013_2014_ = "Cort Monroe"
Which elementary schools list Cort Monroe as the principal from 2013 to 2014?
CREATE TABLE table_14254419_3 (elementary_schools VARCHAR, principal__2013_2014_ VARCHAR)
SELECT year_s__of_manufacture FROM table_name_35 WHERE railway_number_s_ = "26 (ii) …63 (ii) , 188–193"
What are the year(s) of manufacture for railway number(s) 26 (ii) 63 (ii) , 188 193?
CREATE TABLE table_name_35 ( year_s__of_manufacture VARCHAR, railway_number_s_ VARCHAR )
SELECT to_par FROM table_name_94 WHERE place = "t3" AND player = "geoff ogilvy"
WHAT IS THE TO PAR FOR GEOFF OGILVY WITH A PLACE OF T3?
CREATE TABLE table_name_94 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT Assistant AS principal__2013_2014_ FROM table_14254419_3 WHERE principal__2013_2014_ = "Cort Monroe"
Who are all the assistant principals that served from 2013-2014 under the principal Cort Monroe?
CREATE TABLE table_14254419_3 (Assistant VARCHAR, principal__2013_2014_ VARCHAR)
SELECT T1.Title, T1.AlbumId FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 ORDER BY T1.Title DESC
Show me a bar chart for what are the titles and ids for albums containing tracks with unit price greater than 1?, and rank in desc by the x axis.
CREATE TABLE MediaType ( MediaTypeId integer, Name varchar(120) ) CREATE TABLE PlaylistTrack ( PlaylistId integer, TrackId integer ) CREATE TABLE Genre ( GenreId integer, Name varchar(120) ) CREATE TABLE Artist ( ArtistId integer, Name varchar(120) ) CREATE TABLE Track ( TrackId ...
SELECT COUNT(year_opened) FROM table_name_47 WHERE ride = "flight deck" AND rating < 5
What year has the ride flight deck and a rating of less than 5?
CREATE TABLE table_name_47 (year_opened VARCHAR, ride VARCHAR, rating VARCHAR)
SELECT opponent FROM table_14263158_3 WHERE result = "0–3 0–8 0–1 0–2 0–3 1–4 0–9 0–5"
Who played in the series that resulted in matches with the following scores: 0–3 0–8 0–1 0–2 0–3 1–4 0–9 0–5?
CREATE TABLE table_14263158_3 (opponent VARCHAR, result VARCHAR)
SELECT city_location FROM table_name_48 WHERE race_name = "budweiser/g. i. joe's 200"
Where is the budweiser/g. i. joe's 200?
CREATE TABLE table_name_48 ( city_location VARCHAR, race_name VARCHAR )
SELECT other_names FROM table_name_36 WHERE death = "may 23, 1821"
what is other names when death is may 23, 1821?
CREATE TABLE table_name_36 (other_names VARCHAR, death VARCHAR)
SELECT name FROM table_1425958_1 WHERE _percentage_change = "6.5"
Where was there a change of 6.5%?
CREATE TABLE table_1425958_1 (name VARCHAR, _percentage_change VARCHAR)
SELECT r1b1c__r_v88_ FROM table_21481509_4 WHERE total_percentage = "4.5%"
What percentage is listed in column r1b1c (r-v88) for the 4.5% total percentage?
CREATE TABLE table_21481509_4 ( r1b1c__r_v88_ VARCHAR, total_percentage VARCHAR )
SELECT name FROM table_name_80 WHERE death = "november 10, 1842"
what is the name when death is november 10, 1842?
CREATE TABLE table_name_80 (name VARCHAR, death VARCHAR)
SELECT density__pop_km²_ FROM table_1425958_1 WHERE _percentage_change = "8.8"
When the change is 8.8%, what is the density (pop/km²)?
CREATE TABLE table_1425958_1 (density__pop_km²_ VARCHAR, _percentage_change VARCHAR)
SELECT circuit FROM table_name_17 WHERE winning_driver = "raymond mays"
Which circuit did Raymond Mays win?
CREATE TABLE table_name_17 ( circuit VARCHAR, winning_driver VARCHAR )
SELECT internet_plan FROM table_name_48 WHERE price = "22 eur"
What is Internet Plan, when Price is "22 EUR"?
CREATE TABLE table_name_48 (internet_plan VARCHAR, price VARCHAR)
SELECT COUNT(2011 AS _census) FROM table_1425958_1 WHERE density__pop_km²_ = "91.8"
How many locations had a density (pop/km²) of 91.8 in the 2011 census?
CREATE TABLE table_1425958_1 (density__pop_km²_ VARCHAR)
SELECT "Score" FROM table_35447 WHERE "Date" = 'february 12'
What was the score for the game on February 12?
CREATE TABLE table_35447 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
SELECT downstream FROM table_name_88 WHERE upstream = "384 kbit"
What is Downstream, when Upstream is "384 kbit"?
CREATE TABLE table_name_88 (downstream VARCHAR, upstream VARCHAR)
SELECT MIN(population_rank) FROM table_1425958_1 WHERE _percentage_change = "8.4"
When the % change is 8.4, what is the population rank?
CREATE TABLE table_1425958_1 (population_rank INTEGER, _percentage_change VARCHAR)